• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.VerifyError

 
Amit Chandak
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Xerces XML parsers in my project. When I try to invoke a code from the Servlet which Parses an XML document, I get the following the following error:
/03 15:02:08:965 EDT] 367ea673 WebGroup X Servlet Error-[CDMServlet]: Failed to load servlet: java.lang.VerifyError: (class: com/hsbc/cdm/users/User, method: loadDefaultPermissions signature: (Ljava/lang/String V) Incompatible object argument for method call
at com.hsbc.cdm.webapp.CDMServlet.getUserCtx(CDMServlet.java:744)
at com.hsbc.cdm.webapp.CDMServlet.<init>(CDMServlet.java:26)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:262)
at java.beans.Beans.instantiate(Beans.java:233)
at java.beans.Beans.instantiate(Beans.java:77)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:147)
at com.ibm.servlet.engine.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:286)
at com.ibm.servlet.engine.webapp.WebApp.getServletReference(WebApp.java:384)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:167)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.<init>(WebAppRequestDispatcherInfo.java:51)
at com.ibm.servlet.engine.webapp.WebApp.getRequestDispatcher(WebApp.java:1310)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:213)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)
This is the code:
DOMParser myParser = new DOMParser();
myParser.parse(permission_file_path);
Document doc= myParser.getDocument();
.....
I think it blows up on the 3rd line when it tries to create an instance of Document.
Any idea as to whats going on...
Amit
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic