Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8A5A10629 for ; Fri, 2 Aug 2013 20:43:49 +0000 (UTC) Received: (qmail 45063 invoked by uid 500); 2 Aug 2013 20:43:49 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 45049 invoked by uid 500); 2 Aug 2013 20:43:49 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 45041 invoked by uid 500); 2 Aug 2013 20:43:49 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 45038 invoked by uid 99); 2 Aug 2013 20:43:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Aug 2013 20:43:49 +0000 Date: Fri, 2 Aug 2013 20:43:49 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-3748) AddS3Cmd NPE 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/CLOUDSTACK-3748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13728079#comment-13728079 ] ASF subversion and git services commented on CLOUDSTACK-3748: ------------------------------------------------------------- Commit ad20a9b6fa09d3595c2dec8c213cb3fee35d1973 in branch refs/heads/4.2 from [~minchen07] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=ad20a9b ] CLOUDSTACK-3748:AddS3Cmd NPE. > AddS3Cmd NPE > ------------- > > Key: CLOUDSTACK-3748 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3748 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API > Affects Versions: 4.2.0 > Reporter: John Burwell > Assignee: Min Chen > Priority: Blocker > Fix For: 4.2.0 > > > When executing the addS3 API command using the following parameters: > The following NPE occurred: > "s3" : { > "accesskey": "CIQFFQ7NAACERI99P9_B", > "secretkey": "6jmfhptBBvWile1bUTSbnJCYW8qnPoU8WaNpIw==", > "bucket": "jsb-cloudstack-templates", > "endpoint": "192.168.56.100:8080", > "usehttps": false > } > ERROR [cloud.api.ApiServer] (705052256@qtp-836177268-0:) unhandled exception executing api command: addS3 > java.lang.NullPointerException > at org.apache.cloudstack.api.command.admin.storage.AddS3Cmd.execute(AddS3Cmd.java:104) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) > at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514) > at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372) > at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305) > at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) > at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) > at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) > This NPE causes the API call to fail with a 530 error as depicted in the following Marvin traceback: > Traceback (most recent call last): > File "/Users/jburwell/.virtualenvs/cloudstack/bin/nosetests", line 8, in > load_entry_point('nose==1.3.0', 'console_scripts', 'nosetests')() > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/nose/core.py", line 118, in __init__ > **extra_args) > File "/Users/jburwell/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py", line 94, in __init__ > self.parseArgs(argv) > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/nose/core.py", line 135, in parseArgs > self.config.configure(argv, doc=self.usage()) > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/nose/config.py", line 344, in configure > self.plugins.configure(options, self) > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/nose/plugins/manager.py", line 284, in configure > cfg(options, config) > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/nose/plugins/manager.py", line 99, in __call__ > return self.call(*arg, **kw) > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/nose/plugins/manager.py", line 167, in simple > result = meth(*arg, **kw) > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/marvin/marvinPlugin.py", line 68, in configure > deploy.loadCfg() if options.load else deploy.deploy() > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/marvin/deployDataCenter.py", line 577, in deploy > self.configureS3(self.config.s3) > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/marvin/deployDataCenter.py", line 571, in configureS3 > self.apiClient.addS3(command) > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 1298, in addS3 > response = self.connection.marvin_request(command, response_type=response, method=method) > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 222, in marvin_request > response = jsonHelper.getResultObj(response.json(), response_type) > File "/Users/jburwell/.virtualenvs/cloudstack/lib/python2.7/site-packages/marvin/jsonHelper.py", line 148, in getResultObj > raise cloudstackException.cloudstackAPIException(respname, errMsg) > marvin.cloudstackException.cloudstackAPIException: Execute cmd: adds3 failed, due to: errorCode: 530, errorText:None -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira