Your message dated Wed, 4 Apr 2018 15:57:29 +0200
with message-id 
<cam79t8hkzitu8otgtrzssfdbkbh3axr+mfzk9gjid9sdq9l...@mail.gmail.com>
and subject line Re: Bug#894689: davmail does not work with java-9-openjdk
has caused the Debian Bug report #894689,
regarding davmail does not work with java-9-openjdk
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
894689: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894689
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: davmail
Version: 4.8.3.2554-2
Severity: normal

Dear Maintainer,
   
davmail fails to work correctly with latest java-9-openjdk in Debian
unstable.

Fetching and sending messages fails with an exception trace:

Exception in thread "ImapConnection-51322" java.lang.NoClassDefFoundError: 
javax/activation/DataHandler
        at 
davmail.exchange.ExchangeSession$Message.loadMimeMessage(ExchangeSession.java:2018)
        at 
davmail.exchange.MessageLoadThread.loadMimeMessage(MessageLoadThread.java:52)
        at 
davmail.imap.ImapConnection$MessageWrapper.loadMessage(ImapConnection.java:800)
        at 
davmail.imap.ImapConnection$MessageWrapper.getMimeMessageSize(ImapConnection.java:786)
        at davmail.imap.ImapConnection.handleFetch(ImapConnection.java:847)
        at davmail.imap.ImapConnection.run(ImapConnection.java:399)
Caused by: java.lang.ClassNotFoundException: javax.activation.DataHandler
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
        at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
        ... 6 more

Since downgrading davmail did not help, I checked if I have multiple java
JRE versions installed and it turned out I do:

# dpkg -l |grep openjdk
ii  openjdk-8-jre:amd64                           8u162-b12-1                   
      amd64        OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-8-jre-headless:amd64                  8u162-b12-1                   
      amd64        OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-9-jre:amd64                           9.0.4+12-4                    
      amd64        OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-9-jre-headless:amd64                  9.0.4+12-4                    
      amd64        OpenJDK Java runtime, using Hotspot JIT (headless)

Then I used 'update-alternatives --all' command and switched all java related
tools from openjdk-9 to openjdk-8. After restarting davmail, I can now again
send and receive messages with it.

Maybe davmail could depend on openjdk-8-jre-headless until the root
causes are fixed.

Thanks,

-Mikko

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'stable'), 
(500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.12+ (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages davmail depends on:
ii  adduser                                          3.117
ii  default-jre-headless [java9-runtime-headless]    2:1.9-62
ii  jarwrapper                                       0.63
ii  libcommons-codec-java                            1.11-1
ii  libcommons-httpclient-java                       3.1-14
ii  libcommons-logging-java                          1.2-2
ii  libhtmlcleaner-java                              2.21-2
ii  libjackrabbit-java                               2.14.4-1
ii  libjcifs-java                                    1.3.19-2
ii  liblog4j1.2-java                                 1.2.17-8
ii  libmail-java                                     1.6.1-1
ii  libservlet3.1-java                               8.5.29-1
ii  libslf4j-java                                    1.7.25-3
ii  libstax2-api-java                                3.1.1-1
ii  libwoodstox-java                                 1:4.1.3-1
ii  logrotate                                        3.11.0-0.1
ii  lsb-base                                         9.20170808
ii  openjdk-8-jre-headless [java8-runtime-headless]  8u162-b12-1
ii  openjdk-9-jre-headless [java9-runtime-headless]  9.0.4+12-4

davmail recommends no packages.

Versions of packages davmail suggests:
pn  libswt-cairo-gtk-4-jni  <none>
pn  libswt-gtk-4-java       <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
> It's working again with libmail-java/1.6.1-2.

OK great, no overlinking required in java.

Thanks a lot Emmanuel and thanks Midix for your detailed report and
quick follow-up.

Cheers,

Alex

--- End Message ---

Reply via email to