• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
author & internet detective
Posts: 40211
816
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Clemens,
This sounds more like a JBoss/classpath issue, so I'm moving it to our JBoss forum.
 
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic