SVG Issue with Batik

User 3d3f3767a2

08-01-2013 20:46:37

Hi,


I'm using the newest version of JChem web services (5.11.4) and I am suddenly having an issue generating SVG files through the web service. PNG and other formats work, but I get the following message when trying to convert to SVG:


[ERROR] org/apache/batik/dom/GenericDOMImplementation
org.apache.axis2.AxisFault: org/apache/batik/dom/GenericDOMImplementation
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:158)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at chemaxon.jchem.webservice.Headers.doFilter(Headers.java:31)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
... 22 more
Caused by: java.lang.NoClassDefFoundError: org/apache/batik/dom/GenericDOMImplementation
at chemaxon.marvin.io.formats.vectgraphics.SvgExport.createSvgGenerator(SvgExport.java:62)
at chemaxon.marvin.io.formats.vectgraphics.SvgExport.convert(SvgExport.java:103)
at chemaxon.formats.MolExporter.write(MolExporter.java:776)
at chemaxon.formats.MolConverter.write(MolConverter.java:1214)
at chemaxon.formats.MolConverter.convert0(MolConverter.java:1087)
at chemaxon.formats.MolConverter.convert(MolConverter.java:937)
at chemaxon.jchem.interop.InteropMiscellanious.convertBytes(InteropMiscellanious.java:766)
at chemaxon.jchem.interop.InteropMiscellanious.convertBytes(InteropMiscellanious.java:741)
at chemaxon.jchem.interop.InteropMiscellanious.molconvert(InteropMiscellanious.java:613)
at chemaxon.jchem.webservice.MolConvertWS.convertSpecialInput(MolConvertWS.java:83)
at chemaxon.jchem.webservice.MolConvertWS.convert(MolConvertWS.java:45)
... 28 more
Caused by: java.lang.ClassNotFoundException: Class Not found : org.apache.batik.dom.GenericDOMImplementation
at org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:86)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 39 more

This is on Mac OSX 10.8.2.


Thanks,


Craig

ChemAxon 6c76bc6409

09-01-2013 18:56:12

Hi Craig,


Unfortunately this issue is caused by a missing JAR file from the official release.


We can fix this issue with the next release (5.12, due in a few weeks) or I can give you instructions to fix the issue by adding a JAR file to a specific location on the machine where JChem Web Services was installed.


If you are comfortable with doing this - or have a server administrator that can help, please let me know.


Sorry for the inconvenience,
Andras 

User 3d3f3767a2

11-01-2013 06:29:37










astracz wrote:

Hi Craig,


Unfortunately this issue is caused by a missing JAR file from the official release.


We can fix this issue with the next release (5.12, due in a few weeks) or I can give you instructions to fix the issue by adding a JAR file to a specific location on the machine where JChem Web Services was installed.


If you are comfortable with doing this - or have a server administrator that can help, please let me know.


Sorry for the inconvenience,
Andras 



Hi Andras,


No worries, I can wait for the fix. Thanks for you quick reply!


Craig

ChemAxon 6c76bc6409

11-01-2013 13:57:20

Hi Craig,


We are preparing a new minor release with this fix in the installer and a few other minor bugfixes. The upcoming 5.11.5 is planned to be released by Monday.


Cheers,
Andras 

User 3d3f3767a2

11-01-2013 17:12:25










astracz wrote:

Hi Craig,


We are preparing a new minor release with this fix in the installer and a few other minor bugfixes. The upcoming 5.11.5 is planned to be released by Monday.


Cheers,
Andras 



Wow, that's awesome. You guys seriously rock!

ChemAxon 6c76bc6409

14-01-2013 12:09:42

Hi Craig,


5.11.5 is out. You can download it here:


http://www.chemaxon.com/download/jchem-web-services/