Hicurrently I checkout the first steps with cmis http://ecmarchitect.com/images/articles/cmis/cmis-article.pdfwhen I post the following xml to create a new folder I get the following error. Pleas help me solve. Sitting here for hours
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"
xmlns:cmis="http://www.cmis.org/2008/05" >
<title>myfolder</title>
<cmisra:object>
<cmis:properties>
<cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmis:propertyId>
</cmis:properties>
</cmisra:object>
</entry>
Error:D:\>curl -X POST -uadmin:admin "http://localhost:8080/alfresco/s/cmis/p/children" -H "Content-Type:application/atom+xml" -d createFolder.atom.xml<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Web Script Status 500 - Internal Error</title> <link rel="stylesheet" href="/alfresco/css/base.css" type="text/css" /> </head> <body> <div> <table> <tr> <td><img src="/alfresco/images/logo/AlfrescoLogo32.png" alt="Alfresco" /></td> <td><span class="title">Web Script Status 500 - Internal Error</span></td> </tr> </table> <br/> <table> <tr><td>The Web Script <a href="%2Falfresco%2Fs%2Fcmis%2Fp%2Fchildren">/alfresco/s/cmis/p/children</a> has responded with a status of 500 - Internal Error.</td></tr> </table> <br/> <table> <tr><td><b>500 Description:</b></td><td> An error inside the HTTP server which prevented it from fulfilling the request.</td></tr> <tr><td> </td></tr> <tr><td><b>Message:</b></td><td>10300041 Wrapped Exception (with status template): com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'c' (code 99) in prolog; expected '<' at [row,col {unknown-source}]: [1,1]</td></tr> <tr><td></td><td> </td></tr> <tr><td><b>Exception:</b></td><td>com.ctc.wstx.exc.WstxUnexpectedCharException - Unexpected character 'c' (code 99) in prolog; expected '<' at [row,col {unknown-source}]: [1,1]</td></tr> <tr><td></td><td> </td></tr> <tr><td></td><td>com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623)</td></tr> <tr><td></td><td>com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)</td></tr> <tr><td></td><td>com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)</td></tr> <tr><td></td><td>org.apache.abdera.parser.stax.FOMBuilder.getNextElementToParse(FOMBuilder.java:163)</td></tr> <tr><td></td><td>org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:187)</td></tr> <tr><td></td><td>org.apache.abdera.parser.stax.FOMBuilder.getFomDocument(FOMBuilder.java:333)</td></tr> <tr><td></td><td>org.apache.abdera.parser.stax.FOMParser.getDocument(FOMParser.java:72)</td></tr> <tr><td></td><td>org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:207)</td></tr> <tr><td></td><td>org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:145)</td></tr> <tr><td></td><td>org.apache.abdera.util.AbstractParser.parse(AbstractParser.java:101)</td></tr> <tr><td></td><td>org.alfresco.web.scripts.atom.AbderaServiceImpl.parse(AbderaServiceImpl.java:158)</td></tr> <tr><td></td><td>org.alfresco.web.scripts.atom.AtomReader.read(AtomReader.java:91)</td></tr> <tr><td></td><td>org.alfresco.web.scripts.atom.AtomReader.createScriptParameters(AtomReader.java:105)</td></tr> <tr><td></td><td>org.alfresco.web.scripts.AbstractWebScript.createScriptParameters(AbstractWebScript.java:375)</td></tr> <tr><td></td><td>org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:85)</td></tr> <tr><td></td><td>org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:372)</td></tr> <tr><td></td><td>org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:327)</td></tr> <tr><td></td><td>org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:422)</td></tr> <tr><td></td><td>org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:439)</td></tr> <tr><td></td><td>org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:303)</td></tr> <tr><td></td><td>org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:306)</td></tr> <tr><td></td><td>org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:183)</td></tr> <tr><td></td><td>org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)</td></tr> <tr><td></td><td>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</td></tr> <tr><td></td><td>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</td></tr> <tr><td></td><td>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</td></tr> <tr><td></td><td>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)</td></tr> <tr><td></td><td>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)</td></tr> <tr><td></td><td>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)</td></tr> <tr><td></td><td>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</td></tr> <tr><td></td><td>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</td></tr> <tr><td></td><td>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)</td></tr> <tr><td></td><td>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)</td></tr> <tr><td></td><td>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)</td></tr> <tr><td></td><td>org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)</td></tr> <tr><td></td><td>java.lang.Thread.run(Thread.java:619)</td></tr> <tr><td></td><td> </td></tr> <tr><td><b>Exception:</b></td><td>org.apache.abdera.parser.ParseException - com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'c' (code 99)in prolog; expected '<' at [row,col {unknown-source}]: [1,1]</td></tr> <tr><td></td><td> </td></tr> <tr><td></td><td>org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:260)</td></tr> <tr><td></td><td> </td></tr> <tr><td><b>Exception:</b></td><td>org.alfresco.web.scripts.WebScriptException - 10300041 Wrapped Exception (with status template): com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'c' (code 99) in prolog; expected '<' at [row,col {unknown-source}]: [1,1]</td></tr> <tr><td></td><td> </td></tr> <tr><td></td><td>org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:613)</td></tr> <tr><td></td><td> </td></tr> <tr><td><b>Server</b>:</td><td>Alfresco Community v3.2.0 (r2 2440) schema 3.300</td></tr> <tr><td><b>Time</b>:</td><td>30.11.2009 14:16:57</td></tr> <tr><td></td><td> </td></tr> <tr><td><b>Diagnostics</b>:</td><td><a href="/alfresco/s/script/org/alfresco/cmis/children.post">Inspect Web Script (org/alfresco/cmis/children.post)</a></td></tr> </table> </div> </body></html>