1 Reply Latest reply on Aug 21, 2014 5:44 PM by evdillon

    RHQ Agent is unable to download plugins after registering when SSL Communications is enabled

    evdillon

      Hi,

       

      I'm trying to get SSL communications to work with RHQ 4.12.0.  I first made sure the installation works (server and agent) with unencrypted/unsecured communications.  Then I configured the installation the same as a working encrypted/secured 4.11.0 installation.  When I try to start a new agent it registers and then tries to download plugins.  The agent fails to download any plugins.  The following entries appear in the various log files.

       

      server.log:

       

      15:46:15,900 ERROR [org.rhq.enterprise.server.remote.RemoteSafeInvocationHandler] (http-/0.0.0.0:7443-15) Failed to invoke remote request: java.lang.IllegalArgumentException: InvocationRequest did not supply method.
        at org.rhq.enterprise.server.remote.RemoteSafeInvocationHandler.invoke(RemoteSafeInvocationHandler.java:93) [rhq-server.jar:4.12.0]
        at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967) [jboss-remoting-2.5.4.SP5.jar:]
        at org.jboss.remoting.transport.servlet.ServletServerInvoker.processRequest(ServletServerInvoker.java:416) [jboss-remoting-2.5.4.SP5.jar:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_25]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75) [rt.jar:1.7.0_25]
        at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source) [:1.7.0_25]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) [rt.jar:1.7.0_25]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [rt.jar:1.7.0_25]
        at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:1453)
        at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:731)
        at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:292) [rt.jar:1.7.0_25]
        at com.sun.proxy.$Proxy149.processRequest(Unknown Source)
          ...
      

       

      agent.log:

       

      2014-08-07 14:58:37,278 ERROR [main] (enterprise.communications.command.client.ClientCommandSenderTask)- {ClientCommandSenderTask.send-failed}Failed to send command [Command: type=[remotestream]; cmd-in-response=[true]; config=[{rhq.agent-name=Beast, rhq.externalizable-strategy=AGENT, rhq.security-token=cIxKsf7LmkYQ77f/x+Sbo7lEh8nDYiOqzyqG8/CabMbLhAl3AnleJcGBolrE9rHOZG8=}]; params=[{streamId=1, invocation=NameBasedInvocation[close]}]]. Cause: org.rhq.core.util.exception.WrappedRemotingException:InvocationRequest did not supply method.. Cause: java.lang.IllegalArgumentException: [Warning] InvocationRequest did not supply method.
      2014-08-07 14:58:37,279 WARN  [main] (rhq.core.util.stream.StreamUtil)- Streams could not be closed
      org.rhq.enterprise.communications.command.client.RemoteIOException
        at org.rhq.enterprise.communications.command.client.RemoteInputStream.sendRequest(RemoteInputStream.java:283)
        at org.rhq.enterprise.communications.command.client.RemoteInputStream.close(RemoteInputStream.java:186)
        at java.io.BufferedInputStream.close(BufferedInputStream.java:472)
        at org.rhq.core.util.stream.StreamUtil.copy(StreamUtil.java:275)
        at org.rhq.core.util.stream.StreamUtil.copy(StreamUtil.java:212)
        at org.rhq.enterprise.agent.PluginUpdate.getPluginArchive(PluginUpdate.java:343)
        at org.rhq.enterprise.agent.PluginUpdate.downloadPluginWithRetries(PluginUpdate.java:282)
        at org.rhq.enterprise.agent.PluginUpdate.updatePlugins(PluginUpdate.java:219)
        at org.rhq.enterprise.agent.AgentMain.startPluginContainer(AgentMain.java:1934)
        at org.rhq.enterprise.agent.AgentMain.start(AgentMain.java:719)
        at org.rhq.enterprise.agent.AgentMain.main(AgentMain.java:438)
      Caused by: java.lang.IllegalArgumentException: [Warning] InvocationRequest did not supply method.
        at org.rhq.enterprise.server.remote.RemoteSafeInvocationHandler.invoke(RemoteSafeInvocationHandler.java:125)
          ....
      

       

      command-trace.log

       

      2014-08-07 14:58:37,063 TRACE {send.initiate}==>CoreServerService.getPluginArchive|?
      2014-08-07 14:58:37,088 TRACE {send.complete}=>>CoreServerService.getPluginArchive|?|success
      2014-08-07 14:58:37,089 TRACE {send.initiate}==>InputStream.read.1|?
      2014-08-07 14:58:37,186 TRACE {send.complete}=>>InputStream.read.1|?|org.rhq.core.util.exception.WrappedRemotingException:InvocationRequest did not supply method.
      2014-08-07 14:58:37,187 TRACE {send.initiate}==>InputStream.close.1|?
      2014-08-07 14:58:37,278 TRACE {send.complete}=>>InputStream.close.1|?|org.rhq.core.util.exception.WrappedRemotingException:InvocationRequest did not supply method.
      ...
      

       

      Configuration information

        Machine setup (RHQ server and agent)

         Windows 7 x64 Ultimate, Service Pack 1

         jdk1.7.0_25 x64 w. Unlimited Strength Java(TM) Cryptography Extension Policy Files

        Machine 2 setup (RHQ agent)

         Windows 8.1 Pro

         jdk1.7.0_25 x64 w. Unlimited Strength Java(TM) Cryptography Extension Policy Files

       

        RHQ setup

         PostgreSQL 9.2.4 x64 - running as a service

         RHQ 4.12.0 binary install

       

      Any help would be much appreciated.

       

      Thanks,

       

      Van