Jump to content

Recommended Posts

Posted

 

Server is community edition, 6.0.1.  Studio is community edition, OSX, 6.0.1-final

When trying to create a new server connection to the Jasper Reports server I have to select "Use SOAP protocol only".  If not I get the following error on "Test Connection":

 

java.lang.UnsupportedClassVersionError: com/jaspersoft/studio/server/protocol/restv2/JSSApacheConnectorFactory

at com.jaspersoft.studio.server.protocol.restv2.RestV2ConnectionJersey.connect(RestV2ConnectionJersey.java:134)
at com.jaspersoft.studio.server.protocol.ProxyConnection.connect(ProxyConnection.java:86)
at com.jaspersoft.studio.server.WSClientHelper.checkConnection(WSClientHelper.java:82)
at com.jaspersoft.studio.server.wizard.ServerProfileWizard.connect(ServerProfileWizard.java:99)
at com.jaspersoft.studio.server.wizard.ServerProfileWizard.access$1(ServerProfileWizard.java:95)
at com.jaspersoft.studio.server.wizard.ServerProfileWizard$2.run(ServerProfileWizard.java:76)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
 
When I test REST using this URL it seems to come back OK:   <hostname>:8080/jasperserver/rest_v2/resources?type=reportUnit
 
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Hi,
the error you are receiving it is a bug caused by some Jersey libraries compiled only for Java 7.
This has been fixed in the next upcoming 6.0.2 version. You can test it already in the available beta build from here: https://sourceforge.net/projects/jasperstudio/files/beta-release/

Plus unfortunately in Mac OS X, Eclipse/JSS was not receiving correctly the -vm flag that specifies to use the bundled JRE.

You can proceed in one of the following ways:

1) Download and test the beta build, a stable version will be available soon

2) Fix the -vm flag argument in Jaspersoft Studio.ini file to something like this: ../../../features/jre.macosx.cocoa.x86_64.feature_1.7.0.u67/jre/Contents/Home/lib/jli/libjli.dylib 
You need to right click on the Jaspersoft Studio.app, "Show package contents" and navigate to Content/MacOS.
In this way JSS will be forced to use the internal bundled JRE 1.7.0.u67 preventing the error from appearing.

3) I expect that also installing a JDK 1.7 will solve the issue. Not tested yet. I suppose that in your system you are currently relying on the Mac OS X Java (that is a 1.6). You should be able to verify the available Java version giving "java -version" in your terminal.

Regards,
Massimo.

  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...