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 48996 - NPE at VisualizerNode in sun-web.xml DD editor
Summary: NPE at VisualizerNode in sun-web.xml DD editor
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
: 52249 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-14 13:02 UTC by Petr Blaha
Modified: 2006-05-31 18:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (8.71 KB, text/plain)
2004-09-14 13:05 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2004-09-14 13:02:26 UTC
Build 040914
Steps to reproduce:
1) Click File - New Project - Web Project with
existing sources
2) Change Project Location
3) In Project tab click WebApplication Parent node
and from Pop-up Menu select New Web Service
4) Type name and package
5) Double-click on sun-web.xml node and open DD
editor, close
6) Click WebApplication node and Build project
7)Double-click sun-web.xml node, DD editor is
opened, double click on Sun We Application node.
Got exception.
Comment 1 Petr Blaha 2004-09-14 13:05:13 UTC
Created attachment 17614 [details]
Stack trace
Comment 2 Rajeshwar Patil 2004-09-17 21:25:15 UTC
Unable to reproduce
Comment 3 Petr Blaha 2004-09-20 16:00:53 UTC
After an hour work with NB I got this issue, but I can't provide steps
to reproduce. I'm lowering priority. 
Comment 4 Petr Blaha 2004-09-20 16:02:19 UTC
Issue was reproduced in Build 040918.
Comment 5 Rajeshwar Patil 2004-09-26 22:08:53 UTC
seeing the same exception in case of sun-ejb-jar.xml
steps to reproduce:
1)   create new ejb module
2)   add session ejb to it
3)   open editor for sun-ejb-jar.xml(double click on sun-ejb-jar.xml)
4)   put some values(eg bean pool properties)
5)   save and close sun-ejb-jar  editor
6)   build ejb module project
7)   open editor for sun-ejb-jar.xml(double click on sun-ejb-jar.xml) 
8)   try to expand <Sun EJB Jar> node in the left-hand side of the   
     editor
    

 
 
Comment 6 Petr Blaha 2004-09-29 11:42:17 UTC
High visible error, therefore I'm increasing prioroty.
Comment 7 Rajeshwar Patil 2004-09-30 18:25:21 UTC
Looks like an issue related to OS type.
I am able to reproduce on Windows 2000(for sun-ejb-jar.xml); not able
to reproduce for on Window XP
Comment 8 _ ludo 2004-10-04 19:54:02 UTC
did you look at the root cause of the issue:
What is under
org.openide.explorer.view.VisualizerNode.<init>(VisualizerNode.java:130)
to create a NPE...

Might not be a platform issue, but a timing/threading  issue?


Comment 9 Petr Blaha 2004-10-13 10:39:59 UTC
Remove all issues from temporary component.
Comment 10 Rajeshwar Patil 2005-01-04 20:41:56 UTC
*** Issue 52249 has been marked as a duplicate of this issue. ***
Comment 11 Petr Blaha 2005-01-07 10:55:07 UTC
QE team requested fix the issue in EA1 release. However, the fix isn't
still avalaible. I'm changing status whiteboard to EA2.
Comment 12 Rajeshwar Patil 2005-01-07 19:39:11 UTC
In EA1 Nam reviewed & checked in the workaround.  It is regression.
It seems it has not made into EA2 trunk. Assigning this to Nam. 
I spoke to Nam, he will try to fix it or if not possible he will merge
the workaround from EA1 branch to EA2/Qbuild.



Comment 13 Nam Nguyen 2005-01-07 20:42:04 UTC
Work-around code is now in EA2 branch.  Return new node for each call
to ConfigBeanStorage.getNode() is not very efficient, anyway it works
for EA2.
Comment 14 Nam Nguyen 2005-01-11 23:20:33 UTC
Merged to trunk:

Checking in
src/org/netbeans/modules/j2ee/deployment/config/ConfigBeanStorage.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ConfigBeanStorage.java,v
 <--  ConfigBeanStorage.java
new revision: 1.15; previous revision: 1.14
done
Processing log script arguments...
More commits to come...
Checking in
src/org/netbeans/modules/j2ee/deployment/config/ui/ConfigBeanNode.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ui/ConfigBeanNode.java,v
 <--  ConfigBeanNode.java
new revision: 1.13; previous revision: 1.12
Comment 15 Petr Blaha 2005-01-12 12:09:36 UTC
I was working with QE2 build 20050112 last day and wasn't able to
reproduce the bug. Therefore, I mark issue as verified.