RFR: 6889: Provide build script for making it easier to build JMC [v5]
Schalli1987
github.com+11866488+Schalli1987 at openjdk.java.net
Thu Sep 17 18:10:40 UTC 2020
On Thu, 17 Sep 2020 09:00:19 GMT, Marcus Hirt <hirt at openjdk.org> wrote:
>> Tried another way to terminate jetty server, please check again.
>
> Hi @Schalli1987 - it will now wait indefinitely for the jetty server to start:
>
> HIRTMAC:jmc marcus.hirt$ ./build.sh --packageJmc
> 10:36:42 building p2:site - logging output to
> /Users/marcus.hirt/git/myrepos/jmcreviews/Schalli1987/jmc/target/build_20200917103639.1.p2_site.log 10:36:53 run
> jetty - logging output to
> /Users/marcus.hirt/git/myrepos/jmcreviews/Schalli1987/jmc/target/build_20200917103639.2.jetty.log 10:36:53 waiting for
> jetty server to start 10:36:55 waiting for jetty server to start 10:36:56 waiting for jetty server to start
> 10:36:57 waiting for jetty server to start
> 10:36:58 waiting for jetty server to start
> 10:36:59 waiting for jetty server to start
> 10:37:00 waiting for jetty server to start
> 10:37:01 waiting for jetty server to start
> 10:37:02 waiting for jetty server to start
> 10:37:03 waiting for jetty server to start
>
> It seems to be because after the line [INFO] Started Jetty Server, I also get these:
> [INFO] Using Non-Native Java sun.nio.fs.PollingWatchService
> [WARNING] Quiet Time is too low for non-native WatchService [sun.nio.fs.PollingWatchService]: 1000 < 5000 ms
> (defaulting to 5000 ms)
> Also - currently JMC requires Java 8 to build. Perhaps java -version could be checked to ensure that it is JDK 8?
> Otherwise you get a whole bunch of cryptic illegal reflective access warnings:
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass
> (file:/Users/marcus.hirt/.m2/repository/org/codehaus/groovy/groovy-all/2.4.8/groovy-all-2.4.8.jar) to method
> java.lang.Object.finalize() WARNING: Please consider reporting this to the maintainers of
> org.codehaus.groovy.reflection.CachedClass WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations WARNING: All illegal access operations will be denied in a future release
> Exiting with a message about switching to JDK 8 would be friendlier.
You're right, I didn't expect to be more output there, changed to check entire file.
I'm building and running JMC using JDK 11 without any issues, so I think there should be no enforcement for downgrading
to JDK 8. The illegal reflective access warnings shouldn't bother here.
-------------
PR: https://git.openjdk.java.net/jmc/pull/100
More information about the jmc-dev
mailing list