axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey C. (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-2670) A problem in the simpleType reference handling with the Axis2 JiBX unwrapped.
Date Tue, 15 May 2007 13:06:16 GMT
A problem in the simpleType reference handling with the Axis2 JiBX unwrapped.
-----------------------------------------------------------------------------

                 Key: AXIS2-2670
                 URL: https://issues.apache.org/jira/browse/AXIS2-2670
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.2
         Environment: JiBX 1.1.3
JDK 1.5.0_06
Linux OS, Slackware 11.0.
            Reporter: Andrey C.


A detached enum definition exists.

...
<s:element name="GetProducs">
  <s:complexType>
    <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="guid" type="s:string" />
      <s:element minOccurs="1" maxOccurs="1" name="id" type="s:int" />
      <s:element minOccurs="1" maxOccurs="1" name="abc" type="tns:ABCEnum" />
    </s:sequence>
  </s:complexType>
</s:element>
<s:simpleType name="ABCEnum">
   <s:restriction base="s:string">
     <s:enumeration value="AAA" />
     <s:enumeration value="BBB" />
     <s:enumeration value="CCC" />
   </s:restriction>
</s:simpleType>
...


Performing of WSDL2Java tool with '-uw' argument produces following error messages:

[echo] Running WSDL2Java task
    [mkdir] Created dir: /home/zzz/proj/client/gen
     [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: Cannot unwrap element {http://an.ns.com/}GetProducs: no format
definition found for type {http://an.ns.com/}ABCEnum (used by element {http://an.ns.com/}abc)
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:256)
     [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
     [java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
     [java] Caused by: java.lang.RuntimeException: Cannot unwrap element {http://an.ns.com/}GetProducs:
no format definition found for type {http://an.ns.com/}ABCEnum (used by element {http://an.ns.com/}abc)
     [java]     at org.apache.axis2.jibx.CodeGenerationUtility.unwrapMessage(CodeGenerationUtility.java:780)
     [java]     at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility.java:382)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtension.java:74)
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:209)
     [java]     ... 2 more


Thanks,
Andrey.

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