jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject can't compile oak-trunk at all, was: [Broken] apache/jackrabbit-oak#4 (trunk - 0a3deec)
Date Wed, 20 Jun 2012 07:56:16 GMT
On 2012-06-20 09:05, Jukka Zitting wrote:
> Hi,
>
> On Wed, Jun 20, 2012 at 3:53 AM, Travis-CI <notifications@travis-ci.org> wrote:
>> Run tests on Oracle's Java 7 and on OpenJDK 6. Seems like we hit some OpenJDK core
dump on the default version.
>
> Looks like both OpenJDK 7 and Oracles official Java 7 dump core with
> our builds on the Travis infrastructure. OpenJDK 6 seems to work, so I
> configured that for now as the only build platform.
>
> PS. Meanwhile we have some new activity on INFRA-4672 [1], which might
> bring us a bit broader test and platform coverage than what we can get
> from Travis.
>
>   [1] https://issues.apache.org/jira/browse/INFRA-4672
>
> BR,
>
> Jukka Zitting

With Oracle JDK6 I get:

[ERROR] 
\projects\apache\jackrabbit\oak\trunk\oak-it\mk\src\main\java\org\apache\jackrabbit\mk\test\MicroKernelTestSuite.java:[27,0]

illegal start of expression
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 
(default-compile) on project oak-it-mk: Compilation failure
\projects\apache\jackrabbit\oak\trunk\oak-it\mk\src\main\java\org\apache\jackrabbit\mk\test\MicroKernelTestSuite.java:[27,0]

illegal start of expression

With Oracle JDK17 I get:

[ERROR] Failed to execute goal 
org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-scrdescriptor) 
on project oak-mk: Execution generate-scr-scrdescriptor of goal 
org.apache.felix:maven-scr-plugin:1.7.4:scr failed: Comparison method 
violates its general contract! -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr 
(generate-scr-scrdescriptor) on project oak-mk: Execution 
generate-scr-scrdescriptor of goal 
org.apache.felix:maven-scr-plugin:1.7.4:scr failed: Comparison method 
violates its general contract!
	at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
	at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
generate-scr-scrdescriptor of goal 
org.apache.felix:maven-scr-plugin:1.7.4:scr failed: Comparison method 
violates its general contract!
	at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
	at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
Caused by: java.lang.IllegalArgumentException: Comparison method 
violates its general contract!
	at java.util.TimSort.mergeLo(TimSort.java:747)
	at java.util.TimSort.mergeAt(TimSort.java:483)
	at java.util.TimSort.mergeCollapse(TimSort.java:410)
	at java.util.TimSort.sort(TimSort.java:214)
	at java.util.TimSort.sort(TimSort.java:173)
	at java.util.Arrays.sort(Arrays.java:659)
	at 
org.apache.felix.scrplugin.SCRDescriptorGenerator.execute(SCRDescriptorGenerator.java:235)
	at 
org.apache.felix.scrplugin.mojo.SCRDescriptorMojo.execute(SCRDescriptorMojo.java:192)
	at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	... 20 more

Note that the JDK16 compilation problem can be fixed by removing a 
semicolon:

Index: 
oak-it/mk/src/main/java/org/apache/jackrabbit/mk/test/MicroKernelTestSuite.java
===================================================================
--- 
oak-it/mk/src/main/java/org/apache/jackrabbit/mk/test/MicroKernelTestSuite.java 
(revision 1351766)
+++ 
oak-it/mk/src/main/java/org/apache/jackrabbit/mk/test/MicroKernelTestSuite.java 
(working copy)
@@ -21,7 +21,7 @@

  @RunWith(Suite.class)
  @Suite.SuiteClasses({
-    MicroKernelIT.class,
+    MicroKernelIT.class
      // TODO remove
      // DataStoreIT.class
  })

Best regards, Julian







Mime
View raw message