[ 
https://issues.apache.org/jira/browse/ARIES-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15013729#comment-15013729
 ] 

Christian Schneider edited comment on ARIES-1454 at 11/19/15 3:48 PM:
----------------------------------------------------------------------

I had a lot of problems with the GC when I started using the Coordinator. I 
just called begin to put the coordination on the thread based stack. In this 
case the GC indeed cleans it up.
Now it is different though. The Coordination should be stored on the 
PrecallToken so the GC should not happen. 

So I am not sure what is going on. Can you test with the code on trunk or do 
you need a backport? (The transaction blueprint 2.0.0 has a new namespace and 
works only with annoations).


was (Author: ch...@die-schneider.net):
I had a lot of problems with the GC when I started using the Coordinator. I 
just called begin to put the coordination on the thread based stack. In this 
case the GC indeed cleans it up.
Now it is different though. The Coordination should be stored on the 
PrecallToken so the GC should not happen. 

So I am not sure what is going on. Can you test with the code on trunk or do 
you need a backport?

> NPE in TxInterceptor
> --------------------
>
>                 Key: ARIES-1454
>                 URL: https://issues.apache.org/jira/browse/ARIES-1454
>             Project: Aries
>          Issue Type: Bug
>          Components: Transaction
>    Affects Versions: transaction-blueprint-1.1.1
>         Environment: Karaf 4.0.2 (Felix)
> JPA (Hibernate)
>            Reporter: Mohammad Shamsi
>            Assignee: Christian Schneider
>             Fix For: transaction-3.0.0
>
>
> I am running some load tests agains an osgi app, which is running inside 
> karaf 4.0.2, using Aries Blueprint and JPA (Hibernate) .
> The test is using multiple threads (10) to issue  some random calls to the 
> application. 
> Sometimes, randomly, some of the call throwing NPE in TxInterceptor: 
> {code:java}
> java.lang.NullPointerException
>         at 
> org.apache.aries.transaction.TxInterceptorImpl.postCallWithReturn(TxInterceptorImpl.java:101)[66:org.apache.aries.transaction.blueprint:1.1.1]
>         at 
> org.apache.aries.blueprint.proxy.SingleInterceptorCollaborator.postInvoke(SingleInterceptorCollaborator.java:75)[48:org.apache.aries.blueprint.core:1.4.4]
>         at Proxy65968de8_a064_4203_9a53_5f0c8e536279.lockAll(Unknown 
> Source)[:]
> {code}
> The NPE is thrown from "postCallWithReturn" and "postCallWithException" in 
> following line:
> {code:java}
>  token.getCoordination().end();
> {code}
> The "getCoordination()"  call in above line is returning null. 
> As I mentioned, it is happening from time to time. sometimes after 20 mins, 
> sometimes after hours of test execution and it is happening in different 
> transactional methods in different classes of the application. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to