Bug 958166 - Cannot create JMX connection over standard RMI connector to another JVM
Summary: Cannot create JMX connection over standard RMI connector to another JVM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: JMX
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: DR1
: EAP 6.4.0
Assignee: emartins
QA Contact: Ladislav Thon
URL:
Whiteboard:
Depends On:
Blocks: 951993 962890 1140755
TreeView+ depends on / blocked
 
Reported: 2013-04-30 14:03 UTC by John Sanda
Modified: 2019-08-19 12:42 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1140755 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-794 0 Major Closed javax.naming.NameNotFoundException: rmi://127.0.0.1:1090/jmxrmi thrown when creating MBeanServerConnection 2018-02-15 09:59:30 UTC

Description John Sanda 2013-04-30 14:03:38 UTC
Description of problem:
I have an application running in EAP 6 that is trying to monitor another JVM. The external JVM is running a standard MBean server. This issue was reported as https://issues.jboss.org/browse/AS7-2138. 

I am using the 7.2.0.Alpha1-redhat-4 of EAP 6.1. The issue described in AS7-2138 still exists. I am using the work around which is introducing dependencies on com.sun classes which I cannot use for the long term.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 John Sanda 2013-04-30 18:20:28 UTC
I found the community issue for this - https://issues.jboss.org/browse/WFLY-794

Comment 2 Stuart Douglas 2013-06-04 08:20:42 UTC
Is the workaround using jboss-deployment-structure.xml as specified in the comment below enought for JON's purposes?

https://issues.jboss.org/browse/WFLY-794?focusedCommentId=12778745&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12778745

Comment 3 John Sanda 2013-06-04 14:43:36 UTC
Am I correct in assuming that the work around will not require RHQ to depend on com.sun JRE classes as we currently do? If so then I will test with the changes in jboss-deployment-structure.xml.

Comment 4 John Sanda 2013-06-05 13:41:07 UTC
I am still seeing the exception even with the change in the EAR's jboss-deployment-structure.xml,

javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
	java.net.ConnectException: Connection refused]

We were hitting this issue in two places - one in the EAR and the other in a module that is executed from the command line. I updated the module as well, and interestingly enough, it works.

Stuart can you take a look at our jboss-deployment-structure.xml and see if there is something I am missing or something I did incorrectly? You can view it here - https://gist.github.com/jsanda/5713890.

Comment 9 JBoss JIRA Server 2013-10-01 10:28:46 UTC
Stuart Douglas <stuart.w.douglas> updated the status of jira WFLY-794 to Reopened

Comment 10 JBoss JIRA Server 2013-10-01 10:33:53 UTC
Stuart Douglas <stuart.w.douglas> made a comment on jira WFLY-794

Given that no-one can remember what the original issue is, and this keeps coming up over and over again, I think we should just add this to the sun.jdk module.

Comment 11 JBoss JIRA Server 2013-10-15 16:44:17 UTC
Brian Stansberry <brian.stansberry> made a comment on jira WFLY-794

Rejecting the PR as it seems it was closed unmerged.

Comment 12 Stuart Douglas 2013-10-25 12:34:07 UTC
I am going to nack this. Work is being done on this in Wildfly upstream by Eduardo but it is quite invasive and I do not feel comfortable putting it into EAP 6.2 at this time. Assuming we find no problems with it in Wildfly it should be possible to get this into 6.3.

Comment 13 Stuart Douglas 2013-10-25 13:05:02 UTC
Assigning to Eduardo, as he is doing the work in Wildfly.

Comment 16 John Mazzitelli 2014-02-21 19:24:02 UTC
I believe what this BZ really is showing is https://issues.jboss.org/browse/WFLY-2115

Comment 17 John Mazzitelli 2014-02-21 19:24:57 UTC
(In reply to John Mazzitelli from comment #16)
> I believe what this BZ really is showing is
> https://issues.jboss.org/browse/WFLY-2115

(well, actually, I think WFLY-2115 is in addition to the original problem, that being WFLY-794)

Comment 20 Ladislav Thon 2014-09-25 10:03:56 UTC
Verified with EAP 6.4.0.DR2.


Note You need to log in before you can comment on or make changes to this bug.