• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.VerifyError  RSS feed

 
RoshaniG Gopal
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am getting this exception. I dont know how to get rid of it.I tried to recomplie as suggested by some forums but no help ..
Please help. Can anyone also tell me the reason for the error???
------------------
java.lang.VerifyError: (class: /xml/xmlreader/XMLProcessor, method: getXMLDocument signature: (Ljava/lang/String Lorg/w3c/dom/Document Incompatible object argument for function call

at util.servicelocator.ServicesLoaderXML.loadAllServices(ServicesLoaderXML.java:57)

at util.servicelocator.ServiceLocator.loadAllServices(ServiceLocator.java:116)

at util.servicelocator.ServiceLocator.<init>(ServiceLocator.java:57)

at util.servicelocator.ServiceLocator.getInstance(ServiceLocator.java:74)

at ldap.LdapBeanFactory.getLdapBean(LdapBeanFactory.java:90)

at fw.util.LdapUtil.ldapSearch(LdapUtil.java:163)

at fw.util.LdapUtil.ldapSearchPerson(LdapUtil.java:52)

at fw.util.LdapUtil.ldapSearchPerson(LdapUtil.java:38)

at fw.util.PortalUtil.getPortalIdForApp(PortalUtil.java:658)

at fw.ejb.TestBean.checkPortalBeans(TestBean.java:349)

at fw.ejb.TestBean.checkState(TestBean.java:233)

at fw.ejb.TestBean.checkState(TestBean.java:277)

at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:88)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

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

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

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

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)

at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

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


The method is :
public Document getXMLDocument(String xmlfile) throws java.io.IOException,
java.io.FileNotFoundException,
org.xml.sax.SAXException {
File file = new File(xmlfile);
FileInputStream fis = new FileInputStream(file);
InputSource inputsource = new InputSource(fis);
parser.parse(inputsource);
fis.close();
return parser.getDocument();
}
[ May 09, 2007: Message edited by: RoshaniG Gopal ]
 
Alan Smithee
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I really don't like about some environments is they can tell you a compile went just fine when in fact it did not.

What can be happening is that your class files are still the old ones that were giving you the problem. So you may have recompiled, but are still using the older versions. This can be a real problem when there is NOT an error and you are trying to identify an issue with your code.

So -- assuming your issue will be corrected with a recompile -- I would suggest getting in there and deleting the class files. The JVM can't use a class that does not exist.
 
Paul Clapham
Sheriff
Posts: 22832
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like a classloader issue to me. Perhaps you have org.w3c.dom.Document in your web application's classpath. It will also be in the application server's classpath, so potentially there can be two versions of the same class floating around, one version from each of the two classloaders. Those two versions are different classes even though they have the same name, and if some code is expecting one version because of what classloader loaded it, it won't work with the other version.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!