After upgrading the JDK on our AIX 6.1 box to JDK 8, Gradle builds are now failing. If I revert back to JDK 7 on the same box things work fine. Judging by the stack trace it’s happening in Gradle’s initialization, not a code compile problem. I will include all the relevant details below. Any one have any idea what’s going wrong here?
$ java -version java version "1.8.0"
Java(TM) SE Runtime Environment (build pap6480sr2fp10-20160108_01(SR2 FP10))
IBM J9 VM (build 2.8, JRE 1.8.0 AIX ppc64-64 Compressed References 20160106_284759 (JIT enabled, AOT enabled)
J9VM - R28_20160106_1341_B284759
JIT - tr.r14.java_20151209_107110.02
GC - R28_20160106_1341_B284759_CMPRSS
J9CL - 20160106_284759)
JCL - 20151231_01 based on Oracle jdk8u71-b15
$ gradle -v
------------------------------------------------------------
Gradle 2.11
------------------------------------------------------------
Build time: 2016-02-08 07:59:16 UTC
Build number: none
Revision: 584db1c7c90bdd1de1d1c4c51271c665bfcba978
Groovy: 2.4.4
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0 (IBM Corporation 2.8)
OS: AIX 6.1 ppc64
$ gradle --stacktrace --debug build
11:24:18.833 [DEBUG] [org.gradle.internal.nativeintegration.services.NativeServices] Native-platform is not available.
11:24:19.118 [DEBUG] [org.gradle.internal.nativeintegration.filesystem.services.FileSystemServices] Native-platform file system integration is not available. Continuing with fallback.
11:24:19.122 [DEBUG] [org.gradle.internal.nativeintegration.filesystem.services.FileSystemServices] Using UnsupportedSymlink implementation.
11:24:19.130 [DEBUG] [org.gradle.internal.nativeintegration.filesystem.services.FileSystemServices] Using JDK 7 file service org.gradle.internal.nativeintegration.filesystem.jdk7.PosixJdk7FilePermissionHandler
11:24:19.170 [ERROR] [org.gradle.BuildExceptionReporter]
11:24:19.173 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
11:24:19.174 [ERROR] [org.gradle.BuildExceptionReporter]
11:24:19.178 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
11:24:19.179 [ERROR] [org.gradle.BuildExceptionReporter] Could not create service of type FileSystem using FileSystemServices.createFileSystem().
11:24:19.180 [ERROR] [org.gradle.BuildExceptionReporter]
11:24:19.181 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
11:24:19.185 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.internal.service.ServiceCreationException: Could not create service of type FileSystem using FileSystemServices.createFileSystem().
11:24:19.186 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.service.DefaultServiceRegistry$FactoryMethodService.invokeMethod(DefaultServiceRegistry.java:741)
11:24:19.187 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.service.DefaultServiceRegistry$FactoryService.create(DefaultServiceRegistry.java:695)
11:24:19.188 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.service.DefaultServiceRegistry$ManagedObjectProvider.getInstance(DefaultServiceRegistry.java:537)
11:24:19.190 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.service.DefaultServiceRegistry$SingletonService.get(DefaultServiceRegistry.java:577)
11:24:19.191 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.service.DefaultServiceRegistry.doGet(DefaultServiceRegistry.java:393)
11:24:19.192 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.service.DefaultServiceRegistry.get(DefaultServiceRegistry.java:374)
11:24:19.193 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.nativeintegration.services.FileSystems.getDefault(FileSystems.java:22)
11:24:19.194 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.IdentityFileResolver.<init>(IdentityFileResolver.java:32)
11:24:19.195 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.configuration.DaemonParameters.<init>(DaemonParameters.java:43)
11:24:19.196 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.configuration.DaemonParameters.<init>(DaemonParameters.java:52)
11:24:19.197 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.Parameters.<init>(Parameters.java:31)
11:24:19.198 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.BuildActionsFactory.createAction(BuildActionsFactory.java:56)
11:24:19.199 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.createAction(CommandLineActionFactory.java:242)
11:24:19.200 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:232)
11:24:19.201 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
11:24:19.203 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
11:24:19.204 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
11:24:19.205 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
11:24:19.206 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
11:24:19.207 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
11:24:19.208 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
11:24:19.209 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33)
11:24:19.210 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
11:24:19.211 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:24:19.212 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
11:24:19.213 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
11:24:19.214 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Method.java:507)
11:24:19.215 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
11:24:19.216 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
11:24:19.217 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
11:24:19.218 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NullPointerException
11:24:19.221 [ERROR] [org.gradle.BuildExceptionReporter] at java.security.SecureRandom.nextBytes(SecureRandom.java:471)
11:24:19.222 [ERROR] [org.gradle.BuildExceptionReporter] at java.util.UUID.randomUUID(UUID.java:156)
11:24:19.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.nativeintegration.filesystem.services.GenericFileSystem.generateUniqueContent(GenericFileSystem.java:94)
11:24:19.224 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.nativeintegration.filesystem.services.GenericFileSystem.<init>(GenericFileSystem.java:80)
11:24:19.225 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.nativeintegration.filesystem.services.FileSystemServices.createFileSystem(FileSystemServices.java:60)
11:24:19.226 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:24:19.227 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
11:24:19.228 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
11:24:19.229 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Method.java:507)
11:24:19.231 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
11:24:19.232 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.service.DefaultServiceRegistry.invoke(DefaultServiceRegistry.java:426)
11:24:19.233 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.service.DefaultServiceRegistry.access$1200(DefaultServiceRegistry.java:62)
11:24:19.234 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.service.DefaultServiceRegistry$FactoryMethodService.invokeMethod(DefaultServiceRegistry.java:739)
11:24:19.235 [ERROR] [org.gradle.BuildExceptionReporter] ... 29 more
11:24:19.236 [ERROR] [org.gradle.BuildExceptionReporter]