Skip to content

Unexpected java.lang.IllegalArgumentException: Key contains code point U+0000 #5633

Closed

Description

@BruceKHaddon

Apache NetBeans version

Apache NetBeans 17

What happened

messages.log

How to reproduce

No response

Did this work correctly in an earlier version?

Apache NetBeans 16

Operating System

Windows 10 Pro, version 21H2, build 19044-2694, Intel i7 x64 16.0 GB

JDK

openjdk-19.0.1_windows-x64_bin.zip

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

Every time when run, but not when run in debug.

Are you willing to submit a pull request?

No

Activity

  1. added
    kind:bug
    needs:triage
    on Mar 8, 2023
  2. added
    Ant
    on Mar 8, 2023
  3. mbien commented on Mar 8, 2023

    @mbien
    Member
    SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.apache.tools.ant.module.bridge.impl.BridgeImpl$PostRun
    java.lang.IllegalArgumentException: Key contains code point U+0000
    	at java.prefs/java.util.prefs.AbstractPreferences.get(AbstractPreferences.java:291)
    	at org.apache.tools.ant.module.api.IntrospectedInfo$3.load(IntrospectedInfo.java:681)
    	at org.apache.tools.ant.module.AntSettings.getCustomDefs(AntSettings.java:119)
    	at org.apache.tools.ant.module.bridge.impl.BridgeImpl$PostRun.run(BridgeImpl.java:443)
    	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:287)
    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
    

    looks like there are invalid characters in a config file, the exception is in JDK code, this comment explains it:
    https://github.com/openjdk/jdk/blob/f813dc71836e002814622fead8a2b0464b49c83a/src/java.prefs/share/classes/java/util/prefs/AbstractPreferences.java#L118-L123

  4. BruceKHaddon commented on Mar 8, 2023

    @BruceKHaddon
    Author
  5. mbien commented on Mar 8, 2023

    @mbien
    Member

    I don't know unfortunately, but a similar issue was posted here: #5147

  6. BruceKHaddon commented on Mar 8, 2023

    @BruceKHaddon
    Author
  7. mbien commented on Mar 8, 2023

    @mbien
    Member

    well, resetting the config will solve the problem for you, but I would be curious if it is again the same file which is corrupted, or if it is just a random anomaly.

    Could be worth trying to scan all property files for that code point

  8. lkishalmi commented on Mar 10, 2023

    @lkishalmi
    Contributor

    Were you using JDK 8 as NetBeans Runtime recently?

    You may be seeing: NETBEANS-3284

  9. BruceKHaddon commented on Mar 10, 2023

    @BruceKHaddon
    Author
  10. removed
    needs:triage
    on Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Antkind:bugos:windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions