You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Christian Kaltepoth (JIRA)" <ji...@apache.org> on 2014/01/27 07:53:44 UTC
[jira] [Resolved] (DELTASPIKE-513) Transactional interceptor throws
NPE for missing EntityManager
[ https://issues.apache.org/jira/browse/DELTASPIKE-513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Kaltepoth resolved DELTASPIKE-513.
--------------------------------------------
Resolution: Fixed
> Transactional interceptor throws NPE for missing EntityManager
> --------------------------------------------------------------
>
> Key: DELTASPIKE-513
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-513
> Project: DeltaSpike
> Issue Type: Bug
> Components: JPA-Module
> Affects Versions: 0.5
> Reporter: Christian Kaltepoth
> Assignee: Christian Kaltepoth
> Priority: Minor
> Fix For: 0.6
>
>
> The {{@Transactional}} interceptor currently fails with a {{NullPointerException}} if no {{EntityManager}} can be found for the requested qualifier.
> {code}
> java.lang.NullPointerException
> at org.apache.deltaspike.jpa.impl.transaction.ResourceLocalTransactionStrategy.getTransaction(ResourceLocalTransactionStrategy.java:296)
> at org.apache.deltaspike.jpa.impl.transaction.ResourceLocalTransactionStrategy.rollbackAllTransactions(ResourceLocalTransactionStrategy.java:262)
> at org.apache.deltaspike.jpa.impl.transaction.ResourceLocalTransactionStrategy.execute(ResourceLocalTransactionStrategy.java:141)
> at org.apache.deltaspike.jpa.impl.transaction.TransactionalInterceptor.executeInTransaction(TransactionalInterceptor.java:57)
> {code}
> Instead there should be an exception telling the user what exactly is wrong so that it is easier to fix such an issue.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)