You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by kodeninja <ko...@gmail.com> on 2009/08/25 13:42:28 UTC

Problems deploying NetBeans SynchronousSample to Apache ODE

Howdy,

I'm trying to deploy the SynchronousSample sample BPEL project that comes
with NetBeans 6.x to Apache ODE and facing some problems. Has anyone else
tried it? My BPEL deploys fine but when I try to execute it using the SoapUI
app, it throws the following Assignment Failure exception:

ERROR -  Assignment Fault:
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=106,faultExplanation=No
results for expression: {OXPath10Expression
$outputVar.resultType/ns2:paramA} {org.apache.ode.bpel.runtime.ASSIGN}

I'm actually using the WSO2 BPS application (it internally wraps the Apache
ODE 1.2 engine) here, but i guess the behavior would be the same even if I
deploy directly to an ODE engine.

Here's the BPEL zip: 
http://www.nabble.com/file/p25132707/SynchronousSample.zip
SynchronousSample.zip 

Thanks,
-Kodeninja
-- 
View this message in context: http://www.nabble.com/Problems-deploying-NetBeans-SynchronousSample-to-Apache-ODE-tp25132707p25132707.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Re: Problems deploying NetBeans SynchronousSample to Apache ODE

Posted by Tammo van Lessen <tv...@gmail.com>.
kodeninja wrote:
> It's also strange why the SUN BPEL engine didn't report this error.

I guess they have some "magic" in place that pre-initializes variables
(which is possible in some scenarios but not generically for all schema
definitions. That's why auto-initialization is not described in the BPEL
spec and hence not implemented in ODE.

Tammo

-- 
Tammo van Lessen - http://www.taval.de

Re: Problems deploying NetBeans SynchronousSample to Apache ODE

Posted by kodeninja <ko...@gmail.com>.
It's also strange why the SUN BPEL engine didn't report this error.

-Kodeninja


kodeninja wrote:
> 
> Thanks Tammo, that did the trick! Crap, I'm aware of this, dunno how I
> missed it :-(. Maybe, coz this example works as-is in NetBeans.
> 
> Also, shouldn't the BPEL compiler complain that the BPEL process is trying
> to use an un-initialized variable rather than throwing the unintuitive
> Assignment Failure exception?
> 
> -Kodeninja
> 
> 
> Tammo van Lessen wrote:
>> 
>> Hi,
>> 
>> you need to initialize the target variable before you can access a
>> subpath of it (as ODE can't guess that). In your example
>> $outputVar.resultType should be initialized with a <ns2:paramA/> element.
>> 
>> HTH,
>>   Tammo
>> 
> 

-- 
View this message in context: http://www.nabble.com/Problems-deploying-NetBeans-SynchronousSample-to-Apache-ODE-tp25132707p25133246.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Re: Problems deploying NetBeans SynchronousSample to Apache ODE

Posted by kodeninja <ko...@gmail.com>.
Thanks Tammo, that did the trick! Crap, I'm aware of this, dunno how I missed
it :-(. Maybe, coz this example works as-is in NetBeans.

Also, shouldn't the BPEL compiler complain that the BPEL process is trying
to use an un-initialized variable rather than throwing the unintuitive
Assignment Failure exception?

-Kodeninja


Tammo van Lessen wrote:
> 
> Hi,
> 
> you need to initialize the target variable before you can access a
> subpath of it (as ODE can't guess that). In your example
> $outputVar.resultType should be initialized with a <ns2:paramA/> element.
> 
> HTH,
>   Tammo
> 
-- 
View this message in context: http://www.nabble.com/Problems-deploying-NetBeans-SynchronousSample-to-Apache-ODE-tp25132707p25133218.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Re: Problems deploying NetBeans SynchronousSample to Apache ODE

Posted by Tammo van Lessen <tv...@gmail.com>.
Hi,

you need to initialize the target variable before you can access a
subpath of it (as ODE can't guess that). In your example
$outputVar.resultType should be initialized with a <ns2:paramA/> element.

HTH,
  Tammo

kodeninja wrote:
> Howdy,
> 
> I'm trying to deploy the SynchronousSample sample BPEL project that comes
> with NetBeans 6.x to Apache ODE and facing some problems. Has anyone else
> tried it? My BPEL deploys fine but when I try to execute it using the SoapUI
> app, it throws the following Assignment Failure exception:
> 
> ERROR -  Assignment Fault:
> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=106,faultExplanation=No
> results for expression: {OXPath10Expression
> $outputVar.resultType/ns2:paramA} {org.apache.ode.bpel.runtime.ASSIGN}
> 
> I'm actually using the WSO2 BPS application (it internally wraps the Apache
> ODE 1.2 engine) here, but i guess the behavior would be the same even if I
> deploy directly to an ODE engine.
> 
> Here's the BPEL zip: 
> http://www.nabble.com/file/p25132707/SynchronousSample.zip
> SynchronousSample.zip 
> 
> Thanks,
> -Kodeninja


-- 
Tammo van Lessen - http://www.taval.de

Re: Problems deploying NetBeans SynchronousSample to Apache ODE

Posted by Alex Hepp <he...@web.de>.
Hi!

To me this looks like the same problems we were facing when deploying 
some processes. We were able to solve this by initializing the variables 
differently. It was mostly a namespace problem with complex data types. 
We chose to completely remove the namespace prefixes for the elements 
inside the variable element that the message is defined for, and then it 
was working fine.

I hope, this was somehow helpful!
Regards.
Alex

kodeninja schrieb:
> Howdy,
>
> I'm trying to deploy the SynchronousSample sample BPEL project that comes
> with NetBeans 6.x to Apache ODE and facing some problems. Has anyone else
> tried it? My BPEL deploys fine but when I try to execute it using the SoapUI
> app, it throws the following Assignment Failure exception:
>
> ERROR -  Assignment Fault:
> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=106,faultExplanation=No
> results for expression: {OXPath10Expression
> $outputVar.resultType/ns2:paramA} {org.apache.ode.bpel.runtime.ASSIGN}
>
> I'm actually using the WSO2 BPS application (it internally wraps the Apache
> ODE 1.2 engine) here, but i guess the behavior would be the same even if I
> deploy directly to an ODE engine.
>
> Here's the BPEL zip: 
> http://www.nabble.com/file/p25132707/SynchronousSample.zip
> SynchronousSample.zip 
>
> Thanks,
> -Kodeninja
>