nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Zhurakousky <ozhurakou...@hortonworks.com>
Subject Re: Exception: java.lang.NoClassDefFoundError: retrofit2/BaseUrl
Date Fri, 10 Jun 2016 00:11:08 GMT
Yes, it has to be available to your code otherwise you will continue to get ClassNotFoundException

Oleg
On Jun 9, 2016, at 8:06 PM, Kumiko Yada <Kumiko.Yada@ds-iq.com<mailto:Kumiko.Yada@ds-iq.com>>
wrote:

Does this mean that I have to include this dependency in nar pom file now?

                                <dependency>
                                                <groupId>com.squareup.retrofit2</groupId>
                                                <artifactId>retrofit</artifactId>
                                                <version>2.0.4</version>
                                </dependency>
Thanks
Kumiko

From: Oleg Zhurakousky [mailto:ozhurakousky@hortonworks.com]
Sent: Thursday, June 9, 2016 4:27 PM
To: users@nifi.apache.org<mailto:users@nifi.apache.org>
Subject: Re: Exception: java.lang.NoClassDefFoundError: retrofit2/BaseUrl

No, it just means that retrofit2.BaseUri is not in the NAR class path (see class not found
at the bottom of the trace). Is it packaged with your new Nar?

Sent from my iPhone

On Jun 9, 2016, at 19:01, Kumiko Yada <Kumiko.Yada@ds-iq.com<mailto:Kumiko.Yada@ds-iq.com>>
wrote:
Hello,

My custom processor is throwing the run-time exception, so I reverted the changes that I made
and I’m still getting this below error.   Does this mean that there is some changes in Microsoft
Azure SDK?  My custom processor nar file which I compiled yesterday is working fine.  Note:
 I’m getting this exception in single thread.

2016-06-09 15:50:46,718 WARN [Timer-Driven Process Thread-5] o.a.n.c.t.ContinuallyRunProcessorTask
Administratively Yielding PutFileAzureDLStore[id=73299986-7f85-4114-8940-b77798757d3a] due
to uncaught Exception: java.lang.NoClassDefFoundError: retrofit2/BaseUrl
2016-06-09 15:50:46,719 WARN [Timer-Driven Process Thread-5] o.a.n.c.t.ContinuallyRunProcessorTask
java.lang.NoClassDefFoundError: retrofit2/BaseUrl
                at nifi.azure.dlstore.processors.PutFileAzureDLStore.SetupClients(PutFileAzureDLStore.java:257)
~[na:na]
                at nifi.azure.dlstore.processors.PutFileAzureDLStore.onTrigger(PutFileAzureDLStore.java:210)
~[na:na]
                at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
~[nifi-api-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
                at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1057)
~[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
                at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
                at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
                at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:123)
[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[na:1.8.0_77]
                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_77]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
[na:1.8.0_77]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
[na:1.8.0_77]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_77]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_77]
                at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]
Caused by: java.lang.ClassNotFoundException: retrofit2.BaseUrl
                at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_77]
                at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_77]
                at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_77]

Thanks
Kumiko

Mime
View raw message