Can not use Gradle on FreeBSD9 on OpenJDK7


(Haulyn Jason) #1

$ java -version openjdk version “1.7.0_06” OpenJDK Runtime Environment (build 1.7.0_06-b24) OpenJDK Server VM (build 23.2-b09, mixed mode)

-------------------------------------------- $ /usr/local/gradle-1.2/bin/gradle -v

------------------------------------------------------------ Gradle 1.2 ------------------------------------------------------------

Gradle build time: Wednesday, September 12, 2012 10:46:02 AM UTC Groovy: 1.8.6 Ant: Apache Ant™ version 1.8.4 compiled on May 22 2012 Ivy: 2.2.0 JVM: 1.7.0_06 (Oracle Corporation 23.2-b09) OS: FreeBSD 9.0-RELEASE i386


$ /usr/local/gradle-1.2/bin/gradle

FAILURE: Build aborted because of an internal error.

  • What went wrong: Build aborted because of an unexpected internal error. Please file an issue at: http://forums.gradle.org.

  • Try: Run with --debug option to get additional debug info.

  • Exception is: java.lang.ExceptionInInitializerError

at org.gradle.internal.nativeplatform.filesystem.FileSystems.getDefault(FileSystems.java:22)

at org.gradle.initialization.DefaultCommandLineConverter.convert(DefaultCommandLineConverter.java:99)

at org.gradle.initialization.DefaultCommandLineConverter.convert(DefaultCommandLineConverter.java:35)

at org.gradle.launcher.cli.BuildActionsFactory.createAction(BuildActionsFactory.java:74)

at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.createAction(CommandLineActionFactory.java:205)

at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:195)

at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:173)

at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)

at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:138)

at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)

at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)

at org.gradle.launcher.Main.doAction(Main.java:48)

at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

at org.gradle.launcher.Main.main(Main.java:39)

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.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)

at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)

at org.gradle.launcher.GradleMain.main(GradleMain.java:26) Caused by: java.lang.IllegalArgumentException: Unrecognized calling convention: 4

at com.sun.jna.Function.invokeInt(Native Method)

at com.sun.jna.Function.invoke(Function.java:344)

at com.sun.jna.Function.invoke(Function.java:276)

at com.sun.jna.Library$Handler.invoke(Library.java:216)

at $Proxy0.symlink(Unknown Source)

at org.gradle.internal.nativeplatform.filesystem.LibcSymlink.symlink(LibcSymlink.java:35)

at org.gradle.internal.nativeplatform.filesystem.GenericFileSystem.tryCreateSymbolicLink(GenericFileSystem.java:53)

at org.gradle.internal.nativeplatform.filesystem.GenericFileSystem.probeCanCreateSymbolicLink(GenericFileSystem.java:121)

at org.gradle.internal.nativeplatform.filesystem.GenericFileSystem.(GenericFileSystem.java:86)

at org.gradle.internal.nativeplatform.filesystem.FileSystems$DefaultFileSystem.(FileSystems.java:30)

… 21 more ------------------------------------------------------------------------------------------------- $ uname -a FreeBSD www.voicens.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012

root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


(spencer_allain) #2

This is almost definitely some issue with JNA (either the age of the jna.jar, platform.jar or an incompatible libjnidispatch.so is included with the old jna.jar or found on the operating system)

http://forums.gradle.org/gradle/topics/jar_task_throws_java_lang_illegalargumentexception_unrecognized_calling_convention_4

There are a few other related topics, but the above is likely the most similar issue you are encountering.

-Spencer