- This topic has 11 replies, 3 voices, and was last updated 15 years, 10 months ago by Brian Fernandes.
-
AuthorPosts
-
Mike SmithsonMemberI tried to generate a simple web service from a web service project. However, I keep getting this annoying NullPointerException. The web.xml did not get updated with the proper servlet mapping, a sun-jaxws.xml file was dropped in that was empty, and only the .wsdl file was generated (not the accompanying .xsd). I got the log entry:
!ENTRY org.eclipse.core.jobs 4 2 2009-02-08 13:06:08.362
!MESSAGE An internal error occurred during: “Generating JAX-WS Web Services”.
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.ws.jaxws.SunJAXWSFile.addEndpoints(SunJAXWSFile.java:33)
at com.genuitec.eclipse.ws.jaxws.JAXWSJob.manageSunJAXWSXML(JAXWSJob.java:428)
at com.genuitec.eclipse.ws.jaxws.JaxWSBUJob.manageWSDescriptors(JaxWSBUJob.java:160)
at com.genuitec.eclipse.ws.jaxws.JaxWSBUJob.run(JaxWSBUJob.java:133)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)Here is my installation summary:
*** Date:
Sunday, February 8, 2009 2:05:09 PM EST** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.6.0_06*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.0
Build id: 7.0-20081201*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 7.0
Build id: 7.0-20081201Eclipse Plug-in Development Environment
Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
Build id: M20080703-0800Eclipse Platform
Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
Build id: M20080911-1700Eclipse Graphical Editing Framework GEF
Version: 3.4.1.v20080806-67718083A56B4H2A3213573
Build id: 200809101400Eclipse RCP
Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
Build id: M20080703-0800Eclipse Java Development Tools
Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
Build id: M20080709-0800Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 7.0\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
-clean
-configuration
C:\Program Files\Genuitec\MyEclipse 7.0\configuration
-vm
C:\Program Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.6.0.006\bin\client\jvm.dll
Loyal WaterMemberMike,
Could you please list the steps or give us some tips to help us reproduce this issue at our end.Thanks.
Mike SmithsonMembersure, I started by creating a new Web Service Project, using the JAXWS framework. Next, I created the POJO for the SEI. Then, I created a new Web Service from the File -> New -> Other menu. I picked the MyEclipse WebService Icon, and created a WS from a Java Class using the bottom-up scenario. I picked the POJO, RPC style, checked the ‘Generate WSDL in project’ and left all the rest as defaults. After hittng the ‘Finish’ button, I got the NPE.
Mike SmithsonMemberAny news on this item?
Loyal WaterMemberHi,
I have asked the dev team to look into this issue and they will get back to you with a reply asap.
Brian FernandesModeratorMike,
Depending on your input class, you could have problems with the RPC style; if you can send us the POJO you used for the bottom up process, that will help analyze the issue. We are currently working on improving the error reporting so you see the primary cause for failure instead of the NPE you see now.
As a test, can you try using document/literal instead of RPC?
If you send in your POJO, please email it to [email protected] ATTN Brian.
Sorry for the inconvenience caused.
Mike SmithsonMemberOK, Brian. I will send you the whole Eclipse project if that is OK.
Mike SmithsonMemberAlso, I have tried using document/bare and document/wrapped but no luck. I am still getting the NPE as described previously. I just sent you a .zip file of the whole Eclipse project.
Loyal WaterMemberFYI : We have received the .zip file. Brian will review it and get back to you asap.
Brian FernandesModeratorMike,
I received the project and was able to generate the webservice using RPC, deploy and test it with the web services explorer. Is this the exactly the same project you are experiencing issues with or is this a smaller version? Are you choosing any other options besides the “Generate WSDL in project” option?
As far as the WSDL goes, there is no need for an XSD (for this particular case), notice the <part> elements use the type attribute and not an element attribute linking to an element defined elsewhere.
Do you see an error dialog popup when you run the generation process, is this same error logged each time? (suggest deleting the error log before running to make sure)
Mike SmithsonMember1) yes, this is the exact same project that I am having issues with.
2) No, I am just using the generate WSDL in project only.
3)Yes, it is the same error when running the generation process.
Brian FernandesModeratorMike,
1) Can you delete your sun-jaxws.xml, WSDL and XSD files and try generating again?
2) Can you try this in a non-maven project? There may be something wrong with your maven setup.As I said above, I was unable to reproduce the problem with the project you sent here so the problem could be something else wrong with your workspace.
-
AuthorPosts