You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Ignacio Silva-Lepe <is...@gmail.com> on 2006/12/06 19:59:14 UTC

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

Re: UnsupportedOperationException on conversation sample, databinding issue?

Posted by Ignacio Silva-Lepe <is...@gmail.com>.
You could check for operation.isNonBlocking and
operation.getCallbackName != null.


On 12/6/06, Raymond Feng <en...@gmail.com> 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" <is...@gmail.com>
> To: "Tuscany Dev List" <tu...@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: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>

Re: UnsupportedOperationException on conversation sample, databinding issue?

Posted by Raymond Feng <en...@gmail.com>.
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" <is...@gmail.com>
To: "Tuscany Dev List" <tu...@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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org