Version 3.0.4 with tomcat 4.1.12.

Weird though, after keeping JBoss running for a couple of hours the
problem seems to disappear.

I'm going to try the 3.0.5 release and see if I keep getting the same
exceptions.

Silvester

On Tue, 2003-01-14 at 06:31, Scott M Stark wrote:
> With what version? Prior to 3.0.4 there were a couple of scenarios under which
> a principal could be lost when a user login had multiple threads active.
> 
> xxxxxxxxxxxxxxxxxxxxxxxx
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> xxxxxxxxxxxxxxxxxxxxxxxx
> 
> ----- Original Message ----- 
> From: "Silvester van der Bijl" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 13, 2003 7:47 PM
> Subject: [JBoss-user] Random loss of principal
> 
> 
> > hello all,
> > 
> > kind of in trouble down here. For a school project we've written a set
> > of session beans that allow us to store objects. The Beans could store
> > the objects in a database, or in a file, depending on the size.
> > 
> > Each object has it's own security, meaning that the roles which are
> > authorized to view/delete/etc the object are stored with the object.
> > 
> > One of the session beans serves images (yes even those are secured) to
> > servlets, etc.. This all worked fine, until about two hours ago when i
> > added a larger image. The servlet connects to the sessionbean and asks
> > for the imagedata. The sessionbean finds the corresponding image and
> > returns the image, well anyway, that's the idea.
> > 
> > The problem is that it seems when asked repeatedly for an image, JBoss
> > loses the principal, resulting in the exception at the bottom of this
> > message.
> > 
> > Does anyone know how to solve this problem ? I've even tried increasing
> > the number of processors in tomcat. It looks similar to an error I had
> > when not using the client-login module when connecting to ejb's from
> > e.g. a scheduler class, but since it's a request from a servlet (with an
> > authenticated user), this can't be the case, can it ?
> > 
> > Please help.
> > 
> > many thanks in advance,
> > Silvester
> > 
> > EJBException, causedBy:
> > java.lang.SecurityException: Authentication exception, principal=null
> >         at
> > 
>org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:173)
> >         at
> > org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
> >         at
> > org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
> >         at
> > 
>org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300)
> >         at org.jboss.ejb.Container.invoke(Container.java:730)
> >         at
> > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
> >         at
> > org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
> >         at
> > org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
> >         at
> > org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
> >         at
> > org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
> >         at
> > org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
> >         at
> > org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> >         at $Proxy29.create(Unknown Source)
> >         at hildap.helpers.ImageList.processRequest(ImageList.java:136)
> >         at hildap.helpers.ImageList.doGet(ImageList.java:89)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at
> > 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> >         at
> > 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> >         at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
> >         at
> > 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >         at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >         at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >         at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >         at
> > 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >         at
> > 
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
> >         at
> > 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >         at
> > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> >         at
> > 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >         at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >         at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >         at
> > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
> >         at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> >         at
> > 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >         at
> > 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> >         at
> > 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >         at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> >         at
> > 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >         at
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
> >         at
> > 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >         at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >         at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >         at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> >         at
> > 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >         at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >         at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >         at
> > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
> >         at
> > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
> >         at java.lang.Thread.run(Thread.java:536)
> > 04:36:18,712 ERROR [HiLDAP/ImageList] Oops: EJBException:; nested
> > exception is:
> >         javax.ejb.EJBException: checkSecurityAssociation;
> > CausedByException is:
> >         Authentication exception, principal=null
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
> > are you planning your Web Server Security? Click here to get a FREE
> > Thawte SSL guide and find the answers to all your  SSL security issues.
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
> are you planning your Web Server Security? Click here to get a FREE
> Thawte SSL guide and find the answers to all your  SSL security issues.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user




-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to