Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] Build failed in Hudson: sapphire-0.4.x #175

In case someone else comes across build failure like this one:

     [java]       [apt] java.lang.ClassCastException:
com.sun.tools.javac.tree.JCTree$JCErroneous cannot be cast to
com.sun.tools.javac.tree.JCTree$JCAnnotation
     [java]       [apt] 	at
com.sun.tools.javac.comp.Annotate.enterAttributeValue(Annotate.java:205)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Annotate.enterAttributeValue(Annotate.java:219)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:167)
     [java]       [apt] 	at
com.sun.tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:743)
     [java]       [apt] 	at
com.sun.tools.javac.comp.MemberEnter.access$300(MemberEnter.java:42)
     [java]       [apt] 	at
com.sun.tools.javac.comp.MemberEnter$5.enterAnnotation(MemberEnter.java:711)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:87)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Enter.complete(Enter.java:485)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Enter.main(Enter.java:442)
     [java]       [apt] 	at
com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:250)
     [java]       [apt] 	at
com.sun.tools.apt.main.Main.compile(Main.java:1102)
     [java]       [apt] 	at
com.sun.tools.apt.main.Main.compile(Main.java:964)
     [java]       [apt] 	at
com.sun.tools.apt.Main.processing(Main.java:95)
     [java]       [apt] 	at
com.sun.tools.apt.Main.process(Main.java:43)
     [java]       [apt] 	at com.sun.tools.apt.Main.main(Main.java:34)

This is a bug in APT that manifest when you have a trailing comma in array
definition in an annotation. Something like so:

@FooBar( items = { "a", "b", "c", } )

It's perfectly legal per Java spec, but APT blows up on such syntax.

- Konstantin


-----Original Message-----
From: sapphire-dev-bounces@xxxxxxxxxxx
[mailto:sapphire-dev-bounces@xxxxxxxxxxx] On Behalf Of
hudsonbuild@xxxxxxxxxxx
Sent: Monday, November 14, 2011 7:14 PM
To: sapphire-dev@xxxxxxxxxxx
Subject: [sapphire-dev] Build failed in Hudson: sapphire-0.4.x #175

See <https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/175/changes>

Changes:

[kkomissarchik] Bug 360362 - Allow creation of custom form editor pages

------------------------------------------
[...truncated 919 lines...]
     [java] @dot.nestedJars:
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.equinox.registry_3.5.200.v20111010-1614.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/org.ecli
pse.equinox.registry_3.5.200.v20111010-1614>
     [java] 
     [java] @dot:
     [java]     [mkdir] Created dir:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.platform/@dot>
     [java]     [javac] Compiling 3 source files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.platform/@dot>
     [java] 
     [java] checkCompilationResults:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] build.jars:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] @dot.nestedJars:
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.equinox.registry_3.5.200.v20111010-1614.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/org.ecli
pse.equinox.registry_3.5.200.v20111010-1614>
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/com.ibm.icu_4.4.2.v20110823.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/com.ibm.
icu_4.4.2.v20110823>

     [java] 
     [java] @dot:
     [java]     [mkdir] Created dir:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.sdk.build.processor/@dot>
     [java]     [javac] Compiling 18 source files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.sdk.build.processor/@dot>
     [java] 
     [java] checkCompilationResults:
     [java]      [copy] Copying 1 file to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.sdk.build.processor/@dot>
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] build.jars:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] @dot.nestedJars:
     [java] 
     [java] @dot:
     [java]     [mkdir] Created dir:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.osgi/@dot>
     [java]     [javac] Compiling 3 source files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.osgi/@dot>
     [java] 
     [java] checkCompilationResults:
     [java]      [copy] Copying 1 file to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.osgi/@dot>
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] build.jars:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] @dot.nestedJars:
     [java] 
     [java] @dot:
     [java]     [mkdir] Created dir:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.java/@dot>
     [java]     [javac] Compiling 14 source files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.java/@dot>
     [java] 
     [java] checkCompilationResults:
     [java]      [copy] Copying 2 files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.java/@dot>
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] build.jars:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] @dot.nestedJars:
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.equinox.registry_3.5.200.v20111010-1614.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/org.ecli
pse.equinox.registry_3.5.200.v20111010-1614>
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/com.ibm.icu_4.4.2.v20110823.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/com.ibm.
icu_4.4.2.v20110823>

     [java] 
     [java] @dot:
     [java]     [mkdir] Created dir:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.java.jdt/@dot>
     [java]     [javac] Compiling 2 source files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.java.jdt/@dot>
     [java] 
     [java] checkCompilationResults:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] build.jars:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] @dot.nestedJars:
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.equinox.registry_3.5.200.v20111010-1614.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/org.ecli
pse.equinox.registry_3.5.200.v20111010-1614>
     [java] 
     [java] @dot:
     [java]     [mkdir] Created dir:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.workspace/@dot>
     [java]     [javac] Compiling 12 source files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.workspace/@dot>
     [java] 
     [java] checkCompilationResults:
     [java]      [copy] Copying 5 files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.workspace/@dot>
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] build.jars:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] @dot.nestedJars:
     [java] 
     [java] @dot:
     [java]     [mkdir] Created dir:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.osgi.fragment/@dot>
     [java]     [javac] Compiling 1 source file to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.osgi.fragment/@dot>
     [java] 
     [java] checkCompilationResults:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] build.jars:
     [java] 
     [java] pre.build.jars:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] @dot.nestedJars:
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.equinox.registry_3.5.200.v20111010-1614.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/org.ecli
pse.equinox.registry_3.5.200.v20111010-1614>
     [java] 
     [java] @dot:
     [java]     [mkdir] Created dir:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.modeling.xml/@dot>
     [java] 
     [java] pre.@dot:
     [java]    [javacc] Java Compiler Compiler Version 4.2 (Parser
Generator)
     [java]    [javacc] (type "javacc" with no arguments for help)
     [java]    [javacc] Reading from file
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.modeling.xml/src/org/eclipse/sapphire/modeling/xml/dtd/internal/Dt
dParser.jj> . . .
     [java]    [javacc] Note: UNICODE_INPUT option is specified. Please make
sure you create the parser/lexer using a Reader with the correct character
encoding.
     [java]    [javacc] File "TokenMgrError.java" does not exist.  Will
create one.
     [java]    [javacc] File "ParseException.java" does not exist.  Will
create one.
     [java]    [javacc] File "Token.java" does not exist.  Will create one.
     [java]    [javacc] File "SimpleCharStream.java" does not exist.  Will
create one.
     [java]    [javacc] Parser generated successfully.
     [java]     [javac] Compiling 56 source files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.modeling.xml/@dot>
     [java] 
     [java] checkCompilationResults:
     [java]      [copy] Copying 7 files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.modeling.xml/@dot>
     [java] 
     [java] post.compile.@dot:
     [java] 
     [java] post.@dot:
     [java] 
     [java] post.build.jars:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] build.jars:
     [java] 
     [java] pre.build.jars:
     [java] 
     [java] properties:
     [java] 
     [java] init:
     [java] 
     [java] @dot.nestedJars:
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/com.ibm.icu_4.4.2.v20110823.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/com.ibm.
icu_4.4.2.v20110823>

     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.equinox.registry_3.5.200.v20111010-1614.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/org.ecli
pse.equinox.registry_3.5.200.v20111010-1614>
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.ui.ide_3.8.0.v20111007-1312.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/org.ecli
pse.ui.ide_3.8.0.v20111007-1312>
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.ui.workbench_3.102.0.v20111027-1931.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/org.ecli
pse.ui.workbench_3.102.0.v20111027-1931>
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.ui.workbench_3.102.0.v20111027-1931.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/org.ecli
pse.ui.workbench_3.102.0.v20111027-1931>
     [java]     [unzip] Expanding:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.e4.core.services_0.10.0.v20111026-1857.jar> into
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/nestedJars/org.ecli
pse.e4.core.services_0.10.0.v20111026-1857>
     [java] 
     [java] @dot:
     [java]     [mkdir] Created dir:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/@dot>
     [java] 
     [java] pre.@dot:
     [java]     [mkdir] Created dir:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/.apt_generated>
     [java]       [jar] Building MANIFEST-only jar:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/apt-classpath.jar>
     [java]    [delete] Deleting:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/apt-classpath.jar.manifest>
     [java]       [jar] Building MANIFEST-only jar:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/apt-factorypath.jar>
     [java]    [delete] Deleting:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/apt-factorypath.jar.manifest>
     [java]       [apt]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/customBuildCallbacks.xml>:106: warning: 'includeantruntime' was
not set, defaulting to build.sysclasspath=last; set to false for repeatable
builds
     [java]       [apt] Since compiler setting isn't classic or modern,
ignoring fork setting.
     [java]       [apt] Since compiler setting isn't classic or modern,
ignoring fork setting.
     [java]       [apt] Compiling 353 source files to
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/.apt_generated>
     [java]       [apt] Since compiler setting isn't classic or modern,
ignoring fork setting.
     [java]       [apt] An exception has occurred in apt (1.6.0_21). Please
file a bug at the Java Developer Connection
(http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for
duplicates. Include your program and the following diagnostic in your
report.  Thank you.
     [java]       [apt] java.lang.ClassCastException:
com.sun.tools.javac.tree.JCTree$JCErroneous cannot be cast to
com.sun.tools.javac.tree.JCTree$JCAnnotation
     [java]       [apt] 	at
com.sun.tools.javac.comp.Annotate.enterAttributeValue(Annotate.java:205)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Annotate.enterAttributeValue(Annotate.java:219)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:167)
     [java]       [apt] 	at
com.sun.tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:743)
     [java]       [apt] 	at
com.sun.tools.javac.comp.MemberEnter.access$300(MemberEnter.java:42)
     [java]       [apt] 	at
com.sun.tools.javac.comp.MemberEnter$5.enterAnnotation(MemberEnter.java:711)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:87)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Enter.complete(Enter.java:485)
     [java]       [apt] 	at
com.sun.tools.javac.comp.Enter.main(Enter.java:442)
     [java]       [apt] 	at
com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:250)
     [java]       [apt] 	at
com.sun.tools.apt.main.Main.compile(Main.java:1102)
     [java]       [apt] 	at
com.sun.tools.apt.main.Main.compile(Main.java:964)
     [java]       [apt] 	at
com.sun.tools.apt.Main.processing(Main.java:95)
     [java]       [apt] 	at
com.sun.tools.apt.Main.process(Main.java:43)
     [java]       [apt] 	at com.sun.tools.apt.Main.main(Main.java:34)
     [java] 
     [java] BUILD FAILED
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.pde.build_3.8.0.v20110728/scripts/build.xml>:36: The
following error occurred while executing this line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.pde.build_3.8.0.v20110728/scripts/build.xml>:105: The
following error occurred while executing this line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/pde/builder/c
ustomTargets.xml>:12: The following error occurred while executing this
line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.pde.build_3.8.0.v20110728/templates/headless-build/all
Elements.xml>:16: The following error occurred while executing this line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.pde.build_3.8.0.v20110728/scripts/genericTargets.xml>:
118: The following error occurred while executing this line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/target-juno-4
2/plugins/org.eclipse.pde.build_3.8.0.v20110728/scripts/genericTargets.xml>:
123: The following error occurred while executing this line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/features/org.eclips
e.sapphire.stage2/build.xml>:54: The following error occurred while
executing this line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/features/org.eclips
e.sapphire.stage2/build.xml>:32: The following error occurred while
executing this line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/build.xml>:291: The following error occurred while executing
this line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/build.xml>:220: The following error occurred while executing
this line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/customBuildCallbacks.xml>:51: The following error occurred
while executing this line:
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/plugins/org.eclipse
.sapphire.ui/customBuildCallbacks.xml>:106: Compile failed; see the compiler
error output for details.
     [java] 
     [java] Total time: 19 seconds
     [java] An error has occurred. See the log file
     [java]
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build/pde/workspace
/.metadata/.log.>

BUILD FAILED
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build.xml>:65: The
following error occurred while executing this line:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build.xml>:90: The
following error occurred while executing this line:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/build.xml>:114: The
following error occurred while executing this line:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/releng/ant-library/
library.xml>:389: The following error occurred while executing this line:
<https://hudson.eclipse.org/hudson/job/sapphire-0.4.x/ws/releng/ant-library/
library.xml>:307: Java returned: 13

Total time: 2 minutes 27 seconds
[locks-and-latches] Releasing all the locks
[locks-and-latches] All the locks released
Terminating xvnc.
Recording test results
Archiving artifacts

_______________________________________________
sapphire-dev mailing list
sapphire-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/sapphire-dev



Back to the top