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.

  • 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)
    via by Matthew Adams,
  • 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)
    via by Matthew Adams,
    • 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)
    No Bugmate found.