[ 
https://issues.apache.org/jira/browse/TUSCANY-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579801#action_12579801
 ] 

ant elder commented on TUSCANY-2093:
------------------------------------

It looks like two java.exe processes get started up and that previous thread 
dump is only from one, i've tried using the JSE6 jstack utility which gives the 
following dump for the other java.exe process. Note jstack hangs when i ask for 
a dump of that process and doesn't produce the dump until i kill the other 
java.exe process, i don't know if that changes the dump in a significant way.

Full thread dump Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode):

"Configuration Updater" daemon prio=6 tid=0x1787c400 nid=0x142c in 
Object.wait() [0x17e6f000..0x17e6fd14]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x04090670> (a java.util.LinkedList)
        at java.lang.Object.wait(Object.java:485)
        at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:69)
        - locked <0x04090670> (a java.util.LinkedList)

"SCR Component Actor" daemon prio=6 tid=0x17868800 nid=0x73c in Object.wait() 
[0x17e1f000..0x17e1fd94]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x040906f8> (a java.util.LinkedList)
        at java.lang.Object.wait(Object.java:485)
        at 
org.apache.felix.scr.impl.ComponentActorThread.run(ComponentActorThread.java:63)
        - locked <0x040906f8> (a java.util.LinkedList)

"Felix Shell TUI" daemon prio=6 tid=0x1784a000 nid=0xa74 runnable 
[0x17dcf000..0x17dcfa14]
   java.lang.Thread.State: RUNNABLE
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.write(FileOutputStream.java:260)
        at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
        at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
        - locked <0x03d7a338> (a java.io.BufferedOutputStream)
        at java.io.PrintStream.write(PrintStream.java:430)
        - locked <0x03d710a0> (a java.io.PrintStream)
        at java.io.PrintStream.write(PrintStream.java:430)
        - locked <0x03df4598> (a org.apache.maven.surefire.util.TeeStream)
        at org.apache.maven.surefire.util.TeeStream.write(TeeStream.java:44)
        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
        at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
        at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:85)
        - locked <0x03df7998> (a java.io.OutputStreamWriter)
        at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:168)
        at java.io.PrintStream.write(PrintStream.java:477)
        - locked <0x03df4598> (a org.apache.maven.surefire.util.TeeStream)
        at java.io.PrintStream.print(PrintStream.java:619)
        at 
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:133)
        at java.lang.Thread.run(Thread.java:619)

"FelixPackageAdmin" daemon prio=6 tid=0x17872800 nid=0x1634 in Object.wait() 
[0x17d7f000..0x17d7fa94]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x0406ce10> (a 
org.apache.felix.framework.PackageAdminImpl)
        at java.lang.Object.wait(Object.java:485)
        at 
org.apache.felix.framework.PackageAdminImpl.run(PackageAdminImpl.java:247)
        - locked <0x0406ce10> (a org.apache.felix.framework.PackageAdminImpl)
        at java.lang.Thread.run(Thread.java:619)

"FelixStartLevel" daemon prio=6 tid=0x17827c00 nid=0x168 in Object.wait() 
[0x17d2f000..0x17d2fb14]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x0406db30> (a java.util.ArrayList)
        at java.lang.Object.wait(Object.java:485)
        at 
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:239)
        - locked <0x0406db30> (a java.util.ArrayList)
        at java.lang.Thread.run(Thread.java:619)

"FelixDispatchQueue" prio=6 tid=0x17827400 nid=0xd98 in Object.wait() 
[0x17cdf000..0x17cdfb94]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x0406cf28> (a java.util.ArrayList)
        at java.lang.Object.wait(Object.java:485)
        at 
org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:794)
        - locked <0x0406cf28> (a java.util.ArrayList)
        at 
org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:42)
        at 
org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:94)
        at java.lang.Thread.run(Thread.java:619)

