Tiny URL version: http://tinyurl.com/8zhka


On 11/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Oliver,
>         Very, very interesting - excellent find.  I have several things to
> test tomorrow.
>         Scott
>
> > -----Original Message-----
> > From: Oliver Hutchison [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 07, 2005 11:13 PM
> > To: [email protected]
> > Subject: RE: [Acegisecurity-developer] Acegi 0.8.3 to 0.9.0 errors
> >
> > Looks like this you hit this:
> >
> > http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&th
> readm=3F84
> > 200E.4060207%40profitsoftware.com&rnum=1&prev=/groups%3Fq%3D%2
> 52Binherit
> > ablethreadlocal%2Bnullpointerexception%26ie%3DUTF-8%26oe%3DUTF
> -8%26hl%3D
> > de
> > <http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&t
> hreadm=3F8
> > 4200E.4060207%40profitsoftware.com&rnum=1&prev=/groups%3Fq%3D%
> > 252Binheri
> > tablethreadlocal%2Bnullpointerexception%26ie%3DUTF-8%26oe%3DUT
> F-8%26hl%3
> > Dde>
> >
> > HTH
> >
> > Ollie
> >
> > ________________________________
> >
> >       From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > On Behalf Of Mark St.Godard
> >       Sent: Tuesday, 8 November 2005 2:46 PM
> >       To: [email protected]
> >       Subject: Re: [Acegisecurity-developer] Acegi 0.8.3 to
> > 0.9.0 errors
> >
> >
> >       I dont think its in the Assert...from the stackTrace it
> > looks like it is getting into the contextHolder.set( ) when it NPEs
> >
> >       I use Websphere 6 and Tomcat 5.5 ... I will also
> > upgrade to 0.9 tomorow and see if it
> >       displays the appropriate behavior.
> >
> >       Cheers,
> >       Mark
> >
> >       On 11/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >               Hi Mark and Ben,
> >                   I'm using WSAD 5.1 with its built-in
> > Websphere 5.0 Test Environment on Windows XP Pro, then
> > deploying to a Websphere Application Server 5.0 instance on
> > Windows 2000 Server.  Websphere 5.0 is still widely used in
> > the financial industry, and uses IBM's JDK 1.3.
> > It isn't practical for me to test the app under Tomcat due to
> > some classloading issue I haven't had time to debug, but I
> > suspect it would work OK (as would running it within WAS
> > 6.0).  I'd be glad to switch the code back to ThreadLocal but
> > I'm wondering if the Assert code might actually be the problem?
> >                   Thanks,
> >                   Scott
> >
> > ________________________________
> >
> >               From: Mark St.Godard [mailto:[EMAIL PROTECTED] ]
> >               Sent: Monday, November 07, 2005 9:34 PM
> >               To: [email protected]
> > <mailto:[email protected]>
> >               Subject: Re: [Acegisecurity-developer] Acegi
> > 0.8.3 to 0.9.0 errors
> >
> >
> >
> >                       Ben, Scott,
> >
> >                       Scott what version of Websphere are you running?
> > What JRE/JDK version?
> >
> >                       Ben the code looks fine... seems
> > abnormal for InheritableThreadLocal to NPE...
> >
> >                       Scott, try without the InheritableTL or
> > as Ben suggests try a different servlet container / appserver
> > if you can.
> >
> >                       Cheers,
> >                       Mark
> >
> >                       On 11/7/05, Ben Alex <[EMAIL PROTECTED] >
> > wrote:
> >
> >                               [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> wrote:
> >
> >                               > [11/7/05 15:24:43:513 EST] 5a6d5a6d
> > WebGroup      E SRVE0026E:
> >                               > [Servlet Error]-[Filter
> > [Acegi Filter Chain Proxy]: filter is
> >                               > unavailable.]:
> > java.lang.NullPointerException
> >                               >         at
> > java.lang.Throwable.<init>(Throwable.java)
> >                               >         at java.lang.Throwable
> > .<init>(Throwable.java)
> >                               >         at
> >                               >
> > java.lang.NullPointerException.<init>(NullPointerException.java:63)
> >                               >         at
> >                               >
> > java.lang.InheritableThreadLocal.set(InheritableThreadLocal.java :95)
> >                               >         at
> >                               >
> > net.sf.acegisecurity.context.SecurityContextHolder.setContext(
> > SecurityCo
> > ntextHolder.java:58)
> >                               >
> >                               >         at
> >                               >
> > net.sf.acegisecurity.context.HttpSessionContextIntegrationFilt
> > er.doFilte
> > r (HttpSessionContextIntegrationFilter.java:207)
> >                               >
> >                               >
> >                               Very odd. If you look at the code for
> > SecurityContextHolder:
> >
> >                                  private static
> > InheritableThreadLocal contextHolder = new
> >                               InheritableThreadLocal();
> >
> >                                  public static void
> > setContext(SecurityContext context) {
> >                                      Assert.notNull(context,
> >                                          "Only non-null
> > SecurityContext instances are permitted");
> >                                      contextHolder.set(context);    //
> > this line fails (line 58)
> >                                  }
> >
> >                               Can anyone see any issue with
> > this? The main difference between 0.8.3
> >                               and 0.9.0 is the use of a
> > InheritableThreadLocal instead of a
> >                               ThreadLocal. If you revert to the
> > latter, does it work? What version of
> >                               WebSphere are you running? Does
> > it work if you deploy the same WAR to
> >                               say Tomcat?
> >
> >                               Cheers
> >                               Ben
> >
> >
> >
> > -------------------------------------------------------
> >                               SF.Net email is sponsored by:
> >                               Tame your development
> > challenges with Apache's Geronimo App Server. Download
> >                               it for free - -and be entered
> > to win a 42" plasma tv or your very own
> >                               Sony(tm)PSP.  Click here to play:
> > http://sourceforge.net/geronimo.php
> >
> > _______________________________________________
> >                               Home:
> > http://acegisecurity.sourceforge.net
> > <http://acegisecurity.sourceforge.net/>
> >                               Acegisecurity-developer mailing list
> >
> > [email protected]
> >
> > https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
> > <https://lists.sourceforge.net/lists/listinfo/acegisecurity-de
> veloper>
> >
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's Geronimo App
> > Server. Download it for free - -and be entered to win a 42"
> > plasma tv or your very own Sony(tm)PSP.  Click here to play:
> > http://sourceforge.net/geronimo.php
> > _______________________________________________
> > Home: http://acegisecurity.sourceforge.net
> > Acegisecurity-developer mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
> >
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Home: http://acegisecurity.sourceforge.net
> Acegisecurity-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
>


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Home: http://acegisecurity.sourceforge.net
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to