Compilation error: javac runtime error but could not parse the error

I get the following error when I start Hudson's work, for example mvn clean compile.

[INFO] Compiling 1541 source files to /users/applis/33g/ad33gwas/.hudson/jobs/sonar facade-commande/workspace/facade-commande/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
An exception has occurred in the compiler (1.5.0_12). 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.lang.AssertionError

Do you have any idea about the cause of this problem?

+1
source share
2 answers

You have encountered a compiler error. It is not clear what kind of error may be, but there is a good chance that it will be fixed by updating to a later version of the JDK.

(, , java 1.5.0_u12, . Java 1.5 - java 1.5.0_u22. 1.5 ( 1.5.0._u34) Java for Business. , Java 1.6 1.7.)

+4

. , , , Maven .

, , (- <A extends MyObject<A1,A2>, A1 extends MyObject2<A2>, A2 extends MyObject3>). JVM , , , . , JDK-7, .

, (, tycho), pom.xml( → , build → pluginManagement → ):

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>${compiler.source}</source>
                    <target>${compiler.target}</target>
                    <encoding>${source.encoding}</encoding>
                    <fork>false</fork>
                    <compilerId>jdt</compilerId>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.eclipse.tycho</groupId>
                        <artifactId>tycho-compiler-jdt</artifactId>
                        <version>0.13.0</version>
                    </dependency>
                </dependencies>
            </plugin>

Eclipse M2E 1.0 , , , pom.xml( build → pluginManagement → plugins):

            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.apache.maven.plugins</groupId>
                                    <artifactId>maven-compiler-plugin</artifactId>
                                    <versionRange>[2.0,)</versionRange>
                                    <goals>
                                        <goal>compile</goal>
                                        <goal>testCompile</goal>
                                    </goals>
                                    <parameters>
                                        <compilerId>jdt</compilerId>
                                    </parameters>
                                </pluginExecutionFilter>
                                <action>
                                    <configurator>
                                        <id>org.eclipse.m2e.jdt.javaConfigurator</id>
                                    </configurator>
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>

, m2e, ,

0
source

All Articles