[ 
https://issues.apache.org/jira/browse/DERBY-4852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004228#comment-13004228
 ] 

Kathey Marsden commented on DERBY-4852:
---------------------------------------

If diagnosing this issue, should it occur on a specific machine, the following 
small test case might be helpful:

import java.io.*;

public class MyRemoteJMXProg {

    public static void main(String[] args) throws Exception {
        System.out.println("Try connecting to me with jconsole remote localhost:
1528");
        System.out.println("Press enter to end");
        new InputStreamReader(System.in).read();
    }

}

Start the program with:

java -Dcom.sun.management.jmxremote.port=1528 -Dcom.sun.management.jmxremote.aut
henticate=false -Dcom.sun.management.jmxremote.ssl=false MyRemoteJMXProg

Then try to connect to the process with jconsole. In jconsole, select remote 
process and then localhost:1528

The error message is connection refused.


Then temporarily turn off the firewall and retry and perhaps mess with the 
firewall settings to make sure there is proper access to the port.

I am thinking most of the times this has occurred has been after a JDK upgrade, 
so it also might be useful to run just managment.JMXTest after ugprades to 
determine if that is the issue.


> Lots of failures with Connection Refused, starting with 
> JMXtest.testDerbyRegisteredMBeansSimpleInfo on 10.6.2.3(1022806) codeline 
> while running Junit suite with ibm16 on windows machine
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4852
>                 URL: https://issues.apache.org/jira/browse/DERBY-4852
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.2.3
>            Reporter: Mamta A. Satoor
>            Assignee: Kathey Marsden
>              Labels: derby_triage10_8
>         Attachments: 1022806-suites.All_diff.txt
>
>
> Last night's run of Junit with ibm16 on 10.6.2.3(1022806) codeline had 50 
> failures which all seem to be related to not being able to open a connection 
> to the localhost. The link to that run can be found at 
> http://people.apache.org/~myrnavl/derby_test_results/v10_6/windows/testSummary-1022806.html
> I will also attach the result of the run to this jira.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to