I found out that I didn’t have specify this dependency in pom file that it 
would be packaged as part of below by finding the jar file in 
…\nifi-azure-dlstore-nar\target\classes\META-INF\bundled-dependencies.  I 
verified that it is packaged with a new Nar, and I even copied this jar file in 
…\nifi-0.7.0-SNAPSHOT\lib folder, but I’m still getting the exception: 
java.lang.NoClassDefFoundError: retrofit2/BaseUrl.

<repositories>
    <repository>
        <id>adx-snapshots</id>
        <name>Azure ADX Snapshots</name>
        <url>http://adxsnapshots.azurewebsites.net/</url>
        <layout>default</layout>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
    <repository>
        <id>oss-snapshots</id>
        <name>Open Source Snapshots</name>
        <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        <layout>default</layout>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
        </snapshots>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>azure-client-authentication</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </dependency>
   <dependency>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>azure-mgmt-datalake-store</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </dependency>
</dependencies>


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

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.y...@ds-iq.com<mailto:kumiko.y...@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:ozhurakou...@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.y...@ds-iq.com<mailto:kumiko.y...@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

Reply via email to