This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and Relational Databases and the fly likes Why do i get java.lang.VerifyError when loading a jdbc driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31549
    
184

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


[OCA 8 book] [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://aspose.com/file-tools
 
subject: Why do i get java.lang.VerifyError when loading a jdbc driver