cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting OpenWorkdesk to OpenCMIS test repository

rmf2490
Champ in-the-making
Champ in-the-making
Hi, I'm currently testing out OpenWorkdesk for use by my employer, and to get an idea of the functionality, wanted to test it against the OpenCMIS In-memory repository. I followed the instructions in the quick-start guide, including setting the relevant WSDL URLs. While OpenWorkdesk can connect to the repository just fine, I am getting various errors, such as

  • OwInvalidOperationException when navigating to a folder that has files in it (Error text is: Invalid Property!)

  • CmisConstraintException when trying to add a file to the repository (Error text is: The versioning state flag is incompatible to the type definition)

  • OwInvalidOperationException When performing any kind of search (Example error text is: Invalid search field. The field cmis:document.cmis:name can not be queried)
I couldn't find any mention anywhere else of these errors, so maybe someone can help me. For now, I'll just focus on the first error, since it's the one I care about the most. Here is the stack trace from Tomcat:


Oct 19, 2012 2:14:34 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
com.wewebu.ow.server.exceptions.OwInvalidOperationException: Invalid property!
   at com.wewebu.ow.server.ecmimpl.cmis.generic.OwCMISPropertyDefinitionBase.createBoundProperty(OwCMISPropertyDefinitionBase.java:59)
   at com.wewebu.ow.server.ecmimpl.cmis.propertyclasses.OwCMISNativePropertyClassTemplate.createProperty(OwCMISNativePropertyClassTemplate.java:64)
   at com.wewebu.ow.server.ecmimpl.cmis.object.OwCMISObjectBase.requestInternalCache(OwCMISObjectBase.java:1051)
   at com.wewebu.ow.server.ecmimpl.cmis.object.OwCMISObjectBase.requestInternalCacheEx(OwCMISObjectBase.java:1026)
   at com.wewebu.ow.server.ecmimpl.cmis.object.OwCMISObjectBase.getProperties(OwCMISObjectBase.java:572)
   at com.wewebu.ow.server.ecmimpl.cmis.object.OwCMISObjectBase.getProperty(OwCMISObjectBase.java:610)
   at com.wewebu.ow.server.ecmimpl.cmis.object.OwCMISDocumentObject.hasContent(OwCMISDocumentObject.java:221)
   at com.wewebu.ow.server.plug.owdocview.OwDownloadAsZipDocumentFunction.isEnabled(OwDownloadAsZipDocumentFunction.java:77)
   at com.wewebu.ow.server.dmsdialogs.views.OwObjectListViewPluginCache$OwPluginStatusCachingUtility.preparePluginInfo(OwObjectListViewPluginCache.java:237)
   at com.wewebu.ow.server.dmsdialogs.views.OwObjectListViewPluginCache$OwPluginStatusCachingUtility.<init>(OwObjectListViewPluginCache.java:168)
   at com.wewebu.ow.server.dmsdialogs.views.OwObjectListViewPluginCache.createPluginStatusCacheUtility(OwObjectListViewPluginCache.java:97)
   at com.wewebu.ow.server.dmsdialogs.views.OwObjectListViewPluginCache.createPluginStatusCacheUtility(OwObjectListViewPluginCache.java:81)
   at com.wewebu.ow.server.dmsdialogs.views.OwObjectListViewRow.onRender(OwObjectListViewRow.java:984)
   at com.wewebu.ow.server.ui.OwView.render(OwView.java:317)
   at com.wewebu.ow.server.ui.helper.OwInnerViewWrapper.render(OwInnerViewWrapper.java:90)
   at com.wewebu.ow.server.ui.OwLayout.renderRegion(OwLayout.java:211)
   at com.wewebu.ow.server.plug.owrecord.OwRecordContentView.renderRegion(OwRecordContentView.java:87)
   at org.apache.jsp.designs.default20.owrecord.OwRecordContentView_jsp._jspService(OwRecordContentView_jsp.java:83)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   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 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
   at com.wewebu.ow.server.ui.OwAppContext.serverSideInclude(OwAppContext.java:722)
   at com.wewebu.ow.server.ui.OwView.serverSideInclude(OwView.java:427)
   at com.wewebu.ow.server.ui.OwView.serverSideDesignInclude(OwView.java:467)
   at com.wewebu.ow.server.plug.owrecord.OwRecordContentView.onRender(OwRecordContentView.java:165)
   at com.wewebu.ow.server.ui.OwView.render(OwView.java:323)
   at com.wewebu.ow.server.plug.owrecord.OwRecordView.onAjaxUpdate(OwRecordView.java:548)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.wewebu.ow.server.ui.OwAppContext.handleAjaxRequest(OwAppContext.java:1248)
   at com.wewebu.ow.server.ui.OwWebApplication.handleAjaxRequest(OwWebApplication.java:286)
   at org.apache.jsp.owajax_jsp._jspService(owajax_jsp.java:81)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   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 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.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Unknown Source)


Any help is appreciated, thanks.

EDIT: Checking stdout, this extra bit of information was in there that may help:


2012-10-19 16:41:56,029 [http-8080-4] ERROR owd.adp.cmis [] - OwCMISPropertyDefinitionBase.createBoundProperty():Invalid native property cmis:contentStreamId type org.oasis_open.docs.ns.cmis.core._200908.CmisPropertyString for org.oasis_open.docs.ns.cmis.core._200908.CmisPropertyId was expected
2012-10-19 16:41:56,029 [http-8080-4] ERROR owd.core [] - OwPluginStatusCachingUtility.constructor: Cannot prepare plugin info. Reason:
com.wewebu.ow.server.exceptions.OwInvalidOperationException: Invalid property!
1 REPLY 1

d_evil
Champ in-the-making
Champ in-the-making
Hi rmf2490,

the errors which are mentioned are normal, most of them are thrown because the CMIS repository is not working correct or the app is trying to do something which is not allowed.

Regarding the exceptions:
OwInvalidOperationException When performing any kind of search (Example error text is: Invalid search field. The field cmis:document.cmis:name can not be queried)

Just telling you that the search is configured to search for cmis:document.cmis:name, but the repository does not allow it.
Look at the provided searchtemplates, define a search regarding your needs.

CmisConstraintException when trying to add a file to the repository (Error text is: The versioning state flag is incompatible to the type definition)

Creating an object which is not versionable, by default the app supports only versionable document creation. There are two create functions available for
document or basic object creation, see the owplugins.xml "create folder"
it can be configured to work also for documents.

And last:
OwInvalidOperationException when navigating to a folder that has files in it (Error text is: Invalid Property!)
That check was introduced into OpenWorkdesk to avoid class cast exceptions,
explaining that the property which is provide does not match the definition of type.

For more accurate/exact descriptions see the log file - if one was configured -
or in your console.

Hope that helps  you a little bit.

Cheers,
D.evil