Forum Discussion

cbyndr's avatar
cbyndr
Contributor
16 years ago

UnsupportedClassVersionError using Excel for Datasource with 3.5 Beta

I get hit with it when getting rows from an Excel spreadsheet using 3.5, but not 3.0.1.

Attached a screen screen shot from version 3.0.1, with rows loaded sucessfully.

Here is the stack trace from 3.5:

10:34:46,466 INFO  [DefaultSoapUICore] Adding actions from [/Users/DSB/soapui-pro-3.5-beta2/bin/actions/demo-actions.xml]
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelDataSource.load(SourceFile:108)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.next(SourceFile:498)
at com.eviware.soapui.impl.wsdl.panels.teststeps.DataSourceDesktopPanel$TestAction.actionPerformed(SourceFile:366)
at com.eviware.soapui.impl.wsdl.panels.teststeps.DataSourceDesktopPanel$TestAction.actionPerformed(SourceFile:320)
at com.eviware.soapui.impl.wsdl.actions.iface.AbstractSwingAction.actionPerformed(AbstractSwingAction.java:73)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5602)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
at java.awt.Component.processEvent(Component.java:5367)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1801)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
exiting..

7 Replies

  • java version "1.5.0_22"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03-333-9M3125)
    Java HotSpot(TM) Client VM (build 1.5.0_22-147, mixed mode, sharing)

    For Mac OS X.
  • Hi!

    soapUI Pro 3.5 requires a 1.6 JRE. Can you try upgrading the one on your mac?

    regards!

    /Ole
    eviware.com
  • Sure, I can switch to JRE 1.6.0_17, which alleviates the UnsupportedClassVersionError.

    But, i get hit with this on startup:

    java.lang.Error: You cannot initialize Xpcom in this palatform. Supported only: Intel 32 bit mode (x86 arch),Sun(1.5 - 1.6) or Apple(1.5) Java
    at com.teamdev.xpcom.Xpcom.initialize(SourceFile:103)
    at com.teamdev.xpcom.Xpcom.initialize(SourceFile:85)
    at com.eviware.soapui.support.components.BrowserComponent.initialize(BrowserComponent.java:421)
    at com.eviware.soapui.SoapUIPro.main(SourceFile:222)

    Will this create other problems?

    Thank you!
  • Hi!

    hmm... tricky.. you can disable the jxbrowser component by adding a -Dsoapui.jxbrowser.disable=true flag to the .vmoptions file used by the executable, this will disable the integrated browser component for viewing HTML pages and the startup page.. but I'll see if we can get a 1.5 compatible version of the excel library also..

    regards!

    /Ole
    eviware.com
  • Great, and barring that, disabling jxbrowser seems like it will work fine for times that we need SOAPUI to use this data source. Thanks for all of your help!