[ 
https://issues.apache.org/jira/browse/TUSCANY-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663017#action_12663017
 ] 

Dan Becker commented on TUSCANY-2754:
-------------------------------------

Hello. Is there a basic WSDL that you could attach that demonstrates the 
problem?

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

Reply via email to