Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26923

Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy in Maven Job

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      When I run a maven multi module build there are frequent warnings in the console log.

      [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ com.acme.prod.sto —
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — build-helper-maven-plugin:1.9.1:add-source (add-source) @ com.acme.prod.sto —
      [INFO] Source directory: E:\Jenkins\workspace\prod\com.acme.prod.sto\sto added.
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ com.acme.prod.sto —
      [INFO] Using 'Cp1252' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory E:\Jenkins\workspace\prod\com.acme.prod.sto\src\main\resources
      [INFO] skip non existing resourceDirectory E:\Jenkins\workspace\prod\com.acme.prod.sto\src\main\java
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-compiler-plugin:3.2:compile (default-compile) @ com.acme.prod.sto —
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 132 source files to E:\Jenkins\workspace\prod\com.acme.prod.sto\target\classes
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-checkstyle-plugin:2.13:checkstyle (default) @ com.acme.prod.sto —
      [INFO]
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ com.acme.prod.sto —
      [INFO] Using 'Cp1252' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory E:\Jenkins\workspace\prod\com.acme.prod.sto\src\test\resources
      [INFO] skip non existing resourceDirectory E:\Jenkins\workspace\prod\com.acme.prod.sto\src\test\java
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-compiler-plugin:3.2:testCompile (default-testCompile) @ com.acme.prod.sto —
      [INFO] No sources to compile
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-surefire-plugin:2.18.1:test (default-test) @ com.acme.prod.sto —
      [INFO] Tests are skipped.
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-jar-plugin:2.5:jar (default-jar) @ com.acme.prod.sto —
      [INFO] Building jar: E:\Jenkins\workspace\prod\com.acme.prod.sto\target\com.acme.prod.sto-5.4.2-SNAPSHOT.jar
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-install-plugin:2.4:install (default-install) @ com.acme.prod.sto —
      [INFO] Installing E:\Jenkins\workspace\prod\com.acme.prod.sto\target\com.acme.prod.sto-5.4.2-SNAPSHOT.jar to E:\MavenRepository\com\acme\collab\common\com.acme.prod.sto\5.4.2-SNAPSHOT\com.acme.prod.sto-5.4.2-SNAPSHOT.jar
      [INFO] Installing E:\Jenkins\workspace\prod\com.acme.prod.sto\pom.xml to E:\MavenRepository\com\acme\collab\common\com.acme.prod.sto\5.4.2-SNAPSHOT\com.acme.prod.sto-5.4.2-SNAPSHOT.pom
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-checkstyle-plugin:2.13:checkstyle (default-cli) @ com.acme.prod.sto —
      [INFO]
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — javancss-maven-plugin:2.1:report (default-cli) @ com.acme.prod.sto —
      [INFO] Running JavaNCSS 33.54
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;

      I assume there are multiple versions of commons-io lib in the classpath.
      The method signature org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; seems to be new in commons-io 2.4.

      Edit:
      I have disabled all post build setting -> the warnings disappeared.
      If I re-enable the Checkstyle post build setting (Publish checkstyle analysis) the warning are displayed, but only under the checkstyle goal in the log.

          [JENKINS-26923] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy in Maven Job

          Jeff Huston added a comment -

          New to Jenkins here... getting the same, also a multi-module build..
          [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;

          I'm running 1.597 deployed on Weblogic 12.1 running under Solaris 10, Maven 3.2.1, jdk1.7.0_09

          Jeff Huston added a comment - New to Jenkins here... getting the same, also a multi-module build.. [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; I'm running 1.597 deployed on Weblogic 12.1 running under Solaris 10, Maven 3.2.1, jdk1.7.0_09

          Thomas Kuchel added a comment -

          Same here. I'm running 1.580.3 started with "java -jar jenkins.war" call on Windows 7 64-bit running, Maven 3.2.5, jdk1.7.0_67.

          I have installed just the task-scanner plugin in version 4.44, activated and configured it (files to scan: "src/*/.java").

          [INFO] — maven-clean-plugin:2.6.1:clean (default-clean) @ agents-impl —
          [...]
          [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
          [INFO]
          [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ agents-impl —
          [INFO] Using 'UTF-8' encoding to copy filtered resources.
          [INFO] Copying 2 resources
          [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
          [INFO]
          [INFO] — maven-compiler-plugin:2.3.1:compile (default-compile) @ agents-impl —
          [...]
          [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
          [INFO]

          [INFO]
          [INFO] — maven-surefire-plugin:2.18.1:test (default-test) @ agents-impl —
          [...]

          -------------------------------------------------------
          T E S T S
          -------------------------------------------------------
          Running [testclass]
          log4j:ERROR Could not connect to remote log4j server at [localhost]. We will try again later.
          could not load log4j properties file: /log4j.properties
          Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 40.608 sec - in de.biotronik.agents.AbstractAgentServiceImplTest

          Results :

          Tests run: 11, Failures: 0, Errors: 0, Skipped: 0

          [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
          [INFO]
          [INFO] — maven-jar-plugin:2.5:jar (default-jar) @ agents-impl —
          [...]
          [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
          [INFO]
          [INFO] — maven-source-plugin:2.4:jar (attach-sources) @ agents-impl —
          [...]
          [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;

          I found out that the Tests weren't recorded by Jenkins: Line "[JENKINS] Recording test results" is missing, so no test result overview is presented when opening the job url.

          Same happening for other plugins like checkstyle or findbugs...

          Thomas Kuchel added a comment - Same here. I'm running 1.580.3 started with "java -jar jenkins.war" call on Windows 7 64-bit running, Maven 3.2.5, jdk1.7.0_67. I have installed just the task-scanner plugin in version 4.44, activated and configured it (files to scan: "src/* / .java"). [INFO] — maven-clean-plugin:2.6.1:clean (default-clean) @ agents-impl — [...] [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; [INFO] [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ agents-impl — [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; [INFO] [INFO] — maven-compiler-plugin:2.3.1:compile (default-compile) @ agents-impl — [...] [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; [INFO] [INFO] [INFO] — maven-surefire-plugin:2.18.1:test (default-test) @ agents-impl — [...] ------------------------------------------------------- T E S T S ------------------------------------------------------- Running [testclass] log4j:ERROR Could not connect to remote log4j server at [localhost] . We will try again later. could not load log4j properties file: /log4j.properties Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 40.608 sec - in de.biotronik.agents.AbstractAgentServiceImplTest Results : Tests run: 11, Failures: 0, Errors: 0, Skipped: 0 [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; [INFO] [INFO] — maven-jar-plugin:2.5:jar (default-jar) @ agents-impl — [...] [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; [INFO] [INFO] — maven-source-plugin:2.4:jar (attach-sources) @ agents-impl — [...] [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; I found out that the Tests weren't recorded by Jenkins: Line " [JENKINS] Recording test results" is missing, so no test result overview is presented when opening the job url. Same happening for other plugins like checkstyle or findbugs...

          Same here. I'm running Jenkins 1.599 with maven 3.2.5, jdk 1.8.25.
          I have no more report for checktyle only. For other plugins PMD and Findbugs, it's ok.

          Everything was fine with maven 3.1.1

          Laurent Dufour added a comment - Same here. I'm running Jenkins 1.599 with maven 3.2.5, jdk 1.8.25. I have no more report for checktyle only. For other plugins PMD and Findbugs, it's ok. Everything was fine with maven 3.1.1

          i am also facing the same issue. Tried running on java 1.7 as well as 1.8 with maven 3.2.3 with checkstyle 2.13 plugin and same issue for
          org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator

          gurkirat singh added a comment - i am also facing the same issue. Tried running on java 1.7 as well as 1.8 with maven 3.2.3 with checkstyle 2.13 plugin and same issue for org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator

          Finally, it works if i remove commons-io-2.2.jar from maven lib folder

          Laurent Dufour added a comment - Finally, it works if i remove commons-io-2.2.jar from maven lib folder

          Ivar Kanters added a comment -

          Yes! removing the commons-io jar did the trick for me too! Thanks a lot!

          Ivar Kanters added a comment - Yes! removing the commons-io jar did the trick for me too! Thanks a lot!

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/analysis/util/EncodingValidator.java
          src/main/java/hudson/plugins/analysis/util/JavaPackageDetector.java
          http://jenkins-ci.org/commit/analysis-core-plugin/d1b848ad317e87f5b10819bdb71d488efb233dba
          Log:
          [FIXED JENKINS-26923] Do not use new version of IO utils.

          Compare: https://github.com/jenkinsci/analysis-core-plugin/compare/9fd75afa2104...d1b848ad317e

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/analysis/util/EncodingValidator.java src/main/java/hudson/plugins/analysis/util/JavaPackageDetector.java http://jenkins-ci.org/commit/analysis-core-plugin/d1b848ad317e87f5b10819bdb71d488efb233dba Log: [FIXED JENKINS-26923] Do not use new version of IO utils. Compare: https://github.com/jenkinsci/analysis-core-plugin/compare/9fd75afa2104...d1b848ad317e

            Unassigned Unassigned
            sefi18 Sebastian Fischer
            Votes:
            7 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: