DO NOT REPLY [Bug 30306] New: - JasperLoader throws NPE (wrapped in a j.s.PAE) on non-existant securityManager

2004-07-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30306.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30306

JasperLoader throws NPE (wrapped in a j.s.PAE) on non-existant securityManager

   Summary: JasperLoader throws NPE (wrapped in a j.s.PAE) on non-
existant securityManager
   Product: Tomcat 4
   Version: 4.1.30
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The source of org.apache.jasper.servlet.JasperLoader contains abug around line#
179 where it says:

if (System.getSecurityManager() != null) {

where it should be:

if (securityManager != null) {

in rare occasions (thay actually do happen!) the instance variable
securityManager is NULL when the class is instantiated, but when a class is
loaded through this classloader and somehow the System.getSecurityManager() is
set, an NPE is thrown (wrapped in a java.security.PriveligedActionException).

Could you patch this please for a Tomcat 4.1.31 release? ;-)

I don't know what exactly triggered this bug - basically, that
System.getSecurityManager() is null initially and gets an assignment later. The
Tomcat5 (Jasper2) version does not have this bug, and has this very patch applied.
We have a JSP with a JSTL forEach tag, and nested in that tag another (custom)
tag. When the JSP is executed in the JVM (after it is successfully compiled) the
NPE is thrown while executing (preparing, actually) the forEach tag.

We found a workaround by executing our custom tag before the forEach body in
HTML comment ;-) which seemed to solve the problem. Patching Jasper works
better, of course, but my co-workers don't want a custom patched Tomcat for a
webapp to work :-(

Thanks in advance for patching Jasper!

Bart Guijt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DO NOT REPLY [Bug 30306] New: - JasperLoader throws NPE (wrapped in a j.s.PAE) on non-existant securityManager

2004-07-24 Thread Service Client Fnac.com
ACCUSE DE NON RECEPTION 


Chère Cliente, Cher Client,

Merci de nous avoir contactés.

Vous venez d'envoyer un message à une adresse ne permettant pas
de recevoir d'e-mail.

Pour trouver les réponses à vos questions sur vos commandes, sur
les produits, sur le site, consultez nos pages d'aide en ligne
en cliquant sur :
http://www.fnac.com/Help/A01.asp

Vous pouvez également suivre en direct l'évolution de vos commandes
en cours, en consultant la rubrique Vos Commande en un clin d'oeil
en cliquant sur :
https://www.fnac.com/Account/Profil/default.asp

Nous espérons que ces pages vous apporteront toutes les informations
nécessaires. Dans le cas contraire, vous pouvez nous contacter par
e-mail en cliquant sur le lien :
http://www.fnac.com/Service_Client/FnacAGC.asp
Merci de votre fidélité à www.fnac.com.

Très cordialement, 

L'équipe Fnac.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]