This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256192

Summary: IllegalStateException: Unable to find the target from Event;targ=jvm-args;consumed;scrLoc=/home/nigel/src/ST/com/aspc/Install/Common/support/bin/core.xml, target name = jvm-args, script location = /ho
Product: debugger Reporter: nleck <nleck>
Component: AntAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 198496
Attachments: stacktrace

Description nleck 2015-10-26 23:08:52 UTC
Build: NetBeans IDE 8.1 RC2 (Build 201510122201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: Linux

User Comments:
nleck: junit testing




Stacktrace: 
java.lang.IllegalStateException: Unable to find the target from Event;targ=jvm-args;consumed;scrLoc=/home/nigel/src/ST/com/aspc/Install/Common/support/bin/core.xml, target name = jvm-args, script location = /home/nigel/src/ST/com/aspc/Install/Common/support/bin/core.xml
   at org.netbeans.modules.ant.debugger.AntDebugger.targetStarted(AntDebugger.java:483)
   at org.netbeans.modules.ant.debugger.DebuggerAntLogger.targetStarted(DebuggerAntLogger.java:153)
   at org.apache.tools.ant.module.bridge.impl.NbBuildLogger.targetStarted(NbBuildLogger.java:468)
   at org.apache.tools.ant.Project.fireTargetStarted(Project.java:2163)
   at org.apache.tools.ant.Target.performTasks(Target.java:454)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
Comment 1 nleck 2015-10-26 23:08:54 UTC
Created attachment 156986 [details]
stacktrace
Comment 2 Martin Entlicher 2015-10-30 14:51:34 UTC
This was caused by a preceding exception:
Cannot find import /home/.../ide_build.xml from /home/.../build_custom.xml

I've changed the code to print an error message into the debug output instead of throwing an exception:

changeset:   293395:cb90603c423d
http://hg.netbeans.org/core-main/rev/cb90603c423d
Comment 3 Quality Engineering 2015-10-31 02:25:49 UTC
Integrated into 'main-silver', will be available in build *201510310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cb90603c423d
User: mentlicher@netbeans.org
Log: #256192: When a target is not found, print an error message into the debug output instead of throwing an exception.