Red Hat Fuse 7.8 on Karaf can be accessed with client script.
Issue
- The following error while executing the FUSE_HOME/bin/client script to connect to Red Hat Fuse 7.8 on Karaf.
slf4j-api-1.7.22.redhat-2.jar org.apache.karaf.client.Main
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 9003; nested exception is:
java.net.BindException: Address already in use (Bind failed)
sun.management.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 9003; nested exception is:
java.net.BindException: Address already in use (Bind failed)
at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:480)
at sun.management.Agent.startAgent(Agent.java:262)
at sun.management.Agent.startAgent(Agent.java:452)
Caused by: java.rmi.server.ExportException: Port already in use: 9003; nested exception is:
java.net.BindException: Address already in use (Bind failed)
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:346)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:254)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:412)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:237)
at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:213)
at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:173)
at sun.management.jmxremote.SingleEntryRegistry.<init>(SingleEntryRegistry.java:49)
at sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(ConnectorBootstrap.java:816)
at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:468)
... 2 more
- However when we remove below jmx configuration in setenv file , it is working.
export EXTRA_JAVA_OPTS="-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=9003 -Dcom.sun.management.jmxremote.password.file=/some/path/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/some/path/jmxremote.access -Dcom.sun.management.jmxremote.ssl=false"
- Note - Same configuration is working fine with FUSE 7.7.
Environment
- Red Hat Fuse
- 7.8 on Karaf
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.