Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
bhammond8587
Post subject: NullPointerException When Generating Web Services  PostPosted: Jun 15, 2010 - 09:20 PM
Registered Member
Registered Member


Joined: May 26, 2010
Posts: 18

I have a web service that was working, but now is broken. I'm using MyEclipse 8.5 on a Windows computer. The project name is NSAM, the web service is CtrlSvc, but the wsdl that myeclipse generates points to http://localhost:8080/Test2/CtrlSvcPort. I don't even have a Test2 project, so I don't understand why it wants to put it there. When I create the web service using the wizard, I get a consistent error:
An internal error occurred during: "Generating JAX-WS Web Services".
java.lang.NullPointerException
I've examined the class, and there's no dangling reference in it; so I don't think the null pointer is coming from there. I think it may be related to the Test2 entry in the URL.
As I said, this used to work; all I did was try to recreate the web service.
Can you offer any insights into what's going on?
Thanks,
Brian
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: NullPointerException When Generating Web Services  PostPosted: Jun 16, 2010 - 05:41 AM
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532

Brian,
Can you give some more information?
1. Can you clarify if the project exists in the workspace dir?
2. Are you using the bottom-up scenario to create a web service? In that case when you browse to enter a java bean, while creating a new webservice, do you have test2 listed there? Please make sure you have pointed to the correct java bean.
3. Can you try using the -clean as given in the link below and verify if that works for you
http://myeclipseide.com/PNphpBB2-viewtopic-t-10280.html
Also, can you switch to a new workspace and check if the issue persists?

_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
bhammond8587
Post subject: RE: NullPointerException When Generating Web Services  PostPosted: Jun 16, 2010 - 02:46 PM
Registered Member
Registered Member


Joined: May 26, 2010
Posts: 18

Shalini,
1. NSAM exists in the workspace dir, but Test2 doesn't.
2. I'm using the bottom-up scenario. I'm correctly pointed to the CtrlSvc bean. Test2 doesn't exist as a bean.
3. I tried the -clean, but it didn't help.
I created a new project and moved all my files over to it. That cleared up the problem. In the new project I don't get the null pointer error and the wsdl correctly points to the new project rather than Test2. Apparently, the project properties got corrupted somehow.
Thanks for your help,
Brian
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: NullPointerException When Generating Web Services  PostPosted: Jun 17, 2010 - 05:06 AM
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532

Brian,
Good to know that you are all set.
Do let us know if you have any issues.

_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits