11 Replies Latest reply on Jul 12, 2006 6:01 PM by Ronald van Kuijk

    porblem of identification and assigment

    auré manga Novice

      Hi,

      I have create a little portlet which must run the webapp application for beginning. I want to assign ernie to the current actor, so I used jbpmContext.setActorId("ernie"); but when I use this methode I have this error and say me that is a null pointer.

      somebody can help me please to understand how can I resolve this error?

      I put my code and my error under.

      thank you for you help

      antitrust1982

      my code:

      
      
      public class CreateProcessInstanceAction extends ActionSupport{
      
       [...]
       @Override
       public String execute() throws Exception {
      
       System.out.println("#### execute");
       System.out.println("Create process instance" );
      
       processDefinition = ProcessDefinition.parseXmlString(
       "<process-definition name='websale' xmlns='urn:jbpm.org:jpdl-3.1'>"+
       "<swimlane name='buyer'/>"+
       "<swimlane name='salesman'>"+
       "<assignment expression='user(ernie)' />"+
       "</swimlane>"+
       "<swimlane name='accountant'>"+
       "<assignment expression='user(bert)' />"+
       "</swimlane>"+
       "<swimlane name='shipper'>"+
       "<assignment expression='user(grover)' />"+
       "</swimlane>"+
      
       "<start-state name='create new web sale order'>"+
       "<task swimlane='salesman'>"+
       "<controller>"+
       "<variable name='item'/>"+
       "<variable name='quantity'/>"+
       "<variable name='address'/>"+
       "</controller>"+
       "</task>"+
       "<transition to='evaluate web order' />"+
       "</start-state>"+
      
       "<task-node name='evaluate web order'>"+
       "<task swimlane='salesman'>"+
       "<controller>"+
       "<variable name='item' access='read'/>"+
       "<variable name='quantity' access='read'/>"+
       "<variable name='address' access='read'/>"+
       "<variable name='comment'/>"+
       "</controller>"+
       "</task>"+
       "<transition name='ok' to='salefork' />"+
       "<transition name='more info needed' to='fix web order data' />"+
       "</task-node>"+
      
       "<task-node name='fix web order data'>"+
       "<task swimlane='salesman'>"+
       "<controller>"+
       "<variable name='comment' access='read'/>"+
       "<variable name='item' />"+
       "<variable name='quantity' />"+
       "<variable name='address' />"+
       "</controller>"+
       "</task>"+
       "<transition to='evaluate web order' />"+
       "</task-node>"+
      
       "<fork name='salefork'>"+
       "<transition name='payment' to='wait for money' />"+
       "<transition name='shipping' to='ship item' />"+
       "</fork>"+
       "<task-node name='wait for money'>"+
       "<task swimlane='accountant'>"+
       "<controller>"+
       "<variable name='item' access='read' />"+
       "<variable name='quantity' access='read' />"+
       "<variable name='address' access='read' />"+
       "<variable name='money received' />"+
       "</controller>"+
       "</task>"+
       "<transition to='update books' />"+
       "</task-node>"+
      
       "<node name='update books'>"+
       "<action class='org.jbpm.websale.UpdateBooks'>"+
       "<msg>accountancy application is now informed of the payment</msg>"+
       "</action>"+
       "<transition to='salejoin' />"+
       "</node>"+
      
       "<node name='ship item'>"+
       //"<action class='org.jbpm.websale.ShipItem'>"+
       //"<swimlaneName>buyer</swimlaneName>"+
       //"<msg>${shipper} now ships ${item} to ${address}</msg>"+
       // "</action>"+
       "<transition to='salejoin' />"+
       "</node>"+
      
       "<join name='salejoin'>"+
       " <transition to='end' />"+
       "</join>"+
      
       "<end-state name='end' />"+
      
       "</process-definition>"
       );
       System.out.println("################## debut jbpm configuration #############");
      
       jbpmConfiguration = JbpmConfiguration.parseXmlString(
       "<jbpm-configuration>" +
      
       // A jbpm-context mechanism separates the jbpm core
       // engine from the services that jbpm uses from
       // the environment.
      
       " <jbpm-context>" +
       " <service name='persistence' " +
       " factory='org.jbpm.persistence.db.DbPersistenceServiceFactory' />" +
       " </jbpm-context>" +
      
       // Also all the resource files that are used by jbpm are
       // referenced from the jbpm.cfg.xml
      
       " <string name='resource.hibernate.cfg.xml' " +
       " value='hibernate.cfg.xml' />" +
       " <string name='resource.business.calendar' " +
       " value='org/jbpm/calendar/jbpm.business.calendar.properties' />" +
       " <string name='resource.default.modules' " +
       " value='org/jbpm/graph/def/jbpm.default.modules.properties' />" +
       " <string name='resource.converter' " +
       " value='org/jbpm/db/hibernate/jbpm.converter.properties' />" +
       " <string name='resource.action.types' " +
       " value='org/jbpm/graph/action/action.types.xml' />" +
       " <string name='resource.node.types' " +
       " value='org/jbpm/graph/node/node.types.xml' />" +
       " <string name='resource.varmapping' " +
       " value='org/jbpm/context/exe/jbpm.varmapping.xml' />" +
       "</jbpm-configuration>"
       );
      
      
       System.out.println("############# nouvelle instance du process ######################");
       ProcessInstance processInstance =
       new ProcessInstance(processDefinition);
       System.out.println("################## processinstance(processDefinition)");
      
       JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
       jbpmContext.setActorId("ernie");
       try {
       jbpmContext.deployProcessDefinition(processDefinition);
       System.out.println("######### dans le try###########");
      [...]
       }
       finally {
       System.out.println("dans finally");
       jbpmContext.close();
       System.out.println("fermeture du context");
       }
      
       return SUCCESS;
       }
      }



      my error:
      10:43:38,819 INFO [STDOUT] #### execute
      10:43:38,819 INFO [STDOUT] Create process instance
      10:43:38,850 INFO [JbpmConfiguration] using jbpm configuration resource 'jbpm.cfg.xml'
      10:43:38,944 WARN [JpdlXmlReader] process xml warning: swimlane 'buyer' does not have an assignment
      10:43:39,007 WARN [JpdlXmlReader] process xml warning: swimlane 'buyer' does not have an assignment
      10:43:39,007 INFO [STDOUT] ################## debut jbpm configuration #############
      10:43:39,007 INFO [STDOUT] ############# nouvelle instance du process ######################
      10:43:39,038 INFO [STDOUT] ################## processinstance(porcessDefinition)
      10:43:39,054 ERROR [Jsr168Dispatcher] Could not execute action
       java.lang.NullPointerException
       at org.jbpm.JbpmContext.setActorId(JbpmContext.java:459)
       at com.opensymphony.webwork.portlet.tutorial.CreateProcessInstanceAction.execute(CreateProcessInstanceAction.java:190)
       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 com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)
       at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)
       at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:137)
       at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
       at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:136)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:100)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
       at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:325)
       at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.render(Jsr168Dispatcher.java:210)
       at org.jboss.portal.portlet.PortletContainer.invokeRender(PortletContainer.java:521)
       at org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.java:433)
       at org.jboss.portal.server.app.ComponentInvocation.dispatch(ComponentInvocation.java:79)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
       at org.jboss.portal.core.aspects.component.TransactionInterceptor.invoke(TransactionInterceptor.java:72)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.component.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.NavigationInterceptor.invoke(NavigationInterceptor.java:76)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.CacheInterceptor.invoke(CacheInterceptor.java:167)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.ModesInterceptor.invoke(ModesInterceptor.java:88)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:87)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.portlet.aspects.component.SessionPostDispatchInterceptor.invoke(SessionPostDispatchInterceptor.java:65)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java
      :129)
       at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:101)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
       at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
       at org.jboss.portal.server.app.impl.AbstractRequestContext.include(AbstractRequestContext.java:247)
       at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:73)
       at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:81)
       at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:79)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.portlet.aspects.component.SessionPreDispatchInterceptor.invoke(SessionPreDispatchInterceptor.java:94)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:49)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.portlet.aspects.component.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.portlet.aspects.component.ValveInterceptor.invoke(ValveInterceptor.java:64)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
       at org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:84)
       at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:78)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
       at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:85)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:168)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:61)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:68)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
       at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:107)
       at org.jboss.portal.core.command.CommandContext.chain(CommandContext.java:141)
       at org.jboss.portal.core.command.RenderPageCommand.renderPortlets(RenderPageCommand.java:231)
       at org.jboss.portal.core.command.RenderPageCommand.execute(RenderPageCommand.java:164)
       at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:78)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
       at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:85)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:168)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:61)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:58)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
       at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:107)
       at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:93)
       at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:151)
       at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:77)
       at org.jboss.portal.core.CoreController.handle(CoreController.java:190)
       at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
       at $Proxy133.handle(Unknown Source)
       at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:76)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
       at org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:47)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:52)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:69)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:184)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:87)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:75)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
       at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:221)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      10:43:39,085 ERROR [Jsr168Dispatcher] The portlet threw an exception
      javax.portlet.PortletException: Error executing action processInstance
       at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:339)
       at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.render(Jsr168Dispatcher.java:210)
       at org.jboss.portal.portlet.PortletContainer.invokeRender(PortletContainer.java:521)
       at org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.java:433)
       at org.jboss.portal.server.app.ComponentInvocation.dispatch(ComponentInvocation.java:79)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
       at org.jboss.portal.core.aspects.component.TransactionInterceptor.invoke(TransactionInterceptor.java:72)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.component.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.NavigationInterceptor.invoke(NavigationInterceptor.java:76)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.CacheInterceptor.invoke(CacheInterceptor.java:167)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.ModesInterceptor.invoke(ModesInterceptor.java:88)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:87)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.portlet.aspects.component.SessionPostDispatchInterceptor.invoke(SessionPostDispatchInterceptor.java:65)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java
      :129)
       at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:101)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
       at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
       at org.jboss.portal.server.app.impl.AbstractRequestContext.include(AbstractRequestContext.java:247)
       at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:73)
       at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:81)
       at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:79)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.portlet.aspects.component.SessionPreDispatchInterceptor.invoke(SessionPreDispatchInterceptor.java:94)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.component.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:49)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.portlet.aspects.component.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.portlet.aspects.component.ValveInterceptor.invoke(ValveInterceptor.java:64)
       at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
       at org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:84)
       at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:78)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
       at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:85)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:168)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:61)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:68)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
       at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:107)
       at org.jboss.portal.core.command.CommandContext.chain(CommandContext.java:141)
       at org.jboss.portal.core.command.RenderPageCommand.renderPortlets(RenderPageCommand.java:231)
       at org.jboss.portal.core.command.RenderPageCommand.execute(RenderPageCommand.java:164)
       at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:78)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
       at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:85)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:168)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:61)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:58)
       at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
       at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:107)
       at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:93)
       at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:151)
       at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:77)
       at org.jboss.portal.core.CoreController.handle(CoreController.java:190)
       at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
       at $Proxy133.handle(Unknown Source)
       at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:76)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
       at org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:47)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:52)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:69)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:184)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:87)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:75)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
       at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:221)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.NullPointerException
       at org.jbpm.JbpmContext.setActorId(JbpmContext.java:459)
       at com.opensymphony.webwork.portlet.tutorial.CreateProcessInstanceAction.execute(CreateProcessInstanceAction.java:190)
       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 com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)
       at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)
       at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:137)
       at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
       at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:136)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:100)
       at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
       at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
       at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:325)
       ... 160 more


        • 1. Re: porblem of identification and assigment
          auré manga Novice

          Somebody can see any error or a missing in my code?

          There is the good methode in order to put in the "context", the actor or I must use another methode in order to execute my assigned tasks.

          thank you for your help

          antitrust1982

          • 2. Re: porblem of identification and assigment
            Abhiram Jakkireddy Newbie

            Hi ,

            Once you created the process instance as per you code you did n't
            signal the token to next node i.e. your taskNode where a task instance is created . Get that task instance and assign to the current actor.

            TaskInstance taskInstance = jbpmContext.loadTaskInstanceForUpdate(taskInstanceId);
            taskInstance.setActorId(actorId);

            Thanks
            arjakki

            • 3. Re: porblem of identification and assigment
              auré manga Novice

              Hello all,


              I want to run my process but I must change of user during my process. So I want to know how I can assign to the context of a token... an actor in order to change the actor and give the new one.

              THnak you for your help

              antitrust1982

              • 4. Re: porblem of identification and assigment
                auré manga Novice

                Hello,

                I try to use

                TaskInstance taskInstance = jbpmContext.loadTaskInstanceForUpdate(taskInstanceId);
                taskInstance.setActorId(actorId);


                But in order to have the jbpmContext I must use the jbpmConfiguration:

                System.out.println("avant la creation jbpm context");
                 JbpmContext context=jbpmConfiguration.createJbpmContext();
                 System.out.println("avant task instance");
                 TaskInstance taskInstance=context.loadTaskInstanceForUpdate(processInstance.getTaskMgmtInstance().createTaskInstance().getId());
                 System.out.println("avant getid");
                 System.out.println(taskInstance.getId());


                but I have a nullpointer error when I create my jbpmContext.

                Somebody can help me please to understand how resolve my problem.

                this is my error log:
                16:45:06,226 INFO [STDOUT] avant la creation jbpm context
                16:45:06,226 ERROR [Jsr168Dispatcher] Could not execute action
                java.lang.NullPointerException
                 at com.opensymphony.webwork.portlet.tutorial.Tache1.execute(Tache1.java:70)
                 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 com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)
                 at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)
                 at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:137)
                 at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
                 at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:136)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:100)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
                 at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:325)
                 at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.processAction(Jsr168Dispatcher.java:188)
                 at org.jboss.portal.portlet.PortletContainer.invokeAction(PortletContainer.java:492)
                 at org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.java:428)
                 at org.jboss.portal.server.app.ComponentInvocation.dispatch(ComponentInvocation.java:79)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.component.TransactionInterceptor.invoke(TransactionInterceptor.java:72)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.component.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.NavigationInterceptor.invoke(NavigationInterceptor.java:76)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.CacheInterceptor.invoke(CacheInterceptor.java:167)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.ModesInterceptor.invoke(ModesInterceptor.java:88)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:87)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.SessionPostDispatchInterceptor.invoke(SessionPostDispatchInterceptor.java:65)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java
                :129)
                 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.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:101)
                 at org.jboss.portal.server.servlet.CommandServlet.doPost(CommandServlet.java:149)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                 at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
                 at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
                 at org.jboss.portal.server.app.impl.AbstractRequestContext.include(AbstractRequestContext.java:247)
                 at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:73)
                 at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:81)
                 at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:79)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.SessionPreDispatchInterceptor.invoke(SessionPreDispatchInterceptor.java:94)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:49)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.ValveInterceptor.invoke(ValveInterceptor.java:64)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
                 at org.jboss.portal.core.command.InvokeWindowActionCommand.execute(InvokeWindowActionCommand.java:134)
                 at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:78)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:85)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:168)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:61)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:58)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
                 at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:107)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:93)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:77)
                 at org.jboss.portal.core.CoreController.handle(CoreController.java:190)
                 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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                 at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
                 at $Proxy133.handle(Unknown Source)
                 at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:76)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:47)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:52)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:69)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:184)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:87)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:75)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
                 at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:221)
                 at org.jboss.portal.server.servlet.PortalServlet.doPost(PortalServlet.java:149)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                 at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                 at java.lang.Thread.run(Thread.java:595)
                16:45:06,538 ERROR [Jsr168Dispatcher] The portlet threw an exception
                javax.portlet.PortletException: Error executing action task1
                 at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:339)
                 at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.processAction(Jsr168Dispatcher.java:188)
                 at org.jboss.portal.portlet.PortletContainer.invokeAction(PortletContainer.java:492)
                 at org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.java:428)
                 at org.jboss.portal.server.app.ComponentInvocation.dispatch(ComponentInvocation.java:79)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.component.TransactionInterceptor.invoke(TransactionInterceptor.java:72)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.component.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.NavigationInterceptor.invoke(NavigationInterceptor.java:76)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.CacheInterceptor.invoke(CacheInterceptor.java:167)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.ModesInterceptor.invoke(ModesInterceptor.java:88)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:87)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.SessionPostDispatchInterceptor.invoke(SessionPostDispatchInterceptor.java:65)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java
                :129)
                 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.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:101)
                 at org.jboss.portal.server.servlet.CommandServlet.doPost(CommandServlet.java:149)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                 at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
                 at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
                 at org.jboss.portal.server.app.impl.AbstractRequestContext.include(AbstractRequestContext.java:247)
                 at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:73)
                 at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:81)
                 at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:79)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.SessionPreDispatchInterceptor.invoke(SessionPreDispatchInterceptor.java:94)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:49)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.ValveInterceptor.invoke(ValveInterceptor.java:64)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
                 at org.jboss.portal.core.command.InvokeWindowActionCommand.execute(InvokeWindowActionCommand.java:134)
                 at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:78)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:85)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:168)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:61)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:58)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
                 at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:107)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:93)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:77)
                 at org.jboss.portal.core.CoreController.handle(CoreController.java:190)
                 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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                 at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
                 at $Proxy133.handle(Unknown Source)
                 at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:76)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:47)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:52)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:69)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:184)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:87)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:75)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
                 at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:221)
                 at org.jboss.portal.server.servlet.PortalServlet.doPost(PortalServlet.java:149)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                 at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: java.lang.NullPointerException
                 at com.opensymphony.webwork.portlet.tutorial.Tache1.execute(Tache1.java:70)
                 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 com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)
                 at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)
                 at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:137)
                 at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
                 at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:136)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:100)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
                 at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:325)
                 ... 144 more
                16:45:06,804 ERROR [InvokeWindowActionCommand] An portlet exception occured in portlet MyPortlet.MyPortlet
                javax.portlet.PortletException: Error executing action task1
                 at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:339)
                 at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.processAction(Jsr168Dispatcher.java:188)
                 at org.jboss.portal.portlet.PortletContainer.invokeAction(PortletContainer.java:492)
                 at org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.java:428)
                 at org.jboss.portal.server.app.ComponentInvocation.dispatch(ComponentInvocation.java:79)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.component.TransactionInterceptor.invoke(TransactionInterceptor.java:72)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.component.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.NavigationInterceptor.invoke(NavigationInterceptor.java:76)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.CacheInterceptor.invoke(CacheInterceptor.java:167)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.ModesInterceptor.invoke(ModesInterceptor.java:88)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:87)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.SessionPostDispatchInterceptor.invoke(SessionPostDispatchInterceptor.java:65)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java
                :129)
                 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.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:101)
                 at org.jboss.portal.server.servlet.CommandServlet.doPost(CommandServlet.java:149)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                 at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
                 at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
                 at org.jboss.portal.server.app.impl.AbstractRequestContext.include(AbstractRequestContext.java:247)
                 at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:73)
                 at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:81)
                 at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:79)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.SessionPreDispatchInterceptor.invoke(SessionPreDispatchInterceptor.java:94)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.component.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:49)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.component.ValveInterceptor.invoke(ValveInterceptor.java:64)
                 at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
                 at org.jboss.portal.core.command.InvokeWindowActionCommand.execute(InvokeWindowActionCommand.java:134)
                 at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:78)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:85)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:168)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:61)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:58)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
                 at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:107)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:93)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:77)
                 at org.jboss.portal.core.CoreController.handle(CoreController.java:190)
                 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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                 at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
                 at $Proxy133.handle(Unknown Source)
                 at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:76)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:47)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:52)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:69)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:184)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:87)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:75)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
                 at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:221)
                 at org.jboss.portal.server.servlet.PortalServlet.doPost(PortalServlet.java:149)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                 at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: java.lang.NullPointerException
                 at com.opensymphony.webwork.portlet.tutorial.Tache1.execute(Tache1.java:70)
                 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 com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)
                 at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)
                 at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:137)
                 at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
                 at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:136)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:100)
                 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
                 at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
                 at com.opensymphony.webwork.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:325)
                 ... 144 more
                


                • 6. Re: porblem of identification and assigment
                  New Bie Newbie

                  Antitrust1982,

                  You can get the current context using:

                  JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();

                  Once you have jbpm context, you can load the task instance by using task management definition like:

                  jbpmContext.getTaskMgmtSession().loadTaskInstance(TaskInstanceId()))

                  Thanks.

                  • 7. Re: porblem of identification and assigment
                    Ronald van Kuijk Master

                    Newbie007,

                    That method is deprecated, so I advise against using it.

                    • 8. Re: porblem of identification and assigment
                      Abhiram Jakkireddy Newbie

                      Hi ,

                      Here are the steps I think of . Yes you have use the JbpmConfiguration


                      static JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();

                      JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();

                      put the jbpmContext.setSession(..) , you need to set I think of it should be your hibernate session

                      TaskInstance taskInstance = jbpmContext.loadTaskInstanceForUpdate(taskInstanceId);
                      taskInstance.setActorId(actorId);



                      Thanks
                      arjakki

                      • 9. Re: porblem of identification and assigment
                        Ronald van Kuijk Master

                        try creating the jbpmConfiguration as little as possible (e.g. not in a request object/session but even higher!!)

                        • 10. Re: porblem of identification and assigment
                          New Bie Newbie

                          Ronald,

                          The method "getCurrentJbpmContext" is deprecated in which release?

                          We are using 3.1.1 and I don't see that one as deprecated.

                          Thanks.

                          • 11. Re: porblem of identification and assigment
                            Ronald van Kuijk Master

                            Correct, Mea Culpa. It is deprecated in 3.2 (currently in cvs)