[wsas-java-dev] WSAS Test hangs
Afkham Azeez
azeez at wso2.com
Mon Aug 6 23:00:43 PDT 2007
Here is how this test works.
A single WSAS instance is started in the setUp method of the TestSuite.
this takes about 15 secs. In the mean time, the client in the test
method keeps trying to connect to WSAS, and once it connects, it starts
invoking the relevant operations in the relevant services. What had
happened was, in the latest WSAS trunk, the WSAS server did not start up
properly, and the test method went into an infinite loop. We have fixed
this error, and introduced a timeout mechanism, so that after 30 secs.
if the WSAS server did not startup successfully, the test fails.
-- Azeez
Sanjiva Weerawarana wrote:
> No response? What's the verdict??
>
> Sanjiva.
>
> Davanum Srinivas wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> FYI, intermittent hang in the WSAS test suite. Snippet here, full
>> output from jstack enclosed.
>>
>> Thread 17947: (state = BLOCKED)
>> - java.lang.Thread.sleep(long) @bci=0 (Compiled frame; information
>> may be imprecise)
>> -
>> org.wso2.wsas.AbstractTestCase.testConnect(org.apache.axis2.addressing.EndpointReference)
>> @bci=79, line=102 (Compiled
>> frame)
>> - org.wso2.wsas.TomcatServerTest.testVersionSync() @bci=12, line=68
>> (Interpreted frame)
>> -
>> sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method,
>> java.lang.Object, java.lang.Object[]) @bci=0
>> (Interpreted frame)
>> - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=87, line=39 (Interpreted frame)
>> - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=6, line=25 (Compiled frame)
>> - java.lang.reflect.Method.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=111, line=585 (Compiled frame)
>>
>>
>> thanks,
>> dims
>>
>> - --
>> Davanum Srinivas (dims at wso2.com)
>> Co-Founder & Director, Customer Engagements, WSO2 (http://wso2.com)
>> Yahoo IM: dims Cell/Mobile: +1 (508) 415 7509
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.5 (Cygwin)
>>
>> iD8DBQFGqiYwgNg6eWEDv1kRAg0YAKD30aczbTzyUqcb/SQAA7gMWKN7fQCcDj82
>> AZ3M/GHhvzY3J9xWspsYpIQ=
>> =Z1bs
>> -----END PGP SIGNATURE-----
>>
>>
>> ------------------------------------------------------------------------
>>
>> dims at wso2-002:~$ jstack 17947
>> Attaching to process ID 17947, please wait...
>> Debugger attached successfully.
>> Client compiler detected.
>> JVM version is 1.5.0_11-b03
>> Thread 17964: (state = BLOCKED)
>> - java.lang.Thread.sleep(long) @bci=0 (Compiled frame; information
>> may be imprecise)
>> - org.wso2.wsas.TomcatRepositoryListener.run() @bci=738, line=143
>> (Compiled frame)
>> - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame)
>>
>>
>> Thread 17963: (state = BLOCKED)
>> - java.lang.Thread.sleep(long) @bci=0 (Interpreted frame)
>> -
>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run()
>> @bci=22, line=1546 (Interpreted frame)
>> - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame)
>>
>>
>> Thread 17958: (state = BLOCKED)
>> - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
>> - org.apache.derby.impl.services.daemon.BasicDaemon.rest() @bci=22
>> (Compiled frame)
>> - org.apache.derby.impl.services.daemon.BasicDaemon.run() @bci=22
>> (Interpreted frame)
>> - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame)
>>
>>
>> Thread 17957: (state = BLOCKED)
>> - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
>> - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame)
>> - org.apache.derby.impl.services.monitor.AntiGC.run() @bci=20
>> (Interpreted frame)
>> - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame)
>>
>>
>> Thread 17953: (state = BLOCKED)
>>
>>
>> Thread 17952: (state = BLOCKED)
>> - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
>> - java.lang.ref.ReferenceQueue.remove(long) @bci=44, line=116
>> (Compiled frame)
>> - java.lang.ref.ReferenceQueue.remove() @bci=2, line=132 (Compiled
>> frame)
>>
>>
>> Thread 17951: (state = BLOCKED)
>> - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
>> - java.lang.Object.wait() @bci=2, line=474 (Compiled frame)
>>
>>
>> Thread 17947: (state = BLOCKED)
>> - java.lang.Thread.sleep(long) @bci=0 (Compiled frame; information
>> may be imprecise)
>> -
>> org.wso2.wsas.AbstractTestCase.testConnect(org.apache.axis2.addressing.EndpointReference)
>> @bci=79, line=102 (Compiled frame)
>> - org.wso2.wsas.TomcatServerTest.testVersionSync() @bci=12, line=68
>> (Interpreted frame)
>> -
>> sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method,
>> java.lang.Object, java.lang.Object[]) @bci=0 (Interpreted frame)
>> - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=87, line=39 (Interpreted frame)
>> - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=6, line=25 (Compiled frame)
>> - java.lang.reflect.Method.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=111, line=585 (Compiled frame)
>> - junit.framework.TestCase.runTest() @bci=108, line=164 (Interpreted
>> frame)
>> - junit.framework.TestCase.runBare() @bci=7, line=130 (Interpreted
>> frame)
>> - junit.framework.TestResult$1.protect() @bci=4, line=106
>> (Interpreted frame)
>> - junit.framework.TestResult.runProtected(junit.framework.Test,
>> junit.framework.Protectable) @bci=1, line=124 (Interpreted frame)
>> - junit.framework.TestResult.run(junit.framework.TestCase) @bci=18,
>> line=109 (Interpreted frame)
>> - junit.framework.TestCase.run(junit.framework.TestResult) @bci=2,
>> line=120 (Interpreted frame)
>> - junit.framework.TestSuite.runTest(junit.framework.Test,
>> junit.framework.TestResult) @bci=2, line=230 (Interpreted frame)
>> - junit.framework.TestSuite.run(junit.framework.TestResult) @bci=37,
>> line=225 (Interpreted frame)
>> - junit.extensions.TestDecorator.basicRun(junit.framework.TestResult)
>> @bci=5, line=24 (Interpreted frame)
>> - junit.extensions.TestSetup$1.protect() @bci=15, line=21
>> (Interpreted frame)
>> - junit.framework.TestResult.runProtected(junit.framework.Test,
>> junit.framework.Protectable) @bci=1, line=124 (Interpreted frame)
>> - junit.extensions.TestSetup.run(junit.framework.TestResult) @bci=13,
>> line=25 (Interpreted frame)
>> -
>> sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method,
>> java.lang.Object, java.lang.Object[]) @bci=0 (Interpreted frame)
>> - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=87, line=39 (Interpreted frame)
>> - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=6, line=25 (Interpreted frame)
>> - java.lang.reflect.Method.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=111, line=585 (Interpreted frame)
>> -
>> org.apache.maven.surefire.junit.JUnitTestSet.execute(org.apache.maven.surefire.report.ReporterManager,
>> java.lang.ClassLoader) @bci=87, line=210 (Interpreted frame)
>> -
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(org.apache.maven.surefire.testset.SurefireTestSet,
>> org.apache.maven.surefire.report.ReporterManager,
>> java.lang.ClassLoader) @bci=38, line=135 (Interpreted frame)
>> -
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(org.apache.maven.surefire.report.ReporterManager,
>> java.lang.ClassLoader) @bci=57, line=122 (Interpreted frame)
>> - org.apache.maven.surefire.Surefire.run(java.util.List,
>> java.util.List, java.lang.ClassLoader, java.lang.ClassLoader)
>> @bci=164, line=129 (Interpreted frame)
>> -
>> sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method,
>> java.lang.Object, java.lang.Object[]) @bci=0 (Interpreted frame)
>> - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=87, line=39 (Interpreted frame)
>> - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=6, line=25 (Interpreted frame)
>> - java.lang.reflect.Method.invoke(java.lang.Object,
>> java.lang.Object[]) @bci=111, line=585 (Interpreted frame)
>> -
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess()
>> @bci=217, line=225 (Interpreted frame)
>> -
>> org.apache.maven.surefire.booter.SurefireBooter.main(java.lang.String[])
>> @bci=407, line=747 (Interpreted frame)
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Wsas-java-dev mailing list
>> Wsas-java-dev at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev
>
More information about the Wsas-java-dev
mailing list