java.lang.NullPointerException

SpringSource Issue Tracker | Matthew Adams | 5 years ago
  1. 0

    Start STS, import existing Maven project, see dialog with text: "An internal error occurred during: "Importing Maven projects". java.lang.NullPointerException I have no ~/.m2/settings.xml file. Here is .metadata\.log file content: !SESSION 2011-09-13 11:10:00.826 ----------------------------------------------- eclipse.buildId=2.7.1.201107091000-RELEASE java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -product com.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide !ENTRY org.eclipse.ui 4 4 2011-09-13 11:10:05.961 !MESSAGE Unable to create menu item "ReloadDependencies", command "org.eclipse.wst.xml.ui.reload.dependecies" not defined !ENTRY com.perforce.team.core 1 0 2011-09-13 11:10:09.093 !MESSAGE P4Java server factory loaded; version: 2010.1/275861; date: 2010/12/07 !ENTRY com.perforce.team.core 1 0 2011-09-13 11:10:09.094 !MESSAGE Using default charset: windows-1252; JVM charset: windows-1252 !ENTRY com.perforce.team.core 1 0 2011-09-13 11:10:09.096 !MESSAGE initializing system file command helper class: java.io.File !ENTRY com.perforce.team.core 1 0 2011-09-13 11:10:09.098 !MESSAGE Using default RPC system file command helper: com.perforce.p4java.impl.mapbased.rpc.sys.helper.RpcSystemFileCommandsHelper !ENTRY com.perforce.team.core 1 0 2011-09-13 11:10:09.099 !MESSAGE setting RPC system file helper to class com.perforce.team.core.p4java.P4JavaSysFileCommandsHelper !ENTRY org.eclipse.jface 2 0 2011-09-13 11:10:10.808 !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-13 11:10:10.809 !MESSAGE A conflict occurred for ALT+CTRL+E: Binding(ALT+CTRL+E, ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.MergeCommand,Merge..., , Category(org.eclipse.team.svn.ui.command.category,SVN,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+E, ParameterizedCommand(Command(de.bastiankrol.startexplorer.startExplorerFromResourceCommand,Show resource(s) in Windows Explorer, Starts a new Windows Explorer instance showing the selected files and folders, Category(org.eclipse.core.commands.categories.autogenerated,Uncategorized,Commands that were either auto-generated or have no category,true), de.bastiankrol.startexplorer.popup.actions.StartExplorerFromResourceHandler, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-13 11:10:10.809 !MESSAGE A conflict occurred for ALT+CTRL+I: Binding(ALT+CTRL+I, ParameterizedCommand(Command(org.eclipse.egit.ui.team.Ignore,Ignore, , Category(org.eclipse.egit.ui.commandCategory,Git,null,true), org.eclipse.egit.ui.internal.actions.IgnoreActionHandler, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+I, ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.AddToSVNIgnoreCommand,Add to svn:ignore..., , Category(org.eclipse.team.svn.ui.command.category,SVN,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-13 11:10:10.809 !MESSAGE A conflict occurred for ALT+CTRL+A: Binding(ALT+CTRL+A, ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.ShowAnnotationCommand,Show Annotation..., , Category(org.eclipse.team.svn.ui.command.category,SVN,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+A, ParameterizedCommand(Command(de.bastiankrol.startexplorer.startSystemApplicationFromResourceCommand,Start this (these) file(s) with system editor, Opens this file with the default Windows application, Category(de.bastiankrol.startexplorer.commands.category,StartExplorer,null,true), de.bastiankrol.startexplorer.popup.actions.StartSystemApplicationFromResourceHandler, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-13 11:10:10.809 !MESSAGE A conflict occurred for ALT+CTRL+D: Binding(ALT+CTRL+D, ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.UpdateToRevisionCommand,Update to Revision, , Category(org.eclipse.team.svn.ui.command.category,SVN,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+D, ParameterizedCommand(Command(de.bastiankrol.startexplorer.startCmdExeFromResourceCommand,Start cmd.exe here, Opens a new command line prompt, Category(de.bastiankrol.startexplorer.commands.category,StartExplorer,null,true), de.bastiankrol.startexplorer.popup.actions.StartCmdExeFromResourceHandler, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-13 11:10:10.809 !MESSAGE A conflict occurred for ALT+CTRL+C: Binding(ALT+CTRL+C, ParameterizedCommand(Command(org.eclipse.egit.ui.team.Commit,Commit, , Category(org.eclipse.egit.ui.commandCategory,Git,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+C, ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.CommitCommand,Commit..., , Category(org.eclipse.team.svn.ui.command.category,SVN,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+C, ParameterizedCommand(Command(de.bastiankrol.startexplorer.copyResourcePathToClipboard,Copy resource path to clipboard, Copies the path of the resource to the Windows clipboard, Category(de.bastiankrol.startexplorer.commands.category,StartExplorer,null,true), de.bastiankrol.startexplorer.popup.actions.CopyResourcePathToClipboardHandler, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !ENTRY org.eclipse.core.jobs 4 2 2011-09-13 11:11:08.529 !MESSAGE An internal error occurred during: "Importing Maven projects". !STACK 0 java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginDescriptorCache$CacheKey.<init>(DefaultPluginDescriptorCache.java:165) at org.apache.maven.plugin.DefaultPluginDescriptorCache.createKey(DefaultPluginDescriptorCache.java:62) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:136) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:261) at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:192) at org.maven.ide.eclipse.internal.embedder.MavenImpl.getMojoParameterValue(MavenImpl.java:765) at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.addProjectSourceFolders(AbstractJavaProjectConfigurator.java:248) at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.configure(AbstractJavaProjectConfigurator.java:99) at org.maven.ide.eclipse.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:57) at org.maven.ide.eclipse.internal.project.GenericLifecycleMapping.configure(GenericLifecycleMapping.java:48) at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:306) at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.configureNewMavenProject(ProjectConfigurationManager.java:240) at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:146) at org.maven.ide.eclipse.wizards.MavenImportWizard$1.runInWorkspace(MavenImportWizard.java:94) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    SpringSource Issue Tracker | 5 years ago | Matthew Adams
    java.lang.NullPointerException
  2. 0

    Start STS, import existing Maven project, see dialog with text: "An internal error occurred during: "Importing Maven projects". java.lang.NullPointerException I have no ~/.m2/settings.xml file. Here is .metadata\.log file content: !SESSION 2011-09-13 11:10:00.826 ----------------------------------------------- eclipse.buildId=2.7.1.201107091000-RELEASE java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -product com.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide !ENTRY org.eclipse.ui 4 4 2011-09-13 11:10:05.961 !MESSAGE Unable to create menu item "ReloadDependencies", command "org.eclipse.wst.xml.ui.reload.dependecies" not defined !ENTRY com.perforce.team.core 1 0 2011-09-13 11:10:09.093 !MESSAGE P4Java server factory loaded; version: 2010.1/275861; date: 2010/12/07 !ENTRY com.perforce.team.core 1 0 2011-09-13 11:10:09.094 !MESSAGE Using default charset: windows-1252; JVM charset: windows-1252 !ENTRY com.perforce.team.core 1 0 2011-09-13 11:10:09.096 !MESSAGE initializing system file command helper class: java.io.File !ENTRY com.perforce.team.core 1 0 2011-09-13 11:10:09.098 !MESSAGE Using default RPC system file command helper: com.perforce.p4java.impl.mapbased.rpc.sys.helper.RpcSystemFileCommandsHelper !ENTRY com.perforce.team.core 1 0 2011-09-13 11:10:09.099 !MESSAGE setting RPC system file helper to class com.perforce.team.core.p4java.P4JavaSysFileCommandsHelper !ENTRY org.eclipse.jface 2 0 2011-09-13 11:10:10.808 !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-13 11:10:10.809 !MESSAGE A conflict occurred for ALT+CTRL+E: Binding(ALT+CTRL+E, ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.MergeCommand,Merge..., , Category(org.eclipse.team.svn.ui.command.category,SVN,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+E, ParameterizedCommand(Command(de.bastiankrol.startexplorer.startExplorerFromResourceCommand,Show resource(s) in Windows Explorer, Starts a new Windows Explorer instance showing the selected files and folders, Category(org.eclipse.core.commands.categories.autogenerated,Uncategorized,Commands that were either auto-generated or have no category,true), de.bastiankrol.startexplorer.popup.actions.StartExplorerFromResourceHandler, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-13 11:10:10.809 !MESSAGE A conflict occurred for ALT+CTRL+I: Binding(ALT+CTRL+I, ParameterizedCommand(Command(org.eclipse.egit.ui.team.Ignore,Ignore, , Category(org.eclipse.egit.ui.commandCategory,Git,null,true), org.eclipse.egit.ui.internal.actions.IgnoreActionHandler, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+I, ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.AddToSVNIgnoreCommand,Add to svn:ignore..., , Category(org.eclipse.team.svn.ui.command.category,SVN,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-13 11:10:10.809 !MESSAGE A conflict occurred for ALT+CTRL+A: Binding(ALT+CTRL+A, ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.ShowAnnotationCommand,Show Annotation..., , Category(org.eclipse.team.svn.ui.command.category,SVN,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+A, ParameterizedCommand(Command(de.bastiankrol.startexplorer.startSystemApplicationFromResourceCommand,Start this (these) file(s) with system editor, Opens this file with the default Windows application, Category(de.bastiankrol.startexplorer.commands.category,StartExplorer,null,true), de.bastiankrol.startexplorer.popup.actions.StartSystemApplicationFromResourceHandler, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-13 11:10:10.809 !MESSAGE A conflict occurred for ALT+CTRL+D: Binding(ALT+CTRL+D, ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.UpdateToRevisionCommand,Update to Revision, , Category(org.eclipse.team.svn.ui.command.category,SVN,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+D, ParameterizedCommand(Command(de.bastiankrol.startexplorer.startCmdExeFromResourceCommand,Start cmd.exe here, Opens a new command line prompt, Category(de.bastiankrol.startexplorer.commands.category,StartExplorer,null,true), de.bastiankrol.startexplorer.popup.actions.StartCmdExeFromResourceHandler, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-13 11:10:10.809 !MESSAGE A conflict occurred for ALT+CTRL+C: Binding(ALT+CTRL+C, ParameterizedCommand(Command(org.eclipse.egit.ui.team.Commit,Commit, , Category(org.eclipse.egit.ui.commandCategory,Git,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+C, ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.CommitCommand,Commit..., , Category(org.eclipse.team.svn.ui.command.category,SVN,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(ALT+CTRL+C, ParameterizedCommand(Command(de.bastiankrol.startexplorer.copyResourcePathToClipboard,Copy resource path to clipboard, Copies the path of the resource to the Windows clipboard, Category(de.bastiankrol.startexplorer.commands.category,StartExplorer,null,true), de.bastiankrol.startexplorer.popup.actions.CopyResourcePathToClipboardHandler, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !ENTRY org.eclipse.core.jobs 4 2 2011-09-13 11:11:08.529 !MESSAGE An internal error occurred during: "Importing Maven projects". !STACK 0 java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginDescriptorCache$CacheKey.<init>(DefaultPluginDescriptorCache.java:165) at org.apache.maven.plugin.DefaultPluginDescriptorCache.createKey(DefaultPluginDescriptorCache.java:62) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:136) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:261) at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:192) at org.maven.ide.eclipse.internal.embedder.MavenImpl.getMojoParameterValue(MavenImpl.java:765) at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.addProjectSourceFolders(AbstractJavaProjectConfigurator.java:248) at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.configure(AbstractJavaProjectConfigurator.java:99) at org.maven.ide.eclipse.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:57) at org.maven.ide.eclipse.internal.project.GenericLifecycleMapping.configure(GenericLifecycleMapping.java:48) at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:306) at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.configureNewMavenProject(ProjectConfigurationManager.java:240) at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:146) at org.maven.ide.eclipse.wizards.MavenImportWizard$1.runInWorkspace(MavenImportWizard.java:94) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    SpringSource Issue Tracker | 5 years ago | Matthew Adams
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.maven.plugin.DefaultPluginDescriptorCache$CacheKey.<init>()
    2. Maven Plugin
      DefaultPluginDescriptorCache.createKey
      1. org.apache.maven.plugin.DefaultPluginDescriptorCache$CacheKey.<init>(DefaultPluginDescriptorCache.java:165)
      2. org.apache.maven.plugin.DefaultPluginDescriptorCache.createKey(DefaultPluginDescriptorCache.java:62)
      2 frames
    3. Maven Core
      DefaultMavenPluginManager.getMojoDescriptor
      1. org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:136)
      2. org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:261)
      2 frames
    4. Maven Plugin
      DefaultBuildPluginManager.getMojoDescriptor
      1. org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:192)
      1 frame
    5. org.maven.ide
      MavenImportWizard$1.runInWorkspace
      1. org.maven.ide.eclipse.internal.embedder.MavenImpl.getMojoParameterValue(MavenImpl.java:765)
      2. org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.addProjectSourceFolders(AbstractJavaProjectConfigurator.java:248)
      3. org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.configure(AbstractJavaProjectConfigurator.java:99)
      4. org.maven.ide.eclipse.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:57)
      5. org.maven.ide.eclipse.internal.project.GenericLifecycleMapping.configure(GenericLifecycleMapping.java:48)
      6. org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:306)
      7. org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.configureNewMavenProject(ProjectConfigurationManager.java:240)
      8. org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:146)
      9. org.maven.ide.eclipse.wizards.MavenImportWizard$1.runInWorkspace(MavenImportWizard.java:94)
      9 frames
    6. Core Resource Management
      InternalWorkspaceJob.run
      1. org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      1 frame
    7. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame