We're getting this strange error in our Gump builds.

Nick Chalko wrote:
----------------------------------------------------
This email is autogenerated from the output from:
<http://chalko.com/gump/smoketest.html>
----------------------------------------------------

[...]

compile-src:
     [echo] Compiling project core with Java 1.4, debug on, optimize off, 
deprecation on
    [mkdir] Created dir: 
/home/nick/gump-work/krysalis-template-smoke-test/build/smoketest/classes
    [javac] Compiling 1 source file to 
/home/nick/gump-work/krysalis-template-smoke-test/build/smoketest/classes

BUILD FAILED
java.lang.NullPointerException
        at 
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:177)
        at 
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:131)
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:834)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:681)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:185)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1244)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1188)
        at org.apache.tools.ant.Main.runBuild(Main.java:614)
        at org.apache.tools.ant.Main.start(Main.java:197)
        at org.apache.tools.ant.Main.main(Main.java:235)


I've checked the Ant code and the line is:

    /**
     * query for the Modern compiler existing
     * @return true iff classic os on the classpath
     */
    private static boolean doesModernCompilerExist() {
        try {
            Class.forName("com.sun.tools.javac.Main");
            return true;
        } catch (ClassNotFoundException cnfe) {
            try {

CompilerAdapterFactory.class.getClassLoader().loadClass( "com.sun.tools.javac.Main" );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return true;
} catch (ClassNotFoundException cnfe2) {
}
}
return false;
}



It's puzzling me, what can be the cause?

--
Nicola Ken Barozzi                   [EMAIL PROTECTED]
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to