Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DEB14200B95 for ; Tue, 27 Sep 2016 20:15:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DD3E5160AD2; Tue, 27 Sep 2016 18:15:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0537A160AB9 for ; Tue, 27 Sep 2016 20:15:18 +0200 (CEST) Received: (qmail 23500 invoked by uid 500); 27 Sep 2016 18:15:18 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 23486 invoked by uid 99); 27 Sep 2016 18:15:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2016 18:15:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 604D2C768C for ; Tue, 27 Sep 2016 18:15:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.457 X-Spam-Level: ***** X-Spam-Status: No, score=5.457 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_10_20=1.162, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=2.397, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id GZ1pTyKbJYGr for ; Tue, 27 Sep 2016 18:15:14 +0000 (UTC) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 79E935FCF3 for ; Tue, 27 Sep 2016 18:15:13 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id q2so8255885pfj.3 for ; Tue, 27 Sep 2016 11:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=LbicT7k4CkRaaNsCK1jp1f+2fXq7IZznBLQNn5ywSHM=; b=PHs2wO4Gsb2OAiqG0lcB707suYauAcDd/0G40m1faSJEpcOOSqLuh2t1kgELcdQIaU 5UQI1EqumZFuu8gssvDr/JY0wIBTUDyY8VfqeczX1j/vfQAneOXYg2E35iemCbpO5dvt ZC0x77pipYw+8DsOYW7V1sKB4swNNoWgqDzUocp/TZ1G05HhApTz/W8t9K1/U6CU/ztF 6WwE5guYKdR5GTkUHyI97pc8Uw6wXt46CDH8bRgCR8LxHKb96XKYc/z9zMEWA7ir1ozn qcTOPEHhmOad9aDIvZatTskOvj5Y59ioeVF3UKg3l6MyIWrWwDvDge6KXXMWvvFYZi0p cByQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=LbicT7k4CkRaaNsCK1jp1f+2fXq7IZznBLQNn5ywSHM=; b=ltfSYla5CqN0cIHK/qPEJl3CjzZF7yuTxZ/usHmTHu4NHBj3n0yKCzGUryljR98IUL NXq/FTWVse6yPffeef9PNiSBg9YSppaDxt2oSnTU9wDyXVp0Xct3kbMhA02c5cRoUDTQ 7sZVQ9EMK3wiQwj4KAP/PUeiHkRvDH8TSicSNtzAobnRMnS9Tped1GFn2whmGJBYW/Ta sj196ECLa2jHIkbjBZlLZfabvKFSv6qmrmWYRdwlWJPo/6Xou37Ffc5jvvmYFeZGUwX6 2ULSk6sJT6w70kB45ThjTE48q/JiQ4xY9ize9eKwEs0zSGQH8rz2YfENO/heSc2Y7oXJ maRg== X-Gm-Message-State: AE9vXwMT4rqKX5NMQ1RjdSWmrrrfgRxusb0cYisnv4eM0x12wNgqKh2GJ9vV3NQHj0OcQPBLIdO8KdoX74I+2A== X-Received: by 10.98.139.220 with SMTP id e89mr49479128pfl.125.1475000112440; Tue, 27 Sep 2016 11:15:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.251.69 with HTTP; Tue, 27 Sep 2016 11:15:11 -0700 (PDT) In-Reply-To: <57E97381.6090406@gmx.org> References: <57E97381.6090406@gmx.org> From: John Wagenleitner Date: Tue, 27 Sep 2016 11:15:11 -0700 Message-ID: Subject: Re: uninformative gradle error messages To: dev@groovy.apache.org Content-Type: multipart/alternative; boundary=f403045cc9f2beed9d053d81395f archived-at: Tue, 27 Sep 2016 18:15:20 -0000 --f403045cc9f2beed9d053d81395f Content-Type: text/plain; charset=UTF-8 On Mon, Sep 26, 2016 at 12:14 PM, Jochen Theodorou wrote: > Hi all, > > maybe some people here with more gradle knowledge can help me a bit. I am > trying to run the jigsaw-136 build, of which I know gradle has problems > with, but well I am trying to work around those. So I am starting our build > with > > GRADLE_OPTS="--add-exports-private java.base/java.lang=ALL-UNNAMED" > > and ./gradlew -S > > I get: > >> * Exception is: >> org.gradle.api.GradleException: Unable to start the daemon process. >> This problem might be caused by incorrect configuration of the daemon. >> For example, an unrecognized jvm option is used. >> Please refer to the user guide chapter on the daemon at >> https://docs.gradle.org/3.1/userguide/gradle_daemon.html >> Please read the following process output to find out more: >> ----------------------- >> >> FAILURE: Build failed with an exception. >> >> * What went wrong: >> java.lang.ExceptionInInitializerError (no error message) >> >> * Try: >> Run with --stacktrace option to get the stack trace. Run with --info or >> --debug option to get more log output. >> >> at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaem >> onOutput(DaemonGreeter.java:34) >> at org.gradle.launcher.daemon.client.DefaultDaemonStarter.start >> Process(DefaultDaemonStarter.java:152) >> at org.gradle.launcher.daemon.client.DefaultDaemonStarter.start >> Daemon(DefaultDaemonStarter.java:135) >> at org.gradle.launcher.daemon.client.DefaultDaemonConnector.sta >> rtDaemon(DefaultDaemonConnector.java:203) >> at org.gradle.launcher.daemon.client.SingleUseDaemonClient.exec >> ute(SingleUseDaemonClient.java:52) >> > > Can anyone tell me how I can get further information about what actually > went wrong? > I get a little further by doing the following: 1. export GRADLE_OPTS=--add-exports-private java.base/java.lang=ALL-UNNAMED --add-exports-private java.base/java.util=ALL-UNNAMED 2. add the same options above to the "org.gradle.jvmargs" in gradle.properties 3. in buildSrc/build.gradle add if (JavaVersion.current().java9Compatible) { allprojects { tasks.withType(GroovyCompile) { groovyOptions.forkOptions.jvmArgs.addAll(['--add-exports-private', 'java.base/java.lang=ALL-UNNAMED']) } test { jvmArgs '-addmods', 'java.xml.bind' } } } After that it starts to fail resolving methods used in the gradle build files. --f403045cc9f2beed9d053d81395f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, Sep 26, 2016 at 12:14 PM, Jochen Theodorou <blackdrag@gmx.org><= /span> wrote:
Hi all,<= br>
maybe some people here with more gradle knowledge can help me a bit. I am t= rying to run the jigsaw-136 build, of which I know gradle has problems with= , but well I am trying to work around those. So I am starting our build wit= h

GRADLE_OPTS=3D"--add-exports-private java.base/java.lang=3DALL-UN= NAMED"

and ./gradlew -S

I get:
* Exception is:
org.gradle.api.GradleException: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.ExceptionInInitializerError (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --d= ebug option to get more log output.

at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaemon= Output(DaemonGreeter.java:34)
at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startPr= ocess(DefaultDaemonStarter.java:152)
at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDa= emon(DefaultDaemonStarter.java:135)
at org.gradle.launcher.daemon.client.DefaultDaemonConnector.start= Daemon(DefaultDaemonConnector.java:203)
at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execut= e(SingleUseDaemonClient.java:52)

Can anyone tell me how I can get further information about what actually we= nt wrong?



I get a little further by doing the following:



--f403045cc9f2beed9d053d81395f--