Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-863

Layout editor throws null pointer exception in Juno SR2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.6.1
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:
    • Environment:
      Windows 7 (64bit), Juno SR2, Liferay IDE 1.6.1

      Description

      The layout editor throws a null pointer exception when you attempt to edit a .tpl file. You can edit the file with the html editor or the text editor. I initially thought it was because the file was empty, but I added some stuff using the html editor and it still does the same thing.

      !ENTRY org.eclipse.ui.workbench 4 2 2013-03-13 11:48:49.668
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
      !STACK 0
      java.lang.NullPointerException
      at com.liferay.ide.eclipse.layouttpl.ui.editor.LayoutTplMultiOutlinePage.init(LayoutTplMultiOutlinePage.java:140)
      at org.eclipse.ui.part.PageBookView.initPage(PageBookView.java:468)
      at org.eclipse.ui.views.contentoutline.ContentOutline.doCreatePage(ContentOutline.java:135)
      at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:411)
      at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:763)
      at org.eclipse.ui.part.PageBookView$4.partActivated(PageBookView.java:1048)
      at org.eclipse.ui.internal.WorkbenchPage$12.run(WorkbenchPage.java:4462)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:4460)
      at org.eclipse.ui.internal.WorkbenchPage.access$16(WorkbenchPage.java:4440)
      at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:173)
      at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$2.run(PartServiceImpl.java:193)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:191)
      at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:596)
      at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:549)
      at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:538)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3052)
      at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
      at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
      at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)
      at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      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:353)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
      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:629)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

      This may be useful.

      Liferay IDE 1.6.1.v201211020947 com.liferay.ide.eclipse.tools.feature.group Liferay, Inc.
      Eclipse Faceted Project Framework 3.4.0.v201202292300-377F8N8s735555393B7B org.eclipse.wst.common.fproj.feature.group Eclipse Web Tools Platform
      Eclipse Faceted Project Framework JDT Enablement 3.4.0.v201108231500-377DG8s73543J5H6D66 org.eclipse.jst.common.fproj.enablement.jdt.feature.group Eclipse Web Tools Platform
      Eclipse Java EE Developer Tools 3.4.2.v201301240600-7b7JINbFSK2WM3QNAEr799V-TyUp org.eclipse.jst.enterprise_ui.feature.feature.group Eclipse Web Tools Platform
      Eclipse Java Web Developer Tools 3.4.2.v201209272000-7F7DFSpC26SrlX9qoilV1RGQC9ivZy86-bz-IBHe org.eclipse.jst.web_ui.feature.feature.group Eclipse Web Tools Platform
      Eclipse Web Developer Tools 3.4.2.v201211061806-7O7MFu3EMkBK01NbrfU9ATE5cdZFz-OoeYjaI4d2 org.eclipse.wst.web_ui.feature.feature.group Eclipse Web Tools Platform
      Eclipse XML Editors and Tools 3.4.2.v201211061806-7H7GFeJDxumUrsn5qkiQgOEhsz0p60HAmPyU6VX org.eclipse.wst.xml_ui.feature.feature.group Eclipse Web Tools Platform
      JavaServer Faces Tools (JSF) Project 3.4.1.v201208241503-7E7JFBjF9JgLWgMhh4X6Ps org.eclipse.jsf.feature.feature.group Eclipse Web Tools Platform
      JST Server Adapters 3.2.201.v20130123_1813-20A87w31241234a2924 org.eclipse.jst.server_adapters.feature.feature.group Eclipse Web Tools Platform
      JST Server Adapters Extensions 3.3.102.v20130108_1103-777HFL7CcNBDnBcIVFHFD8 org.eclipse.jst.server_adapters.ext.feature.feature.group Eclipse Web Tools Platform
      JST Server UI 3.4.0.v20120503_1042-7A77FHr9xFcC2CFLZBCJMHLg7D64 org.eclipse.jst.server_ui.feature.feature.group Eclipse Web Tools Platform
      Sapphire (Incubation) 0.5.4.201302121329 org.eclipse.sapphire.feature.group Eclipse.org - Sapphire
      Sapphire Eclipse Platform Support (Incubation) 0.5.4.201302121329 org.eclipse.sapphire.platform.feature.group Eclipse.org - Sapphire
      Sapphire GEF Editor Support (Incubation) 0.5.4.201302121329 org.eclipse.sapphire.ui.swt.gef.feature.group Eclipse.org - Sapphire
      Sapphire Java Developer Tools Support (Incubation) 0.5.4.201302121329 org.eclipse.sapphire.java.jdt.feature.group Eclipse.org - Sapphire
      Sapphire Java Support (Incubation) 0.5.4.201302121329 org.eclipse.sapphire.java.feature.group Eclipse.org - Sapphire
      Sapphire OSGi Support (Incubation) 0.5.4.201302121329 org.eclipse.sapphire.osgi.feature.group Eclipse.org - Sapphire
      Sapphire User Interface (Incubation) 0.5.4.201302121329 org.eclipse.sapphire.ui.feature.group Eclipse.org - Sapphire
      Sapphire XML Editor Support (Incubation) 0.5.4.201302121329 org.eclipse.sapphire.ui.swt.xml.editor.feature.group Eclipse.org - Sapphire
      Sapphire XML Support (Incubation) 0.5.4.201302121329 org.eclipse.sapphire.modeling.xml.feature.group Eclipse.org - Sapphire
      WST Common UI 3.4.2.v201212051536-7C7AFeFEdhOaweLhCnQfylKlOxT5UW org.eclipse.wst.common_ui.feature.feature.group Eclipse Web Tools Platform
      WST Server Adapters 3.2.203.v20130123_1813-7L3FA4CcNBGVCZL_l8OCG org.eclipse.wst.server_adapters.feature.feature.group Eclipse Web Tools Platform
      WST Server UI 3.3.201.v20120927_1316-7B7AFMXAtMe9qFHLb-MlSZwg8BB2 org.eclipse.wst.server_ui.feature.feature.group Eclipse Web Tools Platform

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 28 weeks, 4 days ago

                  Packages

                  Version Package