Jython does not run under 18.04

Bug #1771476 reported by Patrick Palczewski
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
jython (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Jython 2.7.1 worked correctly under 17.10. After upgrading to 18.04, now Kython won't run, citing a ByteBuffer error.

Output:

patrick@patrick-satellite-l675d:~$ jython
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
 at jline.internal.InputStreamReader.<init>(InputStreamReader.java:104)
 at jline.console.ConsoleReader.setInput(ConsoleReader.java:330)
 at jline.console.ConsoleReader.<init>(ConsoleReader.java:248)
 at org.python.util.JLineConsole.install(JLineConsole.java:107)
 at org.python.core.Py.installConsole(Py.java:1744)
 at org.python.core.PySystemState.initConsole(PySystemState.java:1258)
 at org.python.core.PySystemState.doInitialize(PySystemState.java:1109)
 at org.python.core.PySystemState.initialize(PySystemState.java:1023)
 at org.python.core.PySystemState.initialize(PySystemState.java:979)
 at org.python.core.PySystemState.initialize(PySystemState.java:974)
 at org.python.util.jython.run(jython.java:263)
 at org.python.util.jython.main(jython.java:142)

My system is using OpenJDK 1.8.0_171, which I need as I work with Jython and it is not compatible with Java9 yet.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: jython 2.7.1+repack-3
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: Unity:Unity7:ubuntu
Date: Tue May 15 19:07:34 2018
InstallationDate: Installed on 2018-01-28 (107 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
PackageArchitecture: all
SourcePackage: jython
UpgradeStatus: Upgraded to bionic on 2018-05-10 (5 days ago)

Revision history for this message
Patrick Palczewski (psykiatris) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in jython (Ubuntu):
status: New → Confirmed
Revision history for this message
plana Pearson (planapp) wrote :

even i did experience same

plana@plana-R752BP:~$ jython
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
 at jline.internal.InputStreamReader.<init>(InputStreamReader.java:104)
 at jline.console.ConsoleReader.setInput(ConsoleReader.java:330)
 at jline.console.ConsoleReader.<init>(ConsoleReader.java:248)
 at org.python.util.JLineConsole.install(JLineConsole.java:107)
 at org.python.core.Py.installConsole(Py.java:1744)
 at org.python.core.PySystemState.initConsole(PySystemState.java:1258)
 at org.python.core.PySystemState.doInitialize(PySystemState.java:1109)
 at org.python.core.PySystemState.initialize(PySystemState.java:1023)
 at org.python.core.PySystemState.initialize(PySystemState.java:979)
 at org.python.core.PySystemState.initialize(PySystemState.java:974)
 at org.python.util.jython.run(jython.java:263)
 at org.python.util.jython.main(jython.java:142)

Revision history for this message
varun maitreya (varun-maitreya) wrote :

Hello,

I did replicate same issue with 2.7.1 in Ubuntu 18.04.

Temporary solution for the issue (using an older version of jython):

I have tried installing Jython 2.7.0 with installer and it works like charm. Issue may be compatibility issue with Jython 2.7.1 and ubuntu 18.04. Until bug gets fixed use older version of Jython. :)

Revision history for this message
Jörg Steffens (joerg-steffens) wrote :

Ubuntu 18.04 offers both openjdk-8-jdk and openjdk-11-jdk.

I upgraded my system from Ubuntu 16.04 to 18.04 and have both versions installed. The default has been set to openjdk-8-jdk.

I experienced the same problem.

I made openjdk-11-jdk the default by running "update-alternatives --all" and choosing the openjdk-11-jdk component whenever I got the option for this.

After making openjdk-11-jdk the default jdk, the jython interpreter starts without problems.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.