-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Duplicate
-
Affects Version/s: 5.5, 5.5.0-HF08
-
Fix Version/s: 5.5.0-HF09, 5.6
-
Environment:Nuxeo 5.5.0-HF08.
Java:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
CMIS client: [CMIS Workbench|https://chemistry.apache.org/java/developing/tools/dev-tools-workbench.html]
-
Tags:
When trying to create a relationship using CMIS (which corresponds to this operation in the CMIS spec), as long as the source id is valid, an exception is thrown on the client side because of a server error. A relationship is created, though, but subsequent attempts to manipulate it on CMIS Workbench fail with a similar error.
This follows another bug first reported on Nuxeo Answers and filed here by Florent Guillaume, which unfortunately did not enable working with relationships on Nuxeo using CMIS (an error disappeared and another arose).
Client-side stack trace, including the server-side stack trace returned by the server (see "Error content"):
> 17:24:25 ERROR hemistry.opencmis.workbench.ClientHelper: CmisRuntimeException: null org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: null at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:452) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:570) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createRelationship(ObjectServiceImpl.java:266) at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createRelationship(SessionImpl.java:805) at org.apache.chemistry.opencmis.workbench.model.ClientModel.createRelationship(ClientModel.java:295) at org.apache.chemistry.opencmis.workbench.CreateRelationshipDialog$1.actionPerformed(CreateRelationshipDialog.java:87) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6288) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6053) > 17:24:25 ERROR hemistry.opencmis.workbench.ClientHelper: Error code: 0 > 17:24:25 ERROR hemistry.opencmis.workbench.ClientHelper: Error content: <html><head><title>Apache Chemistry OpenCMIS - runtime error</title><style><!--H1 {font-size:24px;line-height:normal;font-weight:bold;background-color:#f0f0f0;color:#003366;border-bottom:1px solid #3c78b5;padding:2px;} BODY {font-family:Verdana,arial,sans-serif;color:black;font-size:14px;} HR {color:#3c78b5;height:1px;}--></style></head><body><h1>HTTP Status 500 - <!--exception-->runtime<!--/exception--></h1><p><!--message-->null<!--/message--></p><hr noshade='noshade'/><!--stacktrace--><pre> org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException at org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:90) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:218) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:167) 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.nuxeo.wss.servlet.BaseWSSFilter.doFilter(BaseWSSFilter.java:135) at org.nuxeo.wss.servlet.FailSafeWSSFilter.doFilter(FailSafeWSSFilter.java:55) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.nuxeo.ecm.platform.ui.web.rest.FancyURLFilter.doFilter(FancyURLFilter.java:131) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter.doFilterInternal(NuxeoAuthenticationFilter.java:548) at org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter.doFilter(NuxeoAuthenticationFilter.java:345) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.nuxeo.ecm.platform.wi.filter.WIRequestFilter.doFilter(WIRequestFilter.java:114) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter.doFilter(NuxeoRequestControllerFilter.java:165) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:79) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:59) 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.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:662) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:83) ... 38 more Caused by: java.lang.NullPointerException at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:1159) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyData$NuxeoPropertyDataParentId.getFirstValue(NuxeoPropertyData.java:808) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyData$NuxeoPropertyDataParentId.getFirstValue(NuxeoPropertyData.java:790) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyDataBase.getValues(NuxeoPropertyDataBase.java:80) at org.apache.chemistry.opencmis.commons.impl.Converter.convert(Converter.java:1470) at org.apache.chemistry.opencmis.commons.impl.Converter.convert(Converter.java:1445) at org.apache.chemistry.opencmis.commons.impl.Converter.convert(Converter.java:1577) at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntry.writeObject(AtomEntry.java:81) at org.apache.chemistry.opencmis.server.impl.atompub.AtomPubUtils.writeObjectEntry(AtomPubUtils.java:153) at org.apache.chemistry.opencmis.server.impl.atompub.ObjectService.createRelationship(ObjectService.java:166) ... 43 more </pre><!--/stacktrace--><hr noshade='noshade'/></body></html>
- duplicates
-
NXP-8577 Fix fetching of Relation objects
- Resolved