nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Dyer <jdy...@gmail.com>
Subject Trouble Starting Custom Salesforce Streaming API Controller Service
Date Mon, 04 Apr 2016 13:45:14 GMT
I have created a custom Controller Service for connecting to the Salesforce
Streaming API to receive realtime Salesforce.com activity. Doing so
requires using the CometD Bayeux Protocol and Jetty. I seem to be running
into some class incompatibility issues when I attempt to enable the
service. I was hoping someone might have an idea what i'm doing wrong here
or what classes they suspect might be giving me this issue?

PS - The only extra dependencies I have added to my pom.xml are the CometD
libraries version 3.0.9. I'm using the Jetty version already available.


2016-04-04 06:32:41,003 ERROR [pool-27-thread-8]
o.a.n.c.s.StandardControllerServiceNode
java.lang.IncompatibleClassChangeError: Implementing class
        at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_45]
        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
~[na:1.8.0_45]
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
~[na:1.8.0_45]
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
~[na:1.8.0_45]
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
~[na:1.8.0_45]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
~[na:1.8.0_45]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
~[na:1.8.0_45]
        at java.security.AccessController.doPrivileged(Native Method)
~[na:1.8.0_45]
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
~[na:1.8.0_45]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
~[na:1.8.0_45]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
~[na:1.8.0_45]
        at
com.jeremydyer.salesforce.service.SalesforceStreamingService.oauthLogin(SalesforceStreamingService.java:273)
~[na:na]
        at
com.jeremydyer.salesforce.service.SalesforceStreamingService.getClient(SalesforceStreamingService.java:184)
~[na:na]
        at
com.jeremydyer.salesforce.service.SalesforceStreamingService.onEnabled(SalesforceStreamingService.java:146)
~[na:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.8.0_45]
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[na:1.8.0_45]
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0_45]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45]
        at
org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:102)
~[nifi-framework-core-0.5.1.1.1.2.0-32.jar:0.5.1.1.1.2.0-32]
        at
org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:47)
~[nifi-framework-core-0.5.1.1.1.2.0-32.jar:0.5.1.1.1.2.0-32]
        at
org.apache.nifi.controller.service.StandardControllerServiceNode$1.run(StandardControllerServiceNode.java:285)
~[nifi-framework-core-0.5.1.1.1.2.0-32.jar:0.5.1.1.1.2.0-32]
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[na:1.8.0_45]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[na:1.8.0_45]
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
[na:1.8.0_45]
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[na:1.8.0_45]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_45]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_45]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
2016-04-04 06:32:41,003 ERROR [pool-27-thread-8]
o.a.n.c.s.StandardControllerServiceNode Failed to invoke @OnEnabled method
of SalesforceStreamingService[id=b8589356-88f5-48b2-9d53-383c6a336d51] due
to java.lang.IncompatibleClassChangeError: Implementing class

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message