Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

java.lang.VerifyError in call to parse method of DOMParser

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to parse a simple XML file but getting the following error at runtime.

Incompatible object argument for method call]: java.lang.VerifyError: (class: method: performDemo signature: ()V) Incompatible object argument for method call

I am working on WSAD 5.1.1 and have added the xerces.jar to the
/WEB-INF/lib directory.

It seems that the error is thrown at the time of byte-code verification due to the call to parse method of DOMParser class.
I have tried using both versions of parse method {parser(String) & parse()InputSource)} but still the problem persists.

If anyone has faced a similar problem or could throw some light on this issue, it would be of great help.
Thanking in advance,
Praveen.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same mistake as you. Do you have find an issue ?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had the same problem with Weblogic 6.1. What is odd is that it happens if my classes are built with certain versions of JDK. To solove it, download the latest version of xerces and put it in your application server's system classpath before it puts its own system files (such as weblogic.jar) That should do it.

Regards,
Andrew
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm havin a silimlar problem, i' using WSAD 5.1.2 and have jdom.jar in the classpath. I tried doing the PARENT_FIRST, PARENT_LAST in application tab of Test Server. E SRVE0026E: [Servlet Error]-[(class: com/, method: convert signature: (;)Lorg/jdom/Document;) Incompatible argument to method]: java.lang.VerifyError: (class: , method: convert signature: ( Incompatible argument to method

Can somebody reply to this problem
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use the specific version of xerces included with JDOM. You add jdom.jar and xerces.jar in the classpath of the project and make sure that in the compilation order xerces.jar is higher than the JRE System Library and WebSphere v5 library.

Make sure you do the same thing for your client project as well.

Then, open the configuration file of your internal server and add jdom.jar and xerces.jar in the classpath.


Then in the Applications tab, choose your projects and from the classloader mode, choose: Parent_Last.

Save the configuration and restart the server. It should work now�
 
S Sand
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Yonnis,
this really helped, but enterprise std's do not want any jar's to be placed in Process Defn/JVM. So after a lot of changes, i figured tat it was not checked in MANIFEST.MF. But now it;s working.

But i still have a Q for you- What is the concept of PARENT_FIRST and PARENT_LAST
 
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by JavaByChoice:

But i still have a Q for you- What is the concept of PARENT_FIRST and PARENT_LAST



Take a look at that thread. It could help about Parent_FIRST, PARENT_LAST
[ February 10, 2005: Message edited by: Jean-Louis Marechaux ]
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic