This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet code stopped working on upgrade Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet code stopped working on upgrade" Watch "Servlet code stopped working on upgrade" New topic
Author

Servlet code stopped working on upgrade

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1034
In a Servlet, I call a "CreateXML" class to create an XML file.

I recently updated my JDOM to use the new JDOM 1.0 (was b7).

Now, when I call my "CreateXML" class, I'm getting a java.lang.VerifyError.

The error below, based on my code, makes no sense to me. The signatures have not changed, but clearly, somebody is not happy!

Has anyone seen anything like this? What could this mean?

Thanks in advance!!

-- Mike

java.lang.VerifyError: (class: traditionalpilates/CreateXML, method: addElements signature: ()V) Incompatible argument to function
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

Mike,
It looks like you might have a different version of JDOM somewhere in your classpath.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1034
Very possible. I'll check this out. THanks.
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1034
YES!!!

I had so many JDOM* type files in my Tomcat Common Lib folder, that somehow the wrong JAR file was being loaded.

I just deleted the known-old ones and now it works again!!!

Thank you very much!!!

-- Mike
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet code stopped working on upgrade
 
Similar Threads
java.lang.VerifyError in call to parse method of DOMParser
How to create file on webserver
JDOM Upgrade problem?
How to build xml document from Database
Post to Servlet from Applet doesn't work