incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Yadav (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-734) api_refactoring: CreateAccountCmd fails to send response due to NPE in service layer
Date Thu, 03 Jan 2013 21:14:13 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rohit Yadav updated CLOUDSTACK-734:
-----------------------------------

    Description: 
CreateAccountCmd failed, the response breaks due to NPE in GenericDaoBase's findById, the
StringBuilder gets a null string to build on. Minor issue should be fixable.

Integration test params:
testclient.testengine.run: INFO: sending command: createAccount {'username': 'test-QG158F',
'domainid': u'fd06ad40-072c-40f8-b57f-bd5b6ae542a4', 'firstname': 'Test', 'lastname': 'User',
'accounttype': 0, 'password': '5f4dcc3b5aa765d61d8327deb882cf99', 'email': 'test@test.com'}
testclient.testengine.run: CRITICAL: server returned 530 error code

Error trace:

ERROR [cloud.api.ApiDispatcher] (1186644615@qtp-2144787160-3:) Exception while executing CreateAccountCmd:
java.lang.NullPointerException
	at java.lang.StringBuilder.<init>(StringBuilder.java:92)
	at com.cloud.utils.db.GenericDaoBase.findById(GenericDaoBase.java:947)
	at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
	at com.cloud.utils.db.GenericDaoBase.findByIdIncludingRemoved(GenericDaoBase.java:926)
	at com.cloud.api.ApiDBUtils.findAccountViewById(ApiDBUtils.java:1365)
	at com.cloud.api.ApiResponseHelper.createUserAccountResponse(ApiResponseHelper.java:279)
	at org.apache.cloudstack.api.command.admin.account.CreateAccountCmd.execute(CreateAccountCmd.java:150)
	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:233)
	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:471)
	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:345)
	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:311)
	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)

  was:
CreateAccountCmd failed, the response breaks due to NPE in GenericDaoBase's findById, the
StringBuilder gets a null string to build on. Minor issue should be fixable.

Integration test params:
testclient.testengine.run: INFO: sending command: createAccount {'username': 'test-QG158F',
'domainid': u'fd06ad40-072c-40f8-b57f-bd5b6ae542a4', 'firstname': 'Test', 'lastname': 'User',
'accounttype': 0, 'password': '5f4dcc3b5aa765d61d8327deb882cf99', 'email': 'test@test.com'}
testclient.testengine.run: CRITICAL: server returned 530 error code

    
> api_refactoring: CreateAccountCmd fails to send response due to NPE in service layer
> ------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-734
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-734
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.1.0
>         Environment: Fix on api_refactoring
>            Reporter: Rohit Yadav
>            Assignee: Min Chen
>            Priority: Critical
>             Fix For: 4.1.0
>
>
> CreateAccountCmd failed, the response breaks due to NPE in GenericDaoBase's findById,
the StringBuilder gets a null string to build on. Minor issue should be fixable.
> Integration test params:
> testclient.testengine.run: INFO: sending command: createAccount {'username': 'test-QG158F',
'domainid': u'fd06ad40-072c-40f8-b57f-bd5b6ae542a4', 'firstname': 'Test', 'lastname': 'User',
'accounttype': 0, 'password': '5f4dcc3b5aa765d61d8327deb882cf99', 'email': 'test@test.com'}
> testclient.testengine.run: CRITICAL: server returned 530 error code
> Error trace:
> ERROR [cloud.api.ApiDispatcher] (1186644615@qtp-2144787160-3:) Exception while executing
CreateAccountCmd:
> java.lang.NullPointerException
> 	at java.lang.StringBuilder.<init>(StringBuilder.java:92)
> 	at com.cloud.utils.db.GenericDaoBase.findById(GenericDaoBase.java:947)
> 	at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
> 	at com.cloud.utils.db.GenericDaoBase.findByIdIncludingRemoved(GenericDaoBase.java:926)
> 	at com.cloud.api.ApiDBUtils.findAccountViewById(ApiDBUtils.java:1365)
> 	at com.cloud.api.ApiResponseHelper.createUserAccountResponse(ApiResponseHelper.java:279)
> 	at org.apache.cloudstack.api.command.admin.account.CreateAccountCmd.execute(CreateAccountCmd.java:150)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:233)
> 	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:471)
> 	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:345)
> 	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:311)
> 	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 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

Mime
View raw message