dev@glassfish.java.net

Re: quicklook tests failing because of connection refused errors

From: Carla Mott <Carla.Mott_at_Sun.COM>
Date: Mon, 08 Sep 2008 14:27:46 -0700

Hmm, I didn't see an error in the log. I do see the following lines but
seems to me that it deployed fine. Is there a way to deploy just this
one test?


 From server.log:

[#|2008-09-08T14:18:22.119-0700|INFO|GlassFish10.0|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=15;_ThreadName=Thread-4;/hellojsf;|Initializing
Mojarra (1.2_09-b02-FCS) for context '/hellojsf'|#]

[#|2008-09-08T14:18:23.422-0700|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=15;_ThreadName=Thread-4;|Loading
application hellojsf at /hellojsf|#]

[#|2008-09-08T14:18:23.444-0700|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=15;_ThreadName=Thread-4;|Deployment
of hellojsf done is 3474 ms|#]

[#|2008-09-08T14:18:24.433-0700|INFO|GlassFish10.0|org.apache.catalina.loader.WebappLoader|_ThreadID=15;_ThreadName=Thread-4;|Unknown
loader org.glassfish.internal.api.DelegatingClassLoader_at_b3223f class
org.glassfish.internal.api.DelegatingClassLoader|#]

[#|2008-09-08T14:18:24.469-0700|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=15;_ThreadName=Thread-4;|Loading
application hellojsp at /hellojsp|#]

[#|2008-09-08T14:18:24.471-0700|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=15;_ThreadName=Thread-4;|Deployment
of hellojsp done is 122 ms|#]


Jerome Dochez wrote:
> most likely the deployment of that application did not go through. do
> you see an exception in the server log ?
>
> Ming, could you modify the QL so it stops when deployment of one of the
> tests fail. there is really no point in continuing the test run in such
> a case.
>
> jerome
>
> Carla Mott wrote:
>>
>> Under what conditions would I get a Connection refused error below?
>> It seems it is random. The web_jspservlet_war tests were failing some
>> times all and sometimes 2. When I updated my quicklook workspace I
>> see that the classloader_jsf test is failing with the same exception
>> and all the web_jspservlet_war tests are now passing. There were no
>> changes to the web_jspservlet_war tests with the update.
>>
>> Nothing in the server.log files indicates that there is a problem.
>>
>> Anyone have any ideas what is going on?
>>
>> Thanks,
>> Carla
>>
>>
>> java.lang.Exception: java.net.ConnectException: Connection refused
>> at
>> test.classloader.hellojsf.helloJSFTestNG.jsfAppDeployedFirstPagetest(helloJSFTestNG.java:122)
>>
>> 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:585)
>> at
>> org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
>> at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
>> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
>> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
>> at
>> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
>>
>> at
>> org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
>> at org.testng.TestRunner.runWorkers(TestRunner.java:678)
>> at org.testng.TestRunner.privateRun(TestRunner.java:624)
>> at org.testng.TestRunner.run(TestRunner.java:495)
>> at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
>> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
>> at org.testng.SuiteRunner.run(SuiteRunner.java:190)
>> at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
>> at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
>> at org.testng.TestNG.run(TestNG.java:699)
>> at org.testng.TestNG.privateMain(TestNG.java:824)
>> at org.testng.TestNG.main(TestNG.java:802)
>> Caused by: java.net.ConnectException: Connection refused
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>> at
>> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>> at java.net.Socket.connect(Socket.java:520)
>> at java.net.Socket.connect(Socket.java:470)
>> at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:387)
>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:522)
>> at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:639)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:957)
>>
>> at
>> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
>> at
>> test.classloader.hellojsf.helloJSFTestNG.jsfAppDeployedFirstPagetest(helloJSFTestNG.java:97)
>>
>> ... 22 more
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>