Hi all,

After today's update when I try to publish a document, I get a NPE :


*Caused by:* org.nuxeo.ecm.core.api.WrappedException: Exception: *java.lang.NullPointerException. message: null at org.nuxeo.ecm.webapp.publish.PublishActionsBean.isReviewer(PublishActionsBean.java:351) at org.nuxeo.ecm.webapp.publish.PublishActionsBean.publishDocument(PublishActionsBean.java:321)*
  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:585)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)

When I check out the code in debug, it seems it doesn't find the newly published proxy. I thought the JCR session is not saved so it doesn't make changes permanent so that's why it doesn't faind any proxy. Looking at the code in PublishActionsBean at lines 488 and 502, I found the calls to save() method was comented. After uncoment them it works just fine, only a bit slower. Now I remember somebody saying something about the save() methods taking too much time... Does anybody know why were these calls comented and if it worked after the comment was added, and if it worked, what changed ?

Hope it is not too dizzling.

Cheers,
Narcis
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to