1 Reply Latest reply on Jul 16, 2010 3:41 PM by Wasabilion

    NullPointerException on skinClass autocomplete in MXML, Flash Builder 4

    Wasabilion

      Thanks Jason, that was the issue. I had deleted some old components but kept the skins with the reference to the deleted components in the [HostComponent] metadata tag.

       

      I'll file the bug in jira and also copy this message to the forum. Thanks

      Sounds like a bug. Can you file it at http://bugs.adobe.com/flex ?

       

      From the looks of it, there's likely a skin file in your project with bad/missing [HostComponent] metadata and we aren't handling it properly. Do you have any custom skins?

       

      When you file the bug, send me the link. Make sure to set a watch on the bug for status updates. Thanks.

       

      Jason San Jose

      Software Engineer, Flash Builder

      Hi Jason

       

      I found your name on another thread in this forum regarding to a similar problem. I'm experiencing and issue with the skinClass autocomplete in Flash Builder 4. I contacted you directly because I read you have worked on similar issues.

       

      The issue happens only in 1 project, in any workspace, and goes like this:

      1. I type "sk" and hit Control+Space and get skinClass="" autocomplete and my cursor inserted between the "", but the skin matches do not pop up. If I check [workspace]/.metadata/.log, this is the error message I get: "!MESSAGE Unhandled event loop exception"
      2. Then, if I hit Control+Space again, I get an error window with the message: "!MESSAGE "Content Assist" did not complete normally.  Please see the log for more information." and an error with: "!MESSAGE java.lang.NullPointerException"

       

      I haven't seen this error elsewhere, I'm hoping you can give me some insight. Following goes a copy of the .log errors:

       

      Thanks, L.

       

       

       

      !ENTRY org.eclipse.ui 4 0 2010-07-16 15:59:36.116

      !MESSAGE Unhandled event loop exception

      !STACK 0

      java.lang.NullPointerException

      at com.adobe.flexide.mxml.core.utils.MXMLQueries.getSkinClassMatches(MXMLQueries.java:302)

      at com.adobe.flexide.mxml.core.editor.contentassist.MXMLCompletionProcessor$3.getProposals(M XMLCompletionProcessor.java:726)

      at com.adobe.flexide.mxml.core.editor.contentassist.MXMLCompletionProcessor.generateTypeProp osals(MXMLCompletionProcessor.java:489)

      at com.adobe.flexide.mxml.core.editor.contentassist.MXMLCompletionProcessor.computeCompletio nProposals(MXMLCompletionProcessor.java:721)

      at com.adobe.flexbuilder.mxml.editor.code.AdvancedMXMLCompletionProcessor.computeCompletionP roposals(AdvancedMXMLCompletionProcessor.java:81)

      at com.adobe.flexide.editorcore.contentassist.AbstractCachingCompletionProcessor.hasCompleti onProposals(AbstractCachingCompletionProcessor.java:72)

      at com.adobe.flexide.editorcore.contentassist.FlexContentAssistDelegate.willHaveProposals(Fl exContentAssistDelegate.java:348)

      at com.adobe.flexide.editorcore.contentassist.FlexContentAssistDelegate.canRequery(FlexConte ntAssistDelegate.java:456)

      at com.adobe.flexide.editorcore.contentassist.FlexContentAssistDelegate.getContextInformatio n(FlexContentAssistDelegate.java:222)

      at com.adobe.flexide.editorcore.contentassist.FlexCompletionProposal.getContextInformation(F lexCompletionProposal.java:155)

      at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionPro posalPopup.java:940)

      at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertSelectedProposalWithMa sk(CompletionProposalPopup.java:877)

      at org.eclipse.jface.text.contentassist.CompletionProposalPopup.verifyKey(CompletionProposal Popup.java:1304)

      at org.eclipse.jface.text.contentassist.ContentAssistant$InternalListener.verifyKey(ContentA ssistant.java:806)

      at org.eclipse.jface.text.TextViewer$VerifyKeyListenersManager.verifyKey(TextViewer.java:489 )

      at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:62)

      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.custom.StyledText.handleKeyDown(StyledText.java:5837)

      at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5541)

      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.sendKeyEvent(Widget.java:1659)

      at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1654)

      at org.eclipse.swt.widgets.Control.kEventUnicodeKeyPressed(Control.java:2304)

      at org.eclipse.swt.widgets.Composite.kEventUnicodeKeyPressed(Composite.java:605)

      at org.eclipse.swt.widgets.Control.kEventTextInputUnicodeForKeyEvent(Control.java:2266)

      at org.eclipse.swt.widgets.Canvas.kEventTextInputUnicodeForKeyEvent(Canvas.java:232)

      at org.eclipse.swt.widgets.Widget.textInputProc(Widget.java:2054)

      at org.eclipse.swt.widgets.Display.textInputProc(Display.java:3971)

      at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)

      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3051)

      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)

       

      !ENTRY org.eclipse.ui 4 4 2010-07-16 16:00:17.613

      !MESSAGE "Content Assist" did not complete normally.  Please see the log for more information.

       

      !ENTRY org.eclipse.ui 4 0 2010-07-16 16:00:17.614

      !MESSAGE java.lang.NullPointerException

      !STACK 0

      java.lang.NullPointerException

      at com.adobe.flexide.mxml.core.utils.MXMLQueries.getSkinClassMatches(MXMLQueries.java:302)

      at com.adobe.flexide.mxml.core.editor.contentassist.MXMLCompletionProcessor$3.getProposals(M XMLCompletionProcessor.java:726)

      at com.adobe.flexide.mxml.core.editor.contentassist.MXMLCompletionProcessor.generateTypeProp osals(MXMLCompletionProcessor.java:489)

      at com.adobe.flexide.mxml.core.editor.contentassist.MXMLCompletionProcessor.computeCompletio nProposals(MXMLCompletionProcessor.java:721)

      at com.adobe.flexbuilder.mxml.editor.code.AdvancedMXMLCompletionProcessor.computeCompletionP roposals(AdvancedMXMLCompletionProcessor.java:81)

      at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentA ssistant.java:1832)

      at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionP roposalPopup.java:556)

      at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposal Popup.java:553)

      at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopu p.java:488)

      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

      at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProp osalPopup.java:482)

      at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssi stant.java:1660)

      at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:835)

      at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.ja va:1450)

      at com.adobe.flexide.editorcore.editor.FlexSourceViewer.doOperation(FlexSourceViewer.java:19 0)

      at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131)

      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

      at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129)

      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:1 09)

      at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)

      at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.jav a: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(WorkbenchKeyboar d.java:569)

      at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)

      at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboar d.java:125)

      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

      at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1131)

      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1597)

      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.sendKeyEvent(Widget.java:1659)

      at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1654)

      at org.eclipse.swt.widgets.Control.kEventUnicodeKeyPressed(Control.java:2304)

      at org.eclipse.swt.widgets.Composite.kEventUnicodeKeyPressed(Composite.java:605)

      at org.eclipse.swt.widgets.Control.kEventTextInputUnicodeForKeyEvent(Control.java:2266)

      at org.eclipse.swt.widgets.Canvas.kEventTextInputUnicodeForKeyEvent(Canvas.java:232)

      at org.eclipse.swt.widgets.Widget.textInputProc(Widget.java:2054)

      at org.eclipse.swt.widgets.Display.textInputProc(Display.java:3971)

      at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)

      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3051)

      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)