Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

com.gkatzioura.maven.cloud.listener.TransferListenerContainerImpl.lambda$fireTransferProgress produces java.lang.IndexOutOfBoundsException #50

Open
pbirnie opened this issue May 14, 2019 · 0 comments · May be fixed by #82

Comments

@pbirnie
Copy link

pbirnie commented May 14, 2019

Hi, great idea for a mvn enhancement however at the moment I am getting:

    <distributionManagement>
        <snapshotRepository>
            <id>ave-repo-bucket-snapshot</id>
            <url>gs://bucket-ave-build-artifact/snapshot</url>
        </snapshotRepository>
        <repository>
            <id>ave-repo-bucket-release</id>
            <url>gs://bucket-ave-build-artifact/release</url>
        </repository>
    </distributionManagement>
...
        <extensions>
            <extension>
                <groupId>com.gkatzioura.maven.cloud</groupId>
                <artifactId>google-storage-wagon</artifactId>
                <version>1.8</version>
            </extension>
        </extensions>
    </build>

produces

Caused by: java.lang.IndexOutOfBoundsException
    at java.nio.ByteBuffer.wrap (ByteBuffer.java:395)
    at org.eclipse.aether.transport.wagon.WagonTransferListener.transferProgress (WagonTransferListener.java:64)
    at com.gkatzioura.maven.cloud.listener.TransferListenerContainerImpl.lambda$fireTransferProgress$2 (TransferListenerContainerImpl.java:75)
    at java.util.Vector.forEach (Vector.java:1387)
    at com.gkatzioura.maven.cloud.listener.TransferListenerContainerImpl.fireTransferProgress (TransferListenerContainerImpl.java:75)
    at com.gkatzioura.maven.cloud.transfer.TransferProgressImpl.progress (TransferProgressImpl.java:36)
    at com.gkatzioura.maven.cloud.transfer.TransferProgressFileInputStream.read (TransferProgressFileInputStream.java:65)
    at com.vorstella.shade.com.google.api.client.util.ByteStreams.copy (ByteStreams.java:51)
    at com.vorstella.shade.com.google.api.client.util.IOUtils.copy (IOUtils.java:94)
    at com.vorstella.shade.com.google.api.client.http.AbstractInputStreamContent.writeTo (AbstractInputStreamContent.java:72)
    at com.vorstella.shade.com.google.api.client.http.MultipartContent.writeTo (MultipartContent.java:107)
    at com.vorstella.shade.com.google.api.client.http.GZipEncoding.encode (GZipEncoding.java:49)
    at com.vorstella.shade.com.google.api.client.http.HttpEncodingStreamingContent.writeTo (HttpEncodingStreamingContent.java:51)
    at com.vorstella.shade.com.google.api.client.http.javanet.NetHttpRequest$DefaultOutputWriter.write (NetHttpRequest.java:76)
    at com.vorstella.shade.com.google.api.client.http.javanet.NetHttpRequest.writeContentToOutputStream (NetHttpRequest.java:156)
    at com.vorstella.shade.com.google.api.client.http.javanet.NetHttpRequest.execute (NetHttpRequest.java:117)
    at com.vorstella.shade.com.google.api.client.http.javanet.NetHttpRequest.execute (NetHttpRequest.java:84)
    at com.vorstella.shade.com.google.api.client.http.HttpRequest.execute (HttpRequest.java:1011)
    at com.vorstella.shade.com.google.api.client.googleapis.media.MediaHttpUploader.executeCurrentRequestWithoutGZip (MediaHttpUploader.java:548)
    at com.vorstella.shade.com.google.api.client.googleapis.media.MediaHttpUploader.executeCurrentRequest (MediaHttpUploader.java:565)
    at com.vorstella.shade.com.google.api.client.googleapis.media.MediaHttpUploader.directUpload (MediaHttpUploader.java:360)
    at com.vorstella.shade.com.google.api.client.googleapis.media.MediaHttpUploader.upload (MediaHttpUploader.java:334)
    at com.vorstella.shade.com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed (AbstractGoogleClientRequest.java:508)
    at com.vorstella.shade.com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed (AbstractGoogleClientRequest.java:432)
    at com.vorstella.shade.com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute (AbstractGoogleClientRequest.java:549)
    at com.vorstella.shade.com.google.cloud.storage.spi.v1.HttpStorageRpc.create (HttpStorageRpc.java:303)
    at com.vorstella.shade.com.google.cloud.storage.StorageImpl.create (StorageImpl.java:161)
    at com.gkatzioura.maven.cloud.gcs.GoogleStorageRepository.put (GoogleStorageRepository.java:101)
    at com.gkatzioura.maven.cloud.gcs.GoogleStorageWagon.put (GoogleStorageWagon.java:87)
    at org.eclipse.aether.transport.wagon.WagonTransporter$PutTaskRunner.run (WagonTransporter.java:686)
    at org.eclipse.aether.transport.wagon.WagonTransporter.execute (WagonTransporter.java:435)
    at org.eclipse.aether.transport.wagon.WagonTransporter.put (WagonTransporter.java:418)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask (BasicRepositoryConnector.java:554)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:363)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector.put (BasicRepositoryConnector.java:287)
    at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:295)
    at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:211)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy (DefaultRepositorySystem.java:381)
    at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (DefaultArtifactDeployer.java:142)
    at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy (AbstractDeployMojo.java:167)
    at org.apache.maven.plugin.deploy.DeployMojo.execute (DeployMojo.java:149)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant