Thanks, I have managed reproduce the problem reported by Jeremy,
java.lang.IllegalStateException: Scope not running [6]
at
org.apache.tuscany.core.component.scope.AbstractScopeContainer.checkInit
(AbstractScopeContainer.java:106)
at
org.apache.tuscany.core.component.scope.ModuleScopeContainer.getInstance
Wrapper(ModuleScopeContainer.java:98)
at
org.apache.tuscany.core.component.scope.AbstractScopeContainer.getInstan
ce(AbstractScopeContainer.java:87)
at
org.apache.tuscany.core.implementation.PojoAtomicComponent.getTargetInst
ance(PojoAtomicComponent.java:105)
at
org.apache.tuscany.core.implementation.java.JavaTargetInvoker.getInstanc
e(JavaTargetInvoker.java:52)
at
org.apache.tuscany.core.wire.PojoTargetInvoker.invokeTarget(PojoTargetIn
voker.java:33)
at
org.apache.tuscany.core.implementation.java.AsyncJavaTargetInvoker.acces
s$301(AsyncJavaTargetInvoker.java:37)
at
org.apache.tuscany.core.implementation.java.AsyncJavaTargetInvoker$1.run
(AsyncJavaTargetInvoker.java:76)
at
org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler$Jsr237W
ork.run(Jsr237WorkScheduler.java:210)
at
org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWorkM
anager$DecoratingWork.run(ThreadPoolWorkManager.java:203)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto
r.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
va:675)
at java.lang.Thread.run(Thread.java:595)
Ta
Meeraj
-----Original Message-----
From: Meeraj Kunnumpurath [mailto:[EMAIL PROTECTED]
Sent: 01 August 2006 13:20
To: [email protected]
Subject: RE: problem running supplychain sample from the command line
Ta
-----Original Message-----
From: Rick [mailto:[EMAIL PROTECTED]
Sent: 01 August 2006 13:19
To: [email protected]
Subject: Re: problem running supplychain sample from the command line
Hello,
Not an expert on this particular demo, but I just checked in a bat file
"run.bat" that seems to run it for me. This is the output I see:
E:\dev\tuscany\java\samples\sca\supplychain>
Main thread Thread[main,5,main]
Work thread Thread[pool-1-thread-1,5,main] - Order, submitted,
fulfilled, shipped
It hangs for me though at the end and I think there is an issue that may
have fixed since I last did an update.
The bat file could be easily converted to a linux shell script. Just
haven't fired up my linux box yet.
Anyway hope this helps out.
Meeraj Kunnumpurath wrote:
> Hi,
>
> The readme on the supply chain example seems to be a bit out-of-date.
> Could someone pls direct me to how to run the sample?
>
> Ta
> Meeraj
>
> -----Original Message-----
> From: Meeraj Kunnumpurath [mailto:[EMAIL PROTECTED]
> Sent: 31 July 2006 18:35
> To: [email protected]
> Subject: RE: problem running supplychain sample from the command line
>
> Jeremy,
>
> Don't worry, I have found the readme. I will take a look.
>
> Ta
> Meeraj
>
> -----Original Message-----
> From: Meeraj Kunnumpurath [mailto:[EMAIL PROTECTED]
> Sent: 31 July 2006 18:24
> To: [email protected]
> Subject: RE: problem running supplychain sample from the command line
>
> How do I run the sample from the command line?
>
> -----Original Message-----
> From: Jeremy Boynes [mailto:[EMAIL PROTECTED]
> Sent: 31 July 2006 16:29
> To: [email protected]
> Subject: problem running supplychain sample from the command line
>
> When I run the sample from the command line one of two things seem to
> happen: it either hangs before exiting or it throws an
> IllegalStateException:
>
> jeremy-boynes-computer:/tmp/foo jboynes$ java -jar bin/launcher.jar --
> classpath ~/.m2/repository/org/apache/tuscany/samples/sca/sample-
> supplychain/1.0-SNAPSHOT/sample-supplychain-1.0-SNAPSHOT.jar
> Main thread Thread[main,5,main]
> Work thread Thread[pool-1-thread-1,5,main] - Order, submitted,
> fulfilled, shipped <<< HANGS HERE >>> ^C
>
> jeremy-boynes-computer:/tmp/foo jboynes$ java -jar bin/launcher.jar --
> classpath ~/.m2/repository/org/apache/tuscany/samples/sca/sample-
> supplychain/1.0-SNAPSHOT/sample-supplychain-1.0-SNAPSHOT.jar
> Main thread Thread[main,5,main]
> java.lang.IllegalStateException: Scope not running [6]
> at
> org.apache.tuscany.core.component.scope.AbstractScopeContainer.checkIn
> it
> (AbstractScopeContainer.java:106)
> at
> org.apache.tuscany.core.component.scope.ModuleScopeContainer.getInstan
> ce
> Wrapper(ModuleScopeContainer.java:98)
> at
> org.apache.tuscany.core.component.scope.AbstractScopeContainer.getInst
> an
> ce(AbstractScopeContainer.java:87)
> at
> org.apache.tuscany.core.implementation.PojoAtomicComponent.getTargetIn
> st
> ance(PojoAtomicComponent.java:105)
> at
> org.apache.tuscany.core.implementation.java.JavaTargetInvoker.getInsta
> nc
> e(JavaTargetInvoker.java:52)
> at
> org.apache.tuscany.core.wire.PojoTargetInvoker.invokeTarget
> (PojoTargetInvoker.java:33)
> at
> org.apache.tuscany.core.implementation.java.AsyncJavaTargetInvoker.acc
> es
> s$301(AsyncJavaTargetInvoker.java:37)
> at
> org.apache.tuscany.core.implementation.java.AsyncJavaTargetInvoker
> $1.run(AsyncJavaTargetInvoker.java:76)
> at
> org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler
> $Jsr237Work.run(Jsr237WorkScheduler.java:210)
> at
> org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWor
> kM
> anager$DecoratingWork.run(ThreadPoolWorkManager.java:203)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
> (ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run
> (ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:613)
>
> I'm guessing that this is some kind of race condition in the work
> manager.
> All the tests pass for me (both the ones in core and the one from the
> supplychain module) but something's not quite right.
>
> --
> Jeremy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> This message has been checked for all email viruses by MessageLabs.
>
>
>
>
> *****************************************************
>
> You can find us at www.voca.com
>
> *****************************************************
> This communication is confidential and intended for the exclusive use
> of the addressee only. You should not disclose its contents to any
> other person.
> If you are not the intended recipient please notify the sender named
> above immediately.
>
> Registered in England, No 1023742,
> Registered Office: Voca Limited
> Drake House, Three Rivers Court,
> Homestead Road, Rickmansworth,
> Hertfordshire, WD3 1FX
>
>
> This message has been checked for all email viruses by MessageLabs.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> This message has been checked for all email viruses by MessageLabs.
>
>
>
> This message has been checked for all email viruses by MessageLabs.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> This message has been checked for all email viruses by MessageLabs.
>
>
>
> This message has been checked for all email viruses by MessageLabs.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message has been checked for all email viruses by MessageLabs.
This message has been checked for all email viruses by MessageLabs.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message has been checked for all email viruses by MessageLabs.
This message has been checked for all email viruses by MessageLabs.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]