You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Subramanian Krishnan <su...@in.ibm.com> on 2011/04/12 11:56:58 UTC

databinding.ADBException: Unsupported type

Hi,

I'm using AXis2 1.5.4 wsdl2java tool to generate the client stubs for CMIS 
wsdl:

http://tools.oasis-open.org/version-control/svn/cmis/trunk/SchemaProject/schema/CMISWS-Service.wsdl

When I use the following fragment, I get an exception.

==============
Code fragment
==============

String uri = "http://9.123.108.85:9081/fncmis/RepositoryService";
RepositoryServiceStub stub = new RepositoryServiceStub(uri);
RepositoryServiceStub.GetTypeDescendants req2 = new 
RepositoryServiceStub.GetTypeDescendants();
req2.setRepositoryId("ATOS");
req2.setTypeId("Document");
RepositoryServiceStub.GetTypeDescendantsResponse resp2 = 
stub.getTypeDescendants(req2);

================
Exception Trace
================
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: 
Unsupported type http://docs.oasis-open.org/ns/cmis/core/200908/ 
cmisTypeDocumentDefinitionType
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at 
com.ibm.j2ca.gen.ws.axis2.RepositoryServiceStub.fromOM(RepositoryServiceStub.java:8188)
        at 
com.ibm.j2ca.gen.ws.axis2.RepositoryServiceStub.getTypeDescendants(RepositoryServiceStub.java:568)
        at com.ibm.j2ca.ecm.unittest.Axis2Driver.main(Axis2Driver.java:39)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: 
Unsupported type http://docs.oasis-open.org/ns/cmis/core/200908/ 
cmisTypeDocumentDefinitionType
        at 
com.ibm.j2ca.gen.ws.axis2.RepositoryServiceStub$CmisTypeDefinitionType$Factory.parse(RepositoryServiceStub.java:1866)
        at 
com.ibm.j2ca.gen.ws.axis2.RepositoryServiceStub$CmisTypeContainer$Factory.parse(RepositoryServiceStub.java:55397)
        at 
com.ibm.j2ca.gen.ws.axis2.RepositoryServiceStub$GetTypeDescendantsResponse$Factory.parse(RepositoryServiceStub.java:26314)
        at 
com.ibm.j2ca.gen.ws.axis2.RepositoryServiceStub.fromOM(RepositoryServiceStub.java:8112)
        ... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unsupported type 
http://docs.oasis-open.org/ns/cmis/core/200908/ 
cmisTypeDocumentDefinitionType
        at 
com.ibm.j2ca.gen.ws.axis2.RepositoryServiceStub$ExtensionMapper.getTypeObject(RepositoryServiceStub.java:27730)
        at 
com.ibm.j2ca.gen.ws.axis2.RepositoryServiceStub$CmisTypeDefinitionType$Factory.parse(RepositoryServiceStub.java:1454)
        ... 5 more

==================
Investigation
==================

On investigation, I found that a response is received from the server and 
the exception is happening in the parsing of the response message.
Please find attached the server response message in 
getTypeDesc_Response.txt.



On browsing through the generated code I didn't find any generated class 
for the type cmisTypeDocumentDefinitionType which I guess is the source of 
the problem.

I have searched the archives for any simlar issue and didn't find any. 
Also I tried generating the stubs with the latest nightly build and even 
there didn't find 
cmisTypeDocumentDefinitionType.

Would appreciate any help on this.

Thanks and Regards,
Subramanian