java.lang.TypeNotPresentException: Type com.thoughtworks.xstream.annotations.XStreamAlias not present

JFrog JIRA | Paul Grove | 5 years ago
  1. 0

    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

    JFrog JIRA | 5 years ago | Paul Grove
    java.lang.TypeNotPresentException: Type com.thoughtworks.xstream.annotations.XStreamAlias not present
  2. 0

    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

    JFrog JIRA | 5 years ago | Paul Grove
    java.lang.TypeNotPresentException: Type com.thoughtworks.xstream.annotations.XStreamAlias not present
  3. 0

    WAS 6.1 Call webservice using JAX-WS

    Google Groups | 8 years ago | Unknown author
    java.lang.TypeNotPresentException: Type javax.xml.bind.annotation.XmlSeeAlso not present
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    VRaptor 3.4 X WebSphere 6.1

    Google Groups | 5 years ago | Deivid Martins
    java.lang.TypeNotPresentException: Type com.google.inject.ScopeAnnotation not present
  6. 0

    Type javax.xml.bind.annotation.XmlRootElement not present IBMWebsphere 6

    objectmix.com | 1 year ago
    java.lang.TypeNotPresentException: Type javax.xml.bind.annotation.XmlRootElement not present

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.TypeNotPresentException

      Type com.thoughtworks.xstream.annotations.XStreamAlias not present

      at com.ibm.oti.reflect.AnnotationHelper.getAnnotation()
    2. com.ibm.oti
      AnnotationHelper.getDeclaredAnnotations
      1. com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38)
      2. com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
      2 frames
    3. Java RT
      Class.getDeclaredAnnotations
      1. java.lang.Class.getDeclaredAnnotations(Class.java:1628)
      1 frame
    4. Data Mapper for Jackson
      BasicClassIntrospector.forSerialization
      1. org.codehaus.jackson.map.introspect.AnnotatedClass.resolveClassAnnotations(AnnotatedClass.java:283)
      2. org.codehaus.jackson.map.introspect.AnnotatedClass.construct(AnnotatedClass.java:140)
      3. org.codehaus.jackson.map.introspect.BasicClassIntrospector.forSerialization(BasicClassIntrospector.java:126)
      4. org.codehaus.jackson.map.introspect.BasicClassIntrospector.forSerialization(BasicClassIntrospector.java:16)
      4 frames