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 113364 - java.lang.NullPointerException: The returnType parameter cannot be null
Summary: java.lang.NullPointerException: The returnType parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-21 15:16 UTC by Lukas Hasik
Modified: 2007-08-22 16:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 1682


Attachments
stacktrace (3.36 KB, text/plain)
2007-08-21 15:16 UTC, Lukas Hasik
Details
stacktrace (3.36 KB, text/plain)
2007-08-21 15:20 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2007-08-21 15:16:45 UTC
Build: NetBeans IDE Dev (Build 200708210000)
VM: Java HotSpot(TM) Client VM, 1.5.0_12-b04
OS: Windows XP, 5.1, x86
User Comments: -create new WS
-add new operation to the WS, return type is a class in your package encapsulating String
-Add Operation again -> exception
Comment 1 Lukas Hasik 2007-08-21 15:17:00 UTC
Created attachment 46974 [details]
stacktrace
Comment 2 Lukas Hasik 2007-08-21 15:20:11 UTC
Build: NetBeans IDE Dev (Build 200708210000)
VM: Java HotSpot(TM) Client VM, 1.5.0_12-b04
OS: Windows XP, 5.1, x86
User Comments: the root cause is that I made a typo in name of package of my class...

easiest way to reproduce:
-add operation to WS with "not-existing" return type (e.g. "trubka")
-try add another WS operation -> exception
Comment 3 Lukas Hasik 2007-08-21 15:20:35 UTC
Created attachment 46975 [details]
stacktrace
Comment 4 martin_adamek 2007-08-22 13:55:59 UTC
AddWsOperationHelper should not send method with unresolved (null) return type to MethodModelSupport.createMethodModel(). Should be easy fix in 
getExistingMethods() method.