You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "Yaytay (via GitHub)" <gi...@apache.org> on 2023/04/14 08:20:34 UTC
[GitHub] [netbeans] Yaytay opened a new issue, #5825: NullPointerException invoking "org.netbeans.api.project.Project.getLookup()" because "project" is null with parent maven project
Yaytay opened a new issue, #5825:
URL: https://github.com/apache/netbeans/issues/5825
### Apache NetBeans version
Apache NetBeans 17
### What happened
When building a parent pom (specifically from this commit https://github.com/Yaytay/query-engine/commit/ce55e83ade5cbf8ccbb4a9eb3a1a828449037653) NetBeans hits a NullPointerException and then fails to output anything further in the Output window.
The build seems to complete, but with no output.
### How to reproduce
Clone https://github.com/Yaytay/query-engine/commit/ce55e83ade5cbf8ccbb4a9eb3a1a828449037653, open in NetBeans and try to build the parent project.
The problem seems to relate to NetBeans hooking the surefire output.
The build completes successfully if run outside of NetBeans.
[messages.log](https://github.com/apache/netbeans/files/11230498/messages.log)
This is an extract of the parent pom:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>uk.co.spudsoft</groupId>
<artifactId>query-engine-parent</artifactId>
<version>0.0.0</version>
<name>SpudSoft Query Engine - Parent</name>
<packaging>pom</packaging>
<modules>
<module>query-engine</module>
<module>query-engine-design-mode</module>
</modules>
<licenses>
<license>
<name>General Public License 3.0</name>
<url>https://opensource.org/licenses/GPL-3.0</url>
</license>
</licenses>
<developers>
<developer>
<id>yaytay</id>
<name>Jim Talbut</name>
<email>jim-vertx-resteasy-helpers @ spudsoft.co.uk</email>
</developer>
</developers>
<scm>
<connection>scm:git@github.com:Yaytay/query-engine.git</connection>
<developerConnection>scm:git@github.com:Yaytay/query-engine.git</developerConnection>
<url>https://github.com/Yaytay/vertx-resteasy-helpers.git</url>
</scm>
<build>
<pluginManagement>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<forkCount>${fork.count}</forkCount>
<reuseForks>true</reuseForks>
<argLine>@{argLine} -Dfile.encoding=UTF-8 -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler --module-path=${compiler.dir} --upgrade-module-path=${compiler.dir}</argLine>
<systemProperties>
<rows.in.testdb>${rows.in.testdb}</rows.in.testdb>
</systemProperties>
<trimStackTrace>false</trimStackTrace>
<excludes>
<exclude>**/sandbox/**</exclude>
</excludes>
</configuration>
</plugin>
...
</plugins>
</pluginManagement>
</build>
</project>```
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 11
### JDK
Azul Zulu 19
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
Every time the parent project is built.
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] Yaytay commented on issue #5825: NullPointerException invoking "org.netbeans.api.project.Project.getLookup()" because "project" is null with parent maven project
Posted by "Yaytay (via GitHub)" <gi...@apache.org>.
Yaytay commented on issue #5825:
URL: https://github.com/apache/netbeans/issues/5825#issuecomment-1508623680
Yes, taking the nightly linux build and sticking on top of my Windows deployment, then copying my original netbeans.conf does fix the issue.
Looking forward to netbeans 18 :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] Yaytay commented on issue #5825: NullPointerException invoking "org.netbeans.api.project.Project.getLookup()" because "project" is null with parent maven project
Posted by "Yaytay (via GitHub)" <gi...@apache.org>.
Yaytay commented on issue #5825:
URL: https://github.com/apache/netbeans/issues/5825#issuecomment-1508130419
Oh, this might have fixed it: https://github.com/apache/netbeans/commit/8819ee6aef78011c770277d7a5932eb97b9fd598
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] Yaytay closed issue #5825: NullPointerException invoking "org.netbeans.api.project.Project.getLookup()" because "project" is null with parent maven project
Posted by "Yaytay (via GitHub)" <gi...@apache.org>.
Yaytay closed issue #5825: NullPointerException invoking "org.netbeans.api.project.Project.getLookup()" because "project" is null with parent maven project
URL: https://github.com/apache/netbeans/issues/5825
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists