[
https://issues.apache.org/jira/browse/TUSCANY-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665198#action_12665198
]
Dan Becker commented on TUSCANY-2754:
-------------------------------------
I could not recreate this in the 1.x branch. The
WsdlPortTypeDoesNotMatchTestCase in itest-validation shows how bad WSDL port
types are caught. Perhaps your SCA contribution is read, resolved, and built in
a different manner than this test case, if so, it would be good to see how your
code is doing this. Also perhaps you can try with the 1.x branch to see if the
problem still exists.
> NPE received when wsdlElement is incorrectly specified
> -------------------------------------------------------
>
> Key: TUSCANY-2754
> URL: https://issues.apache.org/jira/browse/TUSCANY-2754
> Project: Tuscany
> Issue Type: Bug
> Affects Versions: Java-SCA-1.3
> Environment: Tuscany 1.3.1
> Reporter: Lou Amodeo
> Assignee: Dan Becker
>
> When one inadvertently specifies an incorrect wsdlElement service name as
> part of the wsdl.port a NPE is thrown rather than a validation exception. It
> also appears that in general there is no validation occurring for the
> wsdlElment namespace, service, port, or binding names. Instead NPE
> exceptions occur in different locations making it difficult to diagnose the
> problem. I think the wsdlElement's attributes need to be validated with the
> appropriate error messages emitted to identify the corrections required.
>
> This particular error can reproduced by specifying a service in wsdl.port
> that does not refer to a service in the contributed wsdl.
> java.lang.NullPointerException
> at
> org.apache.tuscany.sca.binding.ws.wsdlgen.WSDLServiceGenerator.configureWSDLDefinition(WSDLServiceGenerator.java:247)
> at
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:277)
> at
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:172)
> at
> org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:55)
> at
> org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl.buildServiceBindings(ComponentServiceBindingBuilderImpl.java:66)
> at
> org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl.build(ComponentServiceBindingBuilderImpl.java:48)
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.