[jira] Commented: (TUSCANY-2033) java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is ignoring the namespace

2008-02-18 Thread clemens utschig (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=1257#action_1257
 ] 

clemens utschig commented on TUSCANY-2033:
--

changing the interface to interface.wsdl - does not help - still no recognition 
of the new namespace ..

Attached is the complete client testcase.

src dir contains amongst others Runner.java - the main entry class
and EmployeeServiceComponent the implementation.java guy ..

before compilation make sure the whole src/wsdl dir is in your classpath - and 
also the libs / classes are included from the /lib dir .. that should do it ..



 java interface exposed as service, annoted with 
 javax.xml.ws.RequestWrapper(...) is ignoring the namespace
 --

 Key: TUSCANY-2033
 URL: https://issues.apache.org/jira/browse/TUSCANY-2033
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Axis Binding Extension
Affects Versions: Java-SCA-1.0.1
Reporter: clemens utschig
Priority: Critical
 Fix For: Java-SCA-Next

 Attachments: EmpFlexFieldService.java, EmpFlexFieldService.wsdl


 I have a composite defined that uses an external referenced webservice which 
 provides SDOs
 ?xml version=1.0 encoding=UTF-8?
 composite xmlns=http://www.osoa.org/xmlns/sca/1.0;
targetNamespace=/model/common/
 
 xmlns:dbsdo=http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0;
 name=FlexEmployeeComposite xmlns:tns=/model/common/types/
 xmlns:types=/model/common/types/
 xmlns:errors=http://xmlns.oracle.com/adf/svc/errors/;
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
component name=FlexEmployeeServiceComponent
  implementation.java 
 class=com.oracle.soa.test.tuscany.impl.EmployeeServiceComponent/
  reference name=empFlexFieldService/
/component
   reference name=empFlexFieldService
   promote=FlexEmployeeServiceComponent/empFlexFieldService
  interface.java 
 interface=model.common.serviceinterface.EmpFlexFieldService/
  binding.ws 
 uri=http://localhost:1234/Application4710-Model-context-root/EmpFlexFieldService/
/reference
  /composite
 The java interface that is promoted as service interface / and reflects the 
 webservice endpoint, contains jaxws annotations for namespaces as below ..
 @javax.jws.soap.SOAPBinding(parameterStyle=javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED,
  
 style=javax.jws.soap.SOAPBinding.Style.DOCUMENT)
 @javax.jws.WebService(targetNamespace=/model/common/, 
 name=EmpFlexFieldService, 
 wsdlLocation=model/common/serviceinterface/EmpFlexFieldService.wsdl)
 @oracle.j2ee.ws.common.sdo.SchemaLocation(value=model/common/serviceinterface/EmpFlexFieldService.xsd)
 public interface EmpFlexFieldService {
 public static final String NAME = 
 new QName(/model/common/, EmpFlexFieldService).toString();
 @javax.jws.WebMethod(action=/model/common/getEmployees1, 
 operationName=getEmployees1)
 @javax.xml.ws.RequestWrapper(targetNamespace=/model/common/types/, 
 localName=getEmployees1)
 @javax.xml.ws.ResponseWrapper(targetNamespace=/model/common/types/, 
 localName=getEmployees1Response)
 @javax.jws.WebResult(name=result)
 DataObject 
 getEmployees1(@javax.jws.WebParam(mode=javax.jws.WebParam.Mode.IN, 
 name=empno)
 Integer empno) throws ServiceException;
 At runtime - axis generates the following soap message - which is derived 
 from the base targetNamespace
  ?xml version='1.0' encoding='UTF-8'?
  soapenv:Envelope 
  xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
  _ns_:getEmployees1 xmlns:_ns_=/model/common/
  empno xmlns=/model/common/1/empno
  /_ns_:getEmployees1
  /soapenv:Body
  /soapenv:Envelope
 obviously this is wrong - it should be ..
  soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  soap:Body xmlns:ns1=/model/common/types/
  ns1:getEmployees1
  ns1:empno/ns1:empno
  /ns1:getEmployees1
  /soap:Body
  /soap:Envelope

-- 
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]



[jira] Updated: (TUSCANY-2033) java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is ignoring the namespace

2008-02-18 Thread clemens utschig (JIRA)

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

clemens utschig updated TUSCANY-2033:
-

Attachment: SDOReferenceBinding.zip

