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 95241 - NPE when creating ws in EJB
Summary: NPE when creating ws in EJB
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
: 98569 (view as bug list)
Depends on: 95534
Blocks:
  Show dependency tree
 
Reported: 2007-02-12 12:08 UTC by Jaroslav Pospisil
Modified: 2007-03-28 22:59 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (27.30 KB, application/octet-stream)
2007-02-12 12:09 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2007-02-12 12:08:27 UTC
Build 200702111900,JDK1.6

1)Start IDE with new userdir
2)Add Grassfish v1
3)Create JAVAEE5 EJB module on Glassfissh
4)Create new WS
ERROR: NPE form JAX-RPC??? and no WS is created (but ws node in Project tabs yes)
Attaching messages.log with exception.
Comment 1 Jaroslav Pospisil 2007-02-12 12:09:39 UTC
Created attachment 38361 [details]
messages.log
Comment 2 Martin Adamek 2007-02-13 12:24:20 UTC
I'll fix this.
Please next time attach log wih tex/plain mimetype.
Comment 3 Lukas Jungmann 2007-02-14 15:28:03 UTC
This issue is caused by missing merged metadata model
(org.netbeans.modules.j2ee.common.Util.isJavaEE5orHigher(Project project)
returns false for JavaEE 5 ejb module project).

The fix for M7 will be to lower the level of the exception (to INFO or sth like
that)
Comment 5 Peter Pis 2007-02-16 13:40:59 UTC
Warning is logged that is sufficient fix for M7.
Comment 6 Lukas Jungmann 2007-02-20 14:36:59 UTC
since NPE is fixed downgrading to P2
Comment 7 Lukas Jungmann 2007-03-22 22:19:36 UTC
*** Issue 98569 has been marked as a duplicate of this issue. ***
Comment 8 _ hong_lin 2007-03-22 22:46:06 UTC
Is there any work around to create a new web service and add an operation to 
the web service ? 

Comment 9 Lukas Jungmann 2007-03-22 22:53:12 UTC
To not use the wizard => create new java class, type everything manually
(@WebService and some method) and deploy the project.
Comment 10 Milan Kuchtiak 2007-03-26 11:41:53 UTC
Fixed temporarly.
JAX WS service is generated when webservices.xml is missing.

Diff:
http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/dev/wizard/JaxWsServiceCreatorProvider.java?r1=1.2&r2=1.3
Comment 11 _ hong_lin 2007-03-28 22:59:56 UTC
Verified the bug is fixed in Hula build daily-200703280800.