You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Stefan Kolb <st...@web.de> on 2010/02/10 15:22:55 UTC
Re: how to access another SCA Component in BPEL
Hi,
im trying to run the iTest sample from the Tuscany Repos "bpel-reference" tho i am getting an error.
What going wrong there?
Sincerely Stefan
org.osoa.sca.ServiceRuntimeException: java.lang.RuntimeException: BPEl Component Type Implementation initialization failure : null
at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:220)
at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:63)
at helloworld.HelloWorldTestCase.setUp(HelloWorldTestCase.java:39)
at junit.framework.TestCase.runBare(TestCase.java:132)
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.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.RuntimeException: BPEl Component Type Implementation initialization failure : null
at org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELImplementationProvider.start(BPELImplementationProvider.java:124)
at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:644)
at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:560)
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:728)
at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:187)
at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:100)
at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:182)
... 16 more
Caused by: java.lang.NullPointerException
at org.tranql.connector.jdbc.ConnectionHandle.getMetaData(ConnectionHandle.java:321)
at org.apache.ode.scheduler.simple.JdbcDelegate.guessDialect(JdbcDelegate.java:290)
at org.apache.ode.scheduler.simple.JdbcDelegate.<init>(JdbcDelegate.java:78)
at org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.createScheduler(EmbeddedODEServer.java:224)
at org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.initBpelServer(EmbeddedODEServer.java:155)
at org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.init(EmbeddedODEServer.java:105)
at org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELImplementationProvider.start(BPELImplementationProvider.java:95)
... 22 more
___________________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
The Attachment includes thes Sources/Bins.
You can ignore the Shipping package. The Warehouse is already
integrated, the Wholesaler should be the second Partnerlink.
Regards Stefan
Raymond Feng schrieb:
> Hi,
>
> We need to run the "mvn" build to unzip the database here before you can
> test it inside Eclipse. Unfortunately, it's not possible to get Eclipse
> to set it up automatically. Maybe a README is desired.
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: "Stefan Kolb" <st...@web.de>
> Sent: Wednesday, February 10, 2010 8:09 AM
> To: <us...@tuscany.apache.org>
> Subject: Re: how to access another SCA Component in BPEL
>
>> Hi Simon,
>>
>> i got the sample working after unzipping the files in the release
>> folder. Many thanks for pointing this out :)
>>
>> Stefan
>>
>> Simon Laws schrieb:
>>> Our script pulls the zip from here
>>>
>>> http://repo2.maven.org/maven2/org/apache/ode/ode-dao-jpa-ojpa-derby/1.3.2/
>>>
>>>
>>> and unpacks it into the directory I mentioned. I expect you could just
>>> do this manually. Not sure if there are is "proper" ODE way of doing
>>> it. Hoping one of our BPEL/ODE experts will chime in.
>>>
>>> Simon
>>>
>
Re: how to access another SCA Component in BPEL
Posted by Luciano Resende <lu...@gmail.com>.
On Thu, Feb 11, 2010 at 2:16 PM, Stefan Kolb <st...@web.de> wrote:
> Hi,
>
> i wrote a BPEL Scenario now similar to the iTest Scenario invoking one SCA
> Service. However if i wanna add a second Service (PartnerLink) in the
> Composite through a reference element, it gives me an "Reference not found
> for component reference"-Error. I tested both Services exclusively with the
> BPEL component and they work fine. What's going wrong there?
> Are there any special requirements i have to take care of?
>
> Regards Stefan
>
I guess the only requirement is that the references need to match the
partnerLink name...
It would be great if you could either share your composite/bpel/wsdl
and the console output you are getting or send a patch that update the
current sample with your changes so we can reproduce it locally.
--
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
Hi,
i wrote a BPEL Scenario now similar to the iTest Scenario invoking one
SCA Service. However if i wanna add a second Service (PartnerLink) in
the Composite through a reference element, it gives me an "Reference not
found for component reference"-Error. I tested both Services exclusively
with the BPEL component and they work fine. What's going wrong there?
Are there any special requirements i have to take care of?
Regards Stefan
Raymond Feng schrieb:
> Hi,
>
> We need to run the "mvn" build to unzip the database here before you can
> test it inside Eclipse. Unfortunately, it's not possible to get Eclipse
> to set it up automatically. Maybe a README is desired.
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: "Stefan Kolb" <st...@web.de>
> Sent: Wednesday, February 10, 2010 8:09 AM
> To: <us...@tuscany.apache.org>
> Subject: Re: how to access another SCA Component in BPEL
>
>> Hi Simon,
>>
>> i got the sample working after unzipping the files in the release
>> folder. Many thanks for pointing this out :)
>>
>> Stefan
>>
>> Simon Laws schrieb:
>>> Our script pulls the zip from here
>>>
>>> http://repo2.maven.org/maven2/org/apache/ode/ode-dao-jpa-ojpa-derby/1.3.2/
>>>
>>>
>>> and unpacks it into the directory I mentioned. I expect you could just
>>> do this manually. Not sure if there are is "proper" ODE way of doing
>>> it. Hoping one of our BPEL/ODE experts will chime in.
>>>
>>> Simon
>>>
>
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
Hi Luciano,
was it possible for you to track down the error?
So its definately a bug in the runtime?!
Regards
Stefan
Luciano Resende schrieb:
> On Sun, Feb 14, 2010 at 1:52 AM, Stefan Kolb <st...@web.de> wrote:
>> I uploaded an Attachment in the Jira [1], maybe someone can take a look at
>> it.
>
> I started taking a look, and I see similar errors in both 1.x and 2.x...
> I will try to get back to it in the next couple days, but it's more
> like weekend before I can really investigate this more deeply...
>
Re: how to access another SCA Component in BPEL
Posted by Luciano Resende <lu...@gmail.com>.
On Sun, Feb 14, 2010 at 1:52 AM, Stefan Kolb <st...@web.de> wrote:
> I uploaded an Attachment in the Jira [1], maybe someone can take a look at
> it.
I started taking a look, and I see similar errors in both 1.x and 2.x...
I will try to get back to it in the next couple days, but it's more
like weekend before I can really investigate this more deeply...
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
I uploaded an Attachment in the Jira [1], maybe someone can take a look
at it.
Regards
Stefan
[1]https://issues.apache.org/jira/browse/TUSCANY-3083
Stefan Kolb schrieb:
> While googling and searching the userlists it seems to me that this
> might be a general problem. [1] looks like a similar problem.
> Has anyone ever managed to run a sample with more than 1 SCA partner
> link? It looks like it's always crashing at the second invocation of a
> provider partner link.
>
> Regards
>
> Stefan
>
> [1] http://www.mail-archive.com/user@tuscany.apache.org/msg01596.html
>
> Simon Laws schrieb:
>> Not sure what's up with the list. I can see the last attachment. A
>> more reliable way to do it is create a JIRA and add the attachment
>> there.
>>
>> Regards
>>
>> Simon
>>
>
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
If this Jira [1] is true and not fixed it may be the reason why i failed.
Hope to hear that im wrong, would be sad if it's only working with one
partner link at the moment.
[1] https://issues.apache.org/jira/browse/TUSCANY-3083
Regards
Stefan
Stefan Kolb schrieb:
> While googling and searching the userlists it seems to me that this
> might be a general problem. [1] looks like a similar problem.
> Has anyone ever managed to run a sample with more than 1 SCA partner
> link? It looks like it's always crashing at the second invocation of a
> provider partner link.
>
> Regards
>
> Stefan
>
> [1] http://www.mail-archive.com/user@tuscany.apache.org/msg01596.html
>
> Simon Laws schrieb:
>> Not sure what's up with the list. I can see the last attachment. A
>> more reliable way to do it is create a JIRA and add the attachment
>> there.
>>
>> Regards
>>
>> Simon
>>
>
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
While googling and searching the userlists it seems to me that this
might be a general problem. [1] looks like a similar problem.
Has anyone ever managed to run a sample with more than 1 SCA partner
link? It looks like it's always crashing at the second invocation of a
provider partner link.
Regards
Stefan
[1] http://www.mail-archive.com/user@tuscany.apache.org/msg01596.html
Simon Laws schrieb:
> Not sure what's up with the list. I can see the last attachment. A
> more reliable way to do it is create a JIRA and add the attachment
> there.
>
> Regards
>
> Simon
>
Re: how to access another SCA Component in BPEL
Posted by Simon Laws <si...@googlemail.com>.
Not sure what's up with the list. I can see the last attachment. A
more reliable way to do it is create a JIRA and add the attachment
there.
Regards
Simon
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
The partner links no longer throw an exception, tho it seems like
there's some problem with the invocation of them. The code's working
fine with only one partnerlink as a provider e.g. "warehouse". But if
there comes in the second link there are some strange exceptions with
the ODEScheduler after hanging for some time. It always fails when
invoking two partner links in the activity. I attached the Code so you
can take a look at it and hopefully reproduce it. In brief: the
activity.ActivityTestCase is the test case. The BPEl invokes "warehouse"
checks if isAvailable is true else it invokes the "wholesaler" and
returns the result.
Regards
Stefan
Stefan Kolb schrieb:
> Hi Simon,
>
> yes i had partner links that were actually used and they did work.
> I also specified matching references for the new partner link in the SCA
> composite. Could possibly be a bug in the 1.x line of Tuscany.
>
> Btw: What kind of attachments are allowed in this list? I tried to post
> a message with the attachment but its seems like it didn't work.
>
> Regards
>
> Stefan
>
> Simon Laws schrieb:
>> Hi Stefan
>>
>> So you had partner links in the BPEL script that we're actually used.
>> Is that right? Sounds OK to me. Did you have matching references
>> defined in the SCA component?
>>
>> I know Mike has been doing a lot of work on BPEL in the2.x codebase to
>> work toward getting it to pass the OASIS compliance tests. Not sure
>> that the improvements solve this particular problem but may be worth
>> giving it a spin at some point.
>>
>> Regards
>>
>> Simon
>>
>
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
Hi Simon,
yes i had partner links that were actually used and they did work.
I also specified matching references for the new partner link in the SCA
composite. Could possibly be a bug in the 1.x line of Tuscany.
Btw: What kind of attachments are allowed in this list? I tried to post
a message with the attachment but its seems like it didn't work.
Regards
Stefan
Simon Laws schrieb:
> Hi Stefan
>
> So you had partner links in the BPEL script that we're actually used.
> Is that right? Sounds OK to me. Did you have matching references
> defined in the SCA component?
>
> I know Mike has been doing a lot of work on BPEL in the2.x codebase to
> work toward getting it to pass the OASIS compliance tests. Not sure
> that the improvements solve this particular problem but may be worth
> giving it a spin at some point.
>
> Regards
>
> Simon
>
Re: how to access another SCA Component in BPEL
Posted by Simon Laws <si...@googlemail.com>.
Hi Stefan
So you had partner links in the BPEL script that we're actually used.
Is that right? Sounds OK to me. Did you have matching references
defined in the SCA component?
I know Mike has been doing a lot of work on BPEL in the2.x codebase to
work toward getting it to pass the OASIS compliance tests. Not sure
that the improvements solve this particular problem but may be worth
giving it a spin at some point.
Regards
Simon
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
Seems like my post with the sources didn't work. After hours I found the
problem now tho :) It's because i wanted to develop the BPEL
evolutionary and added the PartnerLinks without using them in the
Sequence yet. Tho i thought this isn't disallowed in BPEl in general
this throws a Reference Not Found Exception in Tuscany respectively
ApacheODE.
Regards Stefan
Raymond Feng schrieb:
> Hi,
>
> We need to run the "mvn" build to unzip the database here before you can
> test it inside Eclipse. Unfortunately, it's not possible to get Eclipse
> to set it up automatically. Maybe a README is desired.
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: "Stefan Kolb" <st...@web.de>
> Sent: Wednesday, February 10, 2010 8:09 AM
> To: <us...@tuscany.apache.org>
> Subject: Re: how to access another SCA Component in BPEL
>
>> Hi Simon,
>>
>> i got the sample working after unzipping the files in the release
>> folder. Many thanks for pointing this out :)
>>
>> Stefan
>>
>> Simon Laws schrieb:
>>> Our script pulls the zip from here
>>>
>>> http://repo2.maven.org/maven2/org/apache/ode/ode-dao-jpa-ojpa-derby/1.3.2/
>>>
>>>
>>> and unpacks it into the directory I mentioned. I expect you could just
>>> do this manually. Not sure if there are is "proper" ODE way of doing
>>> it. Hoping one of our BPEL/ODE experts will chime in.
>>>
>>> Simon
>>>
>
Re: how to access another SCA Component in BPEL
Posted by Raymond Feng <en...@gmail.com>.
Hi,
We need to run the "mvn" build to unzip the database here before you can
test it inside Eclipse. Unfortunately, it's not possible to get Eclipse to
set it up automatically. Maybe a README is desired.
Thanks,
Raymond
--------------------------------------------------
From: "Stefan Kolb" <st...@web.de>
Sent: Wednesday, February 10, 2010 8:09 AM
To: <us...@tuscany.apache.org>
Subject: Re: how to access another SCA Component in BPEL
> Hi Simon,
>
> i got the sample working after unzipping the files in the release folder.
> Many thanks for pointing this out :)
>
> Stefan
>
> Simon Laws schrieb:
>> Our script pulls the zip from here
>>
>> http://repo2.maven.org/maven2/org/apache/ode/ode-dao-jpa-ojpa-derby/1.3.2/
>>
>> and unpacks it into the directory I mentioned. I expect you could just
>> do this manually. Not sure if there are is "proper" ODE way of doing
>> it. Hoping one of our BPEL/ODE experts will chime in.
>>
>> Simon
>>
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
Hi Simon,
i got the sample working after unzipping the files in the release
folder. Many thanks for pointing this out :)
Stefan
Simon Laws schrieb:
> Our script pulls the zip from here
>
> http://repo2.maven.org/maven2/org/apache/ode/ode-dao-jpa-ojpa-derby/1.3.2/
>
> and unpacks it into the directory I mentioned. I expect you could just
> do this manually. Not sure if there are is "proper" ODE way of doing
> it. Hoping one of our BPEL/ODE experts will chime in.
>
> Simon
>
Re: how to access another SCA Component in BPEL
Posted by Simon Laws <si...@googlemail.com>.
Our script pulls the zip from here
http://repo2.maven.org/maven2/org/apache/ode/ode-dao-jpa-ojpa-derby/1.3.2/
and unpacks it into the directory I mentioned. I expect you could just
do this manually. Not sure if there are is "proper" ODE way of doing
it. Hoping one of our BPEL/ODE experts will chime in.
Simon
Re: how to access another SCA Component in BPEL
Posted by Stefan Kolb <st...@web.de>.
Hi Simon,
i'm using the 1.x branch of Tuscany. I checked the the directory you
mentioned
and there's only a derby.log file. This is probably because i'm using
Eclipse exclusively for running the sample
and not the maven build script?! Can i create the DB manually or some
other way?
Stefan
Simon Laws schrieb:
> Hi Stefan
>
> Haven't looked at this in a while but it looks like it's failing
> trying to talk to the underlying database that ODE uses to maintain
> state.
>
> There should be a Derby data created. In 2.x when I run the
> helloworld-bpel sample I see the database in the following location
>
> sca-java-2.x\samples\helloworld-bpel\target\test-classes\jpadb
>
> This database is unpacked by maven when run on the sample module.
>
> First things first, what version of Tuscany are you running against?
> How are running the test?
> Do you see that the database has been created?
>
> Regards
>
> imon
>
Re: how to access another SCA Component in BPEL
Posted by Simon Laws <si...@googlemail.com>.
imon -> Simon
Re: how to access another SCA Component in BPEL
Posted by Simon Laws <si...@googlemail.com>.
Hi Stefan
Haven't looked at this in a while but it looks like it's failing
trying to talk to the underlying database that ODE uses to maintain
state.
There should be a Derby data created. In 2.x when I run the
helloworld-bpel sample I see the database in the following location
sca-java-2.x\samples\helloworld-bpel\target\test-classes\jpadb
This database is unpacked by maven when run on the sample module.
First things first, what version of Tuscany are you running against?
How are running the test?
Do you see that the database has been created?
Regards
imon