0 Replies Latest reply on Nov 16, 2007 9:01 AM by kamermans

    Flex Builder 2 Crashes - Solution Found

    kamermans
      When you close Flex Builder 2 while some files are open, it keeps track of their states so when you re-open it it can load them automatically.

      I closed FB2 with my CVS-enabled Flex project open and a bunch of files in source and design view yesterday. Today when I came in, Flex Builder 2 was crashing when I opened it ("An error has occured, check the log file..."). I restarted and it still crashed, then I renamed my workspace and it didn't crash, so I knew it was a workspace problem.

      Here is the entry in my log file for the error:

      --------------------------------------------------------------------

      !SESSION 2007-11-16 15:57:48.878 -----------------------------------------------
      eclipse.buildId=unknown
      java.version=1.4.2_12
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86

      !ENTRY org.eclipse.ui 4 4 2007-11-16 15:57:54.936
      !MESSAGE Unhandled event loop exception

      !ENTRY org.eclipse.ui 4 0 2007-11-16 15:57:54.939
      !MESSAGE Failed to execute runnable (java.lang.NullPointerException)
      !STACK 0
      org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
      at org.eclipse.swt.SWT.error(SWT.java:2942)
      at org.eclipse.swt.SWT.error(SWT.java:2865)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3102)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2761)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:153)
      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:303)
      at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
      at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog. java:261)
      at org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.refreshFromLocal(IDEWorkbenchAdvisor.java :253)
      at org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.postStartup(IDEWorkbenchAdvisor.java:180)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1643)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
      at com.adobe.flexbuilder.standalone.FlexBuilderApplication.run(FlexBuilderApplication.java:1 03)
      at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
      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.core.launcher.Main.invokeFramework(Main.java:334)
      at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
      at org.eclipse.core.launcher.Main.run(Main.java:973)
      at org.eclipse.core.launcher.Main.main(Main.java:948)
      Caused by: java.lang.NullPointerException
      at com.adobe.flexbuilder.editors.mxml.design.dvswfbuilder.EmbededAssetsSWFBuilder.build(Embe dedAssetsSWFBuilder.java:238)
      at com.adobe.flexbuilder.editors.mxml.design.MXMLDesignEditor$4.run(MXMLDesignEditor.java:16 49)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
      ... 23 more

      --------------------------------------------------------------------
      **** The log is too big to post here, so I just put the first couple entries in ****


      My solution was to force Flex to NOT open my previous files when it loaded. To do this, I renamed the following file:

      C:\Users\%username%\Documents\Flex Builder 2\.metadata\.plugins\org.eclipse.core.resources\.projects\{my_project_name}\indexes\prope rties.index

      Then I started FB2 and it worked just fine.

      I have the BAD properties.index and the good properties.index in case Adobe or anyones else wants to check them out.

      I am running Windows Vista 32bit with Flex Builder 2 (no hotfixes installed)

      Thanks,

      Steve Kamerman