RE: Hang when using java.net.useSystemProxies=true
"Hal Hildebrand" <[email protected]> Wed, 15 Mar 2006 16:55:22 -0800
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <20060315165522989.00000002324@Hellblazer> |
Whoops. You should edit the test/test.sf to provide a host name which exists on your network. Sorry about that. ________________________________ From: Hal Hildebrand [mailto:[email protected]] Attached is a simple test case where I found a hang when using the 1.5 system RMI proxies. The test is trying to shut down an SF daemon. It works when java.net.useSystemProxies=false. When java.net.useSystemProxies=true, the system hangs (stack trace below). Quite odd. To run the test, put the attached jar in the SF class path, and run sfRun/Start /test/test.sf. I can, of course, live without the system proxies. But I was curious as to whether this is a real bug somewhere or if this is a problem on my side. Thanks in advance. "main" prio=6 tid=0x00039fa8 nid=0x1234 runnable [0x0007e000..0x0007fc40] at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:85) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:429) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.<init>(Socket.java:365) at java.net.Socket.<init>(Socket.java:178) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSoc ketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSoc ketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at org.smartfrog.sfcore.processcompound.DefaultRootLocatorImpl.getRootProce ssCompound(DefaultRootLocatorImpl.java:312) at org.smartfrog.sfcore.processcompound.DefaultRootLocatorImpl.getRootProce ssCompound(DefaultRootLocatorImpl.java:272) at org.smartfrog.sfcore.processcompound.SFProcess.sfSelectTargetProcess(SFP rocess.java:554) at org.smartfrog.sfcore.processcompound.SFProcess.sfSelectTargetProcess(SFP rocess.java:531) at org.smartfrog.sfcore.common.ConfigurationAction.selectTargetProcess(Conf igurationAction.java:46) at org.smartfrog.sfcore.common.ConfigurationAction.execute(ConfigurationAct ion.java:72) at org.smartfrog.sfcore.common.ConfigurationDescriptor.execute(Configuratio nDescriptor.java:856) at org.smartfrog.SFSystem.runConfigurationDescriptor(SFSystem.java:283) at test.StopTest.sfStart(StopTest.java:32) at org.smartfrog.sfcore.common.ActionDeploy.Deploy(ActionDeploy.java:139) at org.smartfrog.sfcore.common.ActionDeploy.execute(ActionDeploy.java:210) at org.smartfrog.sfcore.common.ConfigurationAction.execute(ConfigurationAct ion.java:74) at org.smartfrog.sfcore.common.ConfigurationDescriptor.execute(Configuratio nDescriptor.java:856) at org.smartfrog.SFSystem.runConfigurationDescriptor(SFSystem.java:283) at org.smartfrog.test.SmartFrogTestBase.deployApplication(SmartFrogTestBase .java:463) at org.smartfrog.test.SmartFrogTestBase.deployExpectingSuccess(SmartFrogTes tBase.java:415) at oracle.smartfrog.bootstrap.StopDaemonTest.testStopDaemon(StopDaemonTest. java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at com.intellij.rt.execution.junit2.IdeaJUnitAgent.doRun(IdeaJUnitAgent.jav a:58) at junit.textui.TestRunner.start(TestRunner.java:172) at com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(Text TestRunner2.java:23) at com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(JUn itStarter.java:98) at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)