Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet code stopped working on upgrade

 
Mike London
Ranch Hand
Posts: 1185
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike,
It looks like you might have a different version of JDOM somewhere in your classpath.
 
Mike London
Ranch Hand
Posts: 1185
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very possible. I'll check this out. THanks.
 
Mike London
Ranch Hand
Posts: 1185
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic