This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 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: 1121
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: 32635
    
215

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


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Mike London
Ranch Hand

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

Joined: Jul 12, 2002
Posts: 1121
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
 
It's not a secret anymore!