Bugs item #511280, was opened at 2002-01-31 08:49
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=511280&group_id=22866
Category: JBossSX
Group: v2.4 (stable)
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Annegret Sternagel (annegret)
>Assigned to: Scott M Stark (starksm)
Summary: principal=null after bean passivation
Initial Comment:
WindowsNT /Windows2000
JDK 1.3.0,Sun Microsystems Inc.
jboss-2.4.3
I have two secured StatefulSessionBeans: bean1
(StatefulSession1) and bean2 (StatefulSession). Bean1
initializes and holds a reference of the
RemoteInterface of bean2.
After scheduled passivation of bean1 AND bean2 the
SecurityAssociation of bean2 is lost:
[Default] Bad password for username=null
[StatefulSession] Authentication exception,
principal=null
[StatefulSession] TRANSACTION ROLLBACK
EXCEPTION:checkSecurityAssociation; nested exception
is:
java.lang.SecurityException: Authentication
exception, principal=null; nested exception is:
java.rmi.RemoteException:
checkSecurityAssociation; nested exception is:
java.lang.SecurityException: Authentication
exception, principal=null
[StatefulSession] java.rmi.RemoteException:
checkSecurityAssociation; nested exception is:
[StatefulSession] java.lang.SecurityException:
Authentication exception, principal=null
[StatefulSession] java.lang.SecurityException:
Authentication exception, principal=null
[StatefulSession] at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurity
Association(SecurityInterceptor.java:168)
[StatefulSession] at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome
(SecurityInterceptor.java:92)
[StatefulSession] at
org.jboss.ejb.plugins.StatefulSessionInstanceIntercepto
r.invokeHome
(StatefulSessionInstanceInterceptor.java:123)
[StatefulSession] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext
(TxInterceptorCMT.java:135)
[StatefulSession] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:307)
[StatefulSession] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome
(TxInterceptorCMT.java:86)
[StatefulSession] at
org.jboss.ejb.plugins.LogInterceptor.invokeHome
(LogInterceptor.java:106)
[StatefulSession] at
org.jboss.ejb.StatefulSessionContainer.invokeHome
(StatefulSessionContainer.java:326)
[StatefulSession] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.
invokeHome(JRMPContainerInvoker.java:372)
[StatefulSession] at
java.lang.reflect.Method.invoke(Native Method)
[StatefulSession] at
sun.rmi.server.UnicastServerRef.dispatch
(UnicastServerRef.java:241)
[StatefulSession] at
sun.rmi.transport.Transport$1.run(Transport.java:142)
[StatefulSession] at
java.security.AccessController.doPrivileged(Native
Method)
[StatefulSession] at
sun.rmi.transport.Transport.serviceCall
(Transport.java:139)
[StatefulSession] at
sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:443)
[StatefulSession] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.ru
n(TCPTransport.java:643)
[StatefulSession] at java.lang.Thread.run
(Thread.java:484)
[StatefulSession1] TRANSACTION ROLLBACK
EXCEPTION:Could not activate; nested exception is:
java.rmi.ServerException: Could not get
EJBObject; nested exception is:
java.rmi.ServerException: RemoteException
occurred in server thread; nested exception is:
javax.transaction.TransactionRolledbackExceptio
n: checkSecurityAssociation; nested exception is:
java.lang.SecurityException: Authentication
exception, principal=null; nested exception is:
java.rmi.RemoteException:
checkSecurityAssociation; nested exception is:
java.lang.SecurityException: Authentication
exception, principal=null; nested exception is:
java.rmi.NoSuchObjectException: Could not
activate; nested exception is:
java.rmi.ServerException: Could not get
EJBObject; nested exception is:
java.rmi.ServerException: RemoteException
occurred in server thread; nested exception is:
javax.transaction.TransactionRolledbackExceptio
n: checkSecurityAssociation; nested exception is:
java.lang.SecurityException: Authentication
exception, principal=null; nested exception is:
java.rmi.RemoteException:
checkSecurityAssociation; nested exception is:
java.lang.SecurityException: Authentication
exception, principal=null
[StatefulSession1] java.rmi.NoSuchObjectException:
Could not activate; nested exception is:
[StatefulSession1] java.rmi.ServerException:
Could not get EJBObject; nested exception is:
[StatefulSession1] java.rmi.ServerException:
RemoteException occurred in server thread; nested
exception is:
[StatefulSession1]
javax.transaction.TransactionRolledbackExceptio
n: checkSecurityAssociation; nested exception is:
[StatefulSession1] java.lang.SecurityException:
Authentication exception, principal=null; nested
exception is:
[StatefulSession1] java.rmi.RemoteException:
checkSecurityAssociation; nested exception is:
[StatefulSession1] java.lang.SecurityException:
Authentication exception, principal=null
[StatefulSession1] at
org.jboss.ejb.plugins.AbstractInstanceCache.get
(AbstractInstanceCache.java:211)
[StatefulSession1] at
org.jboss.ejb.plugins.StatefulSessionInstanceIntercepto
r.invoke(StatefulSessionInstanceInterceptor.java:194)
[StatefulSession1] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext
(TxInterceptorCMT.java:133)
[StatefulSession1] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:307)
[StatefulSession1] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke
(TxInterceptorCMT.java:99)
[StatefulSession1] at
org.jboss.ejb.plugins.LogInterceptor.invoke
(LogInterceptor.java:195)
[StatefulSession1] at
org.jboss.ejb.StatefulSessionContainer.invoke
(StatefulSessionContainer.java:341)
[StatefulSession1] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.
invoke(JRMPContainerInvoker.java:395)
[StatefulSession1] at
java.lang.reflect.Method.invoke(Native Method)
[StatefulSession1] at
sun.rmi.server.UnicastServerRef.dispatch
(UnicastServerRef.java:241)
[StatefulSession1] at
sun.rmi.transport.Transport$1.run(Transport.java:142)
[StatefulSession1] at
java.security.AccessController.doPrivileged(Native
Method)
[StatefulSession1] at
sun.rmi.transport.Transport.serviceCall
(Transport.java:139)
[StatefulSession1] at
sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:443)
[StatefulSession1] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.ru
n(TCPTransport.java:643)
[StatefulSession1] at java.lang.Thread.run
(Thread.java:484)
I've added a sample zip file with server.log, beans
and client, adapted from the jaas howto sample
----------------------------------------------------------------------
>Comment By: Scott M Stark (starksm)
Date: 2002-02-05 13:37
Message:
Logged In: YES
user_id=175228
Fixed for the 2.4.5 release
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=511280&group_id=22866
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development