- This topic has 6 replies, 3 voices, and was last updated 20 years, 10 months ago by support-michael.
-
AuthorPosts
-
Riyad KallaMemberME: 2.7rc1
E: 2.1.2
OS: WinXP SP1
JDK: 1.4.2_02Problem:
* Highlight project root node
* Go to menu, Project->Rebuild ProjectThe project will compile until it gets near the end, then cough up the error:
Problems occurred building the selected resources. java.lang.NullPointerException encountered while running com.genuitec.eclipse.j2eedt.core.builder.DeploymentDescriptorValidator.
I’ve validated the web.xml and struts-config.xml files individually and both work fine. I don’t see or encounter any other errors in my webapp. The weird thing is, I see this error from when I try and hit the app with Tomcat hosting it:
javax.servlet.ServletException: Cannot retrieve definition for form bean null org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800) org.apache.jsp.WEB_002dINF.jsp.pages.experiment.Home_jsp._jspService(Home_jsp.java:463) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1002) org.apache.jsp.WEB_002dINF.jsp.RootPage_jsp._jspService(RootPage_jsp.java:217) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.econport.servlet.ControllerServlet.processRequest(ControllerServlet.java:52) org.econport.servlet.AbstractServlet.preprocessInit(AbstractServlet.java:146) org.econport.servlet.AbstractServlet.doGet(AbstractServlet.java:121) javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
So it seems there is definately a problem with a JSP somewhere or I’m doing something wrong… but ME isn’t making me aware of any problems and instead is dying while it’s trying to build my project.
Below is the NPE from the log file:
!ENTRY org.eclipse.core.resources 4 2 Dec 13, 2003 16:57:00.578 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at com.genuitec.eclipse.j2eedt.core.builder.XMLValidationChecker.isXMLResource(Unknown Source) at com.genuitec.eclipse.j2eedt.core.builder.DeploymentDescriptorValidator.ā(Unknown Source) at com.genuitec.eclipse.j2eedt.core.builder.DeploymentDescriptorValidator.ā(Unknown Source) at com.genuitec.eclipse.j2eedt.core.builder.DeploymentDescriptorValidator.ā(Unknown Source) at com.genuitec.eclipse.j2eedt.core.builder.DeploymentDescriptorValidator.ā(Unknown Source) at com.genuitec.eclipse.j2eedt.core.builder.DeploymentDescriptorValidator.build(Unknown Source) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:427) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:125) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:181) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:151) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:165) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:265) at org.eclipse.core.internal.resources.Project.build(Project.java:85) at org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:156) at org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:122) at org.eclipse.ui.actions.WorkspaceAction$1.execute(WorkspaceAction.java:279) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Any ideas? What would you like me to do further?
Scott AndersonParticipantThe NPE is being tossed while trying to determine if one of the files should be validated as an XML file. The problem is we don’t know which one or what is causing the issue. Does this project use link files or anything? Is there anything the least bit odd about it? Does the error occur if you set the XML validation setting to ‘Deployment descriptors only’? The key would be to find out which file it is, but that probably isn’t really doable.
I checked the code and it looks harmless. That is, none of the methods called should be returning null for any of the possible parameters. In any case, I opened a bug on this and closed it with a fix to catch and handle the error properly. It will be available in the next release.
–Scott
MyEclipse Support
Riyad KallaMemberHmm I had the setting “validate all” on and just turned it to the middle “deployment descriptors” and now it works fine… I wonder what it was trying to validate… I havae a build.xml file in my project, do you think it was trying to validate that?
Scott AndersonParticipantIn the ‘all’ setting, it attempts to validate all .xml, .xsl, and .tld files in the project. So yes, build.xml definately falls in there. Can you try opeing some of the other files in the editor and then right-clicking and selecting the validate option off the context menu? Does the exception get thrown on one of them?
–Scott
MyEclipse Support
Riyad KallaMemberI will do this tommorow morning and let you know.
Scott AndersonParticipantThe current workaround to this bug is to set XML validation to either Deployment Descriptors Only or Nothing, depending on which setting removes the problem in your installation. If you completely disable validation, you can still request file by file validation manually by right-clicking on the content area of the XML editor and selecting ‘Validate’.
–Scott
MyEclipse Support
support-michaelKeymasterFixed in ME2.7RC2.
-
AuthorPosts