You could check for operation.isNonBlocking and
operation.getCallbackName != null.


On 12/6/06, Raymond Feng <[EMAIL PROTECTED]> wrote:

Hi,

We used to have a shortcut for null value to by pass data transformation
which had caused problems in document-literal wrapped WSDL operations with
empty input or output. With the fixes, we try to set the null value back
even it's not changed and that's why you got the exception.

What's the best way to test if the operation is one-way? I can use it to
not
reset the body. Or as a workaround, I can test if the value hasn't been
changed, then we don't call the Message.setBody().

Thanks,
Raymond

----- Original Message -----
From: "Ignacio Silva-Lepe" <[EMAIL PROTECTED]>
To: "Tuscany Dev List" <tuscany-dev@ws.apache.org>
Sent: Wednesday, December 06, 2006 10:59 AM
Subject: UnsupportedOperationException on conversation sample, databinding
issue?


> After an update that picks up some databinding changes, I am getting the
> following error on the local conversation sample, which used to be
> working.
> Notice that the operation being invoked is annotated @OneWay and so
> it has no return value, which is why the ImmutableMessage is being used.
> I have updated to level r483175.
>
> Running loanappconversation.LoanAppConversationTestCase
> Applied: Loan application: [Customer: John Doe, loan amount: 1000.0],
> term:
> 0, s
> tatus: open
> Loan approved: false
> java.lang.UnsupportedOperationException
>        at
> org.apache.tuscany.core.wire.NonBlockingBridgingInterceptor$Immutable
> Message.setBody(NonBlockingBridgingInterceptor.java:131)
>        at
> org.apache.tuscany.core.databinding.impl.DataBindingInteceptor.invoke
> (DataBindingInteceptor.java:88)
>        at
> org.apache.tuscany.spi.wire.AbstractOutboundInvocationHandler.invoke(
> AbstractOutboundInvocationHandler.java:91)
>        at
> org.apache.tuscany.core.wire.jdk.JDKOutboundInvocationHandler.invoke(
> JDKOutboundInvocationHandler.java:149)
>        at $Proxy20.cancelApplication(Unknown Source)
>        at
> loanappconversation.LoanClientImpl.cancelLoan(LoanClientImpl.java
> :55)
>
>        at loanappconversation.LoanAppConversationTestCase.test
> (LoanAppConversat
>


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


Reply via email to