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 143127 - [65cat] NullPointerException at org.netbeans.modules.websvc.jaxwsmodel.project.TransformerUtils.isVersionOK
Summary: [65cat] NullPointerException at org.netbeans.modules.websvc.jaxwsmodel.projec...
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milan Kuchtiak
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 05:38 UTC by rajivderas
Modified: 2008-11-13 11:35 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 87440


Attachments
stacktrace (1.69 KB, text/plain)
2008-08-07 05:38 UTC, rajivderas
Details
143127 - Flower Album Project (1.71 MB, application/x-compressed)
2008-08-08 06:59 UTC, rajivderas
Details
143127 - messages.log (64.08 KB, text/plain)
2008-08-13 12:24 UTC, rajivderas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rajivderas 2008-08-07 05:38:10 UTC
Build: NetBeans IDE Dev (Build 200808061401)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.websvc.jaxwsmodel.project.TransformerUtils.isVersionOK(TransformerUtils.java:246)
        at org.netbeans.modules.websvc.jaxwsmodel.project.TransformerUtils.isJAXWS21(TransformerUtils.java:190)
        at org.netbeans.modules.websvc.jaxwsmodel.project.TransformerUtils.transformClients(TransformerUtils.java:134)
        at org.netbeans.modules.websvc.jaxwsmodel.project.EjbJaxWsLookupProvider.addJaxWsExtension(EjbJaxWsLookupProvider.java:287)
        at org.netbeans.modules.websvc.jaxwsmodel.project.EjbJaxWsLookupProvider.access$200(EjbJaxWsLookupProvider.java:74)
        at org.netbeans.modules.websvc.jaxwsmodel.project.EjbJaxWsLookupProvider$1.projectOpened(EjbJaxWsLookupProvider.java:133)
Comment 1 rajivderas 2008-08-07 05:38:15 UTC
Created attachment 66745 [details]
stacktrace
Comment 2 Roderico Cruz 2008-08-08 01:57:56 UTC
I have not been able to reproduce this. The quick fix is to guard against a null version number but I would like to find
out why it is giving a null version in the first place. Kindly give us more information on your setup, specifically what
app server were you using. If you can zip up your project and attach it here that would be best. Marking as INCOMPLETE
until we here from the reporter. Thanks.
Comment 3 rajivderas 2008-08-08 06:57:10 UTC
I have attached the sample Java EE EJB Module "Flower Album" Project.
1) First register GlassFish v3 Prelude as the target server
2) Then open the "Flower Album" Project
3) In the "Flower Album" Project their is a package named 

"flower.album.services"
4) Right Click and select Crerate New Web service
5) Provide name and location and then select create web service from scratch
6) The Click finsh and the exception dialog triggers and after that an error 

message  appears but the exception has been already thrown.
Comment 4 rajivderas 2008-08-08 06:59:55 UTC
Created attachment 66886 [details]
143127 - Flower Album Project
Comment 5 Milan Kuchtiak 2008-08-08 09:29:17 UTC
I've already fixed this issue in trunk: see issue 139672.

This is the fix.
http://hg.netbeans.org/main?cmd=changeset;node=3cf0dcb12b00

QE engineer, please verify the fix so I can integrate it to release65_beta.
Comment 6 Jaroslav Pospisil 2008-08-08 13:40:30 UTC
I'm unable to reproduce issue in Hudson trunk build #3319. Attached project,however
seems to be created on Glassfish v2ur2, not v3 prelude,according to log messages and also 
it's currently impossible to create EJB module on GFv3 in Beta or trunk. 
This doesn't affect the fact, that fix seems to work, so I suppoce the issue verified in trunk.
Developer,commit please the fix into release65_beta branch ASAP. Thanks.
Comment 7 Milan Kuchtiak 2008-08-08 14:09:11 UTC
Thank You.

Right,
In Netbeans6.5_Beta, the EJB cannot be deployed onto GlassFish V3
(GlassFish V3 is disabled for EJB).

The NPE is fixed anyway.
Comment 8 Milan Kuchtiak 2008-08-08 14:16:49 UTC
Fixed also in release65:
http://hg.netbeans.org/release65_beta?cmd=changeset;node=28c170410325
Comment 9 rajivderas 2008-08-13 12:20:44 UTC
This issue still exist in build #20080812020. I opened the same project which hunt me this bug (already available with
#143127 as an attachments) and still the same error triggers.
Comment 10 rajivderas 2008-08-13 12:24:24 UTC
Created attachment 67247 [details]
143127 - messages.log
Comment 11 Milan Kuchtiak 2008-08-13 15:42:54 UTC
The last problem is a little bit different as an original described here.
See the issue 143334 - fixed yesterday (08/12).

Hopefully, it's working from yesterday. If not, please reopen the issue again.

I tested IDE with attached EJB and it works.
Comment 12 Jaroslav Pospisil 2008-11-13 11:35:31 UTC
v.