You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (JIRA)" <tu...@ws.apache.org> on 2008/04/18 12:02:21 UTC
[jira] Created: (TUSCANY-2242) Incorrent port name in wsdlElement
leads to NPE
Incorrent port name in wsdlElement leads to NPE
-----------------------------------------------
Key: TUSCANY-2242
URL: https://issues.apache.org/jira/browse/TUSCANY-2242
Project: Tuscany
Issue Type: Bug
Components: Java SCA Axis Binding Extension
Affects Versions: Java-SCA-1.1
Environment: WinXP SP2, IBM JDK 1.5
Reporter: Simon Laws
Priority: Minor
Fix For: Java-SCA-Next
Can be reproduced by changing the SCDL in sample/helloworld-ws-reference to the following
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://helloworld"
xmlns:hw="http://helloworld"
name="helloworldwsclient">
<!-- A component with an embedded reference definition connecting to an external webservice
The wsdl interface for the reference is derived from the information specified by the 'wsdlElement'
-->
<component name="HelloTuscanyServiceComponent">
<implementation.java class="helloworld.HelloWorldServiceComponent"/>
<reference name="helloWorldService">
<binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/NonExistentPort)"/>
</reference>
</component>
<!-- A component with a reference promoted as a composite reference -->
<component name="HelloWorldServiceComponent">
<implementation.java class="helloworld.HelloWorldServiceComponent"/>
</component>
<reference name="HelloWorldService" promote="HelloWorldServiceComponent/helloWorldService">
<interface.java interface="helloworld.HelloWorldService" />
<binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
</reference>
</composite>
Notice the "NonExistentPort" port name. Running the nit test for ht sample leads to
Caused by: java.lang.NullPointerException
at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:292)
at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:1)
at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:252)
at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:362)
at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:845)
at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:1)
at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:139)
at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:1)
at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:86)
at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:485)
at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:369)
at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165)
at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291)
at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171)
at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:243)
... 22 more
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-2242) Incorrent port name in wsdlElement
leads to NPE
Posted by "Ramkumar Ramalingam (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramkumar Ramalingam updated TUSCANY-2242:
-----------------------------------------
Patch Info: [Patch Available]
NOTE: Please apply the provided patch after the fixes for TUSCANY-2347 is committed.
> Incorrent port name in wsdlElement leads to NPE
> -----------------------------------------------
>
> Key: TUSCANY-2242
> URL: https://issues.apache.org/jira/browse/TUSCANY-2242
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-1.1
> Environment: WinXP SP2, IBM JDK 1.5
> Reporter: Simon Laws
> Assignee: Ramkumar Ramalingam
> Priority: Minor
> Fix For: Java-SCA-Next
>
> Attachments: TUSCANY-2242.patch
>
>
> Can be reproduced by changing the SCDL in sample/helloworld-ws-reference to the following
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> targetNamespace="http://helloworld"
> xmlns:hw="http://helloworld"
> name="helloworldwsclient">
>
> <!-- A component with an embedded reference definition connecting to an external webservice
> The wsdl interface for the reference is derived from the information specified by the 'wsdlElement'
> -->
> <component name="HelloTuscanyServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> <reference name="helloWorldService">
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/NonExistentPort)"/>
> </reference>
> </component>
>
> <!-- A component with a reference promoted as a composite reference -->
> <component name="HelloWorldServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> </component>
>
> <reference name="HelloWorldService" promote="HelloWorldServiceComponent/helloWorldService">
> <interface.java interface="helloworld.HelloWorldService" />
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
> </reference>
> </composite>
> Notice the "NonExistentPort" port name. Running the nit test for ht sample leads to
> Caused by: java.lang.NullPointerException
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:292)
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:252)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:362)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:845)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:139)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:86)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:485)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:369)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
> at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:243)
> ... 22 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-2242) Incorrent port name in wsdlElement
leads to NPE
Posted by "Ramkumar Ramalingam (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramkumar Ramalingam updated TUSCANY-2242:
-----------------------------------------
Attachment: TUSCANY-2242.patch
> Incorrent port name in wsdlElement leads to NPE
> -----------------------------------------------
>
> Key: TUSCANY-2242
> URL: https://issues.apache.org/jira/browse/TUSCANY-2242
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-1.1
> Environment: WinXP SP2, IBM JDK 1.5
> Reporter: Simon Laws
> Assignee: Ramkumar Ramalingam
> Priority: Minor
> Fix For: Java-SCA-Next
>
> Attachments: TUSCANY-2242.patch
>
>
> Can be reproduced by changing the SCDL in sample/helloworld-ws-reference to the following
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> targetNamespace="http://helloworld"
> xmlns:hw="http://helloworld"
> name="helloworldwsclient">
>
> <!-- A component with an embedded reference definition connecting to an external webservice
> The wsdl interface for the reference is derived from the information specified by the 'wsdlElement'
> -->
> <component name="HelloTuscanyServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> <reference name="helloWorldService">
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/NonExistentPort)"/>
> </reference>
> </component>
>
> <!-- A component with a reference promoted as a composite reference -->
> <component name="HelloWorldServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> </component>
>
> <reference name="HelloWorldService" promote="HelloWorldServiceComponent/helloWorldService">
> <interface.java interface="helloworld.HelloWorldService" />
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
> </reference>
> </composite>
> Notice the "NonExistentPort" port name. Running the nit test for ht sample leads to
> Caused by: java.lang.NullPointerException
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:292)
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:252)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:362)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:845)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:139)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:86)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:485)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:369)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
> at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:243)
> ... 22 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-2242) Incorrent port name in wsdlElement
leads to NPE
Posted by "Ramkumar Ramalingam (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramkumar Ramalingam updated TUSCANY-2242:
-----------------------------------------
Patch Info: [Patch Available]
> Incorrent port name in wsdlElement leads to NPE
> -----------------------------------------------
>
> Key: TUSCANY-2242
> URL: https://issues.apache.org/jira/browse/TUSCANY-2242
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-1.1
> Environment: WinXP SP2, IBM JDK 1.5
> Reporter: Simon Laws
> Assignee: Ramkumar Ramalingam
> Priority: Minor
> Fix For: Java-SCA-Next
>
> Attachments: TUSCANY-2242.patch
>
>
> Can be reproduced by changing the SCDL in sample/helloworld-ws-reference to the following
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> targetNamespace="http://helloworld"
> xmlns:hw="http://helloworld"
> name="helloworldwsclient">
>
> <!-- A component with an embedded reference definition connecting to an external webservice
> The wsdl interface for the reference is derived from the information specified by the 'wsdlElement'
> -->
> <component name="HelloTuscanyServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> <reference name="helloWorldService">
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/NonExistentPort)"/>
> </reference>
> </component>
>
> <!-- A component with a reference promoted as a composite reference -->
> <component name="HelloWorldServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> </component>
>
> <reference name="HelloWorldService" promote="HelloWorldServiceComponent/helloWorldService">
> <interface.java interface="helloworld.HelloWorldService" />
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
> </reference>
> </composite>
> Notice the "NonExistentPort" port name. Running the nit test for ht sample leads to
> Caused by: java.lang.NullPointerException
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:292)
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:252)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:362)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:845)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:139)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:86)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:485)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:369)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
> at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:243)
> ... 22 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-2242) Incorrent port name in wsdlElement
leads to NPE
Posted by "Ramkumar Ramalingam (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramkumar Ramalingam updated TUSCANY-2242:
-----------------------------------------
Attachment: (was: TUSCANY-2242.patch)
> Incorrent port name in wsdlElement leads to NPE
> -----------------------------------------------
>
> Key: TUSCANY-2242
> URL: https://issues.apache.org/jira/browse/TUSCANY-2242
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-1.1
> Environment: WinXP SP2, IBM JDK 1.5
> Reporter: Simon Laws
> Assignee: Ramkumar Ramalingam
> Priority: Minor
> Fix For: Java-SCA-Next
>
>
> Can be reproduced by changing the SCDL in sample/helloworld-ws-reference to the following
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> targetNamespace="http://helloworld"
> xmlns:hw="http://helloworld"
> name="helloworldwsclient">
>
> <!-- A component with an embedded reference definition connecting to an external webservice
> The wsdl interface for the reference is derived from the information specified by the 'wsdlElement'
> -->
> <component name="HelloTuscanyServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> <reference name="helloWorldService">
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/NonExistentPort)"/>
> </reference>
> </component>
>
> <!-- A component with a reference promoted as a composite reference -->
> <component name="HelloWorldServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> </component>
>
> <reference name="HelloWorldService" promote="HelloWorldServiceComponent/helloWorldService">
> <interface.java interface="helloworld.HelloWorldService" />
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
> </reference>
> </composite>
> Notice the "NonExistentPort" port name. Running the nit test for ht sample leads to
> Caused by: java.lang.NullPointerException
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:292)
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:252)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:362)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:845)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:139)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:86)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:485)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:369)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
> at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:243)
> ... 22 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2242) Incorrent port name in wsdlElement
leads to NPE
Posted by "Ramkumar Ramalingam (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603793#action_12603793 ]
Ramkumar Ramalingam commented on TUSCANY-2242:
----------------------------------------------
Hi Simon,
I have a fix for this issue, this one looks similar to the issue reported in TUSCANY-2319. This fix would stop the NPE being thrown from WebServiceBindingProcessor.java and show a warning message saying that the #wsdl.port does not match with the WSDL Definitions.
I would be submitting a patch to this JIRA, once the patches for TUSCANY-2347 is applied.
Thanks,
Ramkumar R
> Incorrent port name in wsdlElement leads to NPE
> -----------------------------------------------
>
> Key: TUSCANY-2242
> URL: https://issues.apache.org/jira/browse/TUSCANY-2242
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-1.1
> Environment: WinXP SP2, IBM JDK 1.5
> Reporter: Simon Laws
> Assignee: Ramkumar Ramalingam
> Priority: Minor
> Fix For: Java-SCA-Next
>
>
> Can be reproduced by changing the SCDL in sample/helloworld-ws-reference to the following
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> targetNamespace="http://helloworld"
> xmlns:hw="http://helloworld"
> name="helloworldwsclient">
>
> <!-- A component with an embedded reference definition connecting to an external webservice
> The wsdl interface for the reference is derived from the information specified by the 'wsdlElement'
> -->
> <component name="HelloTuscanyServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> <reference name="helloWorldService">
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/NonExistentPort)"/>
> </reference>
> </component>
>
> <!-- A component with a reference promoted as a composite reference -->
> <component name="HelloWorldServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> </component>
>
> <reference name="HelloWorldService" promote="HelloWorldServiceComponent/helloWorldService">
> <interface.java interface="helloworld.HelloWorldService" />
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
> </reference>
> </composite>
> Notice the "NonExistentPort" port name. Running the nit test for ht sample leads to
> Caused by: java.lang.NullPointerException
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:292)
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:252)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:362)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:845)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:139)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:86)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:485)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:369)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
> at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:243)
> ... 22 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-2242) Incorrent port name in wsdlElement
leads to NPE
Posted by "Ramkumar Ramalingam (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramkumar Ramalingam updated TUSCANY-2242:
-----------------------------------------
Attachment: TUSCANY-2242.patch
> Incorrent port name in wsdlElement leads to NPE
> -----------------------------------------------
>
> Key: TUSCANY-2242
> URL: https://issues.apache.org/jira/browse/TUSCANY-2242
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-1.1
> Environment: WinXP SP2, IBM JDK 1.5
> Reporter: Simon Laws
> Assignee: Ramkumar Ramalingam
> Priority: Minor
> Fix For: Java-SCA-Next
>
> Attachments: TUSCANY-2242.patch
>
>
> Can be reproduced by changing the SCDL in sample/helloworld-ws-reference to the following
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> targetNamespace="http://helloworld"
> xmlns:hw="http://helloworld"
> name="helloworldwsclient">
>
> <!-- A component with an embedded reference definition connecting to an external webservice
> The wsdl interface for the reference is derived from the information specified by the 'wsdlElement'
> -->
> <component name="HelloTuscanyServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> <reference name="helloWorldService">
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/NonExistentPort)"/>
> </reference>
> </component>
>
> <!-- A component with a reference promoted as a composite reference -->
> <component name="HelloWorldServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> </component>
>
> <reference name="HelloWorldService" promote="HelloWorldServiceComponent/helloWorldService">
> <interface.java interface="helloworld.HelloWorldService" />
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
> </reference>
> </composite>
> Notice the "NonExistentPort" port name. Running the nit test for ht sample leads to
> Caused by: java.lang.NullPointerException
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:292)
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:252)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:362)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:845)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:139)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:86)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:485)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:369)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
> at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:243)
> ... 22 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (TUSCANY-2242) Incorrent port name in wsdlElement
leads to NPE
Posted by "Ramkumar Ramalingam (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramkumar Ramalingam reassigned TUSCANY-2242:
--------------------------------------------
Assignee: Ramkumar Ramalingam
> Incorrent port name in wsdlElement leads to NPE
> -----------------------------------------------
>
> Key: TUSCANY-2242
> URL: https://issues.apache.org/jira/browse/TUSCANY-2242
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-1.1
> Environment: WinXP SP2, IBM JDK 1.5
> Reporter: Simon Laws
> Assignee: Ramkumar Ramalingam
> Priority: Minor
> Fix For: Java-SCA-Next
>
>
> Can be reproduced by changing the SCDL in sample/helloworld-ws-reference to the following
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> targetNamespace="http://helloworld"
> xmlns:hw="http://helloworld"
> name="helloworldwsclient">
>
> <!-- A component with an embedded reference definition connecting to an external webservice
> The wsdl interface for the reference is derived from the information specified by the 'wsdlElement'
> -->
> <component name="HelloTuscanyServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> <reference name="helloWorldService">
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/NonExistentPort)"/>
> </reference>
> </component>
>
> <!-- A component with a reference promoted as a composite reference -->
> <component name="HelloWorldServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> </component>
>
> <reference name="HelloWorldService" promote="HelloWorldServiceComponent/helloWorldService">
> <interface.java interface="helloworld.HelloWorldService" />
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
> </reference>
> </composite>
> Notice the "NonExistentPort" port name. Running the nit test for ht sample leads to
> Caused by: java.lang.NullPointerException
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:292)
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:252)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:362)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:845)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:139)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:86)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:485)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:369)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
> at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:243)
> ... 22 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-2242) Incorrent port name in wsdlElement
leads to NPE
Posted by "Ramkumar Ramalingam (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramkumar Ramalingam updated TUSCANY-2242:
-----------------------------------------
Patch Info: (was: [Patch Available])
I have removed the patch just to ensure that the complete build does not throw any issue. I had a bad experience recently with TUSCANY-2347 because of the same. Will be submitting the patch once i am sure that everything goes fine.
Thanks,
Ramkumar R
> Incorrent port name in wsdlElement leads to NPE
> -----------------------------------------------
>
> Key: TUSCANY-2242
> URL: https://issues.apache.org/jira/browse/TUSCANY-2242
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-1.1
> Environment: WinXP SP2, IBM JDK 1.5
> Reporter: Simon Laws
> Assignee: Ramkumar Ramalingam
> Priority: Minor
> Fix For: Java-SCA-Next
>
>
> Can be reproduced by changing the SCDL in sample/helloworld-ws-reference to the following
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> targetNamespace="http://helloworld"
> xmlns:hw="http://helloworld"
> name="helloworldwsclient">
>
> <!-- A component with an embedded reference definition connecting to an external webservice
> The wsdl interface for the reference is derived from the information specified by the 'wsdlElement'
> -->
> <component name="HelloTuscanyServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> <reference name="helloWorldService">
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/NonExistentPort)"/>
> </reference>
> </component>
>
> <!-- A component with a reference promoted as a composite reference -->
> <component name="HelloWorldServiceComponent">
> <implementation.java class="helloworld.HelloWorldServiceComponent"/>
> </component>
>
> <reference name="HelloWorldService" promote="HelloWorldServiceComponent/helloWorldService">
> <interface.java interface="helloworld.HelloWorldService" />
> <binding.ws wsdlElement="http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
> </reference>
> </composite>
> Notice the "NonExistentPort" port name. Running the nit test for ht sample leads to
> Caused by: java.lang.NullPointerException
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:292)
> at org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:252)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:362)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:845)
> at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:139)
> at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:1)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:86)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:485)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:369)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171)
> at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
> at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:243)
> ... 22 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.