0 Replies Latest reply on May 3, 2017 9:25 AM by gruppoeurisspa-aborraccino

    Invoke listApplication does not work

    gruppoeurisspa-aborraccino

      Hi at all,

       

      I'm migrating switchyard application from Wildfly 8.2.1 (with Switchyard 2.0) to Wilfly 10.1 (with Switchyard 2.1) and it does not work the listApplication from switchyard subsystem, either from java code using jmx api or from jconsole.

       

      java code:

       

      Object result = connection.invoke("jboss.as:subsystem=switchyard", "listApplications", null, null);

       

      It returns:

      15:04:32,278 WARN  [org.jboss.remotingjmx.protocol.v2.ServerCommon] (pool-3-thread-2) Unexpected internal error: java.lang.IllegalArgumentException

          at org.jboss.dmr.ModelValue.getChild(ModelValue.java:112)

          at org.jboss.dmr.ModelNode.get(ModelNode.java:856)

          at org.jboss.as.jmx.model.TypeConverters$ComplexTypeConverter.fromModelNode(TypeConverters.java:539)

          at org.jboss.as.jmx.model.TypeConverters$ListTypeConverter.fromModelNode(TypeConverters.java:445)

          at org.jboss.as.jmx.model.TypeConverters.fromModelNode(TypeConverters.java:115)

          at org.jboss.as.jmx.model.ModelControllerMBeanHelper.invoke(ModelControllerMBeanHelper.java:521)

          at org.jboss.as.jmx.model.ModelControllerMBeanHelper.invoke(ModelControllerMBeanHelper.java:462)

          at org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin.invoke(ModelControllerMBeanServerPlugin.java:179)

          at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:724)

          at org.jboss.as.jmx.BlockingNotificationMBeanServer.invoke(BlockingNotificationMBeanServer.java:168)

          at org.jboss.remotingjmx.protocol.v2.ServerProxy$InvokeHandler.handle(ServerProxy.java:950)

          at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153)

          at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:75)

          at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:70)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.auth.Subject.doAs(Subject.java:422)

          at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:149)

          at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:70)

          at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

          at java.lang.Thread.run(Thread.java:745)