[Hippo-cms7-user] Exception when trying to create a workflow

Mansour Al Akeel mansour.alakeel at gmail.com
Thu May 20 14:02:32 CEST 2010


On Thu May 20,2010 01:25 pm, Woonsan Ko wrote:
> On Thu, May 20, 2010 at 12:31 PM, Mansour Al Akeel
> <mansour.alakeel at gmail.com> wrote:
> > Woonsan, please see my comments.
> >
> > On Thu May 20,2010 12:22 pm, Woonsan Ko wrote:
> >> On Thu, May 20, 2010 at 11:58 AM, Mansour Al Akeel
> >> <mansour.alakeel at gmail.com> wrote:
> >> > Thank you all.
> >> > It's working now. The issue was with the bind method in the ContactBean.
> >> > It should return true or an exception will be thrown.
> >> Ah, right. Only when the bind method implementation returns true, the
> >> content node will be saved.
> >> Thanks for the information.
> >
> > I think the contents will be saved in all cases, but if bind returns
> > false an exception will be thrown after the contents is saved. I am not
> > sure about this, and need to confirm.
> I think you're right because the nodes are already created when
> create() method was invoked.
> What I meant was that the binded properties would not be saved.
> 
> Thanks for the pointer.
You are very welcome. 

I think every thing functions the same regardless whether the
bind method returns true or false. The only difference is to throw or not
to throw an exceptions. :) 
That's how things look to me. 
 
