Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-213

Build failed due to a Java reflection error from Plugin - Type com.thoughtworks.xstream.annotations.XStreamAlias not present

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.2
    • Component/s: Release Management
    • Labels:
      None
    • Environment:

      Windows 2003 Server

      Description

      I had a working setup with Jenkins 1.417 and Artifactory Plugin 2.0.1. I upgraded to Jenkins 1.419 and Artifactory Plugin 2.0.2 when I run the build I got the below error. I down graded Jenkins back to 1.417 but still got the error, I downgraded Artifactory Plugin to 2.0.1 and it worked fine again. Sounds like a bug to me and stopping us upgrade.

      Stacktrace
      [INFO] Scanning for projects...
      [INFO] Initializing Artifactory Build-Info Recording
      [HUDSON] Collecting dependencies info
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building bir-team-pom 4.0.0-INT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-clean-plugin:2.4.1:clean (default-clean) @ bir-team-pom —
      [INFO]
      [INFO] — maven-source-plugin:2.1.1:jar-no-fork (attach-sources) @ bir-team-pom —
      [INFO]
      [INFO] — maven-install-plugin:2.3.1:install (default-install) @ bir-team-pom —
      [INFO] Installing D:\hudson\Home\jobs\Product-bir-team-pom-release\workspace\pom.xml to C:\MavenRepo\com\barclays\bir\team\pom\bir-team-pom\4.0.0-INT\bir-team-pom-4.0.0-INT.pom
      projectSucceeded com.barclays.bir.team.pom:bir-team-pom:4.0.0-INT
      [JENKINS] Archiving D:\hudson\Home\jobs\Product-bir-team-pom-release\workspace\pom.xml to D:\hudson\Home\jobs\Product-bir-team-pom-release\modules\com.barclays.bir.team.pom$bir-team-pom\builds\2011-07-11_08-27-43\archive\com.barclays.bir.team.pom\bir-team-pom\4.0.0-INT\bir-team-pom-4.0.0-INT.pom
      [INFO] Artifactory Build Info Recorder: Deploying build info ...
      log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.SingleClientConnManager).
      log4j:WARN Please initialize the log4j system properly.
      [ERROR] Could not build the build-info object.
      java.lang.TypeNotPresentException: Type com.thoughtworks.xstream.annotations.XStreamAlias not present
      at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38)
      at com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
      at java.lang.Class.getDeclaredAnnotations(Class.java:1628)
      at org.codehaus.jackson.map.introspect.AnnotatedClass.resolveClassAnnotations(AnnotatedClass.java:283)
      at org.codehaus.jackson.map.introspect.AnnotatedClass.construct(AnnotatedClass.java:140)
      at org.codehaus.jackson.map.introspect.BasicClassIntrospector.forSerialization(BasicClassIntrospector.java:126)
      at org.codehaus.jackson.map.introspect.BasicClassIntrospector.forSerialization(BasicClassIntrospector.java:16)
      mavenExecutionResult exceptions not empty
      message : Internal error: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory.
      cause : Error occurred while publishing Build Info to Artifactory.
      Stack trace :
      org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory.
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
      at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      at java.lang.reflect.Method.invoke(Method.java:599)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:125)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:72)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:283)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
      at java.util.concurrent.FutureTask.run(FutureTask.java:149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:735)
      Caused by: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory.
      at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:83)
      at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:128)
      at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64)
      at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      ... 19 more
      Caused by: java.io.IOException: Could not publish build-info: Type com.thoughtworks.xstream.annotations.XStreamAlias not present
      at org.jfrog.build.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:226)
      at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:81)
      ... 25 more
      at org.codehaus.jackson.map.SerializationConfig.introspect(SerializationConfig.java:573)
      at org.codehaus.jackson.map.ser.BeanSerializerFactory.createSerializer(BeanSerializerFactory.java:95)
      at org.codehaus.jackson.map.ser.StdSerializerProvider._createUntypedSerializer(StdSerializerProvider.java:688)
      at org.codehaus.jackson.map.ser.StdSerializerProvider._createAndCacheUntypedSerializer(StdSerializerProvider.java:631)
      at org.codehaus.jackson.map.ser.StdSerializerProvider.findValueSerializer(StdSerializerProvider.java:405)
      at org.codehaus.jackson.map.ser.StdSerializerProvider.findTypedValueSerializer(StdSerializerProvider.java:479)
      at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:293)
      at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:224)
      at org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:925)
      at org.codehaus.jackson.impl.JsonGeneratorBase.writeObject(JsonGeneratorBase.java:274)
      at org.jfrog.build.client.ArtifactoryBuildInfoClient.toJsonString(ArtifactoryBuildInfoClient.java:378)
      at org.jfrog.build.client.ArtifactoryBuildInfoClient.buildInfoToJsonString(ArtifactoryBuildInfoClient.java:370)
      at org.jfrog.build.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:223)
      at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:81)
      at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:128)
      at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64)
      at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      at java.lang.reflect.Method.invoke(Method.java:599)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:125)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:72)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:283)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
      at java.util.concurrent.FutureTask.run(FutureTask.java:149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:735)
      Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.annotations.XStreamAlias
      at java.lang.Class.forNameImpl(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:33)
      ... 45 more
      channel stopped
      Finished: FAILURE

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yossis Yossi Shaul
                Reporter:
                paulgrove Paul Grove
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: