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

BuildInfoRecorder.sessionEnded() listener has failed: Log4JLogger' cannot be found or is not useable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: artifactory-plugin
    • Labels:
      None
    • Environment:
      Jenkins.war: 1.525
      Artifactory plugin 2.2.3
    • Similar Issues:

      Description

      Hi,

      Been trying to deploy a project (multimodule maven3) to artifactory, but I get en exception shown bellow.
      Any ideas please? There is nothing magic in my project configuration, mavn with install goal and some memory settings.

      00:17:09.319 [INFO] Artifactory Build Info Recorder: Saving Build Info to '/home/jenkins/workspace/C2/target/build-info.json'
      00:17:10.149 [INFO] Deploying artifact: http://maven.prs.internal/libs-snapshot-local/pl/c2/0.0.3-SNAPSHOT/c2-0.0.3-SNAPSHOT.pom
      00:17:10.221 [ERROR] org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: 
      00:17:10.223 org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.
      00:17:10.224 	at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:874)
      00:17:10.224 	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
      00:17:10.225 	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
      00:17:10.225 	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
      00:17:10.226 	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
      00:17:10.226 	at org.apache.http.impl.client.AbstractHttpClient.<init>(AbstractHttpClient.java:187)
      00:17:10.227 	at org.apache.http.impl.client.DefaultHttpClient.<init>(DefaultHttpClient.java:141)
      00:17:10.228 	at org.jfrog.build.client.PreemptiveHttpClient.createHttpClient(PreemptiveHttpClient.java:99)
      00:17:10.228 	at org.jfrog.build.client.PreemptiveHttpClient.<init>(PreemptiveHttpClient.java:72)
      00:17:10.229 	at org.jfrog.build.client.ArtifactoryHttpClient.getHttpClient(ArtifactoryHttpClient.java:115)
      00:17:10.229 	at org.jfrog.build.client.ArtifactoryHttpClient.getVersion(ArtifactoryHttpClient.java:128)
      00:17:10.230 	at org.jfrog.build.client.ArtifactoryBuildInfoClient.getArtifactoryVersion(ArtifactoryBuildInfoClient.java:658)
      00:17:10.230 	at org.jfrog.build.client.ArtifactoryBuildInfoClient.tryChecksumDeploy(ArtifactoryBuildInfoClient.java:540)
      00:17:10.231 	at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:512)
      00:17:10.232 	at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:302)
      00:17:10.232 	at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:270)
      00:17:10.233 	at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:108)
      00:17:10.234 mavenExecutionResult exceptions not empty	at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:139)
      00:17:10.237 	at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64)
      00:17:10.237 	at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      00:17:10.238 
      00:17:10.238 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170)
      00:17:10.239 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      00:17:10.239 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      00:17:10.243 message : Internal error: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: 
      00:17:10.243 	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      00:17:10.244 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      00:17:10.244 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      00:17:10.245 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      00:17:10.248 cause : org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: 
      00:17:10.249 	at java.lang.reflect.Method.invoke(Method.java:606)
      00:17:10.249 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
      00:17:10.250 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
      00:17:10.250 Stack trace : 	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:174)
      00:17:10.251 	at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
      00:17:10.251 	at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
      

        Attachments

          Activity

          Hide
          rhaller Ralf Haller added a comment -

          Same problem with artifactory pliugin version 2.3.0. The problem seems to be related to multimodule project. The problems only shows up in projects with more than one parent/module layer.

          Show
          rhaller Ralf Haller added a comment - Same problem with artifactory pliugin version 2.3.0. The problem seems to be related to multimodule project. The problems only shows up in projects with more than one parent/module layer.
          Hide
          rporazil Radek Porazil added a comment -

          Being inspired by http://stackoverflow.com/questions/10692402/whats-the-root-cause-of-log4jlogger-cannot-be-found-or-is-not-useable I found (very! ugly) workaround.
          I copied file log4j-1.2.17.jar to directories plugins/artifactory/WEB-INF/lib and cache/artifactory-plugin/* and the issue was gone.
          Now it seems to be more an issue of Artifactory plugin than the Jenkins.

          Show
          rporazil Radek Porazil added a comment - Being inspired by http://stackoverflow.com/questions/10692402/whats-the-root-cause-of-log4jlogger-cannot-be-found-or-is-not-useable I found (very! ugly) workaround. I copied file log4j-1.2.17.jar to directories plugins/artifactory/WEB-INF/lib and cache/artifactory-plugin/* and the issue was gone. Now it seems to be more an issue of Artifactory plugin than the Jenkins.

            People

            • Assignee:
              eyalbe Eyal Ben Moshe
              Reporter:
              garagoth Marcin Pikulski
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: