I didn't really look that closely at the email bundle before any of this.
If folks here are interested, I have a bundle that I'd be happy to
contribute that adds a ton of email functionality that does data extraction
from common email archive formats:

https://github.com/MikeThomsen/nifi-email-extraction-bundle

Supports mbox, pst, eml and ical

On Tue, Mar 24, 2020 at 9:40 AM Mike Thomsen <[email protected]> wrote:

> No, thank you for saving me a huge amount of time!
>
> On Tue, Mar 24, 2020 at 8:32 AM Pierre Villard <
> [email protected]> wrote:
>
>> Hi Mike,
>>
>> Please have a look here: https://issues.apache.org/jira/browse/NIFI-6961
>>
>> Thanks,
>> Pierre
>>
>> Le mar. 24 mars 2020 à 12:30, Mike Thomsen <[email protected]> a
>> écrit :
>>
>> > I have a NAR that works on Java 8, but on Java 11 it fails to load a
>> > dependency of JavaMail from the activation framework. I have tried to
>> > manually reference the activation framework in the POM, swap out the
>> > official one with the jakarta.activation and a bunch of other things.
>> > Always results in this exception:
>> >
>> > java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
>> > at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:179)
>> > at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:85)
>> > at javax.activation.DataHandler.getCommandMap(DataHandler.java:167)
>> > at
>> javax.activation.DataHandler.getDataContentHandler(DataHandler.java:626)
>> > at javax.activation.DataHandler.getContent(DataHandler.java:554)
>> > at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1508)
>> > at
>> >
>> >
>> org.apache.nifi.processor.email.extraction.AbstractJavaMailProcessor.processMessage(AbstractJavaMailProcessor.java:156)
>> > at
>> >
>> >
>> org.apache.nifi.processor.email.extraction.ExtractMBoxFile.onTrigger(ExtractMBoxFile.java:117)
>> > at
>> >
>> >
>> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>> > at
>> >
>> >
>> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1176)
>> > at
>> >
>> >
>> org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:213)
>> > at
>> >
>> >
>> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
>> > at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
>> > at
>> >
>> >
>> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>> > at
>> >
>> java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
>> > at
>> >
>> >
>> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
>> > at
>> >
>> >
>> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>> > at
>> >
>> >
>> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>> > at java.base/java.lang.Thread.run(Thread.java:834)
>> > Caused by: java.lang.ClassNotFoundException:
>> > com.sun.activation.registries.LogSupport
>> > at
>> >
>> >
>> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
>> > at
>> >
>> >
>> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>> > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
>> > ... 19 common frames omitted
>> >
>> > The email bundle doesn't appear to be doing anything different, so I'm
>> not
>> > sure what's wrong. Any ideas?
>> >
>> > Thanks,
>> >
>> > Mike
>> >
>>
>

Reply via email to