1 Reply Latest reply on Feb 2, 2011 5:40 AM by Martin Imfeld

    Design Mode not working - java.lang.Null Pointer exception

    Martin Imfeld

      When attempting to use the Design mode Flash Builder has started to completely fail to display the design and issues following erros in the components tab:

       

      "Could not create the view: An unexpected exception was thrown."

       

      "java.lang.NullPointerException
          at com.adobe.flexbuilder.codemodel.internal.design.ComponentCategoryList.getCustomComponents Filtered(ComponentCategoryList.java:207)
          at com.adobe.flexbuilder.mxml.editor.views.components.ComponentsView$ViewContentProvider.get Elements(ComponentsView.java:339)
          at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:959)
          at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
          at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1330)
          at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:390)
          at org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren(AbstractTreeViewer.java: 636)
          at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:60 2)
          at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:799)
          at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
          at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:776)
          at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:639)
          at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.ja va:1490)
          at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:828)
          at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1474)
          at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1392 )
          at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:402)
          at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1353 )
          at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1467)
          at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:274)
          at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1634)
          at com.adobe.flexbuilder.mxml.editor.views.components.ComponentsView.createMainControl(Compo nentsView.java:594)
          at com.adobe.flexbuilder.mxml.editor.views.AbstractDesignOnlyView.createPartControl(Abstract DesignOnlyView.java:125)
          at com.adobe.flexbuilder.mxml.editor.views.components.ComponentsView.createPartControl(Compo nentsView.java:1036)
          at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:367)
          at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
          at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
          at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2229)
          at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1067)
          at org.eclipse.ui.internal.WorkbenchPage$20.run(WorkbenchPage.java:3816)
          at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
          at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3813)
          at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignViewManager$EditorListener.showViews (CodeAndDesignViewManager.java:665)
          at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignViewManager$EditorListener.reconfigP anels(CodeAndDesignViewManager.java:547)
          at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignViewManager$EditorListener.pageAbout ToChange(CodeAndDesignViewManager.java:409)
          at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignEditor.pageAboutToChange(CodeAndDesi gnEditor.java:582)
          at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignEditor.setActivePage(CodeAndDesignEd itor.java:682)
          at com.adobe.flexbuilder.mxml.editor.MXMLEditor.setActivePage(MXMLEditor.java:544)
          at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignEditor$1.clicked(CodeAndDesignEditor .java:454)
          at com.adobe.flexide.editorcore.ui.controls.ButtonBar.clicked(ButtonBar.java:289)
          at com.adobe.flexide.editorcore.ui.controls.AbstractButton.sendClickEvent(AbstractButton.jav a:41)
          at com.adobe.flexide.editorcore.ui.controls.ToggleButton.handleChange(ToggleButton.java:79)
          at com.adobe.flexide.editorcore.ui.controls.ToggleButton.mouseDown(ToggleButton.java:66)
          at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1598)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1622)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1607)
          at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1396)
          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3484)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
          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 com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :109)
          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a: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:597)
          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)"

       

      This makes Flash Builder 4 pretty much useless to me. Anybody happen to know how to fix this issue?

       

      Thanks a lot in advance