The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Don Stadler (74) [Avatar] Offline
#1
Tjis,

When I attempt to connect to Servicemix with the instructions on page 386,
I get a pop-up window displaying the following exception:

Exception in thread "VMPanel.connect" java.lang.IllegalArgumentException: Expected String[2], got null
at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuthenticator.java:73)
at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:213)
at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2312)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:277)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:24smilie
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:207)
at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:34smilie
at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:29smilie
at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:280)
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,ViewType=address,Name=/127.0.0.1_51209
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=inquiries.in,clientId=ID_Don-PC-52741-1229742687281-10_1086,consumerId=ID_Don-PC-52741-1229742687281-3_12467_1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=topic_//ActiveMQ.Advisory.TempQueue_topic_//ActiveMQ.Advisory.TempTopic,clientId=ID_Don-PC-52741-1229742687281-10_1086,consumerId=ID_Don-PC-52741-1229742687281-3_12467_-1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=topic_//ActiveMQ.Advisory.TempQueue_topic_//ActiveMQ.Advisory.TempTopic,clientId=ID_Don-PC-52741-1229742687281-10_1085,consumerId=ID_Don-PC-52741-1229742687281-3_12466_-1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=inquiries.in,clientId=ID_Don-PC-52741-1229742687281-10_1088,consumerId=ID_Don-PC-52741-1229742687281-3_12469_1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,Connection=ID_Don-PC-52741-1229742687281-10_1088
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=topic_//ActiveMQ.Advisory.TempQueue_topic_//ActiveMQ.Advisory.TempTopic,clientId=ID_Don-PC-52741-1229742687281-10_1087,consumerId=ID_Don-PC-52741-1229742687281-3_12468_-1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=inquiries.in,clientId=ID_Don-PC-52741-1229742687281-10_1085,consumerId=ID_Don-PC-52741-1229742687281-3_12466_1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,ViewType=address,Name=/127.0.0.1_51213
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,ViewType=address,Name=/127.0.0.1_51208
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,Connection=ID_Don-PC-52741-1229742687281-10_1087
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=topic_//ActiveMQ.Advisory.TempQueue_topic_//ActiveMQ.Advisory.TempTopic,clientId=ID_Don-PC-52741-1229742687281-10_1088,consumerId=ID_Don-PC-52741-1229742687281-3_12469_-1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Queue,destinationName=reservation.confirmation,clientId=ID_Don-PC-52741-1229742687281-10_1087,consumerId=ID_Don-PC-52741-1229742687281-3_12468_1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,ViewType=address,Name=/127.0.0.1_51207
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,Connection=ID_Don-PC-52741-1229742687281-10_1085
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,Connection=ID_Don-PC-52741-1229742687281-10_1086
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=inquiries.in,clientId=ID_Don-PC-52741-1229742687281-10_1093,consumerId=ID_Don-PC-52741-1229742687281-3_12474_1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,Connection=ID_Don-PC-52741-1229742687281-10_1094
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=topic_//ActiveMQ.Advisory.TempQueue_topic_//ActiveMQ.Advisory.TempTopic,clientId=ID_Don-PC-52741-1229742687281-10_1094,consumerId=ID_Don-PC-52741-1229742687281-3_12475_-1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Queue,destinationName=reservation.confirmation,clientId=ID_Don-PC-52741-1229742687281-10_1094,consumerId=ID_Don-PC-52741-1229742687281-3_12475_1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,ViewType=address,Name=/127.0.0.1_51224
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=tcp_//localhost_61616,Connection=ID_Don-PC-52741-1229742687281-10_1095
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=topic_//ActiveMQ.Advisory.TempQueue_topic_//ActiveMQ.Advisory.TempTopic,clientId=ID_Don-PC-52741-1229742687281-10_1095,consumerId=ID_Don-PC-52741-1229742687281-3_12476_-1_1
Error calling isBroadcaster: org.apache.activemq:BrokerName=localhost,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=inquiries.in,clientId=ID_Don-PC-52741-1229742687281-10_1095,consumerId=ID_Don-PC-52741-1229742687281-3_12476_1_1
Don Stadler (74) [Avatar] Offline
#2
Cannot install MC4J
Oh, and the download from MC4J won't install either. The website is glacially slow, and displays a timeout error for other versions of MC4J. The only version available is a 1.2 beta or a MC4J 2.0 Alpha!!!! Both are very old, btw.

Anyway, I downloaded the beta version (which you seem to use), and run it. The installation goes almost all the way (to installing Uninstall), then hangs for hours, and even cancel hangs for hours. It has to be killed from the program manager.

So I'm pretty well up a JMX creek without a paddle after several hours of troubleshooting this nonsense. JConsloe works with Mule but not with Servicemix, and MC4J presumably would work - if it weren't an abandoned project!