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 75916 - Can't create Web Service Client in WA Java EE 5 for WS Java EE 5 due to NPE
Summary: Can't create Web Service Client in WA Java EE 5 for WS Java EE 5 due to NPE
Status: VERIFIED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-04 13:05 UTC by Alexander Kouznetsov
Modified: 2007-08-08 13:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (1.71 KB, text/plain)
2006-05-04 13:07 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2006-05-04 13:05:31 UTC
Reproduced in NB 5.5 beta + Ent Pack (Build 200605030200, Pack 2006.05.02)

Steps to reproduce:
- Create Web Service in Web Application or EJB Module project in Java EE 5
- Deploy it to server
- Create Web Application Project in Java EE 5
- Try to create New Web Service Client selecting the web service created
RESULT: NPE is thrown, client is not created.

BTW, Creation of Web Service Client for Web Service that is in J2EE 1.4 project works.

java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Comment 1 Alexander Kouznetsov 2006-05-04 13:07:03 UTC
Created attachment 30241 [details]
Exception
Comment 2 Alexander Kouznetsov 2006-05-04 13:23:36 UTC
The same exception when user tries to create New Web Service Client in EJB Module Project
Comment 3 Milan Kuchtiak 2006-05-04 15:20:27 UTC
Can you please attach your jax-ws.xml file (from nbproject directory)
Seams that there is something wrong with web service url.

Is your WS working ?
What about "Test WS" action. Is the Tester page loaded in your browser ? 

Please, could you create a client from internet wsdl, e.g. :
http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
Comment 4 Alexander Kouznetsov 2006-05-04 15:24:50 UTC
Was not able to reproduce in NetBeans 5.5 Beta (Build 200605031130, Pack 2006.05.03) but experienced problems when projects have space in path. Test Operation popup menu is not showing any more.
Comment 5 Alexander Kouznetsov 2006-05-04 15:40:18 UTC
mkuchtiak,

Do you want to see jax-ws.xml of a service or a service client project?

All the Web Services work well, Tester page works for Java EE 5 services.

I was able to create the client for the service WSDL URL you've specified, but I used the fresh build I mentioned above.
Comment 6 Milan Kuchtiak 2006-05-04 17:05:29 UTC
The best would be to attach the nbproject/jax-ws.xml from non running web
(Client) project.

Most likely there was a problem with XML-Retriever.

Please, report a separate bug for the Tester problem.

Seams that there are no XML Retriever problems any more so I am changing status
to WORKSFORME.
Comment 7 Jaroslav Pospisil 2006-10-09 14:08:19 UTC
VERIFIED