9 Replies Latest reply on Feb 25, 2010 2:22 PM by Maciej Swiderski

    [jBPM4.1] - No Environment Exception

    Mike Burton Newbie



      Can anyone please guide me how to fix this. When i am trying to get the outgoing transitions from an activity/state i end up with below exception.

      Can anyone please  suggest me why i am getting this exception and how to fix this.


      org.jbpm.api.JbpmException: no environment to get org.jbpm.pvm.internal.session.RepositorySession
      at org.jbpm.pvm.internal.env.Environment.getFromCurrent(Environment.java:196)
      at org.jbpm.pvm.internal.env.Environment.getFromCurrent(Environment.java:189)
      at org.jbpm.pvm.internal.model.ExecutionImpl.getProcessDefinition(ExecutionImpl.java:1096)
      at org.jbpm.pvm.internal.model.ExecutionImpl.getActivity(ExecutionImpl.java:1118)


      Thanks for your valuable reply