User 2f67f74af0
17-09-2008 22:45:47
Hi every one.
I'm trying to change the flow of the example so I can land on the query.jsp page rather than going through the seltable.jsp.
As I understood from this http://www.chemaxon.com/forum/ftopic1098.html&highlight=jsp+forward+query+jsp post the seltable.jsp do more than table selection. I joined part of seltable.jsp code mainly the part that do the initialization and connection with query.jsp code and rename it to seltable.jsp so I can land on query.jsp directely.
Attached is the modified query.jsp and the here is the error I get.
Any help will be appreciated.
Thanks
Stack trace:
------------
java.lang.NullPointerException
at chemaxon.jchem.db.TableInfo.getTableNameWithSchema(TableInfo.java:737)
at chemaxon.jchem.db.JChemSearch.getDissimilarityMetrics(JChemSearch.java:1123)
at org.apache.jsp.db_005fsearch.seltable_jsp._jspService(seltable_jsp.java:270)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
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 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:619)
I'm trying to change the flow of the example so I can land on the query.jsp page rather than going through the seltable.jsp.
As I understood from this http://www.chemaxon.com/forum/ftopic1098.html&highlight=jsp+forward+query+jsp post the seltable.jsp do more than table selection. I joined part of seltable.jsp code mainly the part that do the initialization and connection with query.jsp code and rename it to seltable.jsp so I can land on query.jsp directely.
Attached is the modified query.jsp and the here is the error I get.
Any help will be appreciated.
Thanks
Stack trace:
------------
java.lang.NullPointerException
at chemaxon.jchem.db.TableInfo.getTableNameWithSchema(TableInfo.java:737)
at chemaxon.jchem.db.JChemSearch.getDissimilarityMetrics(JChemSearch.java:1123)
at org.apache.jsp.db_005fsearch.seltable_jsp._jspService(seltable_jsp.java:270)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
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 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:619)