axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tamas KIS (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-3986) CLONE -WSDL's with policy references cause RuntimeException
Date Tue, 26 Aug 2008 15:42:44 GMT

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

Tamas KIS updated AXIS2-3986:
-----------------------------

    Fix Version/s: 1.4
                   1.3
                   1.4.1
      Description: 

Eception occurs in the same situation. Well, this time java.lang.RuntimeException.

Please see attached WSDL.
Problem occurs with axis2-1.3, 1.4 and 1.4.1


C:\Programme\Java\axis2-1.4.1\bin>wsdl2java -t -s -u -uri C:\temp\WSDL_DEFs\SorecoWien\z_ADDR_REGIONAL_DATA_CHECK.wsdl
Using AXIS2_HOME:   C:\Programme\Java\axis2-1.4
Using JAVA_HOME:    C:\Programme\Java\jdk1.5.0_10\
Retrieving document at 'C:\temp\WSDL_DEFs\SorecoWien\z_ADDR_REGIONAL_DATA_CHECK.wsdl'.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
#OP_ZAddrR
egionalDataCheck can't be resolved
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.RuntimeException: #OP_ZAddrRegionalDataCheck can't be resolved
        at org.apache.neethi.AbstractPolicyOperator.normalizeOperator(AbstractPolicyOperator.java:119)
        at org.apache.neethi.AbstractPolicyOperator.normalize(AbstractPolicyOperator.java:73)
        at org.apache.neethi.Policy.normalize(Policy.java:64)
        at org.apache.axis2.util.PolicyUtil.getMergedPolicy(PolicyUtil.java:271)
        at org.apache.axis2.description.PolicyInclude.getPolicy(PolicyInclude.java:255)
        at org.apache.axis2.description.PolicyInclude.calculateEffectivePolicy(PolicyInclude.java:227)
        at org.apache.axis2.description.PolicyInclude.getEffectivePolicy(PolicyInclude.java:277)
        at org.apache.axis2.wsdl.codegen.extension.PolicyEvaluator.engage(PolicyEvaluator.java:131)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
        ... 2 more



  was:
WSDL's with policy references cause the WSDL2Java to fail with an UnsupportedOperationException
thrown by the PolicyReference class

C:\Testing\delete>c:\Java\axis2-std-1.1-RC1-bin\bin\WSDL2Java.bat -ss -sd -g -uri ServiceRegistry.ws
dl
Using AXIS2_HOME:   c:\Java\axis2-std-1.1-RC1-bin
Using JAVA_HOME:    C:\Java\JDK\j2sdk1.4.2_07
Retrieving schema at 'ServiceRegistry.xsd', relative to 'file:/C:/Testing/delete/'.
cannot find a PolicyExtension to process http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/type
a
ssertions
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.w
sdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224
)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
WSDL w
riting failed!
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(A
xisServiceBasedMultiLanguageEmitter.java:848)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:206
)
        ... 2 more
Caused by: java.lang.RuntimeException: WSDL writing failed!
        at org.apache.axis2.wsdl.codegen.writer.WSDL11Writer.writeWSDL(WSDL11Writer.java:46)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles
(AxisServiceBasedMultiLanguageEmitter.java:904)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(A
xisServiceBasedMultiLanguageEmitter.java:843)
        ... 3 more
Caused by: org.apache.axis2.AxisFault: null; nested exception is:
        java.lang.UnsupportedOperationException
        at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:663)
        at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:648)
        at org.apache.axis2.wsdl.codegen.writer.WSDL11Writer.writeWSDL(WSDL11Writer.java:41)
        ... 5 more
Caused by: java.lang.UnsupportedOperationException
        at org.apache.neethi.PolicyReference.serialize(PolicyReference.java:64)
        at org.apache.axis2.util.PolicyUtil.getPolicyComponentAsOMElement(PolicyUtil.java:107)
        at org.apache.axis2.description.AxisService2OM.addPolicyAsExtElement(AxisService2OM.java:956
)
        at org.apache.axis2.description.AxisService2OM.generateSOAP11Binding(AxisService2OM.java:535
)
        at org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:194)
        at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:658)
        ... 7 more

Sample WSDL and XSD attached



> CLONE -WSDL's with policy references cause RuntimeException
> -----------------------------------------------------------
>
>                 Key: AXIS2-3986
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3986
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>         Environment: RC1
>            Reporter: Tamas KIS
>            Assignee: Sanka Samaranayake
>             Fix For: 1.4.1, 1.4, 1.3
>
>
> Eception occurs in the same situation. Well, this time java.lang.RuntimeException.
> Please see attached WSDL.
> Problem occurs with axis2-1.3, 1.4 and 1.4.1
> C:\Programme\Java\axis2-1.4.1\bin>wsdl2java -t -s -u -uri C:\temp\WSDL_DEFs\SorecoWien\z_ADDR_REGIONAL_DATA_CHECK.wsdl
> Using AXIS2_HOME:   C:\Programme\Java\axis2-1.4
> Using JAVA_HOME:    C:\Programme\Java\jdk1.5.0_10\
> Retrieving document at 'C:\temp\WSDL_DEFs\SorecoWien\z_ADDR_REGIONAL_DATA_CHECK.wsdl'.
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
#OP_ZAddrR
> egionalDataCheck can't be resolved
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: java.lang.RuntimeException: #OP_ZAddrRegionalDataCheck can't be resolved
>         at org.apache.neethi.AbstractPolicyOperator.normalizeOperator(AbstractPolicyOperator.java:119)
>         at org.apache.neethi.AbstractPolicyOperator.normalize(AbstractPolicyOperator.java:73)
>         at org.apache.neethi.Policy.normalize(Policy.java:64)
>         at org.apache.axis2.util.PolicyUtil.getMergedPolicy(PolicyUtil.java:271)
>         at org.apache.axis2.description.PolicyInclude.getPolicy(PolicyInclude.java:255)
>         at org.apache.axis2.description.PolicyInclude.calculateEffectivePolicy(PolicyInclude.java:227)
>         at org.apache.axis2.description.PolicyInclude.getEffectivePolicy(PolicyInclude.java:277)
>         at org.apache.axis2.wsdl.codegen.extension.PolicyEvaluator.engage(PolicyEvaluator.java:131)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>         ... 2 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