[daisy] Workflow error assigning task to actor

Michael Halpin mhalpin at globaluniversity.edu
Tue Jul 29 18:25:43 CEST 2008


Has anyone figured out the answer to this?  I am having the same problem
while trying to assign a task to another user.

Thanks,
Michael
____________________
I believe that banking institutions are more dangerous to our liberties
than standing armies. If the American people ever allow private banks to
control the issue of their currency, first by inflation, then by
deflation, the banks and corporations that will grow up around [the
banks] will deprive the people of all property until their children
wake-up homeless on the continent their fathers conquered. The issuing
power should be taken from the banks and restored to the people, to whom
it properly belongs.
-----Original Message-----
From: daisy-bounces at lists.cocoondev.org
[mailto:daisy-bounces at lists.cocoondev.org] On Behalf Of Caleb Callaway
Sent: Wednesday, July 23, 2008 2:35 PM
To: 'Daisy: open source CMS - general mailinglist'
Subject: [daisy] Workflow error assigning task to actor

Hello,

Using Daisy 2.2, I've run into a problem when trying to assign a task
from a
pool to a specific user: the error message is "Error assigning task to
actor." Stack trace is at the end of the e-mail. If I'm reading the
trace
right, the problem is a null pointer exception thrown by this line of
code
in NotifyTaskAssignAction.java

	EmailSubscriptionManager subscriptionManager =
(EmailSubscriptionManager)wfRepository.getExtension("EmailSubscriptionMa
nage
r");

I've tried this on two separate instances of Daisy, one is my main
development/testbed instance, and one stock install that I haven't
customized at all, with the same results.

The sections from development/testbed myconfig.xml that I believe are
relevant run like this:

  <target path="/daisy/emailer/emailer">
    <configuration>
      <smtpHost>mail.autometrix.com</smtpHost>
      <fromAddress>daisy at autometrix.com</fromAddress>
    </configuration>
  </target>

  <target path="/daisy/extensions/emailnotifier/emailnotifier">
    <configuration>
      <repositoryUser password="[deleted]" user="internal"/>
      <documentURLs>
        <documentURL url="http://[internal site]/support/{id}"/>
      </documentURLs>
      <!--
      <eventsIngoredUsers>
        <user>john</user>
        <user>lisa</user>
      </eventsIngoredUsers>
      -->
        <enabled>false</enabled>
    </configuration>
  </target>

The extension is specified in the wikidata/daisy.xconf:

      <extension
class="org.outerj.daisy.emailnotifier.clientimpl.RemoteEmailSubscription
Mana
gerProvider" name="EmailSubscriptionManager"/>

I have administrative privileges. The user to whom I'm trying to assign
the
task has a defined e-mail address. I've searched the mailing lists,
searched
the documentation, and looked through the source code...I'm stumped, and
would very much appreciate some help.

Cocoon Stack Trace
Message: Sitemap: error calling continuation
context:/daisy/sitemap.xmap - 840:44	<map:call>

Java Stack Trace
Message: Sitemap: error calling continuation
Class: org.apache.cocoon.ProcessingException
Stacktrace:
org.apache.cocoon.ProcessingException.throwLocated
(ProcessingException.java:113)
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invo
ke
(CallFunctionNode.java:126)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke
(ActTypeNode.java:139)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:143)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:93)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:235)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:177)
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:253)
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke
(MountNode.java:118)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:143)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:93)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:235)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:177)
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:253)
org.apache.cocoon.Cocoon.process (Cocoon.java:699)
org.apache.cocoon.servlet.CocoonServlet.service
(CocoonServlet.java:1154)
javax.servlet.http.HttpServlet.service (HttpServlet.java:820)
org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:487)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1098)
org.outerj.daisy.frontend.util.CharacterEncodingFilter.doFilter
(CharacterEncodingFilter.java:35)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1089)
org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:365)
org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
org.mortbay.jetty.webapp.WebAppContext.handle (WebAppContext.java:405)
org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.java:114)
org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
org.mortbay.jetty.Server.handle (Server.java:285)
org.mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java:502)
org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:835)
org.mortbay.jetty.HttpParser.parseNext (HttpParser.java:641)
org.mortbay.jetty.HttpParser.parseAvailable (HttpParser.java:208)
org.mortbay.jetty.HttpConnection.handle (HttpConnection.java:378)
org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:368)
org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)

