cancel
Showing results for 
Search instead for 
Did you mean: 

Error while finding folder in repository

knkpchari
Champ in-the-making
Champ in-the-making
Hi All,

When i am trying to find the folder details in repository using below code i am getting error which is a number changing every time. How to solve can any one help me in this.

public String DISCOVERY_SERVICE_WSDL_LOCATION = "/alfresco/cmisws/DiscoveryService?wsdl";
public final static QName DISCOVERY_SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200908/", "DiscoveryService");

query.setStatement("select * from cmis:folder where cmis:name LIKE '"+reg_id+"'");
QueryResponse queryresponse=null;
try{
    queryresponse = disvcoveryServicePort.query(query);
}catch(CmisException ex){
    System.out.println("The value of exception ::::::::::::"+ex.getMessage());
    ex.printStackTrace();
}

I am using Alfresco4.0. The above code is working fine in alfresco3.4.

Regards,
Naveen
10 REPLIES 10

kaynezhang
World-Class Innovator
World-Class Innovator
This is t  is a jar collision problem ,maybe there are more than one versions of xml parsing lib(for example xerces ) in your classpath .
Someone in this forum has encountered this error before.
I'm using version 4.2,I did not encounter this problem ,the code I pasted works fine in 4.2.