Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7802

Unable to create a PropertiesFileLookupService controller service in version 1.12.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.12.0
    • 1.13.0, 1.12.1
    • Core Framework
    • None
    • Windows 10, jdk1.8.0_251

    Description

      Steps to reproduce:

      1) Fresh nifi install
      2) Click on configuration icon on the root PG.
      3) Create a PropertiesFileLookupService controller service
      4) Configure it to point to a simple properties file.
      5) Enable the processor.

      Startup fails with the following stack trace:

      {{}}

      2020-09-11 11:11:41,383 INFO [Validate Components Thread-5] o.apache.nifi.security.xml.XXEValidator Validating c:\Users\drsnyder\temp\test.properties for XXE attack2020-09-11 11:11:41,420 ERROR [Timer-Driven Process Thread-4] o.a.n.c.s.StandardControllerServiceNode StandardControllerServiceNode[service=PropertiesFileLookupService[id=7db74eb3-0174-1000-f309-1635af53ee3a], versionedComponentId=null, processGroup=StandardProcessGroup[identifier=7db6d1a3-0174-1000-c5c2-3573fd835310,name=NiFi Flow], active=true] Failed to invoke @OnEnabled method due to java.lang.NoClassDefFoundError: org/apache/commons/beanutils/DynaBean: {}
      java.lang.NoClassDefFoundError: org/apache/commons/beanutils/DynaBean
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:264)
       at com.sun.proxy.$Proxy133.<clinit>(Unknown Source)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
       at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:739)
       at org.apache.commons.configuration2.builder.fluent.Parameters.createParametersProxy(Parameters.java:306)
       at org.apache.commons.configuration2.builder.fluent.Parameters.fileBased(Parameters.java:185)
       at org.apache.nifi.lookup.configuration2.CommonsConfigurationLookupService.onEnabled(CommonsConfigurationLookupService.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:142)
       at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:130)
       at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:75)
       at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:52)
       at org.apache.nifi.controller.service.StandardControllerServiceNode$2.run(StandardControllerServiceNode.java:432) at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.beanutils.DynaBean
       at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
       ... 28 common frames omitted

      Attachments

        Issue Links

          Activity

            People

              bbende Bryan Bende
              dsnyder David
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m