[ 
https://issues.apache.org/jira/browse/TUSCANY-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Laws updated TUSCANY-1912:
--------------------------------

    Fix Version/s:     (was: Java-SCA-Next)
                   Java-SCA-1.1

Assign for fix in 1.1

> Promoted reference with binding.ws and callback causes null pointer
> -------------------------------------------------------------------
>
>                 Key: TUSCANY-1912
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1912
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.0
>         Environment: All
>            Reporter: Simon Laws
>             Fix For: Java-SCA-1.1
>
>
> In a binding.ws where client and server are running out of separate 
> composites changing the client composite from 
>  
>    <component name="MyClientComponent">
>         <implementation.java class="simplecallback.MyClientImpl" />        
>          <reference name="myService">
>             <interface.java interface="simplecallback.MyService"
>                 callbackInterface="simplecallback.MyServiceCallback" />
>             <binding.ws 
> wsdlElement="http://simplecallback#wsdl.port(MyServiceSoapService/MyServiceSoapPort)
> " />
>             <callback>
>                 <binding.ws wsdlElement="
> http://simplecallback#wsdl.port(MyServiceCallbackSoapService/MyServiceCallbackSoapPort)"
>  />
>             </callback>
>         </reference>
>     </component>
> to
>     <component name="MyClientComponent">
>         <implementation.java class="simplecallback.MyClientImpl" />       
>          <reference name="myService"/>
>     </component>
>    
>          <reference name="MyService" promote="MyClientComponent/myService">
>             <interface.java interface="simplecallback.MyService"
>                 callbackInterface="simplecallback.MyServiceCallback" />
>             <binding.ws 
> wsdlElement="http://simplecallback#wsdl.port(MyServiceSoapService/MyServiceSoapPort)"
>  />
>             <callback>
>                 <binding.ws 
> wsdlElement="http://simplecallback#wsdl.port(MyServiceCallbackSoapService/MyServiceCallbackSoapPort)
>  " />
>             </callback>
>         </reference> 
> I.e, I've turned the component reference into a promoted reference. Causes
> java.lang.NullPointerException
>         at 
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.createOpe
> rationClient(Axis2BindingInvoker.java:152)
>         at 
> org.apache.tuscany.sca.binding.ws.axis2.Axis2OneWayBindingInvoker.inv
> okeTarget(Axis2OneWayBindingInvoker.java :45)
>         at 
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Ax
> is2BindingInvoker.java:75)
>         at 
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterc
> eptor.invoke(DataTransformationInterceptor.java :74)
>         at 
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:233)
>         at 
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java :130)
>         at $Proxy7.someMethod(Unknown Source)
>         at simplecallback.MyClientImpl.aClientMethod(MyClientImpl.java:42)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to