Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26604

Cannot connect to JMX server connection with EAP 7.1 remote local system on Java 8

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 4.11.0.Final
    • Fix Version/s: 4.12.0.AM1
    • Component/s: jmx, server
    • Labels:
      None
    • Sprint:
      devex #165 April 2019
    • Story Points:
      8
    • Steps to Reproduce:
      Hide

      1. Install devstudio 12.11.0.GA
      2. Follow https://tools.jboss.org/documentation/howto/configure_remote_server.html
      3. Use JBoss EAP 7.1

      Show
      1. Install devstudio 12.11.0.GA 2. Follow https://tools.jboss.org/documentation/howto/configure_remote_server.html 3. Use JBoss EAP 7.1
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Workaround 1:
      Check system java. It should be set to Java 8 if you want to run remote local server with java 8 env.

      Workaround2:
      One can use one of:
      WildFly 14 with java 8 runtime
      WildFly 16 with Java 11
      JBoss EAP 7.2 with Java 11 runtime

      Show
      Workaround 1: Check system java. It should be set to Java 8 if you want to run remote local server with java 8 env. Workaround2: One can use one of: WildFly 14 with java 8 runtime WildFly 16 with Java 11 JBoss EAP 7.2 with Java 11 runtime

      Description

      Problem is with default system java. This happens when system java or java on path is in version 11 and differs with the java we want the server to start with (Java 8).

      eclipse.buildId=12.11.0.GA-v20190329-0120-B4247
      java.version=1.8.0_201
      java.vendor=Oracle Corporation
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments:  -product com.jboss.devstudio.core.product
      Command-line arguments:  -data file:/home/odockal/workspace-12110GA-Respin-Java8-JMX/ -os linux -ws gtk -arch x86_64 -product com.jboss.devstudio.core.product
      
      org.jboss.ide.eclipse.as.core
      Error
      Fri Mar 29 16:42:53 CET 2019
      Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
      
      org.jboss.tools.jmx.core.JMXException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
      	at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:228)
      	at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:161)
      	at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:136)
      	at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:131)
      	at org.jboss.tools.jmx.core.tree.NodeUtils.createObjectNameTree(NodeUtils.java:54)
      	at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.loadRoot(JBossServerConnection.java:113)
      	at org.jboss.tools.jmx.ui.internal.views.navigator.MBeanExplorerContentProvider$1.run(MBeanExplorerContentProvider.java:211)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      Caused by: java.io.EOFException: Read past end of file
      	at org.jboss.marshalling.SimpleDataInput.eofOnRead(SimpleDataInput.java:151)
      	at org.jboss.marshalling.SimpleDataInput.readUnsignedByteDirect(SimpleDataInput.java:294)
      	at org.jboss.marshalling.SimpleDataInput.readUnsignedByte(SimpleDataInput.java:249)
      	at org.jboss.marshalling.river.RiverUnmarshaller.start(RiverUnmarshaller.java:1346)
      	at org.jboss.remotingjmx.protocol.v2.Common.prepareForUnMarshalling(Common.java:140)
      	at org.jboss.remotingjmx.protocol.v2.Common.prepareForUnMarshalling(Common.java:110)
      	at org.jboss.remotingjmx.protocol.v2.ClientCommon$BaseResponseHandler.handle(ClientCommon.java:184)
      	at org.jboss.remotingjmx.protocol.v2.ClientCommon$MessageReceiver$1.run(ClientCommon.java:123)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      

      console log:

      16:42:53,240 WARN  [org.jboss.remotingjmx.protocol.v2.ServerCommon] (pool-2-thread-1) Unexpected internal error: java.lang.ExceptionInInitializerError
              at org.jboss.marshalling.river//org.jboss.marshalling.river.ClassDescriptors.<clinit>(ClassDescriptors.java:99)
              at org.jboss.marshalling.river//org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:1241)
              at org.jboss.marshalling.river//org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:1040)
              at org.jboss.marshalling.river//org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1354)
              at org.jboss.marshalling.river//org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:275)
              at org.jboss.marshalling.river//org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:208)
              at org.jboss.marshalling//org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:76)
              at org.jboss.remoting-jmx//org.jboss.remotingjmx.protocol.v2.ServerProxy$QueryNamesHandler.handle(ServerProxy.java:1102)
              at org.jboss.remoting-jmx//org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153)
              at org.jboss.as.jmx//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:71)
              at org.jboss.as.jmx//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:66)
              at org.wildfly.security.elytron-private//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:287)
              at org.wildfly.security.elytron-private//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:244)
              at org.jboss.as.controller//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
              at org.jboss.as.controller//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
              at org.jboss.as.jmx//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:66)
              at org.jboss.remoting-jmx//org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: java.lang.IllegalStateException: No standard field found for reverse order comparator!
              at org.jboss.marshalling.river//org.jboss.marshalling.river.Protocol.<clinit>(Protocol.java:287)
              ... 20 more
      
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jeffmaury Jeff MAURY
                Reporter:
                odockal Ondrej Dockal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: