cancel
Showing results for 
Search instead for 
Did you mean: 

org.apache.chemistry.opencmis.commons.impl.dataobjects.ExtensionDataImpl cannot be cast to org.apache.chemistry.opencmis.commons

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

I am new with Alfresco and i want tryout the webservices with SOAPUI but i am facing the following problem.

<ul>
<li>In soap UI imported the following WSDL.
http://localhost:8080/alfresco/cmisws/cmis?wsdl</li>

<li>I added WS-Security with the default username/password and also the timestamp.</li>

<li>I added this to the getRepositories operation that i want to tryout.</li>
</ul>
But i am getting the following reply.




<S:Envelope xmlnsSmiley Frustrated="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Header>
      <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <Timestamp xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <Created>2014-03-21T10:07:50.478Z</Created>
            <Expires>2014-03-22T10:07:50.478Z</Expires>
         </Timestamp>
      </Security>
   </S:Header>
   <S:Body>
      <S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
         <faultcode>SSmiley Frustratederver</faultcode>
         <faultstring>org.apache.chemistry.opencmis.commons.impl.dataobjects.ExtensionDataImpl cannot be cast to org.apache.chemistry.opencmis.commons.impl.dataobjects.ContentStreamImpl</faultstring>
         <detail>
            <cmisFault:cmisFault xmlns:cmisFault="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:ns2="http://docs.oasis-open.org/ns/cmis/core/200908/">
               <type>runtime</type>
               <code>0
               <message>org.apache.chemistry.opencmis.commons.impl.dataobjects.ExtensionDataImpl cannot be cast to org.apache.chemistry.opencmis.commons.impl.dataobjects.ContentStreamImpl</message>
               <stacktrace:stacktrace xmlns:stacktrace="http://chemistry.apache.org/opencmis/exception" xmlns="http://chemistry.apache.org/opencmis/exception">org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: org.apache.chemistry.opencmis.commons.impl.dataobjects.ExtensionDataImpl cannot be cast to org.apache.chemistry.opencmis.commons.impl.dataobjects.ContentStreamImpl
   at org.alfresco.opencmis.AlfrescoCmisExceptionInterceptor.invoke(AlfrescoCmisExceptionInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy298.getRepositoryInfos(Unknown Source)
   at org.apache.chemistry.opencmis.server.support.CmisServiceWrapper.getRepositoryInfos(CmisServiceWrapper.java:508)
   at org.apache.chemistry.opencmis.server.impl.webservices.RepositoryService.getRepositories(RepositoryService.java:63)
……..
</code>

Can someone help me out with this problem.

I am using the Community Ed. version - v4.2.0
1 REPLY 1

jorgm
Champ in-the-making
Champ in-the-making
In my case it helped to remove the following tag from the request

         <ns:extension>
            <!–You may enter ANY elements at this point–>
         </ns:extension>

Hope this helps.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.