Two Laptop Bag
The moose likes JDBC and the fly likes Why do i get java.lang.VerifyError when loading a jdbc driver Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Why do i get java.lang.VerifyError when loading a jdbc driver" Watch "Why do i get java.lang.VerifyError when loading a jdbc driver" New topic
Author

Why do i get java.lang.VerifyError when loading a jdbc driver

Clemens Tolboom
Greenhorn

Joined: Feb 15, 2005
Posts: 12
Using JBoss the following error occurs.

17:44:44,203 ERROR [Engine] StandardContext[/sensor]CewolfServlet: (class: nl/tolboom/sensor/model/DBConnector, method: <init> signature: ()V) Unable to pop operand off an empty stack java.lang.VerifyError: (class: nl/tolboom/sensor/model/DBConnector, method: <init> signature: ()V) Unable to pop operand off an empty stack



This happens when a ServletContextListener calls this class.

Putting the Class.forName in a static {} block works but then it is not configurable through the web.xml config file.

Any suggestions are welcome,

tanx.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26192
    
  66

Clemens,
This sounds more like a JBoss/classpath issue, so I'm moving it to our JBoss forum.


[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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Why do i get java.lang.VerifyError when loading a jdbc driver
 
Similar Threads
Variable Arguments in Java 5
Why do i get java.lang.VerifyError when loading a jdbc driver
xerces SAX2 parser giving error
IBM WSAD error - Unable to pop operand off an empty stack
IBM WSAD "Failed to load servlet: java.lang.VerifyError"