Uploaded image for project: 'Apache NiFi MiNiFi - MOVED TO NIFI PROJECT'
  1. Apache NiFi MiNiFi - MOVED TO NIFI PROJECT
  2. MINIFI-134

Remove "test" scope from root pom Commons-IO

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.0.1
    • 0.1.0
    • None
    • None

    Description

      Commons-IO being "test" scope in the root level pom overrides any transitive deps that utilize Commons-IO. This leads to "ClassNotFound" exceptions when it would be attempted to use. For example when ListenTCP hits the max connections it attempts to use Commons-IO and it throws "ClassNotFound".

      "<scope>test</scope>" should be removed.

      2016-11-09 16:49:47,484 WARN [org.apache.nifi.processors.standard.ListenTCP [ListenTCP]] o.a.nifi.processors.standard.ListenTCP ListenTCP[id=ListenTCP] Rejecting connection from /127.0.0.1:41866 because max connections has been met
      2016-11-09 16:49:47,487 ERROR [org.apache.nifi.processors.standard.ListenTCP [ListenTCP]] org.apache.nifi.minifi.MiNiFi An Unknown Error Occurred in Thread Thread[org.apache.nifi.processors.standard.ListenTCP [ListenTCP],5,main]: java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils
      2016-11-09 16:49:47,494 ERROR [org.apache.nifi.processors.standard.ListenTCP [ListenTCP]] org.apache.nifi.minifi.MiNiFi
      java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils
        at org.apache.nifi.processor.util.listen.dispatcher.SocketChannelDispatcher.run(SocketChannelDispatcher.java:154) ~[nifi-processor-utils-0.6.1.jar:0.6.1]
        at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_65]
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.IOUtils
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_65]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_65]
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_65]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_65]
        ... 2 common frames omitted

      Attachments

        Issue Links

          Activity

            People

              jpercivall Joe Percivall
              jpercivall Joe Percivall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: