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
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, , <-, [EMAIL PROTECTED]
: FINEST, parse, , Parser = [EMAIL PROTECTED], validating = false
: FINEST, parse, , Schema = [EMAIL PROTECTED]
: FINEST, init, , ->
: FINEST, init, , [EMAIL PROTECTED]
: FINEST, <init>(XSObject,Context), , ->,
{http://endpoint.helloservice/}sayHello, null
: FINEST, getTypeSG(XSType), , ->, {http://endpoint.helloservice/}sayHello
: FINEST, init, , ->
: FINEST, <init>(XSType), , ->, [EMAIL PROTECTED], org.apache.
[EMAIL PROTECTED]
: FINEST, <init>(XSType), , <-, [EMAIL PROTECTED] [{http://
endpoint.helloservice/}sayHello,helloservice.endpoint.SayHello,helloservice.endpoint.impl.SayHelloIm
pl]
: FINEST, init, , <-
: FINEST, getTypeSG(XSType), , <-, [EMAIL PROTECTED], org.apa
[EMAIL PROTECTED]
: FINEST, <init>(XSObject,Context), , <-, [EMAIL PROTECTED], o
[EMAIL PROTECTED] [{http://endpoint.helloservice/}sayHello,
helloservice.endpoint.SayHello,helloservice.endpoint.impl.SayHelloImpl]
: FINEST, init, , [EMAIL PROTECTED]
: FINEST, init, , [EMAIL PROTECTED]
: FINEST, <init>(XSObject,Context), , ->,
{http://endpoint.helloservice/}sayHelloResponse, null
: FINEST, getTypeSG(XSType), , ->,
{http://endpoint.helloservice/}sayHelloResponse
: FINEST, init, , ->
: FINEST, <init>(XSType), , ->, [EMAIL PROTECTED], org.apache
[EMAIL PROTECTED]
: FINEST, <init>(XSType), , <-, [EMAIL PROTECTED] [{http:/
/endpoint.helloservice/}sayHelloResponse,helloservice.endpoint.SayHelloResponse,helloservice.endpoin
t.impl.SayHelloResponseImpl]
: FINEST, init, , <-
: FINEST, getTypeSG(XSType), , <-, [EMAIL PROTECTED], org.apa
[EMAIL PROTECTED]
: FINEST, <init>(XSObject,Context), , <-, [EMAIL PROTECTED],
[EMAIL PROTECTED] [{http://endpoint.helloservice/}sayHello
Response,helloservice.endpoint.SayHelloResponse,helloservice.endpoint.impl.SayHelloResponseImpl]
: FINEST, init, , [EMAIL PROTECTED]
: FINEST, init, , <-
: FINEST, parse, , <-, [EMAIL PROTECTED]
: 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), , ->, [EMAIL PROTECTED], org.ap
[EMAIL PROTECTED] [{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, , <-, [EMAIL PROTECTED]
: FINEST, init, , <-
: FINEST, getTypeSG(XSType), , <-, [EMAIL PROTECTED], org.apac
[EMAIL PROTECTED]
: FINEST, init, , ->
: FINEST, newSimpleTypeSG, , ->
: FINEST, newSimpleTypeSG, , <-, [EMAIL PROTECTED]
: FINEST, init, , <-
: FINEST, getTypeSG(XSType,ClassContext), , <-, [EMAIL PROTECTED]
45a, [EMAIL PROTECTED]
: FINEST, <init>(XSObject,Context), , <-, [EMAIL PROTECTED], o
[EMAIL PROTECTED] [{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
[EMAIL PROTECTED]
[{http://endpoint.helloservice/}sayHelloResponse,helloservice.endpoint.SayHelloResponse,he
lloservice.endpoint.impl.SayHelloResponseImpl]
: FINEST, getTypeSG(XSType,ClassContext), , ->, [EMAIL PROTECTED], org.ap
[EMAIL PROTECTED] [{http://endpoint.helloservice/}sayHelloRespon
se,helloservice.endpoint.SayHelloResponse,helloservice.endpoint.impl.SayHelloResponseImpl]
: FINEST, init, , ->
: FINEST, newSimpleTypeSG, , ->
: FINEST, newSimpleTypeSG, , <-, [EMAIL PROTECTED]
: FINEST, init, , <-
: FINEST, getTypeSG(XSType,ClassContext), , <-, [EMAIL PROTECTED]
c5e, [EMAIL PROTECTED]
: FINEST, <init>(XSObject,Context), , <-, [EMAIL PROTECTED], o
[EMAIL PROTECTED] [{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