facebook

NPE processing facelets TLDs…

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #295222 Reply

    dnebinger
    Member

    Okay, this just blows now that I can’t use eclipse on my faces projects. Was working fine under 6.5, but the ‘new’ stuff consistently throws NPEs, popping up stupid NPE dialogs (which have no important info in them at all).

    And these NPE dialogs will keep coming up whenever I try to edit the doc if there are some malformed tags (which, of course there is if you’re in the process of actually trying to edit the tags).

    Focus on the edit page is lost, and I just want to throw the monitor through the window.

    I’ve tried changing the editor to the xml editor (not the faces editor), disabling all runtime validation, etc. but just can’t get it to drop whatever issue is causing the tlds to throw the NPE exception in the first place.

    As the dialog is no help, I have no idea if TLDs need to be added/removed, or what I need to do to fix this problem…

    !ENTRY org.eclipse.wst.sse.ui 4 2 2009-02-24 10:46:09.339
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.wst.sse.ui".
    !STACK 0
    java.lang.NullPointerException
        at org.eclipse.jst.jsp.core.internal.contentmodel.tld.CMDocumentFactoryTLD.createCMDocument(CMDocumentFactoryTLD.java:1009)
        at com.genuitec.eclipse.jsf.facelets.FaceletsHelper.getProjectTLDs(FaceletsHelper.java:144)
        at com.genuitec.eclipse.jsf.facelets.FaceletsHelper.getFaceletTagLibraries(FaceletsHelper.java:106)
        at com.genuitec.eclipse.xhtml.XHTMLModelQueryCMProvider.getCorrespondingCMDocument(XHTMLModelQueryCMProvider.java:27)
        at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.SimpleAssociationProvider.getCorrespondingCMDocument(SimpleAssociationProvider.java:36)
        at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.SimpleAssociationProvider.getCMElementDeclaration(SimpleAssociationProvider.java:42)
        at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.ModelQueryImpl.getCMElementDeclaration(ModelQueryImpl.java:116)
        at com.genuitec.eclipse.xhtml.XHTMLModelQueryImpl.getCMElementDeclaration(XHTMLModelQueryImpl.java:151)
        at org.eclipse.wst.xml.ui.internal.editor.CMImageUtil.getDeclaration(CMImageUtil.java:50)
        at org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeAdapter.getLabelImage(JFaceNodeAdapter.java:145)
        at org.eclipse.wst.jsdt.web.ui.views.contentoutline.JFaceNodeAdapterForJs.getLabelImage(JFaceNodeAdapterForJs.java:283)
        at org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeLabelProvider.getImage(JFaceNodeLabelProvider.java:56)
        at org.eclipse.wst.sse.ui.StructuredTextEditor.updateStatusLine(StructuredTextEditor.java:3501)
        at org.eclipse.wst.sse.ui.StructuredTextEditor$9.selectionChanged(StructuredTextEditor.java:2336)
        at org.eclipse.wst.sse.ui.StructuredTextEditor$5.run(StructuredTextEditor.java:858)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.fireSelectionChanged(StructuredTextEditor.java:856)
        at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.handlePostSelectionChanged(StructuredTextEditor.java:914)
        at org.eclipse.wst.sse.ui.StructuredTextEditor$4.selectionChanged(StructuredTextEditor.java:837)
        at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2575)
        at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2527)
        at org.eclipse.jface.text.TextViewer$5.run(TextViewer.java:2506)
        at org.eclipse.swt.widgets.Display.runTimer(Display.java:3886)
        at org.eclipse.swt.widgets.Display.messageProc(Display.java:3091)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2371)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3420)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    
    #295313 Reply

    Loyal Water
    Member

    Can you please go to MyEclipse > Installation Summary > Installation Details and paste the information here for me. Also, can you list the steps to help me reproduce this bug at my end.

    Thank you.

    #295319 Reply

    dnebinger
    Member

    Honestly I don’t know how to recreate. I just know that when I open a .xhtml page, the NPE dialogs start popping up whenever I try editing the page…

    Anyway, here’s the installation details…

    *** Date: 
    Thursday, February 26, 2009 11:21:57 AM EST
    
    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.5.0_11
    
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.0
    Build id: 7.0-20081201
    
    
    *** Eclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 7.0
    Build id: 7.0-20081201
    
    
    
    
    Eclipse Platform
    
    Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
    Build id: M20080911-1700
    
    
    Eclipse Java Development Tools
    
    Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
    Build id: M20080709-0800
    
    
    Eclipse Graphical Editing Framework GEF
    
    Version: 3.4.1.v20080806-67718083A56B4H2A3213573
    Build id: 200809101400
    
    
    Eclipse RCP
    
    Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
    Build id: M20080703-0800
    
    
    Eclipse Plug-in Development Environment
    
    Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
    Build id: M20080703-0800
    
    
    
    
    Eclipse 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
    configuration
    -vm
    C:\Program Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin\client\jvm.dll
    
    
    #295330 Reply

    Loyal Water
    Member

    Do you face this issue with all .xhtml files? Incase you face this issue with certain .xhtml files only, can you paste a sample .xhtml file here for me.

    Also, if you switch to a new workspace, create a new project and add the xhtml file to it, does the problem persist?

    #295597 Reply

    dnebinger
    Member

    I face this problem with all .xhtml files, but it is sporadic; sometimes I get the NPE, sometimes I don’t. I haven’t been able to figure out what triggers it.

    I created a new workspace when I upgraded to 7.0; I can try it again if you think it might point to a problem…

    #295604 Reply

    dnebinger
    Member

    Hmm, well a little insight I guess…

    My project is ant-based. I’ve got an ant script in the root that creates and uses a build directory when it is building the project. Since I’m building a war, I get temporary class files here, and also build a representative directory structure for the ant war task to construct a war from.

    I happened to be looking at the error log to try to find some more info, and I saw a message there indicating that a .tld file was out of sync with the filesystem. Normally my build directory is not part of the project explorer as the ant script, through cleaning, rebuilding, etc., will be constantly making changes to the files in the directory.

    It looks like at some point Eclipse refreshed the project explorer view and found the build directory and added it and it’s contents (as it does if you restart eclipse after a recent crash). Since ant had changed many of the files since that refresh, that would explain the ‘out of sync’ message.

    I deleted the build directory from the project explorer tree, and now all of a sudden the NPE messages are gone.

    #295623 Reply

    dnebinger
    Member

    I’ve verified that somehow the build directory populated by ant from outside of eclipse is causing the NPE dialogs.

    The worst part is that eclipse is finding the build directory on it’s own; I do not choose to refresh the project explorer tree, eclipse is doing this on it’s own.

    When the NPEs start occurring, I find that I just need to delete the build directory from the project explorer tree and all is fine again…

    But it still sucks to have to go through this…

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: NPE processing facelets TLDs…

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