Here is a similar issue at stackoverflow
http://stackoverflow.com/questions/13913196/file-separator-java-7-option-causes-exceptionininitializererror
Thanks,
David Zhao
From: David Zhao
Sent: Tuesday, March 19, 2013 12:21 PM
To: dev_at_glassfish.java.net
Cc: Bill Shannon
Subject: findbugs issue on windows
Hi,
I got the following exception when I do "findbugs:gui" against glassfish trunk on windows with jdk7u17. I notice someone observed similar issue with jdk7 on windows, but which was not for findbugs. Is that a known issue of glassfish findbugs?
D:\work_dir\glassfish\trunk\main\appserver\jms\jms-core>mvn -Dfindbugs.threshold=Low findbugs:gui
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JMS Module 4.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- findbugs-maven-plugin:2.4.0:gui (default-cli) @ jms-core ---
[INFO] File Encoding is UTF-8
Error occurred during initialization of VM
java.lang.ExceptionInInitializerError
at java.lang.Runtime.loadLibrary0(Runtime.java:841)
at java.lang.System.loadLibrary(System.java:1084)
at java.lang.System.initializeSystemClass(System.java:1145)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at java.io.Win32FileSystem.<init>(Win32FileSystem.java:40)
at java.io.WinNTFileSystem.<init>(WinNTFileSystem.java:37)
at java.io.FileSystem.getFileSystem(Native Method)
at java.io.File.<clinit>(File.java:156)
at java.lang.Runtime.loadLibrary0(Runtime.java:841)
at java.lang.System.loadLibrary(System.java:1084)
at java.lang.System.initializeSystemClass(System.java:1145)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.117s
[INFO] Finished at: Tue Mar 19 11:32:02 CST 2013
[INFO] Final Memory: 16M/38M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:2.4.0:gui (default-cli) on project jms-core: Execution default-cli of goal org.codehaus.mojo:findbugs-maven-plugin:2.4.0:gui failed: Java returned: 1 -> [Help 1]
Thanks,
David Zhao