1 Reply Latest reply on Jul 15, 2010 2:41 AM by myadmin

    FlexUnit Errors

    Kirk_Holbrook Level 1

      Hi,

       

      I have several Library Projects with FlexUnit tests within them. They were running fine.

       

      I am now getting "java.lang.reflect.InvocationTargetException" errors all the time. I've attached that, although I was getting some missing resource bundle errors as well. I think I've resolved that latter issues.

       

      And FYI I'm on Mac (10.6.4) running Flash Builder plug-in (4.0, not ready to plunge into 4.0.1, yet, unless it helps with this particular issue) with Eclipse 3.5.2 M20100211-1343. I'm running Subclipse 1.6.10, HgEclipse 1.5.0.201001202311, AnyEditTools 2.3.200910041235, as well as a few other plug-ins.

       

      Any help is greatly appreciated.

       

      TIA,

      Kirk

       

       

      java.lang.reflect.InvocationTargetException

      at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:477)

      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)

      at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:944)

      at com.adobe.flexbuilder.flexunit.debug.dialog.ConfigurationWizard.performFinish(Application CreationAndConfigurationDialog.java:421)

      at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:752)

      at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)

      at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)

      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)

      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.jface.window.Window.runEventLoop(Window.java:825)

      at org.eclipse.jface.window.Window.open(Window.java:801)

      at com.adobe.flexbuilder.flexunit.debug.contextMenu.FlexUnitUtil.launchApplicationRunDialog( FlexUnitUtil.java:420)

      at com.adobe.flexbuilder.flexunit.debug.dialog.FlexUnitLaunchShortcut.launchInternal(FlexUni tLaunchShortcut.java:92)

      at com.adobe.flexbuilder.flexunit.debug.dialog.FlexUnitLaunchShortcut.launch(FlexUnitLaunchS hortcut.java:65)

      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchS hortcutExtension.java:434)

      at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.run(LaunchShortcutAction.java: 73)

      at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.runWithEvent(LaunchShortcutAct ion.java:121)

      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)

      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :411)

      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.jface.action.ActionContributionItem$9.handleEvent(ActionContributionItem.java :1284)

      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 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(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)

      Caused by: java.lang.ClassCastException: com.adobe.flexbuilder.mxmlmodel.inlinestates.internal.SUnknownTag cannot be cast to com.adobe.flexbuilder.mxmlmodel.IInstance

      at com.adobe.flexbuilder.mxmlmodel.AbstractArrayAccessor.newInstance(AbstractArrayAccessor.j ava:120)

      at com.adobe.flexbuilder.mxmlmodel.inlinestates.internal.SContentHolder.newInstance(SContent Holder.java:58)

      at com.adobe.flexbuilder.mxmlmodel.AbstractMXMLItem.newInstance(AbstractMXMLItem.java:221)

      at com.adobe.flexbuilder.flexunit.ApplicationCreationUtil.insertComponent(ApplicationCreatio nUtil.java:1006)

      at com.adobe.flexbuilder.flexunit.ApplicationCreationUtil.modifyApplicationTagAndInsertTestR unnerComponent(ApplicationCreationUtil.java:384)

      at com.adobe.flexbuilder.flexunit.ApplicationCreationUtil.insertMXMLContent(ApplicationCreat ionUtil.java:330)

      at com.adobe.flexbuilder.flexunit.ApplicationCreationUtil.createMXMLFlexUnitApplication(Appl icationCreationUtil.java:304)

      at com.adobe.flexbuilder.flexunit.ApplicationCreationUtil.createFlexUnitApplication(Applicat ionCreationUtil.java:129)

      at com.adobe.flexbuilder.flexunit.debug.dialog.ConfigurationWizard.createAndLaunchApplicatio nFile(ApplicationCreationAndConfigurationDialog.java:479)

      at com.adobe.flexbuilder.flexunit.debug.dialog.ConfigurationWizard.access$1(ApplicationCreat ionAndConfigurationDialog.java:471)

      at com.adobe.flexbuilder.flexunit.debug.dialog.ConfigurationWizard$1.run(ApplicationCreation AndConfigurationDialog.java:413)

      at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)

      ... 58 more

      Root exception:

      java.lang.ClassCastException: com.adobe.flexbuilder.mxmlmodel.inlinestates.internal.SUnknownTag cannot be cast to com.adobe.flexbuilder.mxmlmodel.IInstance

      at com.adobe.flexbuilder.mxmlmodel.AbstractArrayAccessor.newInstance(AbstractArrayAccessor.j ava:120)

      at com.adobe.flexbuilder.mxmlmodel.inlinestates.internal.SContentHolder.newInstance(SContent Holder.java:58)

      at com.adobe.flexbuilder.mxmlmodel.AbstractMXMLItem.newInstance(AbstractMXMLItem.java:221)

      at com.adobe.flexbuilder.flexunit.ApplicationCreationUtil.insertComponent(ApplicationCreatio nUtil.java:1006)

      at com.adobe.flexbuilder.flexunit.ApplicationCreationUtil.modifyApplicationTagAndInsertTestR unnerComponent(ApplicationCreationUtil.java:384)

      at com.adobe.flexbuilder.flexunit.ApplicationCreationUtil.insertMXMLContent(ApplicationCreat ionUtil.java:330)

      at com.adobe.flexbuilder.flexunit.ApplicationCreationUtil.createMXMLFlexUnitApplication(Appl icationCreationUtil.java:304)

      at com.adobe.flexbuilder.flexunit.ApplicationCreationUtil.createFlexUnitApplication(Applicat ionCreationUtil.java:129)

      at com.adobe.flexbuilder.flexunit.debug.dialog.ConfigurationWizard.createAndLaunchApplicatio nFile(ApplicationCreationAndConfigurationDialog.java:479)

      at com.adobe.flexbuilder.flexunit.debug.dialog.ConfigurationWizard.access$1(ApplicationCreat ionAndConfigurationDialog.java:471)

      at com.adobe.flexbuilder.flexunit.debug.dialog.ConfigurationWizard$1.run(ApplicationCreation AndConfigurationDialog.java:413)

      at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)

      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)

      at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:944)

      at com.adobe.flexbuilder.flexunit.debug.dialog.ConfigurationWizard.performFinish(Application CreationAndConfigurationDialog.java:421)

      at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:752)

      at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)

      at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)

      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)

      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.jface.window.Window.runEventLoop(Window.java:825)

      at org.eclipse.jface.window.Window.open(Window.java:801)

      at com.adobe.flexbuilder.flexunit.debug.contextMenu.FlexUnitUtil.launchApplicationRunDialog( FlexUnitUtil.java:420)

      at com.adobe.flexbuilder.flexunit.debug.dialog.FlexUnitLaunchShortcut.launchInternal(FlexUni tLaunchShortcut.java:92)

      at com.adobe.flexbuilder.flexunit.debug.dialog.FlexUnitLaunchShortcut.launch(FlexUnitLaunchS hortcut.java:65)

      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchS hortcutExtension.java:434)

      at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.run(LaunchShortcutAction.java: 73)

      at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.runWithEvent(LaunchShortcutAct ion.java:121)

      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)

      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :411)

      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.jface.action.ActionContributionItem$9.handleEvent(ActionContributionItem.java :1284)

      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 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(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)