Error while finding folder in repository

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2014 10:16 AM
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.
I am using Alfresco4.0. The above code is working fine in alfresco3.4.
Regards,
Naveen
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
Labels:
- Labels:
-
Archive
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2014 12:29 AM
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.
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.
