1

I just did a minor upgrade, and then I suddenly started having Java Problems.

The stack trace looks like:

java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
    at java.desktop/java.awt.Toolkit.newAWTError(Toolkit.java:472)
    at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Toolkit.java:488)
    at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
    at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
    at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1608)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
    at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
    at java.desktop/java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:532)
    at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:613)
    at java.desktop/java.awt.Window.getToolkit(Window.java:1375)
    at java.desktop/java.awt.Window.init(Window.java:518)
    at java.desktop/java.awt.Window.(Window.java:549)
    at java.desktop/java.awt.Frame.(Frame.java:423)
    at java.desktop/java.awt.Frame.(Frame.java:388)
    at java.desktop/javax.swing.JFrame.(JFrame.java:180)
    at rga.hack.SlideShow.(SlideShow.java:293)
    at rga.hack.SlideShow.main(SlideShow.java:674)
Caused by: java.lang.ClassNotFoundException: org.GNOME.Accessibility.AtkWrapper
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:374)
    at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Toolkit.java:485)
    ... 19 more

I have both openjdk-11-jre and openjdk-11-jre-headless installed as well as libatk-wrapper-java and libatk-wrapper-java-jni installed.

The java code I'm using is an old program I wrote myself, but it was working fine until the last update.

I can make the problem go away by commenting out the line in /etc/java-11-openjdk/accessibility.properites, but I suspect that there is a broken dependency in one of the packages I recently installed.

The following packages were installed in the update:

Upgraded the following packages:
accountsservice (0.6.45-1ubuntu1) to 0.6.45-1ubuntu1pop2
console-setup (1.178ubuntu2.3) to 1.178ubuntu2.6
console-setup-linux (1.178ubuntu2.3) to 1.178ubuntu2.6
gir1.2-accountsservice-1.0 (0.6.45-1ubuntu1) to 0.6.45-1ubuntu1pop2
gnome-initial-setup (3.28.0-2ubuntu6.16.04.1) to 3.28.0-2ubuntu6.16.04.2system76.1
keyboard-configuration (1.178ubuntu2.3) to 1.178ubuntu2.6
libaccountsservice0 (0.6.45-1ubuntu1) to 0.6.45-1ubuntu1pop2
palemoon (27.9.4~binaryrepack-1) to 28.0.0~repack-3

As the error is gnome related, I'm blaming the gnome-initial-setup package, but I'm wondering if anybody knows more about this than I do.

ralmond
  • 11

1 Answers1

-1

There is a known bug with the openjdk atk wrapper, so it's not really a gnome problem. The openjdk bug says it was introduced in openjdk9, though a google search shows it as early as openjdk8. The bug has been closed, with a external classification, requiring the ATK to be re-engineered as a service.

The workarounds are either comment out the assistive technology line in the accessibility properties file, as you stated, or add the wrapper to the classpath

export CLASSPATH=/usr/share/java/java-atk-wrapper.jar

The openjdk bug reference is https://bugs.openjdk.java.net/browse/JDK-8204862