I installed Netbeans 18 yesterday after using Netbeans 8 for years, and I get this when opening maven projects:

java.lang.IllegalArgumentException: Key contains code point U+0000
    at java.prefs/java.util.prefs.AbstractPreferences.get(AbstractPreferences.java:291)     at org.netbeans.modules.maven.queries.MavenFileOwnerQueryImpl.registerCoordinates( :153)     at org.netbeans.modules.maven.ProjectOpenedHookImpl.registerWithSubmodules(ProjectOpenedHookImpl.java:431)     at org.netbeans.modules.maven.ProjectOpenedHookImpl.projectOpened(ProjectOpenedHookImpl.java:138)     at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:60) [catch] at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:1321)     at org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:1402)     at org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:848)     at org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1419)     at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2034)

I understand that the cause isn't in Netbeans itself. After looking at
https://github.com/apache/netbeans/blame/35a02e1bec7b6c4b4df51429841bda86b6d1eaf3/java/maven/src/org/netbeans/modules/maven/queries/MavenFileOwnerQueryImpl.java
and seeing that this was (sortof) recently fixed, I've then downloaded the latest development version.

NetBeans-dev-dev-35a02e1bec7b6c4b4df51429841bda86b6d1eaf3-release.zip on 17.8.2023

Now I get:
WARNING [org.netbeans.modules.maven.queries.MavenFileOwnerQueryImpl]: Invalid prefrences key at /org/netbeans/modules/maven/externalOwners, msg: Key contains code point U+0000

So the bad file is in netbeans itself and is named "externalOwners.properties". Where can I find it? Do I miss some useful setting when this is skipped? Is this file possibly part of the Netbeans distribution?

There is a line in netbeans.import with this:

include config/(Preferences/org/netbeans/modules/maven([.]properties|/(?!externalOwners[.]properties).*)|Projects/org-netbeans-modules-maven/nbactions[.]xml)

Tilman



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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

Reply via email to