Announcement Announcement Module
Collapse
No announcement yet.
NPE when opening selection in xhtml file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NPE when opening selection in xhtml file

    After installing STS 2.3.1 all attempts to open an XHTML file referenced in another XHTML file (Facelets ui:include ref) result in an NPE. Trace below. This works consistently in Eclipse prior to STS install but continues to fail even after removing all STS plugins. I followed the install instructions provided in the pdf dated 3/9/2010. Using Eclipse 3.5 SR2 on Mac OS X Leopard, Java 1.5.

    Any help on how to fix this would be appreciated.

    Code:
    java.lang.NullPointerException
    at org.springframework.ide.eclipse.core.java.ProjectClassLoaderCache.findClassLoaderInCache(ProjectClassLoaderCache.java:202)
    at org.springframework.ide.eclipse.core.java.ProjectClassLoaderCache.getClassLoader(ProjectClassLoaderCache.java:281)
    at org.springframework.ide.eclipse.core.java.JdtUtils.getClassLoader(JdtUtils.java:790)
    at org.springframework.ide.eclipse.core.io.EclipsePathMatchingResourcePatternResolver.<init>(EclipsePathMatchingResourcePatternResolver.java:69)
    at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:303)
    at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getImports(AbstractBeansConfig.java:454)
    at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.checkForImportedBeansConfig(BeansProject.java:449)
    at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfigs(BeansProject.java:434)
    at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(BeansProject.java:412)
    at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(BeansModel.java:208)
    at org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(BeansCoreUtils.java:43)
    at org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(BeansCoreUtils.java:31)
    at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ProjectClasspathExtensibleUriResolver.resolve(ProjectClasspathExtensibleUriResolver.java:58)
    at org.eclipse.wst.common.uriresolver.internal.ExtensibleURIResolver.resolve(ExtensibleURIResolver.java:85)
    at org.eclipse.wst.xml.ui.internal.hyperlink.XMLHyperlinkDetector.resolveURI(XMLHyperlinkDetector.java:567)
    at org.eclipse.wst.xml.ui.internal.hyperlink.XMLHyperlinkDetector.getURIString(XMLHyperlinkDetector.java:450)
    at org.eclipse.wst.xml.ui.internal.hyperlink.XMLHyperlinkDetector.detectHyperlinks(XMLHyperlinkDetector.java:123)
    at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
    at org.eclipse.wst.sse.ui.internal.hyperlink.OpenHyperlinkAction$1.run(OpenHyperlinkAction.java:60)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.wst.sse.ui.internal.hyperlink.OpenHyperlinkAction.run(OpenHyperlinkAction.java:63)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
    at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:125)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:965)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3542)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1287)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1283)
    at org.eclipse.swt.widgets.Canvas.sendKeyEvent(Canvas.java:433)
    at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:906)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4741)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
    at org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents(NSResponder.java:56)
    at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:516)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4655)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
    at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:202)
    at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:1753)
    at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:1825)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4713)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
    at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4285)
    at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4352)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
    at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:101)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3097)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    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:194)
    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:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

  • #2
    Hi,

    thanks for raising this. Could you please open a JIRA or attach a very simple sample project to this thread that shows the issue for you.

    In my tests I'm an unable to re-create this but it looks definitely like a bug to me.

    Thanks,

    Christian

    Comment


    • #3
      Christian,

      In responding to your request I imported the Spring WebFlow booking faces sample project, reinstalled STS, and discovered that it works fine in that project.

      The problem still appears in the other project I have so it appears to be a configuration issue with that project. That project was created several years ago and though it uses Spring (2.5.6) and SWF (2.0.8) extensively the Eclipse configuration was not configured with Spring, Spring IDE, SWF, or any other 3rd party tool set in mind. I'll just live with it for now since I don't have the time to do any extensive trial and error testing to find the culprit that's causing this. If you have some ideas on what to look for I can give them a shot.

      Thanks for looking at it.

      Comment

      Working...
      X