Return-Path: X-Original-To: apmail-jclouds-notifications-archive@www.apache.org Delivered-To: apmail-jclouds-notifications-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A4CFF18CCE for ; Tue, 2 Feb 2016 12:36:49 +0000 (UTC) Received: (qmail 63428 invoked by uid 500); 2 Feb 2016 12:36:40 -0000 Delivered-To: apmail-jclouds-notifications-archive@jclouds.apache.org Received: (qmail 63394 invoked by uid 500); 2 Feb 2016 12:36:40 -0000 Mailing-List: contact notifications-help@jclouds.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jclouds.apache.org Delivered-To: mailing list notifications@jclouds.apache.org Received: (qmail 63369 invoked by uid 99); 2 Feb 2016 12:36:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 12:36:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DCCF92C1F57 for ; Tue, 2 Feb 2016 12:36:39 +0000 (UTC) Date: Tue, 2 Feb 2016 12:36:39 +0000 (UTC) From: "Zack Shoylev (JIRA)" To: notifications@jclouds.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (JCLOUDS-1064) multipart upload throwing : NullPointerException: Null partETag MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCLOUDS-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15128179#comment-15128179 ] Zack Shoylev commented on JCLOUDS-1064: --------------------------------------- What are the wire logs like with this version of the code? > multipart upload throwing : NullPointerException: Null partETag > --------------------------------------------------------------- > > Key: JCLOUDS-1064 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1064 > Project: jclouds > Issue Type: Bug > Components: jclouds-blobstore > Affects Versions: 2.0.0 > Reporter: Ramesh Gojji > Assignee: Zack Shoylev > Labels: openstack-swift > > I am trying to upload a file in chunks to the openstack-swift. Here is the snippet of the code I am using to upload a file named dom4j-1.6.1.jar in chunks. > blobStore.putBlob("jclouds-example", blob) does work, but if I add multipart to the method, then I get NullPointerException: Null partETag. > {code:java} > ByteSource payload = Files.asByteSource(tempFile); > Blob blob = blobStore.blobBuilder(objectName) > .payload(payload) > .contentDisposition("attachment; filename=dom4j-1.6.1.jar") > .contentMD5(payload.hash(Hashing.md5())) > .contentLength(payload.size()) > .contentType(MediaType.OCTET_STREAM.toString()) > .build(); > System.out.println(blob.getMetadata().getName()); > // Upload the Blob > String eTag = blobStore.putBlob("jclouds-example", blob, multipart()); > {code} > Exception Stacktrace: > {noformat} > Exception in thread "main" java.lang.NullPointerException: Null partETag > at org.jclouds.blobstore.domain.AutoValue_MultipartPart.(AutoValue_MultipartPart.java:20) > at org.jclouds.blobstore.domain.MultipartPart.create(MultipartPart.java:29) > at org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.uploadMultipartPart(RegionScopedSwiftBlobStore.java:481) > at org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.putMultipartBlob(RegionScopedSwiftBlobStore.java:567) > at org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.putBlob(RegionScopedSwiftBlobStore.java:244) > at JCloudTest.(JCloudTest.java:75) > at JCloudTest.main(JCloudTest.java:26) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)