the complete clientside testcase

 java interface exposed as service, annoted with 
 javax.xml.ws.RequestWrapper(...) is ignoring the namespace
 --

 Key: TUSCANY-2033
 URL: https://issues.apache.org/jira/browse/TUSCANY-2033
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Axis Binding Extension
Affects Versions: Java-SCA-1.0.1
Reporter: clemens utschig
Priority: Critical
 Fix For: Java-SCA-Next

 Attachments: EmpFlexFieldService.java, EmpFlexFieldService.wsdl, 
 SDOReferenceBinding.zip


 I have a composite defined that uses an external referenced webservice which 
 provides SDOs
 ?xml version=1.0 encoding=UTF-8?
 composite xmlns=http://www.osoa.org/xmlns/sca/1.0;
targetNamespace=/model/common/
 
 xmlns:dbsdo=http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0;
 name=FlexEmployeeComposite xmlns:tns=/model/common/types/
 xmlns:types=/model/common/types/
 xmlns:errors=http://xmlns.oracle.com/adf/svc/errors/;
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
component name=FlexEmployeeServiceComponent
  implementation.java 
 class=com.oracle.soa.test.tuscany.impl.EmployeeServiceComponent/
  reference name=empFlexFieldService/
/component
   reference name=empFlexFieldService
   promote=FlexEmployeeServiceComponent/empFlexFieldService
  interface.java 
 interface=model.common.serviceinterface.EmpFlexFieldService/
  binding.ws 
 uri=http://localhost:1234/Application4710-Model-context-root/EmpFlexFieldService/
/reference
  /composite
 The java interface that is promoted as service interface / and reflects the 
 webservice endpoint, contains jaxws annotations for namespaces as below ..
 @javax.jws.soap.SOAPBinding(parameterStyle=javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED,
  
 style=javax.jws.soap.SOAPBinding.Style.DOCUMENT)
 @javax.jws.WebService(targetNamespace=/model/common/, 
 name=EmpFlexFieldService, 
 wsdlLocation=model/common/serviceinterface/EmpFlexFieldService.wsdl)
 @oracle.j2ee.ws.common.sdo.SchemaLocation(value=model/common/serviceinterface/EmpFlexFieldService.xsd)
 public interface EmpFlexFieldService {
 public static final String NAME = 
 new QName(/model/common/, EmpFlexFieldService).toString();
 @javax.jws.WebMethod(action=/model/common/getEmployees1, 
 operationName=getEmployees1)
 @javax.xml.ws.RequestWrapper(targetNamespace=/model/common/types/, 
 localName=getEmployees1)
 @javax.xml.ws.ResponseWrapper(targetNamespace=/model/common/types/, 
 localName=getEmployees1Response)
 @javax.jws.WebResult(name=result)
 DataObject 
 getEmployees1(@javax.jws.WebParam(mode=javax.jws.WebParam.Mode.IN, 
 name=empno)
 Integer empno) throws ServiceException;
 At runtime - axis generates the following soap message - which is derived 
 from the base targetNamespace
  ?xml version='1.0' encoding='UTF-8'?
  soapenv:Envelope 
  xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
  _ns_:getEmployees1 xmlns:_ns_=/model/common/
  empno xmlns=/model/common/1/empno
  /_ns_:getEmployees1
  /soapenv:Body
  /soapenv:Envelope
 obviously this is wrong - it should be ..
  soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  soap:Body xmlns:ns1=/model/common/types/
  ns1:getEmployees1
  ns1:empno/ns1:empno
  /ns1:getEmployees1
  /soap:Body
  /soap:Envelope

-- 
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]



[jira] Updated: (TUSCANY-2049) wsdl/xml promotion of interface fails with NPE

2008-02-15 Thread clemens utschig (JIRA)

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

clemens utschig updated TUSCANY-2049:
-

Attachment: WSDLModelResolver.java

fix is attached (search for // cutschig - nodeMap )

 wsdl/xml promotion of interface fails with NPE
 --

 Key: TUSCANY-2049
 URL: https://issues.apache.org/jira/browse/TUSCANY-2049
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Core Runtime
Affects Versions: Java-SCA-1.1
Reporter: clemens utschig
Priority: Blocker
 Fix For: Java-SCA-1.2

 Attachments: WSDLModelResolver.java


   reference name=empFlexFieldService
  promote=FlexEmployeeServiceComponent/empFlexFieldService
 !-- interface.java 
 interface=model.common.serviceinterface.EmpFlexFieldService/ --
 interface.wsdl 
 interface=/model/common/#wsdl.interface(EmpFlexFieldService) / 
 binding.ws 
 uri=http://localhost:/Application4710-Model-context-root/EmpFlexFieldService/
   /reference
 Having the above wsdl interface reference, a nullpointer occurs in 
 org.apache.tuscany.sca.interfacedef.wsdl.xml.WSDLModelResolver - line 338 
 (nodeMap.getLength()) because nodeMap is null for an element with name 
 #document
 Null check fixes this

-- 
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]



[jira] Created: (TUSCANY-2033) java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is ignoring the namespace

2008-02-08 Thread clemens utschig (JIRA)
java interface exposed as service, annoted with 
javax.xml.ws.RequestWrapper(...) is ignoring the namespace
--

 Key: TUSCANY-2033
 URL: https://issues.apache.org/jira/browse/TUSCANY-2033
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Axis Binding Extension
Affects Versions: Java-SCA-1.0.1
Reporter: clemens utschig
Priority: Critical


I have a composite defined that uses an external referenced webservice which 
provides SDOs

?xml version=1.0 encoding=UTF-8?
composite xmlns=http://www.osoa.org/xmlns/sca/1.0;
   targetNamespace=/model/common/

xmlns:dbsdo=http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0;
name=FlexEmployeeComposite xmlns:tns=/model/common/types/
xmlns:types=/model/common/types/
xmlns:errors=http://xmlns.oracle.com/adf/svc/errors/;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
   component name=FlexEmployeeServiceComponent
 implementation.java 
class=com.oracle.soa.test.tuscany.impl.EmployeeServiceComponent/
 reference name=empFlexFieldService/
   /component
  reference name=empFlexFieldService
  promote=FlexEmployeeServiceComponent/empFlexFieldService
 interface.java 
interface=model.common.serviceinterface.EmpFlexFieldService/
 binding.ws 
uri=http://localhost:1234/Application4710-Model-context-root/EmpFlexFieldService/
   /reference
 /composite

The java interface that is promoted as service interface / and reflects the 
webservice endpoint, contains jaxws annotations for namespaces as below ..

@javax.jws.soap.SOAPBinding(parameterStyle=javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED,
 
style=javax.jws.soap.SOAPBinding.Style.DOCUMENT)
@javax.jws.WebService(targetNamespace=/model/common/, 
name=EmpFlexFieldService, 
wsdlLocation=model/common/serviceinterface/EmpFlexFieldService.wsdl)
@oracle.j2ee.ws.common.sdo.SchemaLocation(value=model/common/serviceinterface/EmpFlexFieldService.xsd)
public interface EmpFlexFieldService {
public static final String NAME = 
new QName(/model/common/, EmpFlexFieldService).toString();

@javax.jws.WebMethod(action=/model/common/getEmployees1, 
operationName=getEmployees1)
@javax.xml.ws.RequestWrapper(targetNamespace=/model/common/types/, 
localName=getEmployees1)
@javax.xml.ws.ResponseWrapper(targetNamespace=/model/common/types/, 
localName=getEmployees1Response)
@javax.jws.WebResult(name=result)
DataObject 
getEmployees1(@javax.jws.WebParam(mode=javax.jws.WebParam.Mode.IN, 
name=empno)
Integer empno) throws ServiceException;

At runtime - axis generates the following soap message - which is derived from 
the base targetNamespace

   ?xml version='1.0' encoding='UTF-8'?
   soapenv:Envelope 
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Body
   _ns_:getEmployees1 xmlns:_ns_=/model/common/
   empno xmlns=/model/common/1/empno
   /_ns_:getEmployees1
   /soapenv:Body
   /soapenv:Envelope

obviously this is wrong - it should be ..

 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
 soap:Body xmlns:ns1=/model/common/types/
 ns1:getEmployees1
 ns1:empno/ns1:empno
 /ns1:getEmployees1
 /soap:Body
 /soap:Envelope


-- 
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]



[jira] Updated: (TUSCANY-2033) java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is ignoring the namespace

2008-02-08 Thread clemens utschig (JIRA)

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

clemens utschig updated TUSCANY-2033:
-

Attachment: EmpFlexFieldService.java

the java interface that is promoted as service interface

 java interface exposed as service, annoted with 
 javax.xml.ws.RequestWrapper(...) is ignoring the namespace
 --

 Key: TUSCANY-2033
 URL: https://issues.apache.org/jira/browse/TUSCANY-2033
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Axis Binding Extension
Affects Versions: Java-SCA-1.0.1
Reporter: clemens utschig
Priority: Critical
 Attachments: EmpFlexFieldService.java, EmpFlexFieldService.wsdl


 I have a composite defined that uses an external referenced webservice which 
 provides SDOs
 ?xml version=1.0 encoding=UTF-8?
 composite xmlns=http://www.osoa.org/xmlns/sca/1.0;
targetNamespace=/model/common/
 
 xmlns:dbsdo=http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0;
 name=FlexEmployeeComposite xmlns:tns=/model/common/types/
 xmlns:types=/model/common/types/
 xmlns:errors=http://xmlns.oracle.com/adf/svc/errors/;
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
component name=FlexEmployeeServiceComponent
  implementation.java 
 class=com.oracle.soa.test.tuscany.impl.EmployeeServiceComponent/
  reference name=empFlexFieldService/
/component
   reference name=empFlexFieldService
   promote=FlexEmployeeServiceComponent/empFlexFieldService
  interface.java 
 interface=model.common.serviceinterface.EmpFlexFieldService/
  binding.ws 
 uri=http://localhost:1234/Application4710-Model-context-root/EmpFlexFieldService/
/reference
  /composite
 The java interface that is promoted as service interface / and reflects the 
 webservice endpoint, contains jaxws annotations for namespaces as below ..
 @javax.jws.soap.SOAPBinding(parameterStyle=javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED,
  
 style=javax.jws.soap.SOAPBinding.Style.DOCUMENT)
 @javax.jws.WebService(targetNamespace=/model/common/, 
 name=EmpFlexFieldService, 
 wsdlLocation=model/common/serviceinterface/EmpFlexFieldService.wsdl)
 @oracle.j2ee.ws.common.sdo.SchemaLocation(value=model/common/serviceinterface/EmpFlexFieldService.xsd)
 public interface EmpFlexFieldService {
 public static final String NAME = 
 new QName(/model/common/, EmpFlexFieldService).toString();
 @javax.jws.WebMethod(action=/model/common/getEmployees1, 
 operationName=getEmployees1)
 @javax.xml.ws.RequestWrapper(targetNamespace=/model/common/types/, 
 localName=getEmployees1)
 @javax.xml.ws.ResponseWrapper(targetNamespace=/model/common/types/, 
 localName=getEmployees1Response)
 @javax.jws.WebResult(name=result)
 DataObject 
 getEmployees1(@javax.jws.WebParam(mode=javax.jws.WebParam.Mode.IN, 
 name=empno)
 Integer empno) throws ServiceException;
 At runtime - axis generates the following soap message - which is derived 
 from the base targetNamespace
  ?xml version='1.0' encoding='UTF-8'?
  soapenv:Envelope 
  xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
  _ns_:getEmployees1 xmlns:_ns_=/model/common/
  empno xmlns=/model/common/1/empno
  /_ns_:getEmployees1
  /soapenv:Body
  /soapenv:Envelope
 obviously this is wrong - it should be ..
  soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  soap:Body xmlns:ns1=/model/common/types/
  ns1:getEmployees1
  ns1:empno/ns1:empno
  /ns1:getEmployees1
  /soap:Body
  /soap:Envelope

-- 
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]



[jira] Updated: (TUSCANY-2033) java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is ignoring the namespace

2008-02-08 Thread clemens utschig (JIRA)

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

clemens utschig updated TUSCANY-2033:
-

Attachment: EmpFlexFieldService.wsdl

the wsdl that represents the endpoint in the ws binding.

 java interface exposed as service, annoted with 
 javax.xml.ws.RequestWrapper(...) is ignoring the namespace
 --

 Key: TUSCANY-2033
 URL: https://issues.apache.org/jira/browse/TUSCANY-2033
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Axis Binding Extension
Affects Versions: Java-SCA-1.0.1
Reporter: clemens utschig
Priority: Critical
 Attachments: EmpFlexFieldService.java, EmpFlexFieldService.wsdl


 I have a composite defined that uses an external referenced webservice which 
 provides SDOs
 ?xml version=1.0 encoding=UTF-8?
 composite xmlns=http://www.osoa.org/xmlns/sca/1.0;
targetNamespace=/model/common/
 
 xmlns:dbsdo=http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0;
 name=FlexEmployeeComposite xmlns:tns=/model/common/types/
 xmlns:types=/model/common/types/
 xmlns:errors=http://xmlns.oracle.com/adf/svc/errors/;
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
component name=FlexEmployeeServiceComponent
  implementation.java 
 class=com.oracle.soa.test.tuscany.impl.EmployeeServiceComponent/
  reference name=empFlexFieldService/
