Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

InvokeHTTP failed to process session due to java.lang.NoClassDefFoundError: android/util/Log

InvokeHTTP failed to process session due to java.lang.NoClassDefFoundError: android/util/Log

Super Collaborator

Hello All, I am trying to invoke an http url (GET) with the InvokeHTTP processor. The processor uses a Digest Authentication. After one flow file goes through, it reports an error(screen shot below). Any thoughts on this?

9478-invokehttpgetdigest.png

4 REPLIES 4

Re: InvokeHTTP failed to process session due to java.lang.NoClassDefFoundError: android/util/Log

Are you trying to run NiFi on an Android device by any chance? I don't think that is supported.

Re: InvokeHTTP failed to process session due to java.lang.NoClassDefFoundError: android/util/Log

Super Collaborator

Hi @Andrew Grande, no I amn't running this on any android. Googled up this, but could not find any potential solution.

Below is the stack trace

2016-11-16 08:06:24,516 ERROR [Timer-Driven Process Thread-1] o.a.nifi.processors.standard.InvokeHTTP InvokeHTTP[id=0158103d-988d-192f-0836-d9bf2364168a] InvokeHTTP[id=0158103d-988d-192f-0836-d9bf2364168a] failed to process due to java.lang.NoClassDefFoundError: android/util/Log; rolling back session: java.lang.NoClassDefFoundError: android/util/Log
2016-11-16 08:06:24,517 ERROR [Timer-Driven Process Thread-1] o.a.nifi.processors.standard.InvokeHTTP 
java.lang.NoClassDefFoundError: android/util/Log
at com.burgstaller.okhttp.AuthenticationCacheInterceptor.intercept(AuthenticationCacheInterceptor.java:34) ~[okhttp-digest-0.6.jar:na]
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:232) ~[okhttp-2.7.1.jar:na]
at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205) ~[okhttp-2.7.1.jar:na]
at com.squareup.okhttp.Call.execute(Call.java:80) ~[okhttp-2.7.1.jar:na]
at org.apache.nifi.processors.standard.InvokeHTTP.onTrigger(InvokeHTTP.java:624) ~[nifi-standard-processors-1.0.0.jar:1.0.0]
at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) ~[nifi-api-1.0.0.jar:1.0.0]
at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1064) [nifi-framework-core-1.0.0.jar:1.0.0]
at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) [nifi-framework-core-1.0.0.jar:1.0.0]
at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) [nifi-framework-core-1.0.0.jar:1.0.0]
at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132) [nifi-framework-core-1.0.0.jar:1.0.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_111]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_111]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_111]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_111]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111] 

Re: InvokeHTTP failed to process session due to java.lang.NoClassDefFoundError: android/util/Log

Hi Arun, you're running into https://issues.apache.org/jira/browse/NIFI-2162 The okhttp dependency has an issue, but it's more work than mere rolling the version up. You can watch the jira and add comments there.

Re: InvokeHTTP failed to process session due to java.lang.NoClassDefFoundError: android/util/Log

Super Collaborator

Thanks @Andrew Grande for the jira.

Don't have an account?
Coming from Hortonworks? Activate your account here