aspose file tools*
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
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: 1075
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30924
    
158

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

Joined: Jul 12, 2002
Posts: 1075
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