You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Lou Amodeo (JIRA)" <de...@tuscany.apache.org> on 2008/12/15 21:17:44 UTC

[jira] Created: (TUSCANY-2754) NPE received when wsdlElmenet is incorrectly specified

NPE received when wsdlElmenet  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.


[jira] Updated: (TUSCANY-2754) NPE received when wsdlElement is incorrectly specified

Posted by "Lou Amodeo (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lou Amodeo updated TUSCANY-2754:
--------------------------------

    Summary: NPE received when wsdlElement  is incorrectly specified  (was: NPE received when wsdlElmenet  is incorrectly specified)

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


[jira] Commented: (TUSCANY-2754) NPE received when wsdlElement is incorrectly specified

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
    [ 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.


[jira] Assigned: (TUSCANY-2754) NPE received when wsdlElement is incorrectly specified

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Becker reassigned TUSCANY-2754:
-----------------------------------

    Assignee: Dan Becker

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


[jira] Resolved: (TUSCANY-2754) NPE received when wsdlElement is incorrectly specified

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Becker resolved TUSCANY-2754.
---------------------------------

    Resolution: Invalid

Invalid port is flagged by Tuscany. Caller program ignores flag and continues use of model to build WSDL.

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


[jira] Commented: (TUSCANY-2754) NPE received when wsdlElement is incorrectly specified

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
    [ 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.


[jira] Commented: (TUSCANY-2754) NPE received when wsdlElement is incorrectly specified

Posted by "Dan Becker (JIRA)" <de...@tuscany.apache.org>.
    [ 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.