Cannot issue fireUntilHalt when using persisted session

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot issue fireUntilHalt when using persisted session

rogerL
Due to an issue with reloading persisted sessions that contained a cron timer rule, I upgraded to 6.1.0.Beta3. Now I'm encountering a problem with a threaded fireUntilHalt command (cannot be issued on a persisted session).

Exception in thread "SimpleAsyncTaskExecutor-1" java.lang.UnsupportedOperationException: Command session.fireUntilHalt(); cannot be issued on a persisted session
        at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:474)
        at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:353)
        at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.fireUntilHalt(CommandBasedStatefulKnowledgeSession.java:272)...

It worked without issue in 6.0.1.Final. Though I suspect not, is this expected behaviour? Alternately, are there configuration/other changes that must be implemented.

Libs
spring 4.0.1
kie, drools, jbpm 6.1.0.Beta3
hibernate 4.3.4



 
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] Cannot issue fireUntilHalt when using persisted session

Davide Sottara
Could you please show the code where you persist, reload and invoke
fireUntilHalt() on the session?
Ideally, could you open a jira ticket and post the code there? We'll
take a look then.
Thanks
Davide

On 05/22/2014 01:43 PM, rogerL wrote:

> Due to an issue with reloading persisted sessions that contained a cron timer
> rule, I upgraded to 6.1.0.Beta3. Now I'm encountering a problem with a
> threaded fireUntilHalt command (cannot be issued on a persisted session).
>
> Exception in thread "SimpleAsyncTaskExecutor-1"
> java.lang.UnsupportedOperationException: Command session.fireUntilHalt();
> cannot be issued on a persisted session
> at
> org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:474)
> at
> org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:353)
> at
> org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.fireUntilHalt(CommandBasedStatefulKnowledgeSession.java:272)...
>
> It worked without issue in 6.0.1.Final. Though I suspect not, is this
> expected behaviour? Alternately, are there configuration/other changes that
> must be implemented.
>
> Libs
> spring 4.0.1
> kie, drools, jbpm 6.1.0.Beta3
> hibernate 4.3.4
>
>
>
>  
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Cannot-issue-fireUntilHalt-when-using-persisted-session-tp4029656.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-users
>

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] Cannot issue fireUntilHalt when using persisted session

rogerL
Open ticket https://issues.jboss.org/browse/DROOLS-507.
I didn't provide any persist and reload code as the system hasn't ever reached the point of saving a session.
I tried working around the issue by using fireAllRules and an interval rule. I was able to persist; however, the reload is failed with an exception that I believe may be related to
https://issues.jboss.org/browse/DROOLS-422.
As such, I added a comment therein with the stack trace.