axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Poetter (JIRA)" <j...@apache.org>
Subject [jira] Closed: (AXIS2-3976) WSDL11ToAxisServiceBuilder: WS-Policy-Processing with neethi: RuntimeException: Incorrect inclusion value: -1, NullPointerException
Date Thu, 21 Aug 2008 07:36:45 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Poetter closed AXIS2-3976.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4

Replacing http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient
by the older http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient
does indeed solve the issue. Thanks a lot.

> WSDL11ToAxisServiceBuilder: WS-Policy-Processing with neethi: RuntimeException: Incorrect
inclusion value: -1, NullPointerException
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3976
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3976
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4
>         Environment: Win32 (WinXP EN)
>            Reporter: Thomas Poetter
>            Assignee: Nandana Mihindukulasooriya
>            Priority: Critical
>             Fix For: 1.4
>
>   Original Estimate: 8h
>  Remaining Estimate: 8h
>
> This creates the following error messages appear using a non-trivial WSDL file like that
from here: http://www.agileskills2.org/DWSAA/source.zip
> C:\Program Files\Java\axis2-1.4\bin>wsdl2java.bat -uri C:\AIS\AISNewlyModeledSecureClientService\wsdl-schemata\AccountInformation10-acc-ws-policy-local-files.wsdl
-p com.XXX.ais.AISNewlyModeledSecureClientService.generated -d xmlbeans -o C:\AIS\Wsdl2java_Test
> Using AXIS2_HOME:   C:\Program Files\Java\axis2-1.4
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.5.0_15
> Retrieving document at 'C:\AIS\AISNewlyModeledSecureClientService\wsdl-schemata\AccountInformation10-acc-ws-policy-local-files.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/InterActive-core-v1.0-local-files.xsd',
relative to 'file:/C:/AIS/AISNewlyModeledSecureClientService/wsdl-schemata/AccountInformation10-acc-ws-policy-local-files.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/xenc-schema-local-files.xsd', relative
to 'file:/C:/AIS/schemata/InterActive-core-v1.0-local-files.xsd'.
> Retrieving schema at 'file:///C:/AIS/schemata/xmldsig-core-schema.xsd', relative to 'file:/C:/AIS/schemata/xenc-schema-local-files.xsd'.
> Retrieving schema at 'file:///C:/AIS/schemata/InterActive-accountinformation-v1.0.xsd',
relative to 'file:/C:/AIS/AISNewlyModeledSecureClientService/wsdl-schemata/AccountInformation10-acc-ws-policy-local-files.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/pain.001.001.01.xsd', relative to 'file:/C:/AIS/AISNewlyModeledSecureClientService/wsdl-schemata/AccountInformation10-acc-ws-policy-local-files.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/InterActive-common-v1.0.xsd', relative
to 'file:/C:/AIS/AISNewlyModeledSecureClientService/wsdl-schemata/AccountInformation10-acc-ws-policy-local-files.wsdl'.
> java.lang.RuntimeException: Incorrect inclusion value: -1
>         at org.apache.ws.secpolicy.model.Token.setInclusion(Token.java:56)
>         at org.apache.ws.secpolicy11.builders.UsernameTokenBuilder.build(UsernameTokenBuilder.java:44)
>         at org.apache.neethi.AssertionBuilderFactory.build(AssertionBuilderFactory.java:99)
>         at org.apache.neethi.PolicyEngine.processOperationElement(PolicyEngine.java:225)
>         at org.apache.neethi.PolicyEngine.getPolicyOperator(PolicyEngine.java:154)
>         at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:126)
>         at org.apache.ws.secpolicy11.builders.SupportingTokensBuilder.build(SupportingTokensBuilder.java:54)
>         at org.apache.neethi.AssertionBuilderFactory.build(AssertionBuilderFactory.java:99)
>         at org.apache.neethi.PolicyEngine.processOperationElement(PolicyEngine.java:225)
>         at org.apache.neethi.PolicyEngine.getPolicyOperator(PolicyEngine.java:154)
>         at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:126)
>         at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:83)
>         at org.apache.axis2.util.PolicyUtil.getPolicyComponent(PolicyUtil.java:182)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder
> .java:2814)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder
> .java:2792)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:364)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilde
> r.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> [ERROR]
> java.lang.NullPointerException
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder
> .java:2816)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder
> .java:2792)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:364)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilde
> r.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.AxisFault
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:397)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilde
> r.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         ... 2 more
> Caused by: java.lang.NullPointerException
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder
> .java:2816)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder
> .java:2792)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:364)
>         ... 4 more
> C:\Program Files\Java\axis2-1.4\bin>wsdl2java.bat -uri C:\AIS\AISNewlyModeledSecureClientService\wsdl-schemata\AccountInformation10-acc-ws-policy-local-files4.wsdl
-p com.XXX.ais.AISNewlyModeledSecureClientService.generated -d xmlbeans -ss -sd -o C:\AIS\Wsdl2java_Test
> Using AXIS2_HOME:   C:\Program Files\Java\axis2-1.4
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.5.0_15
> Retrieving document at 'C:\AIS\AISNewlyModeledSecureClientService\wsdl-schemata\AccountInformation10-acc-ws-policy-local
> -files4.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/InterActive-core-v1.0-local-files.xsd',
relative to 'file:/C:/AIS/AISNewlyModeledSecureClientService/wsdl-schemata/AccountInformation10-acc-ws-policy-local-files4.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/xenc-schema-local-files.xsd', relative
to 'file:/C:/AIS/schemata/InterActive-core-v1.0-local-files.xsd'.
> Retrieving schema at 'file:///C:/AIS/schemata/xmldsig-core-schema.xsd', relative to 'file:/C:/AIS/schemata/xenc-schema-local-files.xsd'.
> Retrieving schema at 'file:///C:/AIS/schemata/InterActive-accountinformation-v1.0.xsd',
relative to 'file:/C:/AIS/AISNewlyModeledSecureClientService/wsdl-schemata/AccountInformation10-acc-ws-policy-local-files4.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/pain.001.001.01.xsd', relative to 'file:/C:/AIS/AISNewlyModeledSecureClientService/wsdl-schemata/AccountInformation10-acc-ws-policy-local-files4.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/InterActive-common-v1.0.xsd', relative
to 'file:/C:/AIS/AISNewlyModeledSecureClientService/wsdl-schemata/AccountInformation10-acc-ws-policy-local-files4.wsdl'.
> java.lang.RuntimeException: Incorrect inclusion value: -1
>         at org.apache.ws.secpolicy.model.Token.setInclusion(Token.java:56)
>         at org.apache.ws.secpolicy11.builders.UsernameTokenBuilder.build(UsernameTokenBuilder.java:44)
>         at org.apache.neethi.AssertionBuilderFactory.build(AssertionBuilderFactory.java:99)
>         at org.apache.neethi.PolicyEngine.processOperationElement(PolicyEngine.java:225)
>         at org.apache.neethi.PolicyEngine.getPolicyOperator(PolicyEngine.java:154)
>         at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:126)
>         at org.apache.ws.secpolicy11.builders.SupportingTokensBuilder.build(SupportingTokensBuilder.java:54)
>         at org.apache.neethi.AssertionBuilderFactory.build(AssertionBuilderFactory.java:99)
>         at org.apache.neethi.PolicyEngine.processOperationElement(PolicyEngine.java:225)
>         at org.apache.neethi.PolicyEngine.getPolicyOperator(PolicyEngine.java:154)
>         at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:126)
>         at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:83)
>         at org.apache.axis2.util.PolicyUtil.getPolicyComponent(PolicyUtil.java:182)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder.java:2814)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder.java:2792)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:364)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> [ERROR]
> java.lang.NullPointerException
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder.java:2816)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder.java:2792)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:364)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.AxisFault
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:397)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         ... 2 more
> Caused by: java.lang.NullPointerException
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder.java:2816)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder.java:2792)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:364)
>         ... 4 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message