Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:JRuby 1.1.1/AR-JDBC 0.8
-
Number of attachments :
Description
I am getting occasional NPE while running my unit tests. I don't have a reproducible test case (it happens occasionally), but by the look of the site of exception, it looks like it may be fixed just be looking at the code. I don't know enough of the internals to be able to fix it myself, but I am hoping that someone who knows can use the NPE report to figure out where the bug is.
Exception in thread "Tasker" java.lang.NullPointerException
at jdbc_adapter.JdbcAdapterInternalService.rollback(JdbcAdapterInternalService.java:400)
at jdbc_adapter.JdbcAdapterInternalServiceInvoker$rollback_s_method_0_0.call(Unknown Source)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZero.call(JavaMethod.java:82)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:235)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:658)
at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:172)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:148)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:223)
at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:116)
at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:270)
at org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1746)
at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:485)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
........
I should mention that the "Connection Shutdown" timing is only a conjecture, I am currently not able to track down the life cycle of where the bug occurs, so I am just guessing that the exception happens at shutdown.