You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2006/04/20 11:20:08 UTC

[jira] Assigned: (AXIS2-534) WSDL2Java JaxMe databinding support -- IllegalStateException on simple WSDL

     [ http://issues.apache.org/jira/browse/AXIS2-534?page=all ]

Ajith Harshana Ranabahu reassigned AXIS2-534:
---------------------------------------------

    Assign To: Davanum Srinivas  (was: Ajith Harshana Ranabahu)

Dims is the expert in JaxMe :)

> WSDL2Java JaxMe databinding support -- IllegalStateException on simple WSDL
> ---------------------------------------------------------------------------
>
>          Key: AXIS2-534
>          URL: http://issues.apache.org/jira/browse/AXIS2-534
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 0.95
>     Reporter: Kenneth Tam
>     Assignee: Davanum Srinivas
>  Attachments: HelloService_self.wsdl
>
> D:\apache\bin\snapshot_axis>wsdl2java -o jaxme_binding -d jaxme -uri d:\HelloService_self.wsdl
> Using AXIS2_HOME:   D:\apache\bin\snapshot_axis
> Using JAVA_HOME:    d:\apache\axis2\installed\jdk1.5.0_02
> : FINEST, parse, , ->, null
> : FINEST, getSGFactory, , ->
> : FINEST, getSGFactory, , Created instance of org.apache.ws.jaxme.generator.sg.impl.JAXBSGFactory
> : FINEST, getSGFactory, , <-, org.apache.ws.jaxme.generator.sg.impl.SGFactoryImpl@12be1bd
> : FINEST, parse, , Parser = org.apache.ws.jaxme.xs.jaxb.impl.JAXBParser@c62c8, validating = false
> : FINEST, parse, , Schema = org.apache.ws.jaxme.xs.jaxb.impl.JAXBSchemaImpl@589e56
> : FINEST, init, , ->
> : FINEST, init, , Childorg.apache.ws.jaxme.xs.jaxb.impl.JAXBElementImpl@18bf072
> : FINEST, <init>(XSObject,Context), , ->, {http://endpoint.helloservice/}sayHello, null
> : FINEST, getTypeSG(XSType), , ->, {http://endpoint.helloservice/}sayHello
> : FINEST, init, , ->
> : FINEST, <init>(XSType), , ->, org.apache.ws.jaxme.generator.sg.impl.TypeSGImpl@2200d5, org.apache.
> ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@f42ad0
> : FINEST, <init>(XSType), , <-, org.apache.ws.jaxme.generator.sg.impl.GlobalContext@64ab4d [{http://
> endpoint.helloservice/}sayHello,helloservice.endpoint.SayHello,helloservice.endpoint.impl.SayHelloIm
> pl]
> : FINEST, init, , <-
> : FINEST, getTypeSG(XSType), , <-, org.apache.ws.jaxme.generator.sg.impl.JAXBTypeSG@105bd58, org.apa
> che.ws.jaxme.generator.sg.impl.TypeSGImpl@2200d5
> : FINEST, <init>(XSObject,Context), , <-, org.apache.ws.jaxme.generator.sg.impl.TypeSGImpl@2200d5, o
> rg.apache.ws.jaxme.generator.sg.impl.GlobalContext@1d1e730 [{http://endpoint.helloservice/}sayHello,
> helloservice.endpoint.SayHello,helloservice.endpoint.impl.SayHelloImpl]
> : FINEST, init, , Childorg.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@f42ad0
> : FINEST, init, , Childorg.apache.ws.jaxme.xs.jaxb.impl.JAXBElementImpl@4f459c
> : FINEST, <init>(XSObject,Context), , ->, {http://endpoint.helloservice/}sayHelloResponse, null
> : FINEST, getTypeSG(XSType), , ->, {http://endpoint.helloservice/}sayHelloResponse
> : FINEST, init, , ->
> : FINEST, <init>(XSType), , ->, org.apache.ws.jaxme.generator.sg.impl.TypeSGImpl@193c0cf, org.apache
> .ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@633e5e
> : FINEST, <init>(XSType), , <-, org.apache.ws.jaxme.generator.sg.impl.GlobalContext@1576e70 [{http:/
> /endpoint.helloservice/}sayHelloResponse,helloservice.endpoint.SayHelloResponse,helloservice.endpoin
> t.impl.SayHelloResponseImpl]
> : FINEST, init, , <-
> : FINEST, getTypeSG(XSType), , <-, org.apache.ws.jaxme.generator.sg.impl.JAXBTypeSG@11381e7, org.apa
> che.ws.jaxme.generator.sg.impl.TypeSGImpl@193c0cf
> : FINEST, <init>(XSObject,Context), , <-, org.apache.ws.jaxme.generator.sg.impl.TypeSGImpl@193c0cf,
> org.apache.ws.jaxme.generator.sg.impl.GlobalContext@1b5998f [{http://endpoint.helloservice/}sayHello
> Response,helloservice.endpoint.SayHelloResponse,helloservice.endpoint.impl.SayHelloResponseImpl]
> : FINEST, init, , Childorg.apache.ws.jaxme.xs.jaxb.impl.JAXBTypeImpl@633e5e
> : FINEST, init, , <-
> : FINEST, parse, , <-, org.apache.ws.jaxme.generator.sg.impl.SchemaSGImpl@17494c8
> : FINEST, generate, , ->, {http://endpoint.helloservice/}sayHello
> : FINEST, getXMLInterface, , ->
> : FINEST, <init>(XSObject,Context), , ->, arg0, org.apache.ws.jaxme.generator.sg.impl.GlobalContext@
> 64ab4d [{http://endpoint.helloservice/}sayHello,helloservice.endpoint.SayHello,helloservice.endpoint
> .impl.SayHelloImpl]
> : FINEST, getTypeSG(XSType,ClassContext), , ->, org.apache.ws.jaxme.xs.types.XSString@766a24, org.ap
> ache.ws.jaxme.generator.sg.impl.GlobalContext@64ab4d [{http://endpoint.helloservice/}sayHello,hellos
> ervice.endpoint.SayHello,helloservice.endpoint.impl.SayHelloImpl]
> : FINEST, getTypeSG(XSType), , ->, {http://www.w3.org/2001/XMLSchema}anySimpleType
> : FINEST, init, , ->
> : FINEST, newSimpleTypeSG, , ->
> : FINEST, newSimpleTypeSG, , <-, org.apache.ws.jaxme.generator.types.StringSG@19bb25a
> : FINEST, init, , <-
> : FINEST, getTypeSG(XSType), , <-, org.apache.ws.jaxme.generator.sg.impl.JAXBTypeSG@da6bf4, org.apac
> he.ws.jaxme.generator.sg.impl.TypeSGImpl@1e58cb8
> : FINEST, init, , ->
> : FINEST, newSimpleTypeSG, , ->
> : FINEST, newSimpleTypeSG, , <-, org.apache.ws.jaxme.generator.types.StringSG@179935d
> : FINEST, init, , <-
> : FINEST, getTypeSG(XSType,ClassContext), , <-, org.apache.ws.jaxme.generator.sg.impl.JAXBTypeSG@b9e
> 45a, org.apache.ws.jaxme.generator.sg.impl.TypeSGImpl@3ef810
> : FINEST, <init>(XSObject,Context), , <-, org.apache.ws.jaxme.generator.sg.impl.TypeSGImpl@3ef810, o
> rg.apache.ws.jaxme.generator.sg.impl.GlobalContext@64ab4d [{http://endpoint.helloservice/}sayHello,h
> elloservice.endpoint.SayHello,helloservice.endpoint.impl.SayHelloImpl]
> : FINEST, getXMLInterface, , <-, helloservice.endpoint.SayHello
> : FINEST, getXMLImplementation(JavaQName), , ->, {http://endpoint.helloservice/}sayHello
> : FINEST, getXMLImplementation(JavaQName), , <-, helloservice.endpoint.impl.SayHelloImpl
> : FINEST, getXMLSerializer, , ->, {http://endpoint.helloservice/}sayHello
> : FINEST, getXMLSerializer, , <-, helloservice.endpoint.impl.SayHelloDriver
> : FINEST, getXMLHandler, , ->, {http://endpoint.helloservice/}sayHello
> : FINEST, getXMLHandler, , <-, helloservice.endpoint.impl.SayHelloHandler
> : FINEST, generate, , <-
> : FINEST, generate, , ->, {http://endpoint.helloservice/}sayHelloResponse
> : FINEST, getXMLInterface, , ->
> : FINEST, <init>(XSObject,Context), , ->, return, org.apache.ws.jaxme.generator.sg.impl.GlobalContex
> t@1576e70 [{http://endpoint.helloservice/}sayHelloResponse,helloservice.endpoint.SayHelloResponse,he
> lloservice.endpoint.impl.SayHelloResponseImpl]
> : FINEST, getTypeSG(XSType,ClassContext), , ->, org.apache.ws.jaxme.xs.types.XSString@766a24, org.ap
> ache.ws.jaxme.generator.sg.impl.GlobalContext@1576e70 [{http://endpoint.helloservice/}sayHelloRespon
> se,helloservice.endpoint.SayHelloResponse,helloservice.endpoint.impl.SayHelloResponseImpl]
> : FINEST, init, , ->
> : FINEST, newSimpleTypeSG, , ->
> : FINEST, newSimpleTypeSG, , <-, org.apache.ws.jaxme.generator.types.StringSG@16c9867
> : FINEST, init, , <-
> : FINEST, getTypeSG(XSType,ClassContext), , <-, org.apache.ws.jaxme.generator.sg.impl.JAXBTypeSG@89c
> c5e, org.apache.ws.jaxme.generator.sg.impl.TypeSGImpl@c837cd
> : FINEST, <init>(XSObject,Context), , <-, org.apache.ws.jaxme.generator.sg.impl.TypeSGImpl@c837cd, o
> rg.apache.ws.jaxme.generator.sg.impl.GlobalContext@1576e70 [{http://endpoint.helloservice/}sayHelloR
> esponse,helloservice.endpoint.SayHelloResponse,helloservice.endpoint.impl.SayHelloResponseImpl]
> : FINEST, getXMLInterface, , <-, helloservice.endpoint.SayHelloResponse
> : FINEST, getXMLImplementation(JavaQName), , ->, {http://endpoint.helloservice/}sayHelloResponse
> : FINEST, getXMLImplementation(JavaQName), , <-, helloservice.endpoint.impl.SayHelloResponseImpl
> : FINEST, getXMLSerializer, , ->, {http://endpoint.helloservice/}sayHelloResponse
> : FINEST, getXMLSerializer, , <-, helloservice.endpoint.impl.SayHelloResponseDriver
> : FINEST, getXMLHandler, , ->, {http://endpoint.helloservice/}sayHelloResponse
> : FINEST, getXMLHandler, , <-, helloservice.endpoint.impl.SayHelloResponseHandler
> : FINEST, generate, , <-
> : FINEST, generate, , ->, {http://endpoint.helloservice/}sayHello
> : FINEST, getXMLInterface, , ->, {http://endpoint.helloservice/}sayHello
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeE
> xception: java.lang.IllegalStateException: The class helloservice.endpoint.SayHello has already been
>  created.
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:146
> )
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: The class helloservice.endpo
> int.SayHello has already been created.
>         at org.apache.axis2.wsdl.codegen.extension.JaxMeExtension.engage(JaxMeExtension.java:217)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:101
> )
>         ... 2 more
> Caused by: java.lang.IllegalStateException: The class helloservice.endpoint.SayHello has already bee
> n created.
>         at org.apache.ws.jaxme.js.JavaSourceFactory.newJavaSource(JavaSourceFactory.java:129)
>         at org.apache.ws.jaxme.generator.sg.impl.JAXBObjectSG.getXMLInterface(JAXBObjectSG.java:194)
>         at org.apache.ws.jaxme.generator.sg.impl.ObjectSGImpl.getXMLInterface(ObjectSGImpl.java:40)
>         at org.apache.ws.jaxme.generator.sg.impl.JAXBObjectSG.generate(JAXBObjectSG.java:275)
>         at org.apache.ws.jaxme.generator.sg.impl.ObjectSGImpl.generate(ObjectSGImpl.java:56)
>         at org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaSG.generate(JAXBSchemaSG.java:228)
>         at org.apache.ws.jaxme.generator.sg.impl.SchemaSGImpl.generate(SchemaSGImpl.java:67)
>         at org.apache.ws.jaxme.generator.impl.GeneratorImpl.generate(GeneratorImpl.java:148)
>         at org.apache.axis2.wsdl.codegen.extension.JaxMeExtension.engage(JaxMeExtension.java:171)
>         ... 3 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira