Problem with generate_image.jsp

User 0224fcf261

28-02-2007 14:49:15

Hi,





I seem to be having a weird problem with generate_image.jsp that one of the guys set up. Using the following url:





http://myserver/marvin/generate_image2.jsp?mol=Clc1ccc2cc(Cl)ccc2c1&format=png%3Aw170%2Ch110%2Cb32%2C%23ffffff





No image is returned, if i put some debug statements in it appears that an error is thrown when the following is called:





mol = MolImporter.importMol(molstring);





And the error is at chemaxon.marvin.util.MolLoader.splitFormatAndOptions





This seems very odd as i wouldn't imagine splitFormatAndOptions to be called during importMol, and not called until mol.toBinFormat(format) in generate_image.jsp





Have you come across this before ?? I believe it's using Marvin Beans 4.1.2





Cheers


Alistair

User 0224fcf261

01-03-2007 16:27:30

I still haven't figures this one out, i suspect i've got some version problem maybe, i've tried some older versions of Marvin (3.1.1) but still no joy. The full stack trace is:





java.lang.NoSuchMethodError: chemaxon.marvin.util.MolLoader.splitFormatAndOptions(Ljava/lang/String;)[Ljava/lang/String;


at chemaxon.formats.MolImporter.init(Unknown Source)


at chemaxon.formats.MolImporter.<init>(Unknown Source)


at chemaxon.formats.MolImporter.importMol(Unknown Source)


at chemaxon.formats.MolImporter.importMol(Unknown Source)


at _generate__image2._jspService(_generate__image2.java:96)


at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)


at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:701)


at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:405)


at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)


at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)


at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)


at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)


at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)


at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)


at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)


at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)


at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)


at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)


at java.lang.Thread.run(Thread.java:595)

ChemAxon 7c2d26e5cf

01-03-2007 16:58:54

It may be a CLASSPATH problem in your server.


There is not any MolLoader.splitFormatAndOptions() method in current Marvin.


In ancient Marvin versions (till Marvin 4.0.5), it existed. But this method has been moved into an other class.


Please check if there are more MarvinBeans.jar or jchem.jar in the CLASSPATH of your Tomcat. If yes, please remove the old versions. Since jchem.jar includes also the Marvin Beans API, CLASSPATH can not include both of them (to avoid mixing different versions).

User 7b15d0a49a

09-03-2007 09:58:29

Thanks for the info


I fixed this last week, and the problem was that there was a jar in the classpath but also a jar included within the application. So I removed the jar from the classpath and specified during deployment to the server that the application should use local resources first. That removed the problem.