/component
   reference name=empFlexFieldService
   promote=FlexEmployeeServiceComponent/empFlexFieldService
  interface.java 
 interface=model.common.serviceinterface.EmpFlexFieldService/
  binding.ws 
 uri=http://localhost:1234/Application4710-Model-context-root/EmpFlexFieldService/
/reference
  /composite
 The java interface that is promoted as service interface / and reflects the 
 webservice endpoint, contains jaxws annotations for namespaces as below ..
 @javax.jws.soap.SOAPBinding(parameterStyle=javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED,
  
 style=javax.jws.soap.SOAPBinding.Style.DOCUMENT)
 @javax.jws.WebService(targetNamespace=/model/common/, 
 name=EmpFlexFieldService, 
 wsdlLocation=model/common/serviceinterface/EmpFlexFieldService.wsdl)
 @oracle.j2ee.ws.common.sdo.SchemaLocation(value=model/common/serviceinterface/EmpFlexFieldService.xsd)
 public interface EmpFlexFieldService {
 public static final String NAME = 
 new QName(/model/common/, EmpFlexFieldService).toString();
 @javax.jws.WebMethod(action=/model/common/getEmployees1, 
 operationName=getEmployees1)
 @javax.xml.ws.RequestWrapper(targetNamespace=/model/common/types/, 
 localName=getEmployees1)
 @javax.xml.ws.ResponseWrapper(targetNamespace=/model/common/types/, 
 localName=getEmployees1Response)
 @javax.jws.WebResult(name=result)
 DataObject 
 getEmployees1(@javax.jws.WebParam(mode=javax.jws.WebParam.Mode.IN, 
 name=empno)
 Integer empno) throws ServiceException;
 At runtime - axis generates the following soap message - which is derived 
 from the base targetNamespace
  ?xml version='1.0' encoding='UTF-8'?
  soapenv:Envelope 
  xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
  _ns_:getEmployees1 xmlns:_ns_=/model/common/
  empno xmlns=/model/common/1/empno
  /_ns_:getEmployees1
  /soapenv:Body
  /soapenv:Envelope
 obviously this is wrong - it should be ..
  soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  soap:Body xmlns:ns1=/model/common/types/
  ns1:getEmployees1
  ns1:empno/ns1:empno
  /ns1:getEmployees1
  /soap:Body
  /soap:Envelope

-- 
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]



[jira] Updated: (TUSCANY-2034) NPE while namespace creation in

2008-02-08 Thread clemens utschig (JIRA)

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

clemens utschig updated TUSCANY-2034:
-

Attachment: Java2WSDLHelper.java

attached is the fixed version ..
line 196 - // cutschig - null check (nodename: #document value: null)


 NPE while namespace creation in 
 

 Key: TUSCANY-2034
 URL: https://issues.apache.org/jira/browse/TUSCANY-2034
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Axis Binding Extension
Affects Versions: Java-SCA-1.0.1
Reporter: clemens utschig
 Fix For: Java-SCA-1.1

 Attachments: Java2WSDLHelper.java


 when the wsdl is generated from a java interface, and the namespace pairs 
 generated - I get a nullpointer exception in my enviroment.
 Caused by: java.lang.NullPointerException
   at 
 org.apache.tuscany.sca.interfacedef.wsdl.java2wsdl.Java2WSDLHelper.promote(Java2WSDLHelper.java:196)
   at 
 org.apache.tuscany.sca.interfacedef.wsdl.java2wsdl.Java2WSDLHelper.readInlineSchemas(Java2WSDLHelper.java:236)
   at 
 org.apache.tuscany.sca.interfacedef.wsdl.java2wsdl.Java2WSDLHelper.createWSDLInterfaceContract(Java2WSDLHelper.java:145)
   at 
 org.apache.tuscany.sca.binding.ws.axis2.Axis2ReferenceBindingProvider.init(Axis2ReferenceBindingProvider.java:51)
   at 
 org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createReferenceBindingProvider(Axis2BindingProviderFactory.java:53)
   at 
 org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createReferenceBindingProvider(Axis2BindingProviderFactory.java:40)
   at 
 org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$LazyBindingProviderFactory.createReferenceBindingProvider(DefaultProviderFactoryExtensionPoint.java:190)
   at 
 org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.addReferenceBindingProvider(CompositeActivatorImpl.java:176)
   at 
 org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:133)
   at 
 org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:752)
 this happens when the nodeMap from  NamedNodeMap nodeMap = 
 root.getAttributes(); is null - and when the element.getNodeName == 
 #document - and hence has no attributes.
 adding a nullcheck fixes this ..

-- 
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]