Message: Error assigning task to actor.
Class: org.outerj.daisy.workflow.WorkflowException
Stacktrace:
sun.reflect.NativeConstructorAccessorImpl.newInstance0 [native method]
(NativeConstructorAccessorImpl.java:-2)
sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance (Constructor.java:513)
org.outerj.daisy.repository.clientimpl.infrastructure.DaisyHttpClient.tr
yRes
toreOriginalException (DaisyHttpClient.java:255)
org.outerj.daisy.repository.clientimpl.infrastructure.DaisyHttpClient.tr
yRes
toreOriginalExceptionAndThrowIt (DaisyHttpClient.java:218)
org.outerj.daisy.repository.clientimpl.infrastructure.DaisyHttpClient.ha
ndle
NotOkResponse (DaisyHttpClient.java:173)
org.outerj.daisy.repository.clientimpl.infrastructure.DaisyHttpClient.ex
ecut
eMethod (DaisyHttpClient.java:111)
org.outerj.daisy.workflow.clientimpl.RemoteWorkflowManager.assignTask
(RemoteWorkflowManager.java:451)
org.outerj.daisy.frontend.workflow.WfAssignTaskApple.processRequest
(WfAssignTaskApple.java:118)
org.outerj.daisy.frontend.util.AbstractDaisyApple.process
(AbstractDaisyApple.java:61)
org.apache.cocoon.components.flow.apples.ApplesProcessor.processApple
(ApplesProcessor.java:139)
org.apache.cocoon.components.flow.apples.ApplesProcessor.handleContinuat
ion
(ApplesProcessor.java:108)
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invo
ke
(CallFunctionNode.java:124)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke
(ActTypeNode.java:139)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:143)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:93)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:235)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:177)
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:253)
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke
(MountNode.java:118)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:143)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes (AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:93)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:235)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:177)
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:253)
org.apache.cocoon.Cocoon.process (Cocoon.java:699)
org.apache.cocoon.servlet.CocoonServlet.service
(CocoonServlet.java:1154)
javax.servlet.http.HttpServlet.service (HttpServlet.java:820)
org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:487)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1098)
org.outerj.daisy.frontend.util.CharacterEncodingFilter.doFilter
(CharacterEncodingFilter.java:35)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1089)
org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:365)
org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
org.mortbay.jetty.webapp.WebAppContext.handle (WebAppContext.java:405)
org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.java:114)
org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
org.mortbay.jetty.Server.handle (Server.java:285)
org.mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java:502)
org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:835)
org.mortbay.jetty.HttpParser.parseNext (HttpParser.java:641)
org.mortbay.jetty.HttpParser.parseAvailable (HttpParser.java:208)
org.mortbay.jetty.HttpConnection.handle (HttpConnection.java:378)
org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:368)
org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)

Message:
Class: org.jbpm.graph.def.DelegationException
Stacktrace:
ATTENTION: this is the stacktrace of an exception that happened on the
repository server.
org.jbpm.graph.def.GraphElement.raiseException (GraphElement.java:367)
sun.reflect.NativeMethodAccessorImpl.invoke0 [native method]
(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke (Method.java:597)
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke
(CGLIBLazyInitializer.java:147)
org.jbpm.graph.def.ProcessDefinition$$EnhancerByCGLIB$$5907caa1.raiseExc
epti
on (<generated>:-1)
org.jbpm.graph.def.GraphElement.raiseException (GraphElement.java:358)
sun.reflect.NativeMethodAccessorImpl.invoke0 [native method]
(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke (Method.java:597)
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke
(CGLIBLazyInitializer.java:147)
org.jbpm.graph.node.TaskNode$$EnhancerByCGLIB$$3095147b.raiseException
(<generated>:-1)
org.jbpm.graph.def.GraphElement.raiseException (GraphElement.java:358)
org.jbpm.graph.def.GraphElement.executeAction (GraphElement.java:261)
org.jbpm.graph.def.GraphElement.executeActions (GraphElement.java:215)
org.jbpm.graph.def.GraphElement.fireAndPropagateEvent
(GraphElement.java:185)
org.jbpm.graph.def.GraphElement.fireEvent (GraphElement.java:169)
sun.reflect.NativeMethodAccessorImpl.invoke0 [native method]
(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke (Method.java:597)
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke
(CGLIBLazyInitializer.java:147)
org.jbpm.taskmgmt.def.Task$$EnhancerByCGLIB$$9cea687e.fireEvent
(<generated>:-1)
org.jbpm.taskmgmt.exe.TaskInstance.setActorId (TaskInstance.java:289)
org.outerj.daisy.workflow.serverimpl.CommonWorkflowManager$20.run
(CommonWorkflowManager.java:1019)
org.outerj.daisy.workflow.serverimpl.CommonWorkflowManager.executeJbpmRu
nnab
le (CommonWorkflowManager.java:1415)
org.outerj.daisy.workflow.serverimpl.CommonWorkflowManager.assignTask
(CommonWorkflowManager.java:1009)
org.outerj.daisy.workflow.serverimpl.WorkflowManagerImpl.assignTask
(WorkflowManagerImpl.java:118)
org.outerj.daisy.workflow.serverimpl.httpconnector.handlers.TaskHandler.
hand
leRequest (TaskHandler.java:93)
org.outerj.daisy.httpconnector.HttpConnector$PathHandler.handle
(HttpConnector.java:339)
org.outerj.daisy.httpconnector.HttpConnector$DaisyServlet.service
(HttpConnector.java:282)
javax.servlet.http.HttpServlet.service (HttpServlet.java:802)
org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:487)
org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:367)
org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
org.mortbay.jetty.Server.handle (Server.java:285)
org.mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java:502)
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:821)
org.mortbay.jetty.HttpParser.parseNext (HttpParser.java:513)
org.mortbay.jetty.HttpParser.parseAvailable (HttpParser.java:208)
org.mortbay.jetty.HttpConnection.handle (HttpConnection.java:378)
org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:368)
org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)

