Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 124
Registered: ‎06-19-2012
My Device: PlayBook + Red Z10 + BB10 Dev Alpha C
My Carrier: none
Accepted Solution

chronic build error

Since today I get a build error in all of my projects:

 

Errors occurred during the build.

Errors running builder 'App Descriptor Validator' on project 'MNKit'.

java.lang.NullPointerException

 

Google doesn't provide any insight into this. Restarting Momentics, or clean the projects doesn't help.

 

When opening bar-descriptor.xml I get:

 

java.lang.NullPointerException
at com.qnx.tools.bbt.core.signing.BarSignerTool.<init>(BarSignerTool.java:105)
at com.qnx.tools.ide.bbt.internal.core.BBTNativeSDKProvider$BBTNativeSDKDescriptor.getBarSigner(BBTNativeSDKProvider.java:172)
at com.qnx.tools.bbt.core.sdk.AbstractBlackBerryTabletSDKDescriptor.getValidator(AbstractBlackBerryTabletSDKDescriptor.java:122)
at com.qnx.tools.ide.bbt.internal.core.BBTNativeSDKProvider.getValidSDKs(BBTNativeSDKProvider.java:97)
at com.qnx.tools.bbt.core.sdk.IBlackBerryTabletSDKDescriptor$IRegistry$Impl.collectValidSDKs(IBlackBerryTabletSDKDescriptor.java:327)
at com.qnx.tools.bbt.core.sdk.IBlackBerryTabletSDKDescriptor$IRegistry$Impl.getValidSDKs(IBlackBerryTabletSDKDescriptor.java:311)
at com.qnx.tools.bbt.internal.core.utils.BlackberryTabletSDKUtils.getAvailableTargetPlatformVersions(BlackberryTabletSDKUtils.java:130)
at com.qnx.tools.bbt.xml.internal.ui.editor.bbtxml.forms.GeneralAdvancedPart.getAvailablePlatformVersions(GeneralAdvancedPart.java:146)
at com.qnx.tools.bbt.xml.internal.ui.editor.bbtxml.forms.GeneralAdvancedPart.<init>(GeneralAdvancedPart.java:69)
at com.qnx.tools.bbt.xml.internal.ui.editor.bbtxml.forms.GeneralPage.createLeftContent(GeneralPage.java:65)
at com.qnx.tools.bbt.xml.internal.ui.editor.bbtxml.forms.GeneralPage.createFormContent(GeneralPage.java:54)
at com.qnx.tools.bbt.xml.internal.ui.editor.bbtxml.forms.BBTFormPage.createFormContent(BBTFormPage.java:92)
at org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:152)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:150)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:241)
at org.eclipse.ui.forms.editor.FormEditor.addPage(FormEditor.java:325)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:211)
at org.eclipse.ui.forms.editor.FormEditor.addPage(FormEditor.java:308)
at com.qnx.tools.bbt.xml.internal.ui.editor.bbtxml.BBTXMLEditor.addBBTPage(BBTXMLEditor.java:233)
at com.qnx.tools.bbt.xml.internal.ui.editor.bbtxml.BBTXMLEditor.createGeneralPage(BBTXMLEditor.java:240)
at com.qnx.tools.bbt.xml.internal.ui.editor.bbtxml.BBTXMLEditor.addPages(BBTXMLEditor.java:324)
at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:99)
at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:99)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
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:344)
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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

 

I'm running on a Mac, Mountain Lion with the new Oracle Java 1.6.0.37.

Developer
Posts: 124
Registered: ‎06-19-2012
My Device: PlayBook + Red Z10 + BB10 Dev Alpha C
My Carrier: none

Re: chronic build error

solved.

 

re-installing Momentics and the simutaor did it.

 

New Member
Posts: 1
Registered: ‎03-01-2013
My Device: Z10
My Carrier: Bell

Re: chronic build error

You could also run Momentics with -clean option to clean any invalid cached plugin in the configuration folder of eclipse folder

 

e.g.: C:/bbndk/ide/win32/x86/eclipse/qde.exe -clean or /Applications/bbndk/ide/macosx/x86/eclipse/qde -clean

 

This also solved the problem without having to reinstall