Mantis - Resin
Viewing Issue Advanced Details
44 minor always 03-21-05 00:00 11-30-05 14:45
francoisb  
 
high  
closed 3.0.12  
3.0.12 fixed  
none    
none 3.0.14  
0000044: NPE in AmberConnectionImpl
RSN-35
The aplication in the attached file generate this stack trace (in System.out):

Caused by: java.lang.NullPointerException
        at com.caucho.amber.connection.AmberConnectionImpl.getConnection(AmberConnectionImpl.java:630)
        at com.caucho.amber.connection.AmberConnectionImpl.prepareStatement(AmberConnectionImpl.java:660)
        at server.eb.UnaEntidad.__caucho_load_0(UnaEntidad.java:140)
        at server.eb.UnaEntidad.__caucho_retrieve(UnaEntidad.java:105)
        at com.caucho.amber.entity.AmberEntityHome.findEntityItem(AmberEntityHome.java:324)
        ...

The aplication use two "ejb-server":

- The first one contains a entity bean (and so use a datasource).
- The second ejb-server contains only a session bean and doesn't use any datasource.

When the session bean from the second ejb-server calls a session bean from the first, resin doesn't encounter the correct data-source.

Francois
Linux, Sun JDK 1.5.0_02, postgres 7.1, resin 3.0.12

Notes
(0000050)
ferg   
03-21-05 00:00   
ejb/0s00