- This topic has 20 replies, 11 voices, and was last updated 12 years, 7 months ago by support-swapna.
-
AuthorPosts
-
MichaelcfordMemberI can’t open some JSF pages within the product.
it gives me a nullpointer error, how can this be resolved ?it’s not all JSF pages, but some in a given project, I could open them yesterday.
OS: windows XP
Eclipse Modeling Framework (EMF)
Version: 2.3.0.v200706262000
Build id: 200706262000Version: 6.0.0.zmyeclipse60020070820
Build id: 6.0.0-GA-200708java.lang.NullPointerException
at org.eclipse.jst.jsf.common.ui.internal.utils.WebrootUtil.getWebContentPath(WebrootUtil.java:84)
at org.eclipse.jst.jsf.common.ui.internal.utils.WebrootUtil.getWebContentFolderName(WebrootUtil.java:96)
at org.eclipse.jst.pagedesigner.utils.ProjectResolver.getLocationFromWEBXML(ProjectResolver.java:247)
at org.eclipse.jst.pagedesigner.utils.ProjectResolver.getLocationByURI(ProjectResolver.java:343)
at org.eclipse.jst.pagedesigner.utils.ProjectResolver.getLocationByURI(ProjectResolver.java:230)
at org.eclipse.jst.pagedesigner.utils.ImageResolver.getResolvedURL(ImageResolver.java:45)
at org.eclipse.jst.pagedesigner.utils.ImageResolver.initializeImage(ImageResolver.java:59)
at org.eclipse.jst.pagedesigner.figurehandler.ImgFigureHandler.initializeImage(ImgFigureHandler.java:35)
at org.eclipse.jst.pagedesigner.figurehandler.ImgFigureHandler.initializeWidgetProvider(ImgFigureHandler.java:46)
at org.eclipse.jst.pagedesigner.figurehandler.WidgetFigureHandler.updateFigure(WidgetFigureHandler.java:27)
at org.eclipse.jst.pagedesigner.figurehandler.FigureFactory.updateDeepFigure(FigureFactory.java:132)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:309)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:261)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.jst.pagedesigner.parts.NodeEditPart.addNotify(NodeEditPart.java:101)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.addNotify(ElementEditPart.java:156)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:333)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:261)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.jst.pagedesigner.parts.NodeEditPart.addNotify(NodeEditPart.java:101)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.addNotify(ElementEditPart.java:156)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:333)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:261)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.jst.pagedesigner.parts.NodeEditPart.addNotify(NodeEditPart.java:101)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.addNotify(ElementEditPart.java:156)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:333)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:261)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.jst.pagedesigner.parts.NodeEditPart.addNotify(NodeEditPart.java:101)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.addNotify(ElementEditPart.java:156)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:333)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:261)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.jst.pagedesigner.parts.NodeEditPart.addNotify(NodeEditPart.java:101)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.addNotify(ElementEditPart.java:156)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:333)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:261)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.jst.pagedesigner.parts.NodeEditPart.addNotify(NodeEditPart.java:101)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.addNotify(ElementEditPart.java:156)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:333)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:261)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.jst.pagedesigner.parts.NodeEditPart.addNotify(NodeEditPart.java:101)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.addNotify(ElementEditPart.java:156)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:333)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:261)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.jst.pagedesigner.parts.NodeEditPart.addNotify(NodeEditPart.java:101)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.addNotify(ElementEditPart.java:156)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:333)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.refresh(ElementEditPart.java:261)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.jst.pagedesigner.parts.NodeEditPart.addNotify(NodeEditPart.java:101)
at org.eclipse.jst.pagedesigner.parts.ElementEditPart.addNotify(ElementEditPart.java:156)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:727)
at org.eclipse.jst.pagedesigner.parts.DocumentEditPart.refreshChildren(DocumentEditPart.java:107)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:677)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:564)
at org.eclipse.jst.pagedesigner.parts.DocumentEditPart.refresh(DocumentEditPart.java:95)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.jst.pagedesigner.parts.NodeEditPart.addNotify(NodeEditPart.java:101)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(SimpleRootEditPart.java:101)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:601)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:610)
at org.eclipse.jst.pagedesigner.editors.SimpleGraphicalEditor.setModel(SimpleGraphicalEditor.java:400)
at org.eclipse.jst.pagedesigner.editors.HTMLEditor.connectDesignPage(HTMLEditor.java:298)
at org.eclipse.jst.pagedesigner.editors.HTMLEditor.createPages(HTMLEditor.java:378)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:283)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2721)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2633)
at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:2625)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2577)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2572)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2556)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:340)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:328)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:190)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Loyal WaterMemberCan you please go through the posting guidelines thread at the top of the forum and paste your installation information here for me.
MichaelcfordMember@support-nipun wrote:
Can you please go through the posting guidelines thread at the top of the forum and paste your installation information here for me.
Sorry I missed that part. it’s an odd little bug shows up everynow and then on only some pages.
*** Date:
Monday, September 10, 2007 6:10:36 PM PDT** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.0.0 GA
Build id: 6.0.0-GA-200708*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 6.0.0 GA
Build id: 6.0.0-GA-200708Eclipse Graphical Editing Framework
Version: 3.3.0.v20070620
Build id: 20070620-1021Eclipse Platform
Version: 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G
Build id: I20070625-1500Eclipse RCP
Version: 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG
Build id: I20070625-1500Eclipse Java Development Tools
Version: 3.3.0.v20070606-0010-7o7jCHEFpPoqQYvnXqejeR
Build id: I20070625-1500Eclipse Plug-in Development Environment
Version: 3.3.0.v20070607-7N7M-DUUEF6Ez0H46IcCC
Build id: I20070625-1500Eclipse Project SDK
Version: 3.3.0.v20070607-7M7J-BIolz-OcxWxvWAPSfLPqevO
Build id: I20070625-1500Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe
-name
Eclipse
–launcher.library
C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.0.v20070523\eclipse_1017a.dll
-startup
C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-exitdata
5f4_74
-vm
C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe
Stephen CooperMemberMy team is experiencing this issue as well. On both Windows and Linux.
Loyal WaterMemberSCooper4711 ,
Are you facing this issue on MyEclipse 6.0 ?Can one of you guys post a sample page here so that I can test this at my end.
MichaelcfordMemberProblem is the error is random, you can open the page several times, it’s fine, open again and you get then nullpointer error. Sometimes closing eclipse will make it go away, somtimes not. I reintalled the product to fix the issue last time.
<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>My JSF 'Main.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <link href="../Styles.css" rel="stylesheet" media="screen"></link> </head> <body> <f:view> <h:outputText value="Hello this is a test page." styleClass="ValidateError"/> <br> <h:outputText value="#{main.companyType}" /><br> <h:outputText value="#{main.contactfirstname}" /><br> <h:outputText value="#{main.contactlastname}" /><br> <h:outputText value="#{main.addressline1}" /><br><div class="PropertyName">Hello there</div> <h:dataTable id="SampleDatatable" border="1" var="idx" rows="10" value="#{main.companyList}" rowClasses="list-row-odd,list-row-even" headerClass="table-header" > <h:column id="column1"> <f:facet name="header"> <h:outputText value="First Name" /> </f:facet> <h:outputText value="#{idx.contactfirstname}" /> </h:column> <h:column id="column2"> <f:facet name="header"> <h:outputText value="Last Name" /> </f:facet> <h:outputText value="#{idx.contactlastname}" /> </h:column> <h:column id="column3"> <f:facet name="header"> <h:outputText value="Address" /> </f:facet> <h:outputText value="#{idx.addressline1}" /> </h:column> </h:dataTable> </f:view> </body> </html>
Loyal WaterMemberI’ll will “make a note” and if you are able to find a situation where it happens all the time to let me know ASAP.
schönberg-sol. GmbHParticipantHi,
i have the same problems.
– after install the editor works fine.
– after opening some files the exception ist thrown
– in my case there is no jsp file (in several projects) that can be opened, after the first occurrence of the exceptionArndt
nepuserMemberHi,
I have a similar problem. Every time I try to open a jsp page, which contains JSF tags, a null Pointer Exception is raised. The whole Project is configured as JSF-Project
I figured out, that this should be a problem with the MyEclipse visual editor and the use of any graphical elements, like <h:graphicalImage />, <img> or just a Stylsheet. If the path is a relative one like “img/myPicture.jpg”, there is no problem and no exception is thrown. But if the path is a absolute one like “/img/myPicture.jpg”, every time a nullpointer exception is thrown. It does not matter, if the path is inside a JSF component or a simple HTML-Tag.
Jochen
Loyal WaterMemberHi Jochen,
People who have not been using the graphical elements have also reported this error. We are trying to figure out what causes this. In any case, Ill take a note of your findings.Thanks.
barrinaMemberHi,
I and having numerous errors popup with 6.0 GA, the errors fall into two buckets, an unhandled loop exception in org.eclipse.ui and org.eclipse.jst.jsf.common.ui.internal.utils.WebrootUtil.getWebContentPath. Would be worth checking how the web content path is now resolved. I paste the exception below. Please post back if you need the full installation information.
Exception:
java.lang.NullPointerException at org.eclipse.jst.jsf.common.ui.internal.utils.WebrootUtil.getWebContentPath(WebrootUtil.java:84) at org.eclipse.jst.jsf.common.ui.internal.utils.WebrootUtil.getWebContentFolderName(WebrootUtil.java:96) at org.eclipse.jst.pagedesigner.utils.ProjectResolver.getLocationFromWEBXML(ProjectResolver.java:247) at org.eclipse.jst.pagedesigner.utils.ProjectResolver.getLocationByURI(ProjectResolver.java:343) at org.eclipse.jst.pagedesigner.utils.ProjectResolver.getLocationByURI(ProjectResolver.java:230) at org.eclipse.jst.jsp.core.internal.java.JSPTranslator.handleIncludeFile(JSPTranslator.java:1923) at org.eclipse.jst.jsp.core.internal.java.JSPTranslator.translateDirective(JSPTranslator.java:1666) at org.eclipse.jst.jsp.core.internal.java.JSPTranslator.translateJSPNode(JSPTranslator.java:1419) at org.eclipse.jst.jsp.core.internal.java.JSPTranslator.translateRegionContainer(JSPTranslator.java:994) at org.eclipse.jst.jsp.core.internal.java.JSPTranslator.translate(JSPTranslator.java:862) at org.eclipse.jst.jsp.core.internal.java.JSPTranslationAdapter.getJSPTranslation(JSPTranslationAdapter.java:127) at org.eclipse.jst.jsp.core.internal.java.search.JSPSearchDocument.getJSPTranslation(JSPSearchDocument.java:123) at org.eclipse.jst.jsp.core.internal.java.search.JSPSearchDocument.getPath(JSPSearchDocument.java:162) at org.eclipse.jst.jsp.core.internal.java.search.JavaSearchDocumentDelegate.<init>(JavaSearchDocumentDelegate.java:30) at org.eclipse.jst.jsp.core.internal.java.search.JSPSearchSupport.createSearchDocument(JSPSearchSupport.java:402) at org.eclipse.jst.jsp.core.internal.java.search.JSPSearchSupport.addJspFile(JSPSearchSupport.java:296) at org.eclipse.jst.jsp.core.internal.java.search.JSPIndexManager$ProcessFilesJob.run(JSPIndexManager.java:262) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Loyal WaterMemberCan one of you guys send me a test project. Im going to file this bug for my Dev team.
Loyal WaterMemberThanks for sending the project. I have filed a bug. Ill get back to you guys with an update ASAP.
roger siegristMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
-
AuthorPosts