nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bsabin <bobocsa...@gmail.com>
Subject nifi 1.0 extending a standard processor
Date Fri, 09 Sep 2016 14:25:25 GMT
Hi,

I have a custom processor that extends the MergeContent proc and when NiFi
starts I have this error in logs:

2016-09-09 18:17:00,607 ERROR [main] org.apache.nifi.NiFi Failure to launch
NiFi due to java.util.ServiceConfigurationError:
org.apache.nifi.processor.Processor: Provider
org.apache.nifi.processors.standard.DetectDuplicate could not be
instantiated
java.util.ServiceConfigurationError: org.apache.nifi.processor.Processor:
Provider org.apache.nifi.processors.standard.DetectDuplicate could not be
instantiated
        at java.util.ServiceLoader.fail(ServiceLoader.java:232)
~[na:1.8.0_101]
        at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
~[na:1.8.0_101]
        at
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
~[na:1.8.0_101]
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
~[na:1.8.0_101]
        at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
~[na:1.8.0_101]
        at
org.apache.nifi.nar.ExtensionManager.loadExtensions(ExtensionManager.java:107)
~[nifi-nar-utils-1.0.0.jar:1.0.0]
        at
org.apache.nifi.nar.ExtensionManager.discoverExtensions(ExtensionManager.java:88)
~[nifi-nar-utils-1.0.0.jar:1.0.0]
        at org.apache.nifi.NiFi.<init>(NiFi.java:135)
~[nifi-runtime-1.0.0.jar:1.0.0]
        at org.apache.nifi.NiFi.main(NiFi.java:243)
~[nifi-runtime-1.0.0.jar:1.0.0]
Caused by: java.lang.NoClassDefFoundError:
org/apache/nifi/distributed/cache/client/Serializer
        at java.lang.Class.getDeclaredConstructors0(Native Method)
~[na:1.8.0_101]
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
~[na:1.8.0_101]
        at java.lang.Class.getConstructor0(Class.java:3075) ~[na:1.8.0_101]
        at java.lang.Class.newInstance(Class.java:412) ~[na:1.8.0_101]
        at
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
~[na:1.8.0_101]
        ... 6 common frames omitted
Caused by: java.lang.ClassNotFoundException:
org.apache.nifi.distributed.cache.client.Serializer
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
~[na:1.8.0_101]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
~[na:1.8.0_101]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
~[na:1.8.0_101]


On Nifi 0.6.1/ 0.7.0 it worked, but when I've tried to use PutSQL proc, I
could not see in the property list the Controller Service populated.
Is there a proper way to extend the behaviour of a standard processor ?

Thanks



--
View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/nifi-1-0-extending-a-standard-processor-tp13306.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Mime
View raw message