MjAz2006 opened a new issue, #9850:
URL: https://github.com/apache/netbeans/issues/9850

   ### Apache NetBeans version
   
   Apache NetBeans 32
   
   ### What happened
   
   Bug Description
   
   Title: NetBeans 32 fails to initialize OSGi modules when using Arabic system 
locale due to locale-dependent Java version parsing
   
   Environment
   Apache NetBeans IDE: 32
   Operating System: Windows 10 (64-bit)
   Java Version: Oracle JDK 27.0.1.1
   System Locale: Arabic (Saudi Arabia) – ar_SA
   Problem Description
   
   Apache NetBeans IDE 32 fails to initialize several OSGi modules when running 
on Windows with an Arabic system locale.
   
   During startup, multiple modules fail to load, including:
   
   slf4j.api
   com.google.gson
   com.google.guava
   org.eclipse.jgit
   org.apache.sshd
   Bouncy Castle
   
   The startup log reports the following exception:
   
   text
   java.lang.IllegalArgumentException:
   invalid version "0.0.0.JavaSE_٠٢٧":
   invalid qualifier "JavaSE_٠٢٧"
   
   
   The root of the problem appears to be locale-dependent number formatting. 
The Java version qualifier contains Arabic-Indic digits (٠٢٧) instead of 
standard ASCII digits (027).
   
   Apache Felix OSGi cannot parse this version string, causing module 
resolution and initialization failures.
   
   Steps to Reproduce
   Install Apache NetBeans IDE 32 on Windows 10.
   Install Oracle JDK 27.0.1.1.
   Set the Windows system locale to Arabic (Saudi Arabia).
   Launch NetBeans.
   Observe the OSGi module initialization warnings and exceptions in the 
startup log.
   Expected Behavior
   
   NetBeans should initialize all required OSGi modules successfully, 
regardless of the operating system's regional or language settings.
   
   Java version identifiers and OSGi version metadata should use 
locale-independent formatting and standard ASCII digits.
   
   Actual Behavior
   
   NetBeans fails to initialize several OSGi modules because Arabic-Indic 
digits are included in the Java version qualifier, resulting in an invalid OSGi 
version string.
   
   Temporary Workaround
   
   Adding the following JVM options to netbeans.conf resolves the issue:
   
   text
   -J-Duser.language=en -J-Duser.country=US
   
   
   This forces NetBeans to use English locale settings and allows the affected 
modules to initialize successfully.
   
   Suggested Fix
   
   Please investigate locale-dependent Java version detection and OSGi 
environment configuration.
   
   Version identifiers used internally by NetBeans and Apache Felix should be 
generated and parsed independently of the user's default locale.
   
   This issue may affect users in Arabic-speaking regions and other locales 
that use non-ASCII numeral systems.
   
   Thank you for maintaining Apache NetBeans and improving its 
internationalization support.
   
   ### Language / Project Type / NetBeans Component
   
   _No response_
   
   ### How to reproduce
   
   Use Windows 10 (64-bit).
   Install Oracle JDK 27.0.1.1.
   Set the Windows system locale to Arabic (Saudi Arabia).
   Configure Apache NetBeans IDE 32 to use the installed JDK.
   Launch NetBeans.
   Open the startup log at: %APPDATA%\NetBeans\32\var\log\messages.log
   Observe the following exception:
   text
   java.lang.IllegalArgumentException:
   invalid version "0.0.0.JavaSE_٠٢٧":
   invalid qualifier "JavaSE_٠٢٧"
   
   Observe that several OSGi modules fail to initialize.
   As a workaround, add: -J-Duser.language=en -J-Duser.country=US
   
   to netbeans.conf and restart NetBeans.
   
   The modules initialize successfully after applying this workaround.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10 64-bit (Version 10.0) System Locale: Arabic (Saudi Arabia) - ar_SA
   
   ### JDK
   
   Oracle JDK 27.0.1.1 64-bit Java Home: C:\Program Files\Java\jdk-27.0.1.1
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   This issue occurs consistently in my environment when NetBeans runs with the 
Arabic (Saudi Arabia) system locale.
   
   The workaround using English JVM locale settings has been tested and 
successfully resolves the module initialization failures.
   
   I have the complete messages.log file containing the original exception and 
module initialization errors and can provide it as an attachment.
   
   This issue may affect users of other locales that use non-ASCII numeral 
systems.
   
   I believe this is an important internationalization and locale-compatibility 
issue that should be investigated and fixed at the source.
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

  • [I] NetBeans 32 fails to i... MjAz2006 (via GitHub) via notifications

Reply via email to