Oleg, Hi!

Yes, I was the one that modified the CTS test bean,
the code in question is there under /cts/test and
/cts/bean you can see exactly what I was doing when
things went hay-wire...

peter


--- Oleg Nitz <[EMAIL PROTECTED]> wrote:
> Peter,
> 
> According to the stack trace, the exception is
> thrown from the test bean,
> not from JBoss code. Also I don't see
> getCallerPrincipal in the stack
> trace. Do you mean that the exception is thrown only
> under condition
> that you call getCallerPrincipal() somewhere?
> BTW, the CTS test was modified, would you try the
> current CVS version?
> 
> Oleg
> 
> Peter Braswell wrote:
> > Oleg,
> > I'm using 2.0 FINAL.  The exception is the
> following
> > and I'm using the default configuration that comes
> > "out of the box" with the release.
> 
> > cheers,
> > peter
> 
> > [StatefulSessionBean] Getting CallerPrincipal...
> > [StatefulSessionBean] TRANSACTION ROLLBACK
> > EXCEPTION:null; nested exception is:
> 
> >         javax.ejb.EJBException
> > [StatefulSessionBean]
> java.lang.NullPointerException
> > [StatefulSessionBean]   at
> >
>
org.jboss.test.cts.ejb.StatefulSessionBean.getBeanCon
> > textInfo(StatefulSessionBean.java:116)
> > [StatefulSessionBean]   at
> > java.lang.reflect.Method.invoke(Native Method)
> > [StatefulSessionBean]   at
> >
>
org.jboss.ejb.StatefulSessionContainer$ContainerInter
> > ceptor.invoke(StatefulSessionContainer.java:570)
> > [StatefulSessionBean]   at
> >
>
org.jboss.ejb.plugins.SecurityInterceptor.invoke(Secu
> > rityInterceptor.java:144)
> > [StatefulSessionBean]   at
> >
>
org.jboss.ejb.plugins.StatefulSessionInstanceIntercep
> >
>
tor.invoke(StatefulSessionInstanceInterceptor.java:198)
> > [StatefulSessionBean]   at
> >
>
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
> > nterceptorCMT.java:133)
> > [StatefulSessionBean]   at
> >
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
> > tions(TxInterceptorCMT.java:263)
> > [StatefulSessionBean]   at
> >
>
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInter
> > ceptorCMT.java:99)
> > [StatefulSessionBean]   at
> >
>
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterc
> > eptor.java:192)
> > [StatefulSessionBean]   at
> >
>
org.jboss.ejb.StatefulSessionContainer.invoke(Statefu
> > lSessionContainer.java:326)
> > [StatefulSessionBean]   at
> >
>
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
> > r.invoke(JRMPContainerInvoker.java:163)
> > [StatefulSessionBean]   at
> > java.lang.reflect.Method.invoke(Native Method)
> > [StatefulSessionBean]   at
> > sun.rmi.server.UnicastServerRef.dispatch(Unknown
> Sour
> > ce)
> > [StatefulSessionBean]   at
> > sun.rmi.transport.Transport$1.run(Unknown Source)
> > [StatefulSessionBean]   at
> > java.security.AccessController.doPrivileged(Native
> Me
> > thod)
> > [StatefulSessionBean]   at
> > sun.rmi.transport.Transport.serviceCall(Unknown
> Sourc
> > e)
> > [StatefulSessionBean]   at
> >
>
sun.rmi.transport.tcp.TCPTransport.handleMessages(Unk
> > nown Source)
> > [StatefulSessionBean]   at
> >
>
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.
> > run(Unknown Source)
> > [StatefulSessionBean]   at
> > java.lang.Thread.run(Unknown Source)
> > [Bean Cache] Resized cache for bean BundleAgent:
> old
> > size = 1000, new size = 50
> 
> 
> 
> > --- Oleg Nitz <[EMAIL PROTECTED]> wrote:
> >> Hi Peter,
> >> 
> >> I am sure that having a transaction is not needed
> >> for 
> >> getCallerPrincipal().
> >> Which JBoss version do you use?
> >> Could you provide the stack trace for the
> exception?
> >> Have you set up JBoss security? What are your
> >> settings?
> >> 
> >> Regards,
> >>  Oleg 
> >> 
> >> On Thursday 21 December 2000 00:59, Peter
> Braswell
> >> wrote:
> >> > All,
> >> > In a stateful session bean, a call to
> >> > SessionCtx.getCallerPrincipal( ) results in a
> >> > NullPointerException, TRANSACTION
> >> > ROLLBACKEXCEPTION:null
> >> >
> >> > I'm not sure to consider this erroneous or
> simply
> >> as a
> >> > symptom of me not having a transaction
> associated
> >> with
> >> > this bean.  The spec doesn't seem to indicate
> that
> >> an
> >> > associated tx is a prerequisite for calling
> this
> >> > method..??
> >> >
> >> > Thoughts?
> >> >
> >> > peter
> >> >
> >> >
> __________________________________________________
> >> > Do You Yahoo!?
> >> > Yahoo! Shopping - Thousands of Stores. Millions
> of
> >> Products.
> >> > http://shopping.yahoo.com/
> >> 
> 
> 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Shopping - Thousands of Stores. Millions of
> Products.
> > http://shopping.yahoo.com/
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Reply via email to