"Low Memory Detector" daemon prio=6 tid=0x16b7e800 nid=0x1c98 runnable 
[0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=10 tid=0x16b7a800 nid=0x13b8 waiting on condition 
[0x00000000..0x16dcf998]
   java.lang.Thread.State: RUNNABLE

"Attach Listener" daemon prio=10 tid=0x16b78800 nid=0x1be0 waiting on condition 
[0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x16b77c00 nid=0x1d28 runnable 
[0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=8 tid=0x16b67c00 nid=0x1a20 in Object.wait() 
[0x16cdf000..0x16cdfa94]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x03d6e690> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x03d6e690> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x16b63800 nid=0x199c in Object.wait() 
[0x16c8f000..0x16c8fb14]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x03d6e720> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:485)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0x03d6e720> (a java.lang.ref.Reference$Lock)

"main" prio=6 tid=0x00297000 nid=0x818 runnable [0x0090d000..0x0090fe54]
   java.lang.Thread.State: RUNNABLE
        at java.net.Inet4AddressImpl.getLocalHostName(Native Method)
        at java.net.InetAddress.getLocalHost(InetAddress.java:1297)
        at sun.security.provider.SeedGenerator$1.run(SeedGenerator.java:161)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
sun.security.provider.SeedGenerator.getSystemEntropy(SeedGenerator.java:146)
        at 
sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:170)
        - locked <0x029abfd0> (a sun.security.provider.SecureRandom)
        at java.security.SecureRandom.nextBytes(SecureRandom.java:433)
        - locked <0x0299f0a0> (a java.security.SecureRandom)
        at java.security.SecureRandom.next(SecureRandom.java:455)
        at java.util.Random.nextInt(Random.java:189)
        at java.rmi.server.UID.<init>(UID.java:95)
        - locked <0x0299eb18> (a java.lang.Object)
        at 
org.apache.tuscany.sca.core.work.ThreadPoolWorkManager.schedule(ThreadPoolWorkManager.java:92)
        at 
org.apache.tuscany.sca.core.work.ThreadPoolWorkManager.schedule(ThreadPoolWorkManager.java:80)
        at 
org.apache.tuscany.sca.core.work.Jsr237WorkScheduler.scheduleWork(Jsr237WorkScheduler.java:92)
        at 
org.apache.tuscany.sca.core.work.Jsr237WorkScheduler.scheduleWork(Jsr237WorkScheduler.java:73)
        at 
org.apache.tuscany.sca.core.invocation.NonBlockingInterceptor.invoke(NonBlockingInterceptor.java:67)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:286)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
        at $Proxy13.notifyShipment(Unknown Source)
        at 
supplychain.shipper.OSGiShipperServiceImpl.processShipment(OSGiShipperServiceImpl.java:39)
        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:597)
        at 
org.apache.tuscany.sca.implementation.osgi.invocation.OSGiTargetInvoker.invokeMethod(OSGiTargetInvoker.java:171)
        at 
org.apache.tuscany.sca.implementation.osgi.invocation.OSGiTargetInvoker.invokeTarget(OSGiTargetInvoker.java:143)
        at 
org.apache.tuscany.sca.implementation.osgi.invocation.OSGiTargetInvoker.invoke(OSGiTargetInvoker.java:188)
        at 
org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:286)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
        at $Proxy12.processShipment(Unknown Source)
        at 
supplychain.warehouse.JavaWarehouseWithQueryComponentImpl.fulfillOrder(JavaWarehouseWithQueryComponentImpl.java:44)
        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:597)
        at 
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:109)
        at 
org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:286)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
        at $Proxy9.fulfillOrder(Unknown Source)
        at 
supplychain.retailer.OSGiRetailerWithQueryImpl.submitOrder(OSGiRetailerWithQueryImpl.java:53)
        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:597)
        at 
org.apache.tuscany.sca.implementation.osgi.invocation.OSGiTargetInvoker.invokeMethod(OSGiTargetInvoker.java:171)
        at 
org.apache.tuscany.sca.implementation.osgi.invocation.OSGiTargetInvoker.invokeTarget(OSGiTargetInvoker.java:143)
        at 
org.apache.tuscany.sca.implementation.osgi.invocation.OSGiTargetInvoker.invoke(OSGiTargetInvoker.java:188)
        at 
