• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception occurred during event dispatching: java.lang.UnsupportedClassVersionError: com/microsoft/

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have an applications that is trying to access a sql server 2008 database. Upon trying to access the database I am geting this error. I am using the 1.3.20 jre.

I suspect that I am specifying the jdbc incorrectly, but I am relatively new to Java.

Here is the full stack trace:
Exception occurred during event dispatching:
java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.rims.crtk.db.ConnectionManager.<init>(ConnectionManager.java:85)
at com.rims.crtk.db.ConnectionManager.getInstance(ConnectionManager.java:50)
at com.rims.crtk.db.SQLStmtAgent.createSelectStmt(SQLStmtAgent.java:64)
at com.rims.crtk.db.SQLStmtAgent.createSelectStmt(SQLStmtAgent.java:30)
at com.rims.crtk.persistable.ToolkitRepository.initialize(ToolkitRepository.java:261)
at com.rims.crtk.persistable.ToolkitRepository.getInstance(ToolkitRepository.java:82)
at com.rims.crtk.editor.ToolkitChooser.refresh(ToolkitChooser.java:170)
at com.rims.crtk.editor.ToolkitChooser._createDialog(ToolkitChooser.java:158)
at com.rims.crtk.editor.ToolkitChooser.<init>(ToolkitChooser.java:51)
at com.rims.crtk.editor.ClaimRulesFrame._openToolkit(ClaimRulesFrame.java:418)
at com.rims.crtk.editor.ClaimRulesFrame.access$14(ClaimRulesFrame.java:409)
at com.rims.crtk.editor.ClaimRulesFrame$13.actionPerformed(ClaimRulesFrame.java:1528)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Thanks in advance
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Andy Richman wrote:I am using the 1.3.20 jre.





You're using Java 1.3??? A JRE which has been obsolete for something like 10 years now?

java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver (Unsupported major.minor version 50.0)



This says that your JDBC driver was compiled under (I think) Java 1.6, which means that it can't run in a Java 1.3 JRE. You're going to have to track down an antique version of the JDBC driver which does run under 1.3. Or preferably, upgrade your JRE to Java 1.6.
 
Paul Clapham
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And... welcome to the Ranch!
 
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:

java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver (Unsupported major.minor version 50.0)



This says that your JDBC driver was compiled under (I think) Java 1.6


Class version 50.0 indeed means Java 1.6.
 
Andy Richman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the answers. My employer doesn't want me to update the jre compatibility because he doesn't want to have to retest the app. He just wants me to fix few bugs that are bothering our users. That is the reason for the ancient jre.

I inherited this project from another developer who is now gone and he had set things up for me. Apparently he was using 1.6 in his development environment.

With your information in hand, I found some old documentation that gave the jdbc class as They are both right. I found the class that was being used to be: weblogic.jdbc.mssqlserver4.Driver. With that everything build and works.

(Yes I know it's 32 bits and flashes when run on Windows 7, but the users will be happy with the fixes.)

Thank you for your help.

Andy
 
Marshal
Posts: 79153
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What difference does it make which OS you run it on, or whether you use 32 or 64 bits? I don’t think it will run successfully on a 16‑bit machine .
Here is a link to the JDK1.3 documentation.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic