wood burning stoves 2.0*
The moose likes Servlets and the fly likes java.lang.VerifyError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "java.lang.VerifyError" Watch "java.lang.VerifyError" New topic
Author

java.lang.VerifyError

Amit Chandak
Greenhorn

Joined: Sep 28, 2003
Posts: 9
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.VerifyError
 
Similar Threads
Application runs only inside WSAD
jdom and was
JDOM IN WSAD
WSAD 5.1: Failed to load servlet, NoClassDefFoundError
web project dependency