[
http://issues.apache.org/jira/browse/AXIS2-266?page=comments#action_12362304 ]
Davanum Srinivas commented on AXIS2-266:
----------------------------------------
i just tried to run codegen and got this error.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: org.apache.xmlbeans.XmlException: Access is denied
(schemaorg_apache_xmlbeans.system.s2349FA90C1D674C514EA7245CBE8BA8D.sobject145dtype)
- code 9
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:118)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: Access
is denied
(schemaorg_apache_xmlbeans.system.s2349FA90C1D674C514EA7245CBE8BA8D.sobject145dtype)
- code 9
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:205)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:80)
... 2 more
Caused by: org.apache.xmlbeans.XmlException: Access is denied
(schemaorg_apache_xmlbeans.system.s2349FA90C1D674C514EA7245CBE8BA8D.sobject145dtype)
- code 9
at org.apache.xmlbeans.XmlBeans.wrappedException(XmlBeans.java:149)
at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:673)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:179)
... 3 more
Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: Access is denied
(schemaorg_apache_xmlbeans.system.s2349FA90C1D674C514EA7245CBE8BA8D.sobject145dtype)
- code 9
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.getSaverStream(SchemaTypeSystemImpl.java:2214)
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.writeRealHeader(SchemaTypeSystemImpl.java:1589)
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveType(SchemaTypeSystemImpl.java:1440)
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveTypesRecursively(SchemaTypeSystemImpl.java:1316)
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.save(SchemaTypeSystemImpl.java:1291)
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:230)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)
... 4 more
> can't serialize a request that contains a derived type
> ------------------------------------------------------
>
> Key: AXIS2-266
> URL: http://issues.apache.org/jira/browse/AXIS2-266
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: client-api
> Environment: WinXP, JDK 5.0, code from SVN 10/3/2005
> Reporter: Simon Fell
> Attachments: enterprise.wsdl
>
> The WSDL (attached) defines a base type, sObject, and a type that extends it,
> Account. it also defines an operation called create which take 0..n sObject's.
> Trying to call this operation using the WSDL2Code generated code causes an
> IllegalStateException.
> Exception in thread "main" org.apache.axis2.om.OMException:
> java.lang.IllegalStateException
> at
> org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:279)
> at
> org.apache.axis2.om.impl.llom.OMDocumentImpl.getDocumentElement(OMDocumentImpl.java:107)
> at
> org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:289)
> at
> codegen.databinding.SoapcreateDatabindingSupporter.toOM(SoapcreateDatabindingSupporter.java:50)
> at codegen.SoapStub.create(SoapStub.java:1278)
> at client.testEnterpriseClient.main(testEnterpriseClient.java:95)
> Caused by: java.lang.IllegalStateException
> at
> org.apache.xmlbeans.impl.store.Jsr173$XMLStreamReaderForString.next(Jsr173.java:1110)
> at
> org.apache.xmlbeans.impl.store.Jsr173$SyncedJsr173.next(Jsr173.java:1138)
> at org.apache.axis2.clientapi.StreamWrapper.next(StreamWrapper.java:55)
> at
> org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:197)
> ... 5 more
> The code is doing
> CreateDocument createDoc = CreateDocument.Factory.newInstance();
> Create create = Create.Factory.newInstance();
> Account acc = Account.Factory.newInstance();
> acc.setName("Axis 2.0/Enterprise");
> acc.setAccountNumber("Acc9999");
> create.setSObjectsArray(new SObject [] {acc});
> SaveResult sr = stub.create(createDoc, sd,
> ard).getCreateResponse().getResultArray(0);
--
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