com.amazonaws.AmazonClientException: Couldn't initialize a sax driver for the XMLReader

Kuali JIRA | Michael O'Cleirigh | 3 years ago
  1. 0

    I've been copying over the ci jobs from ci.fn.kuali.org to ci.kuali.org for the: * kscontractdoc-maven-plugin * repository-tools * externals-maven-plugin * fusion-maven-plugin The actual publishing and releasing works but the site-deploy doesn't. the cloudfront-maven-plugin fails. I've just removed the site-deploy part from these jobs for now so I can release and publish. {code} [INFO] --- maven-site-plugin:3.0-beta-3:deploy (default-deploy) @ externals-maven-plugin --- [INFO] Logged in - site.origin.kuali.org [INFO] Files: 258 Bytes: 4.7m [INFO] Progress: .................................................. [INFO] Files: 258 Time: 1.767s Rate: 2.645 MB/s [INFO] Logged off - site.origin.kuali.org [INFO] [INFO] --- maven-cloudfront-plugin:1.1.5:updateoriginbucket (s3) @ externals-maven-plugin --- [INFO] Updating S3 bucket - site.origin.kuali.org [INFO] Re-indexing content for - maven/plugins/externals-maven-plugin/latest/ [ERROR] Unable to unmarshall response (Couldn't initialize a sax driver for the XMLReader) com.amazonaws.AmazonClientException: Couldn't initialize a sax driver for the XMLReader at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.<init>(XmlResponsesSaxParser.java:97) at com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsUnmarshaller.unmarshall(Unmarshallers.java:70) at com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsUnmarshaller.unmarshall(Unmarshallers.java:67) at com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(S3XmlResponseHandler.java:62) at com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(S3XmlResponseHandler.java:31) at com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:456) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:268) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:168) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2502) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2474) at com.amazonaws.services.s3.AmazonS3Client.listObjects(AmazonS3Client.java:409) at org.kuali.maven.mojo.s3.UpdateOriginBucketMojo.getObjectListing(UpdateOriginBucketMojo.java:244) at org.kuali.maven.mojo.s3.UpdateOriginBucketMojo.executeMojo(UpdateOriginBucketMojo.java:334) at org.kuali.maven.mojo.s3.BaseMojo.execute(BaseMojo.java:94) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 37.452s [INFO] Finished at: Thu May 22 13:35:07 UTC 2014 [INFO] Final Memory: 63M/768M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.kuali.maven.plugins:maven-cloudfront-plugin:1.1.5:updateoriginbucket (s3) on project externals-maven-plugin: Unexpected error: Unable to unmarshall response (Couldn't initialize a sax driver for the XMLReader) -> [Help 1] {code} For the release jobs its the last line that fails: {code} mvn validate -Pscm -N mvn clean release:prepare release:perform -B cd $WORKSPACE/target/checkout mvn clean deploy -Pkuali-release,sonatype-oss-release -DskipTests # The || true at the end here is ridiculous and insanely evil # Remove it when Sonatype resolves https://issues.sonatype.org/browse/OSSRH-5976 # Maven always reports a bogus BUILD FAILURE, even though the binaries got released correctly mvn nexus-staging:release -Pkuali-release,sonatype-oss-release -N || true mvn site-deploy -Pkuali-release -Dkuali.site.latest=true {code} For snapshot jobs taking out the site-deploy goal lets the job complete properly {code} mvn validate -Pscm -N mvn clean deploy site-deploy -Pkuali-release -e {code}

    Kuali JIRA | 3 years ago | Michael O'Cleirigh
    com.amazonaws.AmazonClientException: Couldn't initialize a sax driver for the XMLReader
  2. 0

    I've been copying over the ci jobs from ci.fn.kuali.org to ci.kuali.org for the: * kscontractdoc-maven-plugin * repository-tools * externals-maven-plugin * fusion-maven-plugin The actual publishing and releasing works but the site-deploy doesn't. the cloudfront-maven-plugin fails. I've just removed the site-deploy part from these jobs for now so I can release and publish. {code} [INFO] --- maven-site-plugin:3.0-beta-3:deploy (default-deploy) @ externals-maven-plugin --- [INFO] Logged in - site.origin.kuali.org [INFO] Files: 258 Bytes: 4.7m [INFO] Progress: .................................................. [INFO] Files: 258 Time: 1.767s Rate: 2.645 MB/s [INFO] Logged off - site.origin.kuali.org [INFO] [INFO] --- maven-cloudfront-plugin:1.1.5:updateoriginbucket (s3) @ externals-maven-plugin --- [INFO] Updating S3 bucket - site.origin.kuali.org [INFO] Re-indexing content for - maven/plugins/externals-maven-plugin/latest/ [ERROR] Unable to unmarshall response (Couldn't initialize a sax driver for the XMLReader) com.amazonaws.AmazonClientException: Couldn't initialize a sax driver for the XMLReader at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.<init>(XmlResponsesSaxParser.java:97) at com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsUnmarshaller.unmarshall(Unmarshallers.java:70) at com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsUnmarshaller.unmarshall(Unmarshallers.java:67) at com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(S3XmlResponseHandler.java:62) at com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(S3XmlResponseHandler.java:31) at com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:456) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:268) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:168) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2502) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2474) at com.amazonaws.services.s3.AmazonS3Client.listObjects(AmazonS3Client.java:409) at org.kuali.maven.mojo.s3.UpdateOriginBucketMojo.getObjectListing(UpdateOriginBucketMojo.java:244) at org.kuali.maven.mojo.s3.UpdateOriginBucketMojo.executeMojo(UpdateOriginBucketMojo.java:334) at org.kuali.maven.mojo.s3.BaseMojo.execute(BaseMojo.java:94) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 37.452s [INFO] Finished at: Thu May 22 13:35:07 UTC 2014 [INFO] Final Memory: 63M/768M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.kuali.maven.plugins:maven-cloudfront-plugin:1.1.5:updateoriginbucket (s3) on project externals-maven-plugin: Unexpected error: Unable to unmarshall response (Couldn't initialize a sax driver for the XMLReader) -> [Help 1] {code} For the release jobs its the last line that fails: {code} mvn validate -Pscm -N mvn clean release:prepare release:perform -B cd $WORKSPACE/target/checkout mvn clean deploy -Pkuali-release,sonatype-oss-release -DskipTests # The || true at the end here is ridiculous and insanely evil # Remove it when Sonatype resolves https://issues.sonatype.org/browse/OSSRH-5976 # Maven always reports a bogus BUILD FAILURE, even though the binaries got released correctly mvn nexus-staging:release -Pkuali-release,sonatype-oss-release -N || true mvn site-deploy -Pkuali-release -Dkuali.site.latest=true {code} For snapshot jobs taking out the site-deploy goal lets the job complete properly {code} mvn validate -Pscm -N mvn clean deploy site-deploy -Pkuali-release -e {code}

    Kuali JIRA | 3 years ago | Michael O'Cleirigh
    com.amazonaws.AmazonClientException: Couldn't initialize a sax driver for the XMLReader
  3. 0

    GitHub comment 57#205767551

    GitHub | 8 months ago | ronencamera
    com.amazonaws.AmazonClientException: Failed to parse XML document with handler class com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListAllMyBucketsHandler
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    S3 listBuckets failed to parse XML document

    GitHub | 1 year ago | amedeiros
    com.amazonaws.AmazonClientException: Failed to parse XML document with handler class com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListAllMyBucketsHandler
  6. 0

    Can't start ice reader

    GitHub | 3 years ago | nmcserra
    com.amazonaws.AmazonClientException: Unable to unmarshall response (Failed to parse XML document with handler class com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListBucketHandler)

    3 unregistered visitors
    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. com.amazonaws.AmazonClientException

      Couldn't initialize a sax driver for the XMLReader

      at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.<init>()
    2. AWS Java SDK for Amazon S3
      S3XmlResponseHandler.handle
      1. com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.<init>(XmlResponsesSaxParser.java:97)
      2. com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsUnmarshaller.unmarshall(Unmarshallers.java:70)
      3. com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsUnmarshaller.unmarshall(Unmarshallers.java:67)
      4. com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(S3XmlResponseHandler.java:62)
      5. com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(S3XmlResponseHandler.java:31)
      5 frames
    3. AWS SDK for Java - Core
      AmazonHttpClient.execute
      1. com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:456)
      2. com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:268)
      3. com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:168)
      3 frames
    4. AWS Java SDK for Amazon S3
      AmazonS3Client.listObjects
      1. com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2502)
      2. com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2474)
      3. com.amazonaws.services.s3.AmazonS3Client.listObjects(AmazonS3Client.java:409)
      3 frames
    5. org.kuali.maven
      BaseMojo.execute
      1. org.kuali.maven.mojo.s3.UpdateOriginBucketMojo.getObjectListing(UpdateOriginBucketMojo.java:244)
      2. org.kuali.maven.mojo.s3.UpdateOriginBucketMojo.executeMojo(UpdateOriginBucketMojo.java:334)
      3. org.kuali.maven.mojo.s3.BaseMojo.execute(BaseMojo.java:94)
      3 frames
    6. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      1 frame
    7. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      6. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      9 frames
    8. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      3 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    10. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      4 frames