Mantis - Resin
Viewing Issue Advanced Details
1380 minor always 09-27-06 16:39 10-26-06 05:30
ferg  
westrupp  
normal  
closed 3.0.21  
fixed  
none    
none 3.1.0  
0001380: NPE in CMP query
We are getting some really odd behavior in production with Resin's CMP.

Intermittently, resin begins throwing NPE's in its Amber code( why
Resin is using Amber for 2.x beans is another question, but I'll save
that for another time ). For example:

[09:01:47.850] null
[09:01:47.850] java.lang.NullPointerException
[09:01:47.850] at com.caucho.amber.manager.AmberConnection.parseQuery
(AmberConnection.java:1286)
[09:01:47.850] at
com.caucho.amber.manager.AmberConnection.prepareQuery
(AmberConnection.java:1268)
[09:01:47.850] at
com.caucho.amber.manager.AmberConnection.prepareQuery
(AmberConnection.java:1235)
[09:01:47.850] at
_ejb.InternalUserPermissionHome.InternalUserPermissionBean__EJB
$LocalHome.findByUser(InternalUserPermissionBean__EJB.java:390)
[09:01:47.850] at delegates.security.PermissionsDelegate.canYou
(PermissionsDelegate.java:21)

it appears to happen exclusively with finders. We have verified that
we are NOT passing nulls into any of the finders when this occurs.

Looking at the code, it looks like an internal AmberPersistenceUnit
object is for some reason null.

Any help on this would be appreciated, thanks.

Notes
(0001554)
westrupp   
10-26-06 05:30   
Fixed in 3.1. qa/jpa/0s43 (Rodrigo Westrupp)