java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Can't set Python Interpreter
    via pydev by nortino
    ,
  • GitHub comment 6#1122881
    via GitHub by ricklon
    ,
  • I get the error when using SCM Tagger in the BRMP, I am using the latest jar available on bamboo site, (2.0.1) System Error Details Build Assay Design - Sprint 2 : PostChainAction (java.lang.NullPointerException : ) Occurrences: 2 First Occurred: 19 May 2011, 3:10:57 PM Last Occurred: 19 May 2011, 3:44:41 PM -------------------------------------------------------------------------------- java.lang.NullPointerException at java.util.HashMap.<init>(Unknown Source) at com.google.common.collect.Maps.newHashMap(Maps.java:136) at com.atlassian.bamboo.variable.CustomVariableContextImpl.filterVariableContextByName(CustomVariableContextImpl.java:269) at com.atlassian.bamboo.variable.CustomVariableContextImpl.substituteBambooVariables(CustomVariableContextImpl.java:159) at com.atlassian.bamboo.variable.CustomVariableContextImpl.substituteString(CustomVariableContextImpl.java:129) at com.atlassian.bamboo.build.VariableSubstitutionBeanImpl.substituteBambooVariables(VariableSubstitutionBeanImpl.java:51) at com.atlassian.bamboo.build.VariableSubstitutionBeanImpl.substituteBambooVariables(VariableSubstitutionBeanImpl.java:36) at com.sysbliss.bamboo.plugins.brmp.action.postrunners.TaggerRunner.runTagger(TaggerRunner.java:74) at com.atlassian.bamboo.plugins.brmp.action.BRMPChainCompleteAction.execute(BRMPChainCompleteAction.java:61) at com.atlassian.bamboo.chains.ChainPluginSupportImpl.chainCompleted(ChainPluginSupportImpl.java:94) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.finaliseChainStateIfChainExecutionHasCompleted(ChainExecutionManagerImpl.java:531) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.access$600(ChainExecutionManagerImpl.java:50) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$1.run(ChainExecutionManagerImpl.java:282) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:333) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.execute(ChainExecutionManagerImpl.java:241) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.access$1000(ChainExecutionManagerImpl.java:50) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$2.run(ChainExecutionManagerImpl.java:328) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:333) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.handleEvent(ChainExecutionManagerImpl.java:308) at sun.reflect.GeneratedMethodAccessor931.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy49.handleEvent(Unknown Source) at com.atlassian.event.legacy.LegacyListenerHandler$LegacyListenerInvoker.invoke(LegacyListenerHandler.java:55) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:60) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Unknown Source) -------------------------------------------------------------------------------- Close This Window | Report Bug.
    via by Dinesh Baldawa,
  • Description: The app crashes on launch on Android. Tested on iOS as well and worked fine. This is regression. Didn't exist on 2.1.0. Steps to reproduce: 1. Run the following code: {code} var win = Ti.UI.createWindow({ backgroundColor:'white', title:'test', modal:true }); var data1 = []; var tvr = Ti.UI.createTableViewRow({ title:'pippo', hasChild:true }); data1.push(tvr); var table = Ti.UI.createTableView({ top: 10, left: 10, width: 200, height: 200, scrollable: false, borderRadius: 10, backgroundColor: 'white', data : data1 }); table.addEventListener('postlayout', function() { setTimeout(function(){ Ti.API.info('#### postlayout table event received.'); alert('postlayout table event fired'); },600); }); win.add(table); win.open(); {code} Consol output: {code} 08-16 14:52:06.374: E/TiApplication(9450): (main) [242,242] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 2.2.0,2012/08/15 14:17,9779010 08-16 14:52:06.374: E/TiApplication(9450): java.lang.NullPointerException 08-16 14:52:06.374: E/TiApplication(9450): at java.util.HashMap.<init>(HashMap.java:195) 08-16 14:52:06.374: E/TiApplication(9450): at org.appcelerator.kroll.KrollDict.<init>(KrollDict.java:72) 08-16 14:52:06.374: E/TiApplication(9450): at ti.modules.titanium.ui.TableViewProxy.fireEvent(TableViewProxy.java:189) 08-16 14:52:06.374: E/TiApplication(9450): at ti.modules.titanium.ui.widget.tableview.TiTableView.onLayout(TiTableView.java:544) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.374: E/TiApplication(9450): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.374: E/TiApplication(9450): at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:585) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.374: E/TiApplication(9450): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.374: E/TiApplication(9450): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649) 08-16 14:52:06.374: E/TiApplication(9450): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507) 08-16 14:52:06.374: E/TiApplication(9450): at android.widget.LinearLayout.onLayout(LinearLayout.java:1420) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.374: E/TiApplication(9450): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1866) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1687) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.Choreographer.doCallbacks(Choreographer.java:555) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.Choreographer.doFrame(Choreographer.java:525) 08-16 14:52:06.374: E/TiApplication(9450): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) 08-16 14:52:06.374: E/TiApplication(9450): at android.os.Handler.handleCallback(Handler.java:615) 08-16 14:52:06.374: E/TiApplication(9450): at android.os.Handler.dispatchMessage(Handler.java:92) 08-16 14:52:06.374: E/TiApplication(9450): at android.os.Looper.loop(Looper.java:137) 08-16 14:52:06.374: E/TiApplication(9450): at android.app.ActivityThread.main(ActivityThread.java:4745) 08-16 14:52:06.374: E/TiApplication(9450): at java.lang.reflect.Method.invokeNative(Native Method) 08-16 14:52:06.374: E/TiApplication(9450): at java.lang.reflect.Method.invoke(Method.java:511) 08-16 14:52:06.374: E/TiApplication(9450): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 08-16 14:52:06.374: E/TiApplication(9450): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 08-16 14:52:06.374: E/TiApplication(9450): at dalvik.system.NativeStart.main(Native Method) 08-16 14:52:06.424: E/AndroidRuntime(9450): FATAL EXCEPTION: main 08-16 14:52:06.424: E/AndroidRuntime(9450): java.lang.NullPointerException 08-16 14:52:06.424: E/AndroidRuntime(9450): at java.util.HashMap.<init>(HashMap.java:195) 08-16 14:52:06.424: E/AndroidRuntime(9450): at org.appcelerator.kroll.KrollDict.<init>(KrollDict.java:72) 08-16 14:52:06.424: E/AndroidRuntime(9450): at ti.modules.titanium.ui.TableViewProxy.fireEvent(TableViewProxy.java:189) 08-16 14:52:06.424: E/AndroidRuntime(9450): at ti.modules.titanium.ui.widget.tableview.TiTableView.onLayout(TiTableView.java:544) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.424: E/AndroidRuntime(9450): at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:585) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.widget.LinearLayout.onLayout(LinearLayout.java:1420) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.View.layout(View.java:13754) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.ViewGroup.layout(ViewGroup.java:4362) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1866) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1687) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.Choreographer.doCallbacks(Choreographer.java:555) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.Choreographer.doFrame(Choreographer.java:525) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.os.Handler.handleCallback(Handler.java:615) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.os.Handler.dispatchMessage(Handler.java:92) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.os.Looper.loop(Looper.java:137) 08-16 14:52:06.424: E/AndroidRuntime(9450): at android.app.ActivityThread.main(ActivityThread.java:4745) 08-16 14:52:06.424: E/AndroidRuntime(9450): at java.lang.reflect.Method.invokeNative(Native Method) 08-16 14:52:06.424: E/AndroidRuntime(9450): at java.lang.reflect.Method.invoke(Method.java:511) 08-16 14:52:06.424: E/AndroidRuntime(9450): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 08-16 14:52:06.424: E/AndroidRuntime(9450): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 08-16 14:52:06.424: E/AndroidRuntime(9450): at dalvik.system.NativeStart.main(Native Method) {code} Actual: The app crashes Expected: App should not crash
    via by Tamila Smolich,
    • java.lang.NullPointerException at java.util.HashMap.<init>(HashMap.java:240) at org.python.pydev.ui.pythonpathconf.MyEnvWorkingCopy.updateInfo(MyEnvWorkingCopy.java:53) at org.python.pydev.ui.pythonpathconf.MyEnvWorkingCopy.setAttribute(MyEnvWorkingCopy.java:146) at org.eclipse.debug.ui.EnvironmentTab.performApply(EnvironmentTab.java:523) at org.python.pydev.ui.pythonpathconf.AbstractInterpreterEditor.fillPathItems(AbstractInterpreterEditor.java:648) at org.python.pydev.ui.pythonpathconf.AbstractInterpreterEditor.updateTree(AbstractInterpreterEditor.java:625) at org.python.pydev.ui.pythonpathconf.AbstractInterpreterEditor.doStore(AbstractInterpreterEditor.java:790) at org.eclipse.jface.preference.FieldEditor.store(FieldEditor.java:676) at org.eclipse.jface.preference.FieldEditorPreferencePage.performOk(FieldEditorPreferencePage.java:343) at org.python.pydev.ui.pythonpathconf.AbstractInterpreterPreferencesPage.performOk(AbstractInterpreterPreferencesPage.java:94) at org.eclipse.jface.preference.PreferenceDialog$12.run(PreferenceDialog.java:929) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:909) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:440) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed(WorkbenchPreferenceDialog.java:164) at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488) 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:193) 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:382) 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

    Users with the same issue

    Nikolay Rybak
    1 times, last one,
    Unknown visitor2 times, last one,