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 253275 - NullPointerException at org.netbeans.modules.maven.execute.CommandLineOutputHandler.trimTree
Summary: NullPointerException at org.netbeans.modules.maven.execute.CommandLineOutputH...
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-01 09:43 UTC by jherkel
Modified: 2018-01-28 01:32 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 218272


Attachments
stacktrace (1.23 KB, text/plain)
2015-07-01 09:43 UTC, jherkel
Details
Test project (21.58 KB, application/zip)
2015-07-07 12:10 UTC, jherkel
Details
stacktrace (792 bytes, text/plain)
2017-01-24 17:32 UTC, javydreamercsw
Details
stacktrace (1.23 KB, text/plain)
2017-11-22 11:32 UTC, toben
Details
stacktrace (1.23 KB, text/plain)
2017-11-28 06:53 UTC, toben
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jherkel 2015-07-01 09:43:26 UTC
This bug was originally marked as duplicate of bug 236768, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201506300001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Windows 7

User Comments:
jherkel: maven clean install, maven was executed with param threads 1C




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.execute.CommandLineOutputHandler.trimTree(CommandLineOutputHandler.java:576)
   at org.netbeans.modules.maven.execute.CommandLineOutputHandler.processExecEvent(CommandLineOutputHandler.java:484)
   at org.netbeans.modules.maven.execute.CommandLineOutputHandler.access$300(CommandLineOutputHandler.java:95)
   at org.netbeans.modules.maven.execute.CommandLineOutputHandler$Output.run(CommandLineOutputHandler.java:304)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
   at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
Comment 1 jherkel 2015-07-01 09:43:27 UTC
Created attachment 154454 [details]
stacktrace
Comment 2 jherkel 2015-07-01 09:50:28 UTC
I also tried to remove --threads 1C and it seems that without this everything works correctly.
Comment 3 Tomas Stupka 2015-07-01 14:33:54 UTC
tried with a bunch of maven projects but wasn't yet able to reproduce

any chance to provide or point to a project where this exception occurs with -T 1C?

thanks
Comment 4 jherkel 2015-07-07 12:10:08 UTC
Created attachment 154499 [details]
Test project

Please try this test project. I was able to reproduce this bug also with Netbeans 8.0.2 (Fedora 21 64bit, jdk 8u45 64bit, maven 3.3.3)
Comment 5 Tomas Stupka 2015-07-21 11:28:15 UTC
> Created attachment 154499 [details]
> Test project
> Please try this test project. I was able to reproduce this bug also with Netbeans 8.0.2 (Fedora 21 64bit, jdk 8u45 64bit, maven 3.3.3)
reproducible. thanks
Comment 6 Tomas Stupka 2015-07-22 09:35:08 UTC
was able to reproduce on other projects as well

events coming out of order when running with threads 1C and maven >= 3.3.1
Comment 7 javydreamercsw 2017-01-24 17:32:42 UTC
Created attachment 163463 [details]
stacktrace

Running jgitflow:release-start
Comment 8 Exceptions Reporter 2017-10-05 10:02:41 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=218272
Comment 9 toben 2017-11-22 11:32:16 UTC
Created attachment 165485 [details]
stacktrace

building maven project
Comment 10 toben 2017-11-28 06:53:28 UTC
Created attachment 165505 [details]
stacktrace

during maven build
Comment 11 Exceptions Reporter 2018-01-28 00:59:15 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=218272