Topic
  • 1 reply
  • Latest Post - ‏2012-02-13T19:36:14Z by drdamour
ajazrana
ajazrana
6 Posts

Pinned topic CMISRuntimeException - Create Folder

‏2012-02-13T14:41:35Z |
Hi,

I am getting a Rutime Exception, "CMISRuntimeException: CIL1525: The service cannot be completed because an error occurred in IBM CMIS. IBM CMIS error: Object posted was not parseable as a valid CMIS object...."

Below is the REST POST entry and the stack trace. I used POSTER for this.

Am I doing something wrong?

Ajaz



POST http://ibmcmis.dyndns.org:8080/p8cmis/resources/DaphneA/ContentFlat
Content-Type: application/atom+xml;type=entry
<?xml version="1.0" ?>
<atom:entry xmlns:app="http://www.w3.org/2007/app"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"
xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/">

<atom:title type="text">Testing</atom:title>
<cmisra:object xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908">
<cmis:properties>
<cmisPropertyId propertyDefinitionId="cmis:objectTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmisPropertyId>
</cmis:properties>
</cmisra:object>
</atom:entry>

  • response --
500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/plain;charset=utf-8
Content-Language: en
Content-Length: 856
Date: Mon, 13 Feb 2012 05:24:30 GMT
Connection: close
com.ibm.ecm.cmis.exceptions.CMISRuntimeException: CIL1525: The service cannot be completed because an error occurred in IBM CMIS.
IBM CMIS error: Object posted was not parseable as a valid CMIS object.
Explanation: No additional information is available.
Action: Contact IBM Software Support. Before calling, ensure that you collect the information that is listed in "Collecting data for IBM CMIS" in the information center.

com.ibm.ecm.cmis.exceptions.CMISRuntimeException: CIL1525: The service cannot be completed because an error occurred in IBM CMIS.
IBM CMIS error: Object posted was not parseable as a valid CMIS object.
Explanation: No additional information is available.
Action: Contact IBM Software Support. Before calling, ensure that you collect the information that is listed in "Collecting data for IBM CMIS" in the information center.
at com.ibm.ecm.cmis.app.beans.ContentFlat.renderPOSTResponse(ContentFlat.java:103)
at com.ibm.ecm.cmis.app.beans.BaseCollection.post(BaseCollection.java:559)
at com.ibm.ecm.cmis.app.servlet.CMISServlet.doPost(CMISServlet.java:175)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at com.ibm.ecm.cmis.app.servlet.CMISServlet.service(CMISServlet.java:411)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.ibm.ecm.integration.common.compression.CompressionFilter.doFilter(CompressionFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.ibm.ecm.integration.common.authentication.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:156)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.ibm.ecm.cmis.wsdl.util.WSDLFilter.doFilter(WSDLFilter.java:72)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.ibm.ecm.integration.common.nls.servlet.LocaleFilter.doFilter(LocaleFilter.java:57)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.ibm.ecm.integration.common.messageTrace.servlet.MessageTraceFilter.doFilter(MessageTraceFilter.java:84)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:735)
Updated on 2012-02-13T19:36:14Z at 2012-02-13T19:36:14Z by drdamour
  • drdamour
    drdamour
    15 Posts

    Re: CMISRuntimeException - Create Folder

    ‏2012-02-13T19:36:14Z  
    here's a working http request using fiddler to sniff an Chemistry WorkBench create folder request.

    <?xml version='1.0' encoding='UTF-8'?>
    <atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"><atom:id>urn:uuid:00000000-0000-0000-0000-00000000000</atom:id>
    <atom:title>aa</atom:title>
    <atom:updated>2012-02-13T19:31:45Z</atom:updated>
    <cmisra:object xmlns:ns3="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
    <cmis:properties>
    <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
    <cmis:value>cmis:folder</cmis:value>
    </cmis:propertyId>
    <cmis:propertyString propertyDefinitionId="cmis:name">
    <cmis:value>aa</cmis:value>
    </cmis:propertyString>
    </cmis:properties>
    </cmisra:object>
    </atom:entry>

    first to notice is your missing : on propertyId, and wrong casing on the p. but also, i think the atom:title is required, at least for P8 it is. here's what i'd send minimum:

    <?xml version='1.0' encoding='UTF-8'?>
    <atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/">
    <atom:title>Folder name</atom:title>
    <cmisra:object xmlns:ns3="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
    <cmis:properties>
    <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
    <cmis:value>cmis:folder</cmis:value></cmis:propertyId>
    </cmis:properties>
    </cmisra:object>
    </atom:entry>


    I am Just a new Boy,
    A Stranger in this Town,
    Where are All the Good Times,
    Who's Gonna Show this Stranger Around?
    Check out our Agile ACM Catalogue: Widgets, APIs, & Components for Building Solutions