Message:
Class: java.lang.NullPointerException
Stacktrace:
ATTENTION: this is the stacktrace of an exception that happened on the
repository server.
org.outerj.daisy.workflow.jbpm_util.NotifyTaskAssignAction.execute
(NotifyTaskAssignAction.java:78)
org.jbpm.graph.def.Action.execute (Action.java:122)
org.jbpm.graph.def.GraphElement.executeAction (GraphElement.java:247)
org.jbpm.graph.def.GraphElement.executeActions (GraphElement.java:215)
org.jbpm.graph.def.GraphElement.fireAndPropagateEvent
(GraphElement.java:185)
org.jbpm.graph.def.GraphElement.fireEvent (GraphElement.java:169)
sun.reflect.NativeMethodAccessorImpl.invoke0 [native method]
(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke (Method.java:597)
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke
(CGLIBLazyInitializer.java:147)
org.jbpm.taskmgmt.def.Task$$EnhancerByCGLIB$$9cea687e.fireEvent
(<generated>:-1)
org.jbpm.taskmgmt.exe.TaskInstance.setActorId (TaskInstance.java:289)
org.outerj.daisy.workflow.serverimpl.CommonWorkflowManager$20.run
(CommonWorkflowManager.java:1019)
org.outerj.daisy.workflow.serverimpl.CommonWorkflowManager.executeJbpmRu
nnab
le (CommonWorkflowManager.java:1415)
org.outerj.daisy.workflow.serverimpl.CommonWorkflowManager.assignTask
(CommonWorkflowManager.java:1009)
org.outerj.daisy.workflow.serverimpl.WorkflowManagerImpl.assignTask
(WorkflowManagerImpl.java:118)
org.outerj.daisy.workflow.serverimpl.httpconnector.handlers.TaskHandler.
hand
leRequest (TaskHandler.java:93)
org.outerj.daisy.httpconnector.HttpConnector$PathHandler.handle
(HttpConnector.java:339)
org.outerj.daisy.httpconnector.HttpConnector$DaisyServlet.service
(HttpConnector.java:282)
javax.servlet.http.HttpServlet.service (HttpServlet.java:802)
org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:487)
org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:367)
org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
org.mortbay.jetty.Server.handle (Server.java:285)
org.mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java:502)
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:821)
org.mortbay.jetty.HttpParser.parseNext (HttpParser.java:513)
org.mortbay.jetty.HttpParser.parseAvailable (HttpParser.java:208)
org.mortbay.jetty.HttpConnection.handle (HttpConnection.java:378)
org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:368)
org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)

_______________________________________________
daisy community mailing list
Professional Daisy support:
http://outerthought.org/en/services/daisy/support.html
mail to: daisy at lists.cocoondev.org
list information: http://lists.cocoondev.org/mailman/listinfo/daisy


More information about the daisy mailing list