aspose file tools*
The moose likes Beginning Java and the fly likes Exception occurred during event dispatching:  java.lang.UnsupportedClassVersionError: com/microsoft/ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exception occurred during event dispatching:  java.lang.UnsupportedClassVersionError: com/microsoft/" Watch "Exception occurred during event dispatching:  java.lang.UnsupportedClassVersionError: com/microsoft/" New topic
Author

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

Andy Richman
Greenhorn

Joined: Aug 28, 2012
Posts: 2

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
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18657
    
    8

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
Bartender

Joined: Oct 14, 2005
Posts: 18657
    
    8

And... welcome to the Ranch!
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Andy Richman
Greenhorn

Joined: Aug 28, 2012
Posts: 2
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
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39409
    
  28
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception occurred during event dispatching: java.lang.UnsupportedClassVersionError: com/microsoft/