Cancellation Exception?

Robert Field robert.field at oracle.com
Tue Mar 26 18:07:36 UTC 2019


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" <robert.field at oracle.com>
>> À: "Remi Forax" <forax at univ-mlv.fr>
>> Cc: "kulla-dev" <kulla-dev at openjdk.java.net>
>> 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" <robert.field at oracle.com>
>>>> À: "kulla-dev" <kulla-dev at openjdk.java.net>, "Remi Forax" <forax at univ-mlv.fr>
>>>> 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


More information about the kulla-dev mailing list