You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "gary emiddio bello (JIRA)" <ji...@apache.org> on 2018/03/29 21:13:00 UTC

[jira] [Commented] (NETBEANS-457) maven build exception

    [ https://issues.apache.org/jira/browse/NETBEANS-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16419766#comment-16419766 ] 

gary emiddio bello commented on NETBEANS-457:
---------------------------------------------

to reproduce git checkout jGit source from [https://github.com/eclipse/jgit.git];

modify version minimums in top level pom.xml and org.eclipse.jgit.packaging\pom.xml to maven version supported in bundled maven in nb9 - which is 3.3.9, from 3.5.2 in orig pom.xml files.

verify command line maven 3.3.9 successfully build jGit - it does for me.

then try to build jGit from netbeans - open jGit project with nb9.

do build - clean, build from nb9.

exception will occur.

I spent day+ trying to debug/figure out but was unsuccessful.

1st NPE is due to a startFold method call where maven\src\org\netbeans\modules\maven\execute\CommandLineOutputHandler.java line 

350 calls startFold - but even if that line is commented out and also line 354 - with intention

of not creating folds in the output window a NPE is eventually thrown in method trimTree

after 'start = currentTreeNode.getStartEvent();' line since start will be null;

The tree which is built to manage folds is not as expected by existing code.

 

> maven build exception
> ---------------------
>
>                 Key: NETBEANS-457
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-457
>             Project: NetBeans
>          Issue Type: Bug
>          Components: apisupport - Maven
>    Affects Versions: 9.0
>         Environment: Product Version: Apache NetBeans IDE Dev (Build 20180309-unknown-revn)
> Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11
> Runtime: Java(TM) SE Runtime Environment 9.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> User directory: C:\Users\gary\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\gary\AppData\Local\NetBeans\Cache\dev
>            Reporter: gary emiddio bello
>            Priority: Major
>
>  
> error while building jgit from
> [https://github.com/eclipse/jgit.git]
> java.lang.AssertionError
>  at org.netbeans.modules.maven.execute.cmd.ExecutionEventObject$Tree.startFold(ExecutionEventObject.java:174)
>  at org.netbeans.modules.maven.execute.CommandLineOutputHandler$Output.run(CommandLineOutputHandler.java:350)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>  at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>  at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>  at org.netbeans.modules.maven.execute.CommandLineOutputHandler.setStdOut(CommandLineOutputHandler.java:146)
>  at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:280)
> [catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists