Skip to content

Since some weeks tasks in my NB development environment do not end any more. #5147

Closed

Description

@WernerSchulte

Apache NetBeans version

Apache NetBeans 16

What happened

Since some weeks tasks in my NB development environment do not end any more.
Instead the status line shows e.g. '12 more'. If i click that message the tasks (debugger, clean build, etc) are shown with the indeterminate progress bar. A click in the 'cancel' button doesnt help. Instead closing NB that list of tasks is presented to the user to be finished. After confirm, NB shuts down and the tasklist is shown again for confirmation

This was observed in NB 12.5 which I used for years and never had such problem.
I update the NB16 (and took over the configuration) - Same problem

I was checking the IDE Log and found a message
java.lang.IllegalArgumentException: Key contains code point U+0000

Notification says, there is an unexpected Exception (each time clean build or debugger or run was finished
messages.log

How to reproduce

I guess this is a 'broken' configuration issue - No way to reproduce ...
I have a lot of projects, which I am working on frequently.
The option to remove the 'Roaming/Netbeans' folder would be most annoying, because I would need to setup the configuration full again (will be a pain)

Did this work correctly in an earlier version?

Apache NetBeans 12.6 or earlier

Operating System

Windows 10

JDK

OpenJDK 15

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

Happens for each task done in the netbeans

Are you willing to submit a pull request?

No

Code of Conduct

Yes

Activity

  1. added
    kind:bug
    needs:triage
    on Dec 26, 2022
  2. WernerSchulte commented on Dec 26, 2022

    @WernerSchulte
    Author

    uigestures.txt
    Found the U+0000 message in here

  3. WernerSchulte commented on Dec 26, 2022

    @WernerSchulte
    Author

    image

    After a day of working it looks like that (when closing NB)

  4. lkishalmi commented on Dec 27, 2022

    @lkishalmi
    Contributor

    You have to clean up your user/cache dirs. There is no way around that.
    The U+0000 happens due to this one: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8075156

  5. WernerSchulte commented on Dec 28, 2022

    @WernerSchulte
    Author

    Can I at least somehow extract / restore the ProjectGroups configurations ?

    That problem occurred all over sudden and might occur again in the future.
    I don't want to recreate all groups again and again

    Netbeans for me is clearly the best Java development tool.
    But this habit makes it hard to continue developing in a efficient way

  6. lkishalmi commented on Dec 28, 2022

    @lkishalmi
    Contributor

    You might take a chance saving/restoring the content of $USER_DIR/config/Preferences/org/netbeans/modules/projectui directory.

  7. WernerSchulte commented on Dec 28, 2022

    @WernerSchulte
    Author

    JFindNBPrefsNulls.zip
    Implemented a Prefs Checker for NB Prefs folder (in java - see attachment).
    With this one I found, the uihandler.properties had a huge bunch of \u0000 (String)
    and customDefs.properties had real binary 0x00 char.

    I first removed the uihandler.properties and restarted - same problem, same message with the u0000 codepoint
    Then I removed the customDefs.properties and netbeans was happy (started tasks and properly).

    I guess this happens, when somehow Windows FS is broken or a 'switch off' is required when netbeans is trying to store the prefs.

    Take the code and maybe improve NB to find a broken prefs instead of letting the user getting mad when unexpected exceptions happen and its unlear, what is the outcome ...

  8. added
    Ant
    and 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