This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 27095 - NPE during jsp execution
Summary: NPE during jsp execution
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: -S1S-
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 27455 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-06 11:26 UTC by Sergey Soldatov
Modified: 2003-02-20 10:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log (16.95 KB, text/plain)
2002-09-06 11:27 UTC, Sergey Soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Soldatov 2002-09-06 11:26:47 UTC
This bug is well reproducible on my machine using Windows 
2000SP3 and Windows XP Pro. S1S build 020901
Any attempt to execute a jsp cause a NPE in Request 
Processor. For more information please see the attachment.
Unfortunately I was unable to reproduce it on other our 
PCs. Both my OSes was just installed so it's not a software 
clash.
Comment 1 Sergey Soldatov 2002-09-06 11:27:34 UTC
Created attachment 7339 [details]
ide.log
Comment 2 Milan Kuchtiak 2002-09-06 14:11:03 UTC
The bug was fixed for Netbeans 3.4.

*** This issue has been marked as a duplicate of 24311 ***
Comment 3 Sergey Soldatov 2002-09-10 13:52:57 UTC
This bug should be fixed in S1S since it's well 
reproducible on all FAT32 based Windows 2000 and Windows XP.
Comment 4 Milan Kuchtiak 2002-09-12 13:28:29 UTC
Webapps iteam decided to fix it for jumbo patch.
The bug has been fixed in trunk (Issue 24311). 
This is the diff file that fixes the issue :

diff -r1.4 -r1.5
482,490c482,491
<         
<         String newKeyValue = newElement.getAttribute
(keyAttribute);
<         if (newKeyValue!=null) {
<             NodeList nodeList = 
element.getElementsByTagName(elementName);
<             if (nodeList!=null) {
<                 for (int i=0;i<nodeList.getLength();i++){
<                     if (newKeyValue.equals(((Element)
nodeList.item(i)).getAttribute(keyAttribute))){
<                         showDialog
(elementName,keyAttribute,newKeyValue);
<                         return false;
---
>         if (keyAttribute!=null) {
>             String newKeyValue = newElement.getAttribute
(keyAttribute);
>             if (newKeyValue!=null) {
>                 NodeList nodeList = 
element.getElementsByTagName(elementName);
>                 if (nodeList!=null) {
>                     for (int i=0;i<nodeList.getLength
();i++){
>                         if (newKeyValue.equals(((Element)
nodeList.item(i)).getAttribute(keyAttribute))){
>                             showDialog
(elementName,keyAttribute,newKeyValue);
>                             return false;
>                         }
Comment 5 Jason Rush 2002-09-18 21:52:50 UTC
This defect is a duplicate of a defect filed against FFJ4.0. Since
this defect existed in FFJ4.0 it is automatically qualified for a
waiver for S1S4.1.
Comment 6 Milan Kuchtiak 2002-09-20 13:16:59 UTC
*** Issue 27455 has been marked as a duplicate of this issue. ***
Comment 7 jhoffman 2002-09-20 22:20:00 UTC
I don't understand why this was waived.  I did not experience this bug
with Orion.  In fact, I have three different machines with Orion and
Sierra on them, and while the same simple web app works in Orion, it
fails in Sierra.  Yes, all three of my machines have FAT32 on them,
but this is the most common disk format for Windows.
Comment 8 Milan Kuchtiak 2002-09-24 08:26:02 UTC
The bug was qualified as a showstopper for Sierra and fixed 
in the Sierra branch on 9/23/2002.
See : 
http://inf.ebay.sun.com/inf/integrationReport.jsp?id=9236


Comment 9 Oleg Khokhlov 2003-02-20 10:37:03 UTC
Verified in S1S 5 Standart Edition build 030217_1
JDK 1.4.0_02, W2K SP2