Problem building with JDK 1.4
As with my earlier email, I am trying to run the agent build using JDK 1.4. I am getting the following message when running ant which I think may be due to an incompatability with 1.4 for the custom build listener:
Process output: java.lang.UnsupportedClassVersionError: jetbrains/buildServer/agent/ant/ServerLoggerFacade (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at jetbrains.buildServer.agent.ant.AgentClassLoader.loadClass(AgentClassLoader.java:33) at jetbrains.buildServer.agent.ant.LoggerFactory.createAgentObject(LoggerFactory.java:44) at jetbrains.buildServer.agent.ant.LoggerFactory.createLoggerFacade(LoggerFactory.java:30) at jetbrains.buildServer.agent.ant.LoggerFactory.createAntBuildProgressLogger(LoggerFactory.java:26) at jetbrains.buildServer.agent.ant.AgentBuildListener.]]>(AgentBuildListener.java:36) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at org.apache.tools.ant.Main.addBuildListeners(Main.java:710) at org.apache.tools.ant.Main.runBuild(Main.java:597) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) BUILD FAILED Unable to instantiate listener jetbrains.buildServer.agent.ant.AgentBuildListener Total time: 0 seconds
So my assumption is that there is currently no possible way to have the agent do a build using a 1.4 JDK, is that correct?
If correct, is there an issue to support building with an earlier JDK or should I create one?
--Tim
Please sign in to leave a comment.
The latest EAP contains a bug which disallows usage of non-1.5 jdk on build agents. It will be fixed in the next EAP (there is no Jira issue, but the problem is already fixed in our VCS)
Kind regards,
KIR
ETA for release of next build?
This is a bit of a show-stopper for those of us relegated to using JDK 1.4
Tim Haley wrote:
We're really sorry for that. We hope to release EAP this week, most likely by Friday.
Kind regards,
KIR
--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"
I think this is broken in a different way in the new build.
According to:
http://www.jetbrains.net/jira/browse/TW-307
I should add a <target-jdk> entry in the config on the server, but I cannot see any reference to that tag in any of the dtds and when I try and add it, things fail with:
org.jdom.input.JDOMParseException: Error on line 17 of document file:/home/dev/.
BuildServer/config/Apex/project-config.xml: Element type "target-jdk" must be declared.