From talden at gmail.com Wed Mar 20 01:47:22 2019 From: talden at gmail.com (Aaron Scott-Boddendijk) Date: Wed, 20 Mar 2019 14:47:22 +1300 Subject: JShell broken on Windows in Java 12 release? Message-ID: It appears that the Java 12 release (at least the OpenJDK build of it) is still broken on Windows. In this form it's essentially unusable interactively. Are fixes likely to make their way to OpenJDK or is Java REPL broken until Java 13? Spinning up a docker container with openjdk:12 seems to work as an alternative. I tend to use JShell to play with new features and this bug might impact people experimenting on Windows. -- Aaron Scott-Boddendijk From yamadamn at gmail.com Wed Mar 20 02:00:54 2019 From: yamadamn at gmail.com (Takahiro YAMADA) Date: Wed, 20 Mar 2019 11:00:54 +0900 Subject: JShell broken on Windows in Java 12 release? In-Reply-To: References: Message-ID: Hi, Is it the same as JDK-8218287? https://bugs.openjdk.java.net/browse/JDK-8218287 If so, you can try JDK 13-ea. http://jdk.java.net/13/ -- Takahiro YAMADA 2019?3?20?(?) 10:49 Aaron Scott-Boddendijk : > It appears that the Java 12 release (at least the OpenJDK build of it) is > still broken on Windows. > > In this form it's essentially unusable interactively. > > Are fixes likely to make their way to OpenJDK or is Java REPL broken until > Java 13? > > Spinning up a docker container with openjdk:12 seems to work as an > alternative. > > I tend to use JShell to play with new features and this bug might impact > people experimenting on Windows. > > -- > Aaron Scott-Boddendijk > From forax at univ-mlv.fr Sun Mar 24 11:15:16 2019 From: forax at univ-mlv.fr (Remi Forax) Date: Sun, 24 Mar 2019 12:15:16 +0100 (CET) Subject: Cancellation Exception? Message-ID: <1415601386.118566.1553426116621.JavaMail.zimbra@u-pem.fr> Hi Robert, hi all, trying to run jshell using the javax.tool.Tool interface now fails while it was working previously see https://travis-ci.org/forax/loom-fiber/builds/510544305 It fails with the jdk 11.0.2 and recent jdk 13 so it a code that was backported to jdk 11.0.2. Also, i'm not the only one to see this error: https://stackoverflow.com/questions/54346534/could-not-initialize-jshell-in-apache-netbeans-ide-10-0 regards, R?mi From robert.field at oracle.com Mon Mar 25 23:38:27 2019 From: robert.field at oracle.com (Robert Field) Date: Mon, 25 Mar 2019 16:38:27 -0700 Subject: Cancellation Exception? In-Reply-To: <1415601386.118566.1553426116621.JavaMail.zimbra@u-pem.fr> References: <1415601386.118566.1553426116621.JavaMail.zimbra@u-pem.fr> Message-ID: Hi , Thanks for the report/heads-up. The report you reference is of using the NetBeans layer of JShell.? Is that what you are doing? -Robert On 3/24/19 4:15 AM, Remi Forax wrote: > Hi Robert, hi all, > trying to run jshell using the javax.tool.Tool interface now fails while it was working previously > > see https://travis-ci.org/forax/loom-fiber/builds/510544305 > > It fails with the jdk 11.0.2 and recent jdk 13 so it a code that was backported to jdk 11.0.2. > > Also, i'm not the only one to see this error: > https://stackoverflow.com/questions/54346534/could-not-initialize-jshell-in-apache-netbeans-ide-10-0 > > regards, > R?mi From forax at univ-mlv.fr Tue Mar 26 00:06:00 2019 From: forax at univ-mlv.fr (forax at univ-mlv.fr) Date: Tue, 26 Mar 2019 01:06:00 +0100 (CET) Subject: Cancellation Exception? In-Reply-To: References: <1415601386.118566.1553426116621.JavaMail.zimbra@u-pem.fr> Message-ID: <87065529.318371.1553558760107.JavaMail.zimbra@u-pem.fr> ----- Mail original ----- > De: "Robert Field" > ?: "kulla-dev" , "Remi Forax" > Envoy?: Mardi 26 Mars 2019 00:38:27 > Objet: Re: Cancellation Exception? > Hi , Hi Robert, > > Thanks for the report/heads-up. > > The report you reference is of using the NetBeans layer of JShell.? Is > that what you are doing? No, i call jshell using the javax.tool.Tool API and it doesn't work with jdk13 since several betas. I'm not able to reproduce it on my laptop but it fails using both hardware on AWS and GCP. > > -Robert R?mi > > > On 3/24/19 4:15 AM, Remi Forax wrote: >> Hi Robert, hi all, >> trying to run jshell using the javax.tool.Tool interface now fails while it was >> working previously >> >> see https://travis-ci.org/forax/loom-fiber/builds/510544305 >> >> It fails with the jdk 11.0.2 and recent jdk 13 so it a code that was backported >> to jdk 11.0.2. >> >> Also, i'm not the only one to see this error: >> https://stackoverflow.com/questions/54346534/could-not-initialize-jshell-in-apache-netbeans-ide-10-0 >> >> regards, > > R?mi From robert.field at oracle.com Tue Mar 26 00:19:12 2019 From: robert.field at oracle.com (Robert Field) Date: Mon, 25 Mar 2019 17:19:12 -0700 Subject: Cancellation Exception? In-Reply-To: <87065529.318371.1553558760107.JavaMail.zimbra@u-pem.fr> References: <1415601386.118566.1553426116621.JavaMail.zimbra@u-pem.fr> <87065529.318371.1553558760107.JavaMail.zimbra@u-pem.fr> Message-ID: <0a356082-215d-b93d-edf6-bbe8fe8aefd8@oracle.com> Hmmm, we aren't seeing that. Can you file a bug with the error you are getting and the platform(s) and set-up you are using (including where you don't see it)? "doesn't work with jdk13 since several betas": Was it working with the initial JDK13?? An upgrade (of Jline)? at the end of JDK12 broke Windows machines: https://bugs.openjdk.java.net/browse/JDK-8218287 It was fixed early in JDK13.?? There hasn't any other activity for JShell in JDK13 yet. Thanks, Robert On 3/25/19 5:06 PM, forax at univ-mlv.fr wrote: > ----- Mail original ----- >> De: "Robert Field" >> ?: "kulla-dev" , "Remi Forax" >> Envoy?: Mardi 26 Mars 2019 00:38:27 >> Objet: Re: Cancellation Exception? >> Hi , > Hi Robert, > >> Thanks for the report/heads-up. >> >> The report you reference is of using the NetBeans layer of JShell.? Is >> that what you are doing? > No, i call jshell using the javax.tool.Tool API and it doesn't work with jdk13 since several betas. > I'm not able to reproduce it on my laptop but it fails using both hardware on AWS and GCP. > >> -Robert > R?mi > >> >> On 3/24/19 4:15 AM, Remi Forax wrote: >>> Hi Robert, hi all, >>> trying to run jshell using the javax.tool.Tool interface now fails while it was >>> working previously >>> >>> see https://travis-ci.org/forax/loom-fiber/builds/510544305 >>> >>> It fails with the jdk 11.0.2 and recent jdk 13 so it a code that was backported >>> to jdk 11.0.2. >>> >>> Also, i'm not the only one to see this error: >>> https://stackoverflow.com/questions/54346534/could-not-initialize-jshell-in-apache-netbeans-ide-10-0 >>> >>> regards, >>> R?mi From forax at univ-mlv.fr Tue Mar 26 14:07:41 2019 From: forax at univ-mlv.fr (forax at univ-mlv.fr) Date: Tue, 26 Mar 2019 15:07:41 +0100 (CET) Subject: Cancellation Exception? In-Reply-To: <0a356082-215d-b93d-edf6-bbe8fe8aefd8@oracle.com> References: <1415601386.118566.1553426116621.JavaMail.zimbra@u-pem.fr> <87065529.318371.1553558760107.JavaMail.zimbra@u-pem.fr> <0a356082-215d-b93d-edf6-bbe8fe8aefd8@oracle.com> Message-ID: <1141074034.621810.1553609261621.JavaMail.zimbra@u-pem.fr> I've created https://bugs.openjdk.java.net/browse/JDK-8221476 I wonder if the attach API has changed in jdk 13, given that jshell use it, the bug may lie there ? R?mi ----- Mail original ----- > De: "Robert Field" > ?: "Remi Forax" > Cc: "kulla-dev" > Envoy?: Mardi 26 Mars 2019 01:19:12 > Objet: Re: Cancellation Exception? > Hmmm, we aren't seeing that. Can you file a bug with the error you are > getting and the platform(s) and set-up you are using (including where > you don't see it)? > > "doesn't work with jdk13 since several betas": Was it working with the > initial JDK13?? An upgrade (of Jline)? at the end of JDK12 broke Windows > machines: > > https://bugs.openjdk.java.net/browse/JDK-8218287 > > It was fixed early in JDK13.?? There hasn't any other activity for > JShell in JDK13 yet. > > Thanks, > > Robert > > > > On 3/25/19 5:06 PM, forax at univ-mlv.fr wrote: >> ----- Mail original ----- >>> De: "Robert Field" >>> ?: "kulla-dev" , "Remi Forax" >>> Envoy?: Mardi 26 Mars 2019 00:38:27 >>> Objet: Re: Cancellation Exception? >>> Hi , >> Hi Robert, >> >>> Thanks for the report/heads-up. >>> >>> The report you reference is of using the NetBeans layer of JShell.? Is >>> that what you are doing? >> No, i call jshell using the javax.tool.Tool API and it doesn't work with jdk13 >> since several betas. >> I'm not able to reproduce it on my laptop but it fails using both hardware on >> AWS and GCP. >> >>> -Robert >> R?mi >> >>> >>> On 3/24/19 4:15 AM, Remi Forax wrote: >>>> Hi Robert, hi all, >>>> trying to run jshell using the javax.tool.Tool interface now fails while it was >>>> working previously >>>> >>>> see https://travis-ci.org/forax/loom-fiber/builds/510544305 >>>> >>>> It fails with the jdk 11.0.2 and recent jdk 13 so it a code that was backported >>>> to jdk 11.0.2. >>>> >>>> Also, i'm not the only one to see this error: >>>> https://stackoverflow.com/questions/54346534/could-not-initialize-jshell-in-apache-netbeans-ide-10-0 >>>> >>>> regards, > >>> R?mi From yamadamn at gmail.com Tue Mar 26 14:49:35 2019 From: yamadamn at gmail.com (Takahiro YAMADA) Date: Tue, 26 Mar 2019 23:49:35 +0900 Subject: To complete java.io.File.path with Tab key causes UnsupportedOperationException Message-ID: Hi kulla-dev, When I try to complete "java.io.File.path" with Tab key, below exception occurs. ******** jbash-4.2# jshell | Welcome to JShell -- Version 12 | For an introduction type: /help intro jshell> java.io.File.path pathSeparator pathSeparatorChar Separator Exception in thread "main" java.lang.UnsupportedOperationException: Should not get here. at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext$ExpressionSignaturesTask.description(ConsoleIOContext.java:720) at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext.complete(ConsoleIOContext.java:406) at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext$1.doComplete(ConsoleIOContext.java:142) at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.expandOrComplete(LineReaderImpl.java:3875) at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:585) at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:404) at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext.readLine(ConsoleIOContext.java:201) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.getInput(JShellTool.java:1238) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1174) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:975) at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:254) at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120) bash-4.2# ******** And JShell has stopped forcefully. Could you file and solve this issue? Environment: - Windows/macOS/Linux. - JDK 11~13-ea+13 -- Takahiro YAMADA From robert.field at oracle.com Tue Mar 26 18:07:36 2019 From: robert.field at oracle.com (Robert Field) Date: Tue, 26 Mar 2019 11:07:36 -0700 Subject: Cancellation Exception? In-Reply-To: <1141074034.621810.1553609261621.JavaMail.zimbra@u-pem.fr> References: <1415601386.118566.1553426116621.JavaMail.zimbra@u-pem.fr> <87065529.318371.1553558760107.JavaMail.zimbra@u-pem.fr> <0a356082-215d-b93d-edf6-bbe8fe8aefd8@oracle.com> <1141074034.621810.1553609261621.JavaMail.zimbra@u-pem.fr> Message-ID: Thanks, R?mi, for filing the report.? I'm looking at it now. I'm not familiar with the *ci.com but the logs look, superficially, like they are failing for different reasons. CircleCi fails with: "Permission denied" attempting to run "/home/circleci/repo/pro/bin/java". Whereas, TravisCi fails with CancellationException. Note: The exception messages include a dump of the JDI attach configuration parameters, one of which is the timeout length (5000 milliseconds).? That being listed does not indicate a timeout. however, the CancellationException is likely to actually be a timeout. You mention that you cannot reproduce it locally, meaning running the same code on your local machine does not fail? Thanks, Robert On 3/26/19 7:07 AM, forax at univ-mlv.fr wrote: > I've created https://bugs.openjdk.java.net/browse/JDK-8221476 > > I wonder if the attach API has changed in jdk 13, given that jshell use it, the bug may lie there ? > > R?mi > > ----- Mail original ----- >> De: "Robert Field" >> ?: "Remi Forax" >> Cc: "kulla-dev" >> Envoy?: Mardi 26 Mars 2019 01:19:12 >> Objet: Re: Cancellation Exception? >> Hmmm, we aren't seeing that. Can you file a bug with the error you are >> getting and the platform(s) and set-up you are using (including where >> you don't see it)? >> >> "doesn't work with jdk13 since several betas": Was it working with the >> initial JDK13?? An upgrade (of Jline)? at the end of JDK12 broke Windows >> machines: >> >> https://bugs.openjdk.java.net/browse/JDK-8218287 >> >> It was fixed early in JDK13.?? There hasn't any other activity for >> JShell in JDK13 yet. >> >> Thanks, >> >> Robert >> >> >> >> On 3/25/19 5:06 PM, forax at univ-mlv.fr wrote: >>> ----- Mail original ----- >>>> De: "Robert Field" >>>> ?: "kulla-dev" , "Remi Forax" >>>> Envoy?: Mardi 26 Mars 2019 00:38:27 >>>> Objet: Re: Cancellation Exception? >>>> Hi , >>> Hi Robert, >>> >>>> Thanks for the report/heads-up. >>>> >>>> The report you reference is of using the NetBeans layer of JShell.? Is >>>> that what you are doing? >>> No, i call jshell using the javax.tool.Tool API and it doesn't work with jdk13 >>> since several betas. >>> I'm not able to reproduce it on my laptop but it fails using both hardware on >>> AWS and GCP. >>> >>>> -Robert >>> R?mi >>> >>>> On 3/24/19 4:15 AM, Remi Forax wrote: >>>>> Hi Robert, hi all, >>>>> trying to run jshell using the javax.tool.Tool interface now fails while it was >>>>> working previously >>>>> >>>>> see https://travis-ci.org/forax/loom-fiber/builds/510544305 >>>>> >>>>> It fails with the jdk 11.0.2 and recent jdk 13 so it a code that was backported >>>>> to jdk 11.0.2. >>>>> >>>>> Also, i'm not the only one to see this error: >>>>> https://stackoverflow.com/questions/54346534/could-not-initialize-jshell-in-apache-netbeans-ide-10-0 >>>>> >>>>> regards, >>>>> R?mi