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

VncRecorder is missing Log4j method, build with wrong version of log4j.

    Details

    • Similar Issues:

      Description

      Activating recording will produce an exception.

      FATAL: org.apache.log4j.ConsoleAppender.<init>(Lorg/apache/log4j/Layout;)V
      java.lang.NoSuchMethodError: org.apache.log4j.ConsoleAppender.<init>(Lorg/apache/log4j/Layout;)V
      at org.jenkinsci.plugins.vncrecorder.vncutil.VncProcess.<init>(VncProcess.java:58)
      at org.jenkinsci.plugins.vncrecorder.vncutil.VncRecorder.<init>(VncRecorder.java:30)
      at org.jenkinsci.plugins.vncrecorder.VncRecorderBuildWrapper.setUp(VncRecorderBuildWrapper.java:153)
      at hudson.model.Build$BuildExecution.doRun(Build.java:156)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      at hudson.model.Run.execute(Run.java:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:381)

        Attachments

          Activity

          Hide
          tbaum Dimitri Tenenbaum added a comment -

          Fixed in 1.24: added explicit log4j dependency in pom.xml .

          Show
          tbaum Dimitri Tenenbaum added a comment - Fixed in 1.24: added explicit log4j dependency in pom.xml .
          Hide
          ericlouvard Éric Louvard added a comment - - edited

          I have manually download the plugin (1.24) from https://wiki.jenkins-ci.org/display/JENKINS/VncRecorder+Plugin and install it manually, but the error is already occurs.
          It seams that something already goes wrong in the classes.jar method signatures..

          rw-rr- 1 jenkins jenkins 19940 Aug 20 17:01 classes.jar
          rw-rr- 1 jenkins jenkins 489884 Aug 19 21:13 log4j-1.2.17.jar
          el@server:/var/lib/jenkins/plugins/vncrecorder/WEB-INF/lib$

          Show
          ericlouvard Éric Louvard added a comment - - edited I have manually download the plugin (1.24) from https://wiki.jenkins-ci.org/display/JENKINS/VncRecorder+Plugin and install it manually, but the error is already occurs. It seams that something already goes wrong in the classes.jar method signatures.. rw-r r - 1 jenkins jenkins 19940 Aug 20 17:01 classes.jar rw-r r - 1 jenkins jenkins 489884 Aug 19 21:13 log4j-1.2.17.jar el@server:/var/lib/jenkins/plugins/vncrecorder/WEB-INF/lib$
          Hide
          tbaum Dimitri Tenenbaum added a comment -

          Sorry, I took a wrong Jenkins version for my final test. It should work now - in 1.25.

          Show
          tbaum Dimitri Tenenbaum added a comment - Sorry, I took a wrong Jenkins version for my final test. It should work now - in 1.25.
          Hide
          ericlouvard Éric Louvard added a comment -

          Perfekt, it now works.
          In the time I've build my own version an change the saving format to flv.
          .flv have a better support in several viewers and do not have the 22 minutes limitation of swf (http://www.unixuser.org/~euske/vnc2swf/pyvnc2swf.html). It could be a gut idea to make the output flie format konfigureable.
          Thanks for your works!
          Regards, Éric

          Show
          ericlouvard Éric Louvard added a comment - Perfekt, it now works. In the time I've build my own version an change the saving format to flv. .flv have a better support in several viewers and do not have the 22 minutes limitation of swf ( http://www.unixuser.org/~euske/vnc2swf/pyvnc2swf.html ). It could be a gut idea to make the output flie format konfigureable. Thanks for your works! Regards, Éric
          Hide
          tbaum Dimitri Tenenbaum added a comment -

          "It could be a gut idea to make the output flie format konfigureable."
          I agree - I'll take it into my TODO list for the next version.

          Show
          tbaum Dimitri Tenenbaum added a comment - "It could be a gut idea to make the output flie format konfigureable." I agree - I'll take it into my TODO list for the next version.

            People

            • Assignee:
              tbaum Dimitri Tenenbaum
              Reporter:
              ericlouvard Éric Louvard
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: