duplicate key name error with JChem tables

User 23ba1704ca

27-01-2014 05:35:38

Hello All


We have deployed Rest API and web services is working well. In attempt to configure same setup on different server database is imported from existing setup to new server.


Now when /webservices/rest-v0/data/<Database-Name-Here>/ is accessed to check general configuration it gives below error:


{"errorCode":1,"errorMessage":"Duplicate key name \u0027jchemmetadatatable_IDX\u0027","rootCause":"SQLException","rootErrorMessage":"Duplicate key name \u0027jchemmetadatatable_IDX\u0027"}


 Same database is working well with API on existing server. Please advise.


Also, please suggest that whenever, there is an update of the JChemBase package and the update is applied, do we require to regenerate the fingerprints again?


Thanks


Ashish Dugar

ChemAxon abe887c64e

27-01-2014 13:29:35

Hi Ashish,


As for your second question, yes, you have to run a 'recalculate' process when you update your JChem to a newer version. If you use JChem Manager GUI or run  'jcman u' in commandline, you will be asked whether you want to recalculate or not, please answer 'yes'.


For answering your the first issue I move this topic to the Webservices forum topics.


Best regards,


Krisztina

ChemAxon 13811e1703

27-01-2014 15:51:11

Hi Ashish!


Which version of JChem REST Web Services are you using?
Can you please send us the log file from: %catalina home%/logs/chemaxon.log?

Thanks,
Peter 

User 23ba1704ca

27-01-2014 16:52:10

Hello Peter


Please find attached the chemaxon.log file.


Thanks


Ashish

User 23ba1704ca

28-01-2014 14:21:04

Hello team


 


Any update on this issue.


 


thanks


Ashish

ChemAxon 13811e1703

28-01-2014 14:49:01

Hi!


Is it the latest version of the Jchem REST Web Services?
What is the version you are using?

Regards,
Peter 

User 23ba1704ca

30-01-2014 06:32:17

Hello Peter


 


We are using jchem-6.1.3-windows_with_jre along with webservices-6.1.3-b13.


 


Interestingly, when we are deploying the webservices.war file, server information section displays the following information:


 


{


    "welcomeMessage": "You connected to the JChem REST Web Services",


    "availableServices": [


        "JChem Simple Web Services"


    ],


    "version": "6.0.1",


    "jchemVersion": "6.0.1_b88",


    "javaVersion": "1.7.0_17",


    "osVersion": "Windows 7",


    "servletVersion": "jetty/6.1.25",


    "configDir": "...",


    "availableLicenses": {


        "ECFP/FCFP": {


            "state": "valid",


            "expirationDate": "2013-09-25"


        },


        "Structural Frameworks Plugin": {


            "state": "valid",


            "expirationDate": "2013-09-25"


        },


        "JChem Cartridge": {


            "state": "valid",


            "expirationDate": "2013-09-25"


        },


        "3D Screen": {


            "state": "valid",


            "expirationDate": "2013-09-25"


        },


        "Marvin Applets": {


            "state": "valid",


            "expirationDate": "2013-09-25"


        }


    }


}


 


As you can note, the web service version number is not the one we are deploying. We have consistently tried to undeploy and redeploy the webservices.war so that the right version number is displayed, but nothing is working so far.


 


Thanks


Ashish

User 23ba1704ca

30-01-2014 09:39:48

I can see some errors in catalina.log file, when the war file is being called, as tomcat is getting initialized:


 


Jan 30, 2014 3:02:39 PM org.apache.catalina.core.AprLifecycleListener init


INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\ChemAxon\JChem\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Acronis\SnapAPI\;C:\Windows\System32\WindowsPowerShell\v1.0\;.


Jan 30, 2014 3:02:42 PM org.apache.coyote.AbstractProtocol init


INFO: Initializing ProtocolHandler ["http-bio-8080"]


Jan 30, 2014 3:02:42 PM org.apache.coyote.AbstractProtocol init


INFO: Initializing ProtocolHandler ["ajp-bio-8009"]


Jan 30, 2014 3:02:42 PM org.apache.catalina.startup.Catalina load


INFO: Initialization processed in 4716 ms


Jan 30, 2014 3:02:42 PM org.apache.catalina.core.StandardService startInternal


INFO: Starting service Catalina


Jan 30, 2014 3:02:42 PM org.apache.catalina.core.StandardEngine startInternal


INFO: Starting Servlet Engine: Apache Tomcat/7.0.42


Jan 30, 2014 3:02:43 PM org.apache.catalina.startup.HostConfig deployWAR


INFO: Deploying web application archive C:\xampp\tomcat\webapps\webservices.war


Jan 30, 2014 3:04:16 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar


SEVERE: Unable to process Jar entry [COM/ibm/db2os390/sqlj/custom/DB2SQLJCustomizer.class] from Jar [jar:file:/C:/xampp/tomcat/webapps/webservices/WEB-INF/lib/db2jcc-1.0.jar!/] for annotations


org.apache.tomcat.util.bcel.classfile.ClassFormatException: null is not a Java .class file


at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:238)


at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:114)


at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2118)


at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1994)


at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1960)


at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1945)


at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1319)


at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)


at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376)


at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)


at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)


at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)


at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)


at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)


at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)


at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)


at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)


at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)


at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)


at java.util.concurrent.FutureTask.run(Unknown Source)


at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)


at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)


at java.lang.Thread.run(Unknown Source)


 


Jan 30, 2014 3:04:16 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar


SEVERE: Unable to process Jar entry [COM/ibm/db2os390/sqlj/custom/DB2SQLJEntryInfo.class] from Jar [jar:file:/C:/xampp/tomcat/webapps/webservices/WEB-INF/lib/db2jcc-1.0.jar!/] for annotations


org.apache.tomcat.util.bcel.classfile.ClassFormatException: null is not a Java .class file


at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:238)


at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:114)


at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2118)


at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1994)


at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1960)


at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1945)


at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1319)


at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)


at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376)


at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)


at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)


at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)


at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)


at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)


at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)


at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)


at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)


at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)


at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)


at java.util.concurrent.FutureTask.run(Unknown Source)


at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)


at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)


at java.lang.Thread.run(Unknown Source)


 


Jan 30, 2014 3:04:16 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar


SEVERE: Unable to process Jar entry [COM/ibm/db2os390/sqlj/custom/DB2SQLJProfile.class] from Jar [jar:file:/C:/xampp/tomcat/webapps/webservices/WEB-INF/lib/db2jcc-1.0.jar!/] for annotations


org.apache.tomcat.util.bcel.classfile.ClassFormatException: null is not a Java .class file


at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:238)


at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:114)


at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2118)


at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1994)


at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1960)


at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1945)


at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1319)


at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)


at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376)


at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)


at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)


at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)


at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)


at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)


at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)


at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)


at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)


at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)


at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)


at java.util.concurrent.FutureTask.run(Unknown Source)


at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)


at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)


at java.lang.Thread.run(Unknown Source)


 


Jan 30, 2014 3:05:13 PM org.apache.catalina.startup.HostConfig deployDirectory


INFO: Deploying web application directory C:\xampp\tomcat\webapps\docs


Jan 30, 2014 3:05:13 PM org.apache.catalina.startup.HostConfig deployDirectory


INFO: Deploying web application directory C:\xampp\tomcat\webapps\examples


Jan 30, 2014 3:05:15 PM org.apache.catalina.startup.HostConfig deployDirectory


INFO: Deploying web application directory C:\xampp\tomcat\webapps\host-manager


Jan 30, 2014 3:05:15 PM org.apache.catalina.startup.HostConfig deployDirectory


INFO: Deploying web application directory C:\xampp\tomcat\webapps\manager


Jan 30, 2014 3:05:16 PM org.apache.catalina.startup.HostConfig deployDirectory


INFO: Deploying web application directory C:\xampp\tomcat\webapps\ROOT


Jan 30, 2014 3:05:16 PM org.apache.coyote.AbstractProtocol start


INFO: Starting ProtocolHandler ["http-bio-8080"]


Jan 30, 2014 3:05:16 PM org.apache.coyote.AbstractProtocol start


INFO: Starting ProtocolHandler ["ajp-bio-8009"]


Jan 30, 2014 3:05:16 PM org.apache.catalina.startup.Catalina start


INFO: Server startup in 154149 ms

ChemAxon 13811e1703

30-01-2014 09:56:45

Hi!


I would recommend downloading and using an updated version of the REST Web Services, the version number should be consistent in the artifact name and the server information returned from the service.

Regards,
Peter 

User 23ba1704ca

30-01-2014 10:42:40

Hello Peter


 


Is there any way we can address this problem without updating to latest versions.


 


If we update to the latest versions, we will have to manually re-generate the fingerprints.


 


Thanks


Ashish

User 23ba1704ca

30-01-2014 10:49:15

Hello Peter


 


Just a thought, if we end up ugrading the services to the latest version, can you please provide us with steps that will be required to get the structure search working with fingerprints existing in the current data table?


 


Thanks


Ashish

ChemAxon e07e2a364b

30-01-2014 12:01:46

Hi Ashish,


 


   we have regenerate service; you have to send a single POST request to the described URL and the table will be regenerated.


 


Gabor

User 23ba1704ca

31-01-2014 04:47:57

Hello Gabor / Peter


 


I have deployed the war file from JChem Web services version 6.1.6.


 


However, even after deploying this web service, I am getting the following version information:


 


{


    "welcomeMessage": "You connected to the JChem REST Web Services",


    "availableServices": [


        "JChem Simple Web Services"


    ],


    "version": "6.0.1",


    "jchemVersion": "6.0.1_b88",


    "javaVersion": "1.7.0_17",


    "osVersion": "Windows 7",


    "servletVersion": "jetty/6.1.25",


    "configDir": "...",


    "availableLicenses": {


        "ECFP/FCFP": {


            "state": "valid",


            "expirationDate": "2013-09-25"


        },


        "Structural Frameworks Plugin": {


            "state": "valid",


            "expirationDate": "2013-09-25"


        },


        "JChem Cartridge": {


            "state": "valid",


            "expirationDate": "2013-09-25"


        },


        "3D Screen": {


            "state": "valid",


            "expirationDate": "2013-09-25"


        },


        "Marvin Applets": {


            "state": "valid",


            "expirationDate": "2013-09-25"


        }


    }


}

User 23ba1704ca

03-02-2014 09:18:28

Hello Peter / Gabor


 


I am still stuck with this problem.


I do not want to start off with a clean install to address this problem.


 


Thanks


Ashish

User 23ba1704ca

04-02-2014 11:18:32

Hello Peter / Gabor


 


I again did a fresh install of the web service with the latest version 6.1.6 and I am still getting the same problem.


 


Any ideas?


 


Thanks


Ashish

ChemAxon e07e2a364b

17-03-2014 09:06:27

Hi Ashish, please verify that this problem is resolved, if not we will investigate it further.

31-03-2014 00:58:42

HI,


 


Did you see the chemaxon.log file? It is in there

ChemAxon 13811e1703

09-04-2014 10:19:29

Hi,

We have seen the log file, but unfortunatelly it is not helping us to determine the cause.

Is this problem still unresolved?

Peter 

User 23ba1704ca

10-04-2014 05:36:00

Hello All


 


The problem has been resolved. Please do not work on this problem further.


 


Thanks


Ashish