[ 
https://issues.apache.org/jira/browse/JCLOUDS-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15128635#comment-15128635
 ] 

Ramesh Gojji commented on JCLOUDS-1064:
---------------------------------------

Zack,

Here are the logs ( I just ran the code again) 

jcloud.log
2016-02-02 09:10:14,861 DEBUG [org.jclouds.rest.internal.InvokeHttpMethod] 
[main] >> invoking AuthenticationApi.authenticateWithTenantNameAndCredentials
2016-02-02 09:10:14,868 DEBUG 
[org.jclouds.http.internal.JavaUrlHttpCommandExecutorService] [main] Sending 
request 585637727: POST https://okckeystonestg1.company.com:5443/v2.0/tokens 
HTTP/1.1
2016-02-02 09:10:18,870 DEBUG 
[org.jclouds.http.internal.JavaUrlHttpCommandExecutorService] [main] Receiving 
response 585637727: HTTP/1.1 200 OK
2016-02-02 09:10:18,913 DEBUG 
[org.jclouds.openstack.keystone.v2_0.suppliers.RegionIdToURIFromAccessForTypeAndVersion]
 [main] endpoints for apiType object-store and version 1: 
{RegionOne=[Endpoint{id=5dbcd479dd1b485bb7918c66f8e77ae3, region=RegionOne, 
publicURL=https://okcswiftstg1.company.com:8443/v1/AUTH_22b76e9063a5412090447ec669576f7b,
 
internalURL=https://okcswiftstg1.company.com:8443/v1/AUTH_22b76e9063a5412090447ec669576f7b,
 adminURL=https://okcswiftstg1.company.com:8443/}]}
2016-02-02 09:10:18,913 DEBUG 
[org.jclouds.location.suppliers.fromconfig.RegionIdsFromConfiguration] [main] 
no jclouds.regions configured for provider openstack-swift
2016-02-02 09:10:18,920 DEBUG 
[org.jclouds.location.suppliers.fromconfig.RegionIdsFromConfiguration] [main] 
no jclouds.regions configured for provider openstack-swift
2016-02-02 09:10:18,921 DEBUG 
[org.jclouds.location.suppliers.fromconfig.RegionIdsFromConfiguration] [main] 
no jclouds.regions configured for provider openstack-swift
2016-02-02 09:10:21,218 DEBUG [org.jclouds.rest.internal.InvokeHttpMethod] 
[main] >> invoking object:get
2016-02-02 09:10:21,220 DEBUG 
[org.jclouds.http.internal.JavaUrlHttpCommandExecutorService] [main] Sending 
request -597848653: GET 
https://okcswiftstg1.company.com:8443/v1/AUTH_22b76e9063a5412090447ec669576f7b/Workload_Trace_Repository/dom4j-1.6.1.jar
 HTTP/1.1
2016-02-02 09:10:22,497 DEBUG 
[org.jclouds.http.internal.JavaUrlHttpCommandExecutorService] [main] Receiving 
response -597848653: HTTP/1.1 200 OK
2016-02-02 09:10:22,598 DEBUG [org.jclouds.rest.internal.InvokeHttpMethod] 
[main] >> invoking container:get
2016-02-02 09:10:22,600 DEBUG 
[org.jclouds.http.internal.JavaUrlHttpCommandExecutorService] [main] Sending 
request -1620920744: HEAD 
https://okcswiftstg1.company.com:8443/v1/AUTH_22b76e9063a5412090447ec669576f7b/Workload_Trace_Repository
 HTTP/1.1
2016-02-02 09:10:23,156 DEBUG 
[org.jclouds.http.internal.JavaUrlHttpCommandExecutorService] [main] Receiving 
response -1620920744: HTTP/1.1 204 No Content

Here is jclouds-wire.log:

2016-02-02 09:10:14,868 DEBUG [jclouds.wire] [main] >> "Sensitive data in 
payload, use PROPERTY_LOGGER_WIRE_LOG_SENSITIVE_INFO override to enable logging 
this data."
2016-02-02 09:10:14,868 DEBUG [jclouds.headers] [main] >> POST 
https://okckeystonestg1.company.com:5443/v2.0/tokens HTTP/1.1
2016-02-02 09:10:14,868 DEBUG [jclouds.headers] [main] >> Accept: 
application/json
2016-02-02 09:10:14,868 DEBUG [jclouds.headers] [main] >> Content-Type: 
application/json
2016-02-02 09:10:14,868 DEBUG [jclouds.headers] [main] >> Content-Length: 120
2016-02-02 09:10:18,870 DEBUG [jclouds.headers] [main] << HTTP/1.1 200 OK
2016-02-02 09:10:18,870 DEBUG [jclouds.headers] [main] << Vary: 
X-Auth-Token,Accept-Encoding
2016-02-02 09:10:18,870 DEBUG [jclouds.headers] [main] << Date: Tue, 02 Feb 
2016 17:10:15 GMT
2016-02-02 09:10:18,870 DEBUG [jclouds.headers] [main] << Connection: close
2016-02-02 09:10:18,871 DEBUG [jclouds.headers] [main] << Server: Apache/2.2.15 
(CentOS)
2016-02-02 09:10:18,871 DEBUG [jclouds.headers] [main] << Content-Type: 
application/json
2016-02-02 09:10:18,871 DEBUG [jclouds.headers] [main] << Content-Length: 1267
2016-02-02 09:10:18,876 DEBUG [jclouds.wire] [main] << "{"access": {"token": 
{"issued_at": "2016-02-02T17:10:15.397755", "expires": "2016-02-03T17:10:15Z", 
"id": "db90139dd037441f99685e207f286614", "tenant": {"description": null, 
"enabled": true, "id": "22b76e9063a5412090447ec669576f7b", "name": 
"okcswiftstg1wtr"}}, "serviceCatalog": [{"endpoints": [{"adminURL": 
"https://okcswiftstg1.company.com:8443/";, "region": "RegionOne", "internalURL": 
"https://okcswiftstg1.company.com:8443/v1/AUTH_22b76e9063a5412090447ec669576f7b";,
 "id": "5dbcd479dd1b485bb7918c66f8e77ae3", "publicURL": 
"https://okcswiftstg1.company.com:8443/v1/AUTH_22b76e9063a5412090447ec669576f7b"}],
 "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": 
[{"adminURL": "https://okckeystonestg1.company.com:35443/v2.0";, "region": 
"RegionOne", "internalURL": "https://okckeystonestg1.company.com:5443/v2.0";, 
"id": "549a09b6840c4ff79a29b3412eb39dea", "publicURL": 
"https://okckeystonestg1.company.com:5443/v2.0"}], "endpoints_links": [], 
"type": "identity", "name": "keystone"}], "user": {"username": 
"okcswiftstg1wtr", "roles_links": [], "id": "okcswiftstg1wtr", "roles": 
[{"name": "swiftoperator"}], "name": "okcswiftstg1wtr"}, "metadata": 
{"is_admin": 0, "roles": ["c4ee9c642b6041659d4f5e71137457af"]}}}"
2016-02-02 09:10:21,220 DEBUG [jclouds.headers] [main] >> GET 
https://okcswiftstg1.company.com:8443/v1/AUTH_22b76e9063a5412090447ec669576f7b/Workload_Trace_Repository/dom4j-1.6.1.jar
 HTTP/1.1
2016-02-02 09:10:21,221 DEBUG [jclouds.headers] [main] >> Accept: 
application/json
2016-02-02 09:10:21,221 DEBUG [jclouds.headers] [main] >> X-Auth-Token: 
db90139dd037441f99685e207f286614
2016-02-02 09:10:22,497 DEBUG [jclouds.headers] [main] << HTTP/1.1 200 OK
2016-02-02 09:10:22,498 DEBUG [jclouds.headers] [main] << Date: Tue, 02 Feb 
2016 17:10:22 GMT
2016-02-02 09:10:22,498 DEBUG [jclouds.headers] [main] << Last-Modified: Mon, 
01 Feb 2016 21:09:41 GMT
2016-02-02 09:10:22,499 DEBUG [jclouds.headers] [main] << Via: 1.1 
oktst1379.company.com:8443
2016-02-02 09:10:22,499 DEBUG [jclouds.headers] [main] << X-Trans-Id: 
txd456f84d173f4b09a8d5c-0056b0e2fd
2016-02-02 09:10:22,500 DEBUG [jclouds.headers] [main] << Etag: 
f55ec270d3aab9e87fb6535cbbe33784
2016-02-02 09:10:22,500 DEBUG [jclouds.headers] [main] << X-Timestamp: 
1454360980.69740
2016-02-02 09:10:22,500 DEBUG [jclouds.headers] [main] << Connection: close
2016-02-02 09:10:22,501 DEBUG [jclouds.headers] [main] << Accept-Ranges: bytes
2016-02-02 09:10:22,501 DEBUG [jclouds.headers] [main] << Content-Type: 
application/octet-stream
2016-02-02 09:10:22,501 DEBUG [jclouds.headers] [main] << Content-Length: 163
2016-02-02 09:10:22,502 DEBUG [jclouds.headers] [main] << Content-Disposition: 
attachment; filename=dom4j-1.6.1.jar
2016-02-02 09:10:22,503 DEBUG [jclouds.wire] [main] << 
"[{"path":"Workload_Trace_Repository/dom4j-1.6.1.jar/slo/1454360979.385000/313898/33554432/00000001","etag":"4d8f51d3fe3900efc6e395be48030d6d","size_bytes":313898}]"
2016-02-02 09:10:22,601 DEBUG [jclouds.headers] [main] >> HEAD 
https://okcswiftstg1.company.com:8443/v1/AUTH_22b76e9063a5412090447ec669576f7b/Workload_Trace_Repository
 HTTP/1.1
2016-02-02 09:10:22,601 DEBUG [jclouds.headers] [main] >> Accept: 
application/json
2016-02-02 09:10:22,601 DEBUG [jclouds.headers] [main] >> X-Auth-Token: 
db90139dd037441f99685e207f286614
2016-02-02 09:10:23,156 DEBUG [jclouds.headers] [main] << HTTP/1.1 204 No 
Content
2016-02-02 09:10:23,157 DEBUG [jclouds.headers] [main] << 
X-Container-Object-Count: 11
2016-02-02 09:10:23,157 DEBUG [jclouds.headers] [main] << Date: Tue, 02 Feb 
2016 17:10:22 GMT
2016-02-02 09:10:23,158 DEBUG [jclouds.headers] [main] << 
X-Container-Bytes-Used: 11832447130
2016-02-02 09:10:23,158 DEBUG [jclouds.headers] [main] << Via: 1.1 
oktst1379.company.com:8443
2016-02-02 09:10:23,158 DEBUG [jclouds.headers] [main] << X-Trans-Id: 
txb0dbcc86189046539f067-0056b0e2fe
2016-02-02 09:10:23,159 DEBUG [jclouds.headers] [main] << X-Timestamp: 
1453490866.93697
2016-02-02 09:10:23,159 DEBUG [jclouds.headers] [main] << Connection: close
2016-02-02 09:10:23,159 DEBUG [jclouds.headers] [main] << Accept-Ranges: bytes


Andrew,  When I run the curl https://okcswiftstg1.company.com:8443/info, I get 
following ( I don't see slo. Does this means slo was not enabled?) 

{"formpost": {}, "staticweb": {}, "keystoneauth": {}, "swift": 
{"max_file_size": 5368709122, "account_listing_limit": 10000, "max_meta_count": 
90, "max_meta_value_length": 256, "container_listing_limit": 10000, "version": 
"1.13.1", "max_meta_name_length": 128, "max_object_name_length": 1024, 
"max_account_name_length": 256, "strict_cors_mode": true, 
"max_container_name_length": 256}, "tempurl": {"methods": ["GET", "HEAD", 
"PUT"]}}



> 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.<init>(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.<init>(JCloudTest.java:75)
>       at JCloudTest.main(JCloudTest.java:26)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to