You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Jessica Wang (JIRA)" <ji...@apache.org> on 2014/10/10 00:03:34 UTC
[jira] [Resolved] (CLOUDSTACK-6591) AddNetworkOffering Page gives
DB Exception while executing listServiceOfferings command
[ https://issues.apache.org/jira/browse/CLOUDSTACK-6591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jessica Wang resolved CLOUDSTACK-6591.
--------------------------------------
Resolution: Fixed
The bug has been fixed.
Please see my attached screenshot and API log file
> AddNetworkOffering Page gives DB Exception while executing listServiceOfferings command
> ---------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-6591
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6591
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Management Server
> Affects Versions: 4.4.0
> Environment: Latest build from 4.4 with commit ed088c72c461c08a061881f78cceae7f74794b9c
> Reporter: Sanjeev N
> Assignee: Jessica Wang
> Fix For: 4.4.0
>
> Attachments: 2014-10-09-jessica.PNG, api-2014-10-09-jessica.log, management-server.rar
>
>
> AddNetworkOffering Page gives DB Exception while executing listServiceOfferings command
> Steps to Reproduce:
> =================
> 1.Bring up CS with latest build from 4.4
> 2.In UI navigate to Offerings->Netowrk Offerings and click on AddNetworkOffering tab
> Response:
> =========
> Observed following response:
> 2014-05-07 07:20:41,417 DEBUG [c.c.a.ApiServlet] (catalina-exec-11:ctx-ed1b87b3) ===START=== 10.252.193.8 -- GET command=listSupportedNetworkServices&response=json&sessionkey=LMlB0FWN3VMYRejtxTxvcPpm7AM%3D&_=1399461637529
> 2014-05-07 07:20:41,440 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-11:ctx-ed1b87b3 ctx-04a81b66) Root Access granted to Acct[da4e2c1c-d5b5-11e3-99fa-06ab4600005f-admin] by RoleBasedEntityAccessChecker
> 2014-05-07 07:20:41,456 DEBUG [c.c.a.ApiServlet] (catalina-exec-15:ctx-58c99dc4) ===START=== 10.252.193.8 -- GET command=listServiceOfferings&issystem=true&systemvmtype=domainrouter&response=json&sessionkey=LMlB0FWN3VMYRejtxTxvcPpm7AM%3D&_=1399461637538
> 2014-05-07 07:20:41,457 DEBUG [c.c.a.ApiServlet] (catalina-exec-18:ctx-435b5a6a) ===START=== 10.252.193.8 -- GET command=listZones&response=json&sessionkey=LMlB0FWN3VMYRejtxTxvcPpm7AM%3D&listAll=true&_=1399461637612
> 2014-05-07 07:20:41,487 DEBUG [c.c.a.ApiServlet] (catalina-exec-11:ctx-ed1b87b3 ctx-04a81b66) ===END=== 10.252.193.8 -- GET command=listSupportedNetworkServices&response=json&sessionkey=LMlB0FWN3VMYRejtxTxvcPpm7AM%3D&_=1399461637529
> 2014-05-07 07:20:41,502 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-18:ctx-435b5a6a ctx-a35400ec) Root Access granted to Acct[da4e2c1c-d5b5-11e3-99fa-06ab4600005f-admin] by RoleBasedEntityAccessChecker
> 2014-05-07 07:20:41,510 WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-18:ctx-435b5a6a ctx-a35400ec) Received unknown parameters for command listZones. Unknown parameters : listall
> 2014-05-07 07:20:41,511 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-15:ctx-58c99dc4 ctx-b4f9b830) Root Access granted to Acct[da4e2c1c-d5b5-11e3-99fa-06ab4600005f-admin] by RoleBasedEntityAccessChecker
> 2014-05-07 07:20:41,532 ERROR [c.c.a.ApiServer] (catalina-exec-15:ctx-58c99dc4 ctx-b4f9b830) unhandled exception executing api command: [Ljava.lang.String;@142734ad
> com.cloud.utils.exception.CloudRuntimeException: Caught: com.mysql.jdbc.JDBC4PreparedStatement@4cccb78f: SELECT service_offering_view.id, service_offering_view.uuid, service_offering_view.name, service_offering_view.display_text, service_offering_view.tags, service_offering_view.use_local_storage, service_offering_view.system_use, service_offering_view.cpu, service_offering_view.speed, service_offering_view.ram_size, service_offering_view.nw_rate, service_offering_view.mc_rate, service_offering_view.ha_enabled, service_offering_view.limit_cpu_use, service_offering_view.is_volatile, service_offering_view.host_tag, service_offering_view.default_use, service_offering_view.vm_type, service_offering_view.customized_iops, service_offering_view.min_iops, service_offering_view.max_iops, service_offering_view.hv_ss_reserve, service_offering_view.sort_key, service_offering_view.bytes_read_rate, service_offering_view.bytes_write_rate, service_offering_view.iops_read_rate, service_offering_view.iops_write_rate, service_offering_view.created, service_offering_view.removed, service_offering_view.domain_id, service_offering_view.domain_uuid, service_offering_view.domain_name, service_offering_view.domain_path, service_offering_view.deployment_planner FROM service_offering_view WHERE service_offering_view.system_use = 1 AND AND service_offering_view.removed IS NULL ORDER BY service_offering_view.sort_key DESC LIMIT 0, 500
> at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:427)
> at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:361)
> at com.cloud.utils.db.GenericDaoBase.search(GenericDaoBase.java:345)
> at com.cloud.utils.db.GenericDaoBase.searchAndCount(GenericDaoBase.java:1296)
> at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
> at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> at com.sun.proxy.$Proxy278.searchAndCount(Unknown Source)
> at com.cloud.api.query.QueryManagerImpl.searchForServiceOfferingsInternal(QueryManagerImpl.java:2553)
> at com.cloud.api.query.QueryManagerImpl.searchForServiceOfferings(QueryManagerImpl.java:2414)
> at org.apache.cloudstack.api.command.user.offering.ListServiceOfferingsCmd.execute(ListServiceOfferingsCmd.java:106)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:119)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:679)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:502)
> at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:330)
> at com.cloud.api.ApiServlet.access$000(ApiServlet.java:54)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> Caused by: java.lang.NullPointerException
> ... 46 more
> 2014-05-07 07:20:41,552 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-18:ctx-435b5a6a ctx-a35400ec) Root Access granted to Acct[da4e2c1c-d5b5-11e3-99fa-06ab4600005f-admin] by RoleBasedEntityAccessChecker
> 2014-05-07 07:20:41,555 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-15:ctx-58c99dc4 ctx-b4f9b830) Root Access granted to Acct[da4e2c1c-d5b5-11e3-99fa-06ab4600005f-admin] by RoleBasedEntityAccessChecker
> 2014-05-07 07:20:41,557 DEBUG [c.c.a.ApiServlet] (catalina-exec-15:ctx-58c99dc4 ctx-b4f9b830) ===END=== 10.252.193.8 -- GET command=listServiceOfferings&issystem=true&systemvmtype=domainrouter&response=json&sessionkey=LMlB0FWN3VMYRejtxTxvcPpm7AM%3D&_=1399461637538
> 2014-05-07 07:20:41,559 DEBUG [c.c.a.ApiServlet] (catalina-exec-18:ctx-435b5a6a ctx-a35400ec) ===END=== 10.252.193.8 -- GET command=listZones&response=json&sessionkey=LMlB0FWN3VMYRejtxTxvcPpm7AM%3D&listAll=true&_=1399461637612
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)