> 
> Woonsan
> 
> >
> > thank you.
> >
> >>
> >> Woonsan
> >>
> >> >
> >> > I appreciate everyone's help.
> >> >
> >> >
> >> > On Thu May 20,2010 12:13 pm, Mansour Al Akeel wrote:
> >> >> On Thu May 20,2010 10:25 am, Woonsan Ko wrote:
> >> >> > Hi Mansour,
> >> >> >
> >> >> > Please see my inline comments below.
> >> >> >
> >> >> .....
> >> >>
> >> >> > In most cases, the persistence manager creates document nodes in that
> >> >> > way. The first message node, /content/documents/mysite/msg-123, is a
> >> >> > handle node and the child node,
> >> >> > /content/documents/mysite/msg-123/msg-123, is the physical content
> >> >> > node.
> >> >> > However, whether you call getObject() with handle node path or
> >> >> > physical content node path, it would return the same object from the
> >> >> > proper content node. So, I don't think this is a problem.
> >> >> >
> >> >> > Regards,
> >> >> >
> >> >> > Woonsan
> >> >> >
> >> >>
> >> >> Hello Woonsan:
> >> >> I agree with you. I don't think it's with getObject. I believe it's Content Binding issue, since I didn't implement it. Here'e the stack trace:
> >> >>
> >> >> org.hippoecm.hst.content.beans.ObjectBeanPersistenceException: Exception while trying to update '/content/documents/mysite/comments/msg-1274297838381/msg-1274297838381'
> >> >> ? ? at org.hippoecm.hst.content.beans.manager.workflow.WorkflowPersistenceManagerImpl.update(WorkflowPersistenceManagerImpl.java:378)
> >> >> ? ? at org.hippoecm.hst.content.beans.manager.workflow.WorkflowPersistenceManagerImpl.update(WorkflowPersistenceManagerImpl.java:303)
> >> >> ? ? at com.sardonyxsolutions.hippocms.components.Contact.doAction(Contact.java:102)
> >> >> ? ? at org.hippoecm.hst.core.container.HstComponentInvokerImpl.invokeAction(HstComponentInvokerImpl.java:67)
> >> >> ? ? 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
> >> >> ? ? at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
> >> >> ? ? at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
> >> >> ? ? at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
> >> >> ? ? at org.hippoecm.hst.core.logging.HstComponentInvokerProfiler.profile(HstComponentInvokerProfiler.java:70)
> >> >> ? ? at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
> >> >> ? ? at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> >> ? ? at java.lang.reflect.Method.invoke(Method.java:597)
> >> >> ? ? at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
> >> >> ? ? at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
> >> >> ? ? at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
> >> >> ? ? at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
> >> >> ? ? at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
> >> >> ? ? at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
> >> >> ? ? at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> >> >> ? ? at $Proxy0.invokeAction(Unknown Source)
> >> >> ? ? at org.hippoecm.hst.core.container.ActionValve.invoke(ActionValve.java:73)
> >> >> ? ? at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:97)
> >> >> ? ? at org.hippoecm.hst.core.container.SiteMenusResolvingValve.invoke(SiteMenusResolvingValve.java:39)
> >> >> ? ? at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:97)
> >> >> ? ? at org.hippoecm.hst.core.container.SecurityValve.invoke(SecurityValve.java:55)
> >> >> ? ? at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:97)
> >> >> ? ? at org.hippoecm.hst.core.container.ContextResolvingValve.invoke(ContextResolvingValve.java:155)
> >> >> ? ? at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:97)
> >> >> ? ? at org.hippoecm.hst.core.container.SiteResolvingValve.invoke(SiteResolvingValve.java:73)
> >> >> ? ? at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:97)
> >> >> ? ? at org.hippoecm.hst.core.container.HstURLValve.invoke(HstURLValve.java:53)
> >> >> ? ? at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:97)
> >> >> ? ? at org.hippoecm.hst.core.container.HstSitePipeline.invokeValves(HstSitePipeline.java:66)
> >> >> ? ? at org.hippoecm.hst.core.container.HstSitePipeline.invoke(HstSitePipeline.java:57)
> >> >> ? ? at org.hippoecm.hst.core.container.HstRequestProcessorImpl.processRequest(HstRequestProcessorImpl.java:69)
> >> >> ? ? at org.hippoecm.hst.core.container.HstRequestProcessorImpl.processRequest(HstRequestProcessorImpl.java:35)
> >> >> ? ? at org.hippoecm.hst.container.HstContainerServlet.invoke(HstContainerServlet.java:196)
> >> >> ? ? at org.hippoecm.hst.container.HstContainerServlet.service(HstContainerServlet.java:209)
> >> >> ? ? at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> >> >> ? ? at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
> >> >> ? ? at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
> >> >> ? ? at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> >> >> ? ? at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> >> >> ? ? at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> >> >> ? ? at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
> >> >> ? ? at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:334)
> >> >> ? ? at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
> >> >> ? ? at org.hippoecm.hst.container.HstVirtualHostsFilter.doFilter(HstVirtualHostsFilter.java:129)
> >> >> ? ? at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
> >> >> ? ? at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
> >> >> ? ? at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
> >> >> ? ? at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
> >> >> ? ? at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
> >> >> ? ? at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> >> >> ? ? at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> >> >> ? ? at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> >> >> ? ? at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
> >> >> ? ? at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> >> >> ? ? at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> >> >> ? ? at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> >> >> ? ? at org.mortbay.jetty.Server.handle(Server.java:326)
> >> >> ? ? at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
> >> >> ? ? at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
> >> >> ? ? at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
> >> >> ? ? at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> >> >> ? ? at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> >> >> ? ? at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> >> >> ? ? at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
> >> >> Caused by: java.lang.NullPointerException
> >> >> ? ? at org.hippoecm.repository.impl.WorkflowManagerImpl.getWorkflow(WorkflowManagerImpl.java:401)
> >> >> ? ? at org.hippoecm.repository.decorating.checked.WorkflowManagerDecorator.getWorkflow(WorkflowManagerDecorator.java:72)
> >> >> ? ? at org.hippoecm.repository.decorating.server.ServerWorkflowManager.getWorkflow(ServerWorkflowManager.java:79)
> >> >> ? ? 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
> >> >> ? ? at sun.rmi.transport.Transport$1.run(Transport.java:159)
> >> >> ? ? at java.security.AccessController.doPrivileged(Native Method)
> >> >> ? ? at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
> >> >> ? ? at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
> >> >> ? ? at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> >> >> ? ? at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> >> >> ? ? at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> >> >> ? ? at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> >> >> ? ? at java.lang.Thread.run(Thread.java:619)
> >> >> ? ? at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
> >> >> ? ? at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
> >> >> ? ? at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
> >> >> ? ? at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
> >> >> ? ? at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
> >> >> ? ? at $Proxy13.getWorkflow(Unknown Source)
> >> >> ? ? at org.hippoecm.repository.decorating.client.ClientWorkflowManager.getWorkflow(ClientWorkflowManager.java:86)
> >> >> ? ? at org.hippoecm.hst.content.beans.manager.workflow.WorkflowPersistenceManagerImpl.getWorkflow(WorkflowPersistenceManagerImpl.java:600)
> >> >> ? ? at org.hippoecm.hst.content.beans.manager.workflow.WorkflowPersistenceManagerImpl.update(WorkflowPersistenceManagerImpl.java:369)
> >> >> ? ? ... 71 more
> >> >>
> >> >> Long time ago, I came across a page for contents binding on the Hippo Site, but I am unable to find it now.
> >> >> Any advice ?
> >> >>
> >> >> Thank you.
> >> >>
> >> > _______________________________________________
> >> > Hippo-cms7-user mailing list and forums
> >> > http://www.onehippo.org/cms7/support/forums.html
> >> >
> >>
> >>
> >>
> >> --
> >> w.ko at onehippo.com ? ? www.onehippo.com
> >> EUROPE ? AMSTERDAM - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
> >> NORTH AMERICA ? SAN FRANCISCO - Hippo USA Inc. 185 H Street, Suite B
> >> Petaluma CA 94952 +1 (877) 414-4776
> >> _______________________________________________
> >> Hippo-cms7-user mailing list and forums
> >> http://www.onehippo.org/cms7/support/forums.html
> > _______________________________________________
> > Hippo-cms7-user mailing list and forums
> > http://www.onehippo.org/cms7/support/forums.html
> >
> 
> 
> 
> -- 
> w.ko at onehippo.com     www.onehippo.com
> EUROPE ? AMSTERDAM - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
> NORTH AMERICA ? SAN FRANCISCO - Hippo USA Inc. 185 H Street, Suite B
> Petaluma CA 94952 +1 (877) 414-4776
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html



More information about the Hippo-cms7-user mailing list