[GRADLE-2583] Unexpected internal initialization error running Gradle version 1.1 on Linux for IBM System z Created: 03/Dec/12  Updated: 27/May/13  Resolved: 29/Apr/13

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.6-rc-1

Type: Bug
Reporter: Balthasar Nebel Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

Upgrading to gradle 1.1 from gradle-1.0-milestone-8a fixed initialization problem on HPUX, but now Linux RHEL 5.6 ppc64 won't initialize. Success on 8 other UNIX platforms, so I think my upgrade is good. Doesn't get far enough to create the .gradle directory. Could this be a bug, or is it a Java version issue? I'm running Java version 1.6.0. More details below.

Thanks,

— Tom C.

$ ./gradlew tasks -d
13:47:14.707 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@d190d19, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@69306930, org.gradle.logging.internal.JavaUtilLoggingConfigurer@74497449]
13:47:14.731 [DEBUG] [org.gradle.internal.nativeplatform.filesystem.FileSystemServices] Unable to load LibC library. Continuing with fallback filesystem implementations.
13:47:14.735 [DEBUG] [org.gradle.internal.nativeplatform.filesystem.FileSystemServices] Using FallbackSymlink implementation.
13:47:14.755 [ERROR] [org.gradle.BuildExceptionReporter]
13:47:14.756 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build aborted because of an internal error.
13:47:14.757 [ERROR] [org.gradle.BuildExceptionReporter]
13:47:14.758 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
13:47:14.762 [ERROR] [org.gradle.BuildExceptionReporter] Build aborted because of an unexpected internal error. Please file an issue at: [1]http://forums.gradle.org.

$ ./gradlew tasks -S

FAILURE: Build aborted because of an internal error.

  • What went wrong:
    Build aborted because of an unexpected internal error. Please file an issue at: [2]http://forums.gradle.org.
  • Try:
    Run with --debug option to get additional debug info.
  • Exception is:
    java.lang.ExceptionInInitializerError
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
    at org.gradle.internal.nativeplatform.filesystem.FileSystems$DefaultFileSystem.(FileSystems.java:29)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
    at org.gradle.internal.nativeplatform.filesystem.FileSystems.getDefault(FileSystems.java:22)
    at org.gradle.initialization.DefaultCommandLineConverter.convert(DefaultCommandLineConverter.java:94)
    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:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    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)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:47)
    Caused by: java.lang.ClassCastException: org.jruby.ext.posix.JavaPOSIX incompatible with org.jruby.ext.posix.BaseNativePOSIX
    at org.gradle.internal.nativeplatform.filesystem.FileSystemServices.addServices(FileSystemServices.java:64)
    at org.gradle.internal.nativeplatform.filesystem.FileSystemServices.(FileSystemServices.java:38)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
    ... 31 more

$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxp6460sr9-20101125_01(SR9))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux ppc64-64 jvmxp6460sr9-20101124_69295 (JIT enabled, AOT enabled)
J9VM - 20101124_069295
JIT - r9_20101028_17488ifx2
GC - 20101027_AA)
JCL - 20101119_01
----------------------------------------------------------------------------------------
[1] http://forums.gradle.org
[2] http://forums.gradle.org



 Comments   
Comment by Balthasar Nebel [ 03/Dec/12 ]

We got the same initialization error with gradle 1.1, but on RHEL 6.2 and SLES 11 for IBM System z 64-bit:


12:22:27.314 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@f8877512, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@19884fe0, org.gradle.logging.internal.JavaUtilLoggingConfigurer@d76ad6b5]
12:22:27.408 [DEBUG] [org.gradle.internal.nativeplatform.filesystem.FileSystemServices] Unable to load LibC library. Continuing with fallback filesystem implementations.
12:22:27.410 [DEBUG] [org.gradle.internal.nativeplatform.filesystem.FileSystemServices] Using FallbackSymlink implementation.
12:22:27.490 [ERROR] [org.gradle.BuildExceptionReporter]
12:22:27.491 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build aborted because of an internal error.
12:22:27.492 [ERROR] [org.gradle.BuildExceptionReporter]
12:22:27.493 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
12:22:27.495 [ERROR] [org.gradle.BuildExceptionReporter] Build aborted because of an unexpected internal error. Please file an issue at: http://forums.gradle.org.

System Properties for this HW/OS:
os.arch: s390x
os.name: Linux

Comment by Rosen Spasov [ 08/Jan/13 ]

Any progress on this? I see the issue is similar to GRADLE-2416 but I'm not sure if it's exactly the same.

Comment by Luke Daley [ 18/Apr/13 ]

Hi Balthasar and Rosen,

We believe we have fixed this problem in this version: http://services.gradle.org/distributions-snapshots/gradle-1.6-20130418105438+0000-bin.zip

We'd be very grateful if you could test this out and let us know before we release 1.6-rc-1 early next week. We don't have access to an environment to fully verify the fix.

Apologies for the delay in addressing this issue.

Comment by Balthasar Nebel [ 27/May/13 ]

Sorry for the late reply. I can commit that this issue is resolved for us.

Comment by Luke Daley [ 27/May/13 ]

Great, thanks!

Generated at Wed Jun 30 12:25:52 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.