Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 128553 - NPE when launching Ant launch config
Summary: NPE when launching Ant launch config
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Kevin Barnes CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 128651 128898 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-19 13:22 EST by Jörg von Frantzius CLA
Modified: 2006-02-22 09:24 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg von Frantzius CLA 2006-02-19 13:22:11 EST
[3.2 M5]
When I try to launch an launchconfig that existed already when I used Eclipse 3.2 M4, I get the following NPE:

eclipse.buildId=I20060217-1115
java.version=1.5.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86 -data D:\eclipse_sgw2_workspace

Error
2006-02-19 19:20:42.496
Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".

java.lang.NullPointerException
at org.eclipse.core.internal.variables.StringSubstitutionEngine.substitute(StringSubstitutionEngine.java:137)
at org.eclipse.core.internal.variables.StringSubstitutionEngine.performStringSubstitution(StringSubstitutionEngine.java:86)
at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:559)
at org.eclipse.ui.internal.console.PatternMatchListenerExtension.getQuickPattern(PatternMatchListenerExtension.java:136)
at org.eclipse.ui.internal.console.PatternMatchListener.getLineQualifier(PatternMatchListener.java:68)
at org.eclipse.ui.internal.console.ConsolePatternMatcher.addPatternMatchListener(ConsolePatternMatcher.java:220)
at org.eclipse.ui.console.TextConsole.addPatternMatchListener(TextConsole.java:351)
at org.eclipse.ui.internal.console.ConsoleManager.addConsoles(ConsoleManager.java:220)
at org.eclipse.debug.internal.ui.views.console.ProcessConsoleManager.launchChanged(ProcessConsoleManager.java:156)
at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.run(LaunchManager.java:446)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.notify(LaunchManager.java:427)
at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:878)
at org.eclipse.debug.core.Launch.fireChanged(Launch.java:412)
at org.eclipse.debug.core.Launch.addProcess(Launch.java:375)
at org.eclipse.debug.core.model.RuntimeProcess.<init>(RuntimeProcess.java:124)
at org.eclipse.ant.internal.ui.launchConfigurations.RemoteAntRuntimeProcess.<init>(RemoteAntRuntimeProcess.java:28)
at org.eclipse.ant.internal.ui.launchConfigurations.RemoteAntProcessFactory.newProcess(RemoteAntProcessFactory.java:31)
at org.eclipse.debug.core.DebugPlugin.newProcess(DebugPlugin.java:657)
at org.eclipse.jdt.launching.AbstractVMRunner.newProcess(AbstractVMRunner.java:110)
at org.eclipse.jdt.internal.launching.StandardVMRunner.run(StandardVMRunner.java:252)
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:101)
at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.runInSeparateVM(AntLaunchDelegate.java:544)
at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:209)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:639)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:565)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:753)
at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:943)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

The java.version really is 1.5.0_06, by the way.
Comment 1 Darin Swanson CLA 2006-02-19 21:56:41 EST
There needs to be a check for passing the optional qualifier attribute of the pattern matcher to the string variable expansion
Comment 2 Darin Swanson CLA 2006-02-19 21:57:52 EST
Kevin please verify changes to PatternMatchListenerExtension.
Comment 3 Kevin Barnes CLA 2006-02-20 11:00:36 EST
*** Bug 128651 has been marked as a duplicate of this bug. ***
Comment 4 Kevin Barnes CLA 2006-02-20 11:03:31 EST
verified
Comment 5 Kevin Barnes CLA 2006-02-22 09:24:41 EST
*** Bug 128898 has been marked as a duplicate of this bug. ***