You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Malisetti, Ramanjaneyulu" <Ra...@ca.com> on 2010/10/18 16:22:12 UTC

SDODataBinding annothation at interface level - 2.3.0

Hi,

      I have JAX-WS web service with two operations, one operation takes
one argument of type String and another operation takes one argument of
DataObject. When I am invoking operation that takes the String type, the
following exception is thrown. I think runtime applies SDODatabinding
for all  parameters, that should be the case. How to make SDODataBinding
applies to only to parameters of type DataObject?

 

 

Caused by: java.lang.IllegalArgumentException: argument type mismatch

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.apache.cxf.sdo.DataWriterImpl.write(DataWriterImpl.java:56)

      at org.apache.cxf.sdo.DataWriterImpl.write(DataWriterImpl.java:36)

      at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(
AbstractOutDatabindingInterceptor.java:119)

      at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInter
ceptor.java:68)

      at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
hain.java:247)

 

Regards

Raman


RE: SDODataBinding annothation at interface level - 2.3.0

Posted by "Malisetti, Ramanjaneyulu" <Ra...@ca.com>.
Thank you Dan for response. I'll try and get it reviewed. Also, I
observed one issue while initializing SDOContext.

Regards
Raman

-----Original Message-----
From: Daniel Kulp [mailto:dkulp@apache.org] 
Sent: Monday, October 18, 2010 11:01 PM
To: users@cxf.apache.org
Cc: Malisetti, Ramanjaneyulu
Subject: Re: SDODataBinding annothation at interface level - 2.3.0


 
At this point, this isn't supported.  Looking at the code in the SDO 
datawriter and readers, it calls into the loadObject/saveObject methods 
directly.  Thus, those calls would need to be updated to check for the
various 
non-SDO things and do something smart.    A patch would be appreciated.

Dan



On Monday 18 October 2010 10:22:12 am Malisetti, Ramanjaneyulu wrote:
> Hi,
> 
>       I have JAX-WS web service with two operations, one operation
takes
> one argument of type String and another operation takes one argument
of
> DataObject. When I am invoking operation that takes the String type,
the
> following exception is thrown. I think runtime applies SDODatabinding
> for all  parameters, that should be the case. How to make
SDODataBinding
> applies to only to parameters of type DataObject?
> 
> 
> 
> 
> 
> Caused by: java.lang.IllegalArgumentException: argument type mismatch
> 
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
>       at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> 
>       at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> 
>       at java.lang.reflect.Method.invoke(Method.java:597)
> 
>       at
org.apache.cxf.sdo.DataWriterImpl.write(DataWriterImpl.java:56)
> 
>       at
org.apache.cxf.sdo.DataWriterImpl.write(DataWriterImpl.java:36)
> 
>       at
>
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(
> AbstractOutDatabindingInterceptor.java:119)
> 
>       at
>
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInter
> ceptor.java:68)
> 
>       at
>
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
> hain.java:247)
> 
> 
> 
> Regards
> 
> Raman

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Re: SDODataBinding annothation at interface level - 2.3.0

Posted by Daniel Kulp <dk...@apache.org>.
 
At this point, this isn't supported.  Looking at the code in the SDO 
datawriter and readers, it calls into the loadObject/saveObject methods 
directly.  Thus, those calls would need to be updated to check for the various 
non-SDO things and do something smart.    A patch would be appreciated.

Dan



On Monday 18 October 2010 10:22:12 am Malisetti, Ramanjaneyulu wrote:
> Hi,
> 
>       I have JAX-WS web service with two operations, one operation takes
> one argument of type String and another operation takes one argument of
> DataObject. When I am invoking operation that takes the String type, the
> following exception is thrown. I think runtime applies SDODatabinding
> for all  parameters, that should be the case. How to make SDODataBinding
> applies to only to parameters of type DataObject?
> 
> 
> 
> 
> 
> Caused by: java.lang.IllegalArgumentException: argument type mismatch
> 
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> 
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> 
>       at java.lang.reflect.Method.invoke(Method.java:597)
> 
>       at org.apache.cxf.sdo.DataWriterImpl.write(DataWriterImpl.java:56)
> 
>       at org.apache.cxf.sdo.DataWriterImpl.write(DataWriterImpl.java:36)
> 
>       at
> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(
> AbstractOutDatabindingInterceptor.java:119)
> 
>       at
> org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInter
> ceptor.java:68)
> 
>       at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
> hain.java:247)
> 
> 
> 
> Regards
> 
> Raman

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog