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 8A0C2105BC for ; Fri, 23 Aug 2013 22:21:52 +0000 (UTC) Received: (qmail 43331 invoked by uid 500); 23 Aug 2013 22:21:52 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 43313 invoked by uid 500); 23 Aug 2013 22:21:52 -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 43275 invoked by uid 500); 23 Aug 2013 22:21:52 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 43248 invoked by uid 99); 23 Aug 2013 22:21:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 22:21:52 +0000 Date: Fri, 23 Aug 2013 22:21:52 +0000 (UTC) From: "Min Chen (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-4481) API: listEventTypes returns nothing; raises ERROR in MS logs 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-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13749080#comment-13749080 ] Min Chen commented on CLOUDSTACK-4481: -------------------------------------- This is a regression introduced by commit e7a554fc6a23a49949c2d88d6ef680682c6f6bc4, which added a private field into EventTypes. > API: listEventTypes returns nothing; raises ERROR in MS logs > ------------------------------------------------------------ > > Key: CLOUDSTACK-4481 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4481 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API > Affects Versions: 4.2.1 > Environment: Master with VMWARE > Reporter: Parth Jagirdar > Assignee: Min Chen > Priority: Critical > > Issue a listEventTypes on 8080 or 8096 and observe that API returns nothing. > Snippet from API log. > 2013-08-23 14:21:13,651 INFO [cloud.api.ApiServer] (catalina-exec-15:null) (userId=2 accountId=2 sessionId=A9E1E89554B6F0750B7AEB28C32D1682) 10.215.2.19 -- GET command=listEventTypes&response=json&sessionkey=AbjeAm3ebx%2B4f2T1U74jCb%2FZSkQ%3D&listAll=true&page=1&pagesize=20&_=1377293266540 200 { "listeventtypesresponse" : { } } > Following exception seen in MS log. > 2013-08-23 14:21:13,648 ERROR [cloud.server.ManagementServerImpl] (catalina-exec-15:null) Error while listing Event Types > java.lang.IllegalAccessException: Class com.cloud.server.ManagementServerImpl can not access a member of class com.cloud.event.EventTypes with modifiers "private static" > at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95) > at java.lang.reflect.Field.doSecurityCheck(Field.java:978) > at java.lang.reflect.Field.getFieldAccessor(Field.java:914) > at java.lang.reflect.Field.get(Field.java:376) > at com.cloud.server.ManagementServerImpl.listEventTypes(ManagementServerImpl.java:3728) > at org.apache.cloudstack.api.command.user.event.ListEventTypesCmd.execute(ListEventTypesCmd.java:45) > 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: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:2268) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 2013-08-23 14:21:13,651 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===END=== 10.215.2.19 -- GET command=listEventTypes&response=json&sessionkey=AbjeAm3ebx%2B4f2T1U74jCb%2FZSkQ%3D&listAll=true&page=1&pagesize=20&_=1377293266540 -- 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