cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS DiscoveryService - NavigationService exceptions

nikes
Champ on-the-rise
Champ on-the-rise
Ooooppsssss….

It looks like CMIS webservice API are full of error of I am weak in
webservice part.

I have generated java classes from CMISWS-Service.wsdl using eclipse.

I am using stub classes  to fetch Alfresco repository info and I was
successful also.

But when I tried DiscoveryService it thorows "Invalid Repository Id"
error.

When I tried NavigationService  its trowing following exception

Exception:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unregistered type:  class
java.lang.Object
faultActor:
faultNode:
faultDetail:
        {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
Unregistered type:  class java.lang.Object
        at
org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:
448)
        at
org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:
393)
        at
org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:
154)
        at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:
1048)
        at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
165)
        at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:
1141)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:
236)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
        at org.apache.axis.client.Call.invoke(Call.java:2467)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at
org.oasis_open.docs.ns.cmis.ws._200908.NavigationServicePortBindingStub.getFolderTree(NavigationServicePortBindingStub.java:
1824)
        at cmis.CMISTest.main(CMISTest.java:170)

        {http://xml.apache.org/axis/}hostname:A4MD09603

Is there anything i am missing or needs to change in Alfresco server
config file? please guide.

Following is my code:


NavigationServicePortBindingStub ns = new
NavigationServicePortBindingStub(endpointURL,null);
                        ns.setHeader(she);

                        CmisObjectListType ol = ns.getCheckedOutDocs("46f8b242-9f61-423b-
b824-c6118f470f01", "workspace://SpacesStore/0fceb8de-
fe45-439a-9ac4-30b32c7671e0", null, null, null, null, null,
BigInteger.TEN, BigInteger.TEN, null);

                        if(ol == null){
                                System.out.println("NULL");
                                }
                        else{
                                System.out.println("not null");
                                }

                        CmisObjectType[] ot = (CmisObjectType[])ol.getObjects();

                        for(int i=0;i<=ot.length;i++){
                                CmisPropertiesType pt = ot[i].getProperties();
                                CmisPropertyUri pu = pt.getPropertyUri();
                                Object o = pu.getLocalName();
                                System.out.println("URI : "+o.toString());

                        }
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
You need to use NodeRef as ID.
Hope this helps.