This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 1043
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: 30136
    
150

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: 1043
Very possible. I'll check this out. THanks.
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
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
Post to Servlet from Applet doesn't work
How to build xml document from Database
java.lang.VerifyError in call to parse method of DOMParser
JDOM Upgrade problem?
How to create file on webserver