org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:286)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
        at $Proxy11.submitOrder(Unknown Source)
        at 
supplychain.customer.OSGiCustomerWithQueryImpl.purchaseBooks(OSGiCustomerWithQueryImpl.java:52)
        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:597)
        at 
org.apache.tuscany.sca.implementation.osgi.invocation.OSGiTargetInvoker.invokeMethod(OSGiTargetInvoker.java:171)
        at 
org.apache.tuscany.sca.implementation.osgi.invocation.OSGiTargetInvoker.invokeTarget(OSGiTargetInvoker.java:143)
        at 
org.apache.tuscany.sca.implementation.osgi.invocation.OSGiTargetInvoker.invoke(OSGiTargetInvoker.java:188)
        at 
org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:286)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
        at $Proxy7.purchaseBooks(Unknown Source)
        at supplychain.SupplyChainTestCase.test(SupplyChainTestCase.java:46)
        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:597)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)

"VM Thread" prio=10 tid=0x16b60400 nid=0x13bc runnable

"VM Periodic Task Thread" prio=10 tid=0x16b88c00 nid=0x1810 waiting on condition

JNI global references: 880



> Hangs in osgi itests
> --------------------
>
>                 Key: TUSCANY-2093
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2093
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Integration Tests
>    Affects Versions: Java-SCA-Next
>            Reporter: ant elder
>             Fix For: Java-SCA-Next
>
>
> I get hangs running various of the osgi itests, the test run part way through 
> then just appear to hang for ever, no IO or CPU activity on the process. Eg, 
> the output on the console for some hangs are:
> Running org.apache.tuscany.sca.test.osgi.tuscany.OSGiSupplyChainTestCase
> -> Run tests from : ../../../samples/osgi-supplychain
> Loaded Tuscany, time taken = 31625 ms
> Running test null(supplychain.SupplyChainClientTestCase)
> Started OSGi bundle with activator OSGiCustomerImpl
> Started OSGi bundle with activator OSGiShipperImpl
> another:
> [INFO] Building Apache Tuscany OSGi Contribution tests
> [INFO]    task-segment: [clean, install]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory 
> C:\Tuscany\SVN\LATEST\itest\osgi-contribution\contribution-test\target
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 1 source file to 
> C:\Tuscany\SVN\LATEST\itest\osgi-contribution\contribution-test\target\classes
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Compiling 4 source files to 
> C:\Tuscany\SVN\LATEST\itest\osgi-contribution\contribution-test\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory: 
> C:\Tuscany\SVN\LATEST\itest\osgi-contribution\contribution-test\target\surefire-reports
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.tuscany.sca.contribution.osgi.test.OSGiResolverTestCase
> -> Created supplychain.customer.JavaCustomerComponentImpl using classloader 
> 6.0
> Created supplychain.retailer.JavaRetailerComponentImpl using classloader 7.0
> Created supplychain.warehouse.JavaWarehouseComponentImpl using classloader 8.0
> Created supplychain.shipper.JavaShipperComponentImpl using classloader 9.0
> another:
> Running supplychain.wiring.DSWiring1TestCase
> -> Main thread Thread[main,5,main]
> Created OSGiCustomerComponentImpl [EMAIL PROTECTED]
> Activated OSGiCustomerComponentImpl bundle
> OSGiCustomerComponentImpl.purchaseBooks, retailer1 is [Proxy - [EMAIL 
> PROTECTED]
> Activated OSGiRetailerComponentImpl bundle
> Activated OSGiRetailerComponentImpl bundle
> OSGiRetailerComponentImpl.submitOrder , warehouse is [Proxy - [EMAIL 
> PROTECTED]
> JavaWarehouseComponentImpl.fulfillOrder : shipper is [Proxy - [EMAIL 
> PROTECTED]
> Activated OSGiShipperComponentImpl bundle
> Activated OSGiShipperComponentImpl bundle
> OSGiShipperComponentImpl.processShipment, customer is [Proxy - [EMAIL 
> PROTECTED]
> This is easily recreateable so i can help debug, just right now i'm not sure 
> where to look. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to