Build agent fails to start the VM under window Server 2003 with JDK 7
Greetings,
I tried switching the JDK for the Build Agent yesterday to version 1.7.0_10 (previously running on jdk 1.7.0_09) and since then the Build Agent fails to start the VM no matter which Build configuration I try to run.
The error I get is the following:
[16:56:18][Step 1/3] Error occurred during initialization of VM
[16:56:18][Step 1/3] java.lang.ExceptionInInitializerError
[16:56:18][Step 1/3] at java.lang.Runtime.loadLibrary0(Runtime.java:841)
[16:56:18][Step 1/3] at java.lang.System.loadLibrary(System.java:1084)
[16:56:18][Step 1/3] at java.lang.System.initializeSystemClass(System.java:1145)
[16:56:18][Step 1/3] Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
[16:56:18][Step 1/3] at java.lang.String.charAt(String.java:658)
[16:56:18][Step 1/3] at java.io.Win32FileSystem.<init>(Win32FileSystem.java:40)
[16:56:18][Step 1/3] at java.io.WinNTFileSystem.<init>(WinNTFileSystem.java:37)
[16:56:18][Step 1/3] at java.io.FileSystem.getFileSystem(Native Method)
[16:56:18][Step 1/3] at java.io.File.<clinit>(File.java:156)
[16:56:18][Step 1/3] at java.lang.Runtime.loadLibrary0(Runtime.java:841)
[16:56:18][Step 1/3] at java.lang.System.loadLibrary(System.java:1084)
[16:56:18][Step 1/3] at java.lang.System.initializeSystemClass(System.java:1145)
I would really appreciate your help as I can not seem to find what is wrong with my configuration/settings.
I have tried re-installing TeamCity, switching back to jdk 1.7.0_09, changing the configurations but I can not
seem to resolve the problem no matter what I try.
I am running TeamCity 7.1.3 on Windows Server 2003.
I have also attached the logs of both the server and agent.
Thanks in advance for your time and effort.
Regards,
Panayiotis Vlissidis
Attachment(s):
teamcity_server_logs_2012-12-21.zip
teamcity_agent_logs_2012-12-21.zip
Please sign in to leave a comment.
I am experiencing the very same issue.
Our builds were running great until I upgraded to Java 1.7.0_10. Now, I'm getting a stack trace similar to that above.
[13:25:49]: [Step 2/2] in directory: C:\BuildAgent\work\be3019adf23d00cb\dev
[13:25:50]: [Step 2/2] Process exited with code 1
[13:25:50]: [Step 2/2] Ant output:
[13:25:50]: [Step 2/2] Error occurred during initialization of VM
[13:25:50]: [Step 2/2] java.lang.ExceptionInInitializerError
[13:25:50]: [Step 2/2] at java.lang.Runtime.loadLibrary0(Runtime.java:841)
[13:25:50]: [Step 2/2] at java.lang.System.loadLibrary(System.java:1084)
[13:25:50]: [Step 2/2] at java.lang.System.initializeSystemClass(System.java:1145)
[13:25:50]: [Step 2/2] Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
[13:25:50]: [Step 2/2] at java.lang.String.charAt(String.java:658)
[13:25:50]: [Step 2/2] at java.io.Win32FileSystem.<init>(Win32FileSystem.java:40)
[13:25:50]: [Step 2/2] at java.io.WinNTFileSystem.<init>(WinNTFileSystem.java:37)
[13:25:50]: [Step 2/2] at java.io.FileSystem.getFileSystem(Native Method)
[13:25:50]: [Step 2/2] at java.io.File.<clinit>(File.java:156)
[13:25:50]: [Step 2/2] at java.lang.Runtime.loadLibrary0(Runtime.java:841)
[13:25:50]: [Step 2/2] at java.lang.System.loadLibrary(System.java:1084)
[13:25:50]: [Step 2/2] at java.lang.System.initializeSystemClass(System.java:1145)
[13:25:51]: [Step 2/2] Step Ant failed
We are running TeamCity Enterprise 6.5.2.
There is an issue in our tracker (http://youtrack.jetbrains.com/issue/TW-25070), please watch/vote for it.
For now, as a workaround, please use Java 1.7.0_09