JON remote Java client fails to connect due to "cannot determine if server version is supported" when executed as an executable JAR
Issue
- problem with
RemoteClient -
I get the following error:
Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: java.lang.IllegalStateException: Cannot determine if server version is supported. at org.rhq.enterprise.clientapi.RemoteClient.checkServerSupported(RemoteClient.java:499) at org.rhq.enterprise.clientapi.RemoteClient.doConnect(RemoteClient.java:408) at org.rhq.enterprise.clientapi.RemoteClient.connect(RemoteClient.java:200) at com.redhat.gss.example.jboss.on.Connection.connect(Connection.java:97) at com.redhat.gss.example.jboss.on.remote.client.TestConnection.main(TestConnection.java:22) ... 5 more Caused by: java.lang.NullPointerException at org.apache.maven.artifact.versioning.ComparableVersion.parseVersion(ComparableVersion.java:328) at org.apache.maven.artifact.versioning.ComparableVersion.<init>(ComparableVersion.java:322) at org.rhq.enterprise.clientapi.RemoteClient.checkServerSupported(RemoteClient.java:495) ... 9 more -
Connection fails due to
Cannot determine if server version is supported.Caused by: java.lang.NullPointerException at org.apache.maven.artifact.versioning.ComparableVersion.parseVersion(ComparableVersion.java:328) at org.apache.maven.artifact.versioning.ComparableVersion.<init>(ComparableVersion.java:322) at org.rhq.enterprise.clientapi.RemoteClient.checkServerSupported(RemoteClient.java:495) at org.rhq.enterprise.clientapi.RemoteClient.doConnect(RemoteClient.java:408) at org.rhq.enterprise.clientapi.RemoteClient.connect(RemoteClient.java:200) at com.redhat.gss.example.jboss.on.Connection.connect(Connection.java:97) at com.redhat.gss.example.jboss.on.remote.client.TestConnection.main(TestConnection.java:25) -
Why after export remote client is not working?
Environment
- Red Hat JBoss Operations Network (ON) 3.2
- Red Hat JBoss Developer Studio 6, 7
- Eclipse Java Development Tools 3.9
- Java client project using JBoss ON remote API
- Executable JAR has been created using export as
Runnable JAR fileusing:Extract required libraries into generated JAR- or
Package required libraries into generated JAR
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
