facebook

NullPointerException When Generating Web Services

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #309115 Reply

    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

    #309123 Reply

    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
    https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/
    Also, can you switch to a new workspace and check if the issue persists?

    #309154 Reply

    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

    #309164 Reply

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

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: NullPointerException When Generating Web Services

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in