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 104753 - WSDL editor broken and is now encountered NPE
Summary: WSDL editor broken and is now encountered NPE
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
: 105193 105201 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-24 17:57 UTC by rpoon
Modified: 2007-06-05 21:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
WSDL editor NullPointerException (248.04 KB, image/jpeg)
2007-05-24 17:58 UTC, rpoon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rpoon 2007-05-24 17:57:01 UTC
NetBeans build details:

  Netbeans IDE      build      = 200705220000
  Netbeans IDE      build date = Tue May 22 09:14:30 PDT 2007 [source: 
c:/netbeans/6.0/platform7/core/core.jar]
  CAPS Modules      build date = Tue May 22 09:38:56 PDT 2007 [source: 
c:/netbeans/6.0/soa1/modules/org-netbeans-modules-compapp-projects-jbi.jar]

======================================================================

While working on JDBCBC Tonga automation  in JDEV, I ran into the following 
WSDL editor regression:

** NPE was encountered in WSDL editor when clicking on 'jdbc:address' under 
Services:service:port (also occured with other BCs as well).

(See attached JPEG file of the NullPointerException for more detail)

To reproduce the problem:

1) From NetBeans IDE, create an new WSDL (via the 'WSDL generating tool) or 
open an existing WSDL file.

2) once the WSDL is opened, click on any sub-node under either 'Bindings' 
or 'Service' would encounter the NullPointerException.

This is a regression that is introduced in recent codeline.
Comment 1 rpoon 2007-05-24 17:58:45 UTC
Created attachment 42745 [details]
WSDL editor NullPointerException
Comment 2 Shivanand Kini 2007-05-30 23:50:00 UTC
*** Issue 105193 has been marked as a duplicate of this issue. ***
Comment 3 Shivanand Kini 2007-05-31 22:33:20 UTC
Sam, Can you look at this?

In CatalogModelImpl.java

1. Previously it used to get into tryOrphanResolution method.
2. It used to throw NPE in FileUtil.toFile()
3. But tryOrphanResolution catches it and returns null.


But now, since it does not go into tryOrphanResolution, NPE is propagated out.
Comment 4 Shivanand Kini 2007-06-01 01:56:28 UTC
Added null check to avoid NPE when the fileobject is a file defined in the
layer.xml.
Comment 5 Shivanand Kini 2007-06-01 20:56:33 UTC
*** Issue 105201 has been marked as a duplicate of this issue. ***
Comment 6 jlautz 2007-06-05 21:39:28 UTC
Verified that the NPE is not reproduceable in the described testcase in


Product Version: NetBeans IDE Dev (Build 200706050000) Java: 1.6.0_01; Java
HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows XP version 5.1 running on
x86; Cp1252; en_US (nb)