[
https://issues.apache.org/jira/browse/ISIS-2459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17229360#comment-17229360
]
ASF subversion and git services commented on ISIS-2459:
-------------------------------------------------------
Commit ea8c27a0c4be2c5bc2713687594c9ce81f5edea7 in isis's branch
refs/heads/master from Andi Huber
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=ea8c27a ]
ISIS-2459: fixes Persistence Session not available for async execution
when adding a new interaction session on top of an existing one (on the
interaction stack), make sure the new session inherits all attributes
from the existing one
the issue occurred when the async tasks is running on the main thread,
because it gets its own interaction session, but not its own persistence
session
observation to make here: async tasks are not guaranteed to spawn their
own thread, hence might share their ThreadLocals with the main thread
> Async Execution might throw 'no current IsisPersistenceSessionJdoBase
> available'
> --------------------------------------------------------------------------------
>
> Key: ISIS-2459
> URL: https://issues.apache.org/jira/browse/ISIS-2459
> Project: Isis
> Issue Type: Bug
> Components: Isis Persistence JDO
> Reporter: Andi Huber
> Assignee: Andi Huber
> Priority: Major
> Fix For: 2.0.0-M5
>
>
> WrapperFactory async execution might run into this issue when running the
> execution task on the ForkJoinPool, seen with
> PublisherServiceTest.publisherService_shouldBeAwareOfInventoryChanges_whenUsingAsyncExecution
> {code}
> Caused by: org.apache.isis.commons.exceptions.IsisException: unrecoverable
> error: 'no current IsisPersistenceSessionJdoBase available'
> at
> org.apache.isis.commons.internal.exceptions._Exceptions.unrecoverable(_Exceptions.java:126)
> at
> org.apache.isis.persistence.jdo.datanucleus5.persistence.IsisPlatformTransactionManagerForJdo.lambda$5(IsisPlatformTransactionManagerForJdo.java:172)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)