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

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

It looks like this is a case of a particular incorrect use of Tuscany. Tuscany 
is reporting the WSDL error, however the calling program (WebSphere) is 
ignoring the error, and using the incorrect model to attempt to build and 
generate WSDL anyway. See the 2nd, 4th, 7th, and 8th line in this log:

[1/23/09 8:52:34:328 EST] 0000001e servlet       I 
com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [isclite] 
[/ibm/console] [/com.ibm.ws.console.blamanagement/pagingLayoutWithoutForm.jsp]: 
Initialization successful.
[1/23/09 8:52:40:031 EST] 00000022 WebServiceBin W 
org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor  The 
#wsdl.service({http://components.ws.bindings.sca.test}BackEndComponentServiceBad)
 does not match with the WSDL Definitions
[1/23/09 8:52:40:218 EST] 00000022 CompositeBind W   Multiple bindings with the 
same name for a service: Service = BackEndComponentService Binding name = 
BackEndComponentService
[1/23/09 8:52:40:343 EST] 00000022 WSDLServiceGe E   PortType 
{http://components.ws.bindings.sca.test/}BackEndComponentService in 
BackEndComp/BackEndComponentService was not found
[1/23/09 8:52:40:343 EST] 00000022 FfdcProvider  I 
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted 
on 
C:\WASSCAGA\AppServer\profiles\SOAAppSrv01\logs\ffdc\server1_597b597b_09.01.23_08.52.40.3437845428562332705775.txt
 com.ibm.ws.soa.sca.contribution.monitor.impl.WASLoggingMonitorImpl.problem 115
[1/23/09 8:52:40:390 EST] 00000022 FfdcProvider  I 
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted 
on 
C:\WASSCAGA\AppServer\profiles\SOAAppSrv01\logs\ffdc\server1_597b597b_09.01.23_08.52.40.390364647672699910925.txt
 org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator 190
[1/23/09 8:52:40:390 EST] 00000022 BindingWSDLGe W   Exception while generating 
WSDL for BackEndComp/BackEndComponentService
[1/23/09 8:52:40:390 EST] 00000022 BindingWSDLGe E   Exception thrown was: 
java.lang.NullPointerException

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

Reply via email to