Hi Tilman,
this happens only on windows and indicates corrupted configuration
files. It is not clear what the cause for the corruption is, but we
added some mitigations to NetBeans 19 which should make it hopefully a
bit more robust if the corruption is already there.
you can read more about it here:
https://github.com/apache/netbeans/pull/6094 and on the (many) linked
issues.
I suppose you imported your old NB 8 config into NB 18 when the issue
started?
The easiest fix to this is to simply start with a fresh config and don't
import configs esp when they are ancient.
You could scan your NB 8 config if you are curious and check what else
contains the invalid code points:
https://github.com/apache/netbeans/issues/6076#issuecomment-1596588677
I have the (small) hope that the corruption is something what happened
in past caused by an ancient NB release and is only a problem today
because the config is carried over to apache releases. If this
assumption is true, it should go away by itself esp after the NB 19
import filters are in place. If it keeps happening on windows we going
to have to keep digging. (I am not using windows for anything which
makes it more difficult to find problems like this.)
best regards,
michael
On 18.08.23 05:19, Tilman Hausherr wrote:
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
---------------------------------------------------------------------
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