Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A28B18C56 for ; Fri, 30 Oct 2015 17:02:29 +0000 (UTC) Received: (qmail 21840 invoked by uid 500); 30 Oct 2015 17:02:29 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 21807 invoked by uid 500); 30 Oct 2015 17:02:29 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 21796 invoked by uid 99); 30 Oct 2015 17:02:29 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 17:02:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 04EA41801DE for ; Fri, 30 Oct 2015 17:02:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.97 X-Spam-Level: X-Spam-Status: No, score=0.97 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ZONj2IxjwCgM for ; Fri, 30 Oct 2015 17:02:28 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 0697520634 for ; Fri, 30 Oct 2015 17:02:28 +0000 (UTC) Received: (qmail 20688 invoked by uid 99); 30 Oct 2015 17:02:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 17:02:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B979E2C1F57 for ; Fri, 30 Oct 2015 17:02:27 +0000 (UTC) Date: Fri, 30 Oct 2015 17:02:27 +0000 (UTC) From: "Sowmya Ramesh (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FALCON-1565) Listing API non-intuitive response if time > endTime 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/FALCON-1565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sowmya Ramesh updated FALCON-1565: ---------------------------------- Fix Version/s: (was: 0.8) trunk > Listing API non-intuitive response if time > endTime > ---------------------------------------------------- > > Key: FALCON-1565 > URL: https://issues.apache.org/jira/browse/FALCON-1565 > Project: Falcon > Issue Type: Bug > Affects Versions: 0.8 > Environment: QA > Reporter: Pragya Mittal > Assignee: Balu Vellanki > Labels: newbie > Fix For: trunk > > > While listing for an entity with time > endTime, response shows stack trace. Instead error mesage should be shown as response. > Feed definition is : > {noformat} > > > > > > > minutes(2) > > UTC > > > > > > > > > > > > > > > > > > > {noformat} > Listing API response > {noformat} > dataqa@lda01:/mnt/users/pragya/defn/sla$ falcon instance -type feed -name sla-feed -start 2015-10-30T11:20Z -listing > ERROR: Bad Request;FAILEDua1/org.apache.falcon.FalconException::javax.ws.rs.WebApplicationException: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"instancesResult"). Expected elements are <{}feedInstanceResult>,<{}instance>,<{}result> > {noformat} > Stack trace is : > {noformat} > 2015-10-28 12:15:54,414 ERROR - [1963200284@qtp-2030538903-5 - 0f02eeb7-1f02-4bea-bbb7-85d5e61b568f:dataqa:GET//instance/listing/feed/sla-feed] ~ Failed to get instances listing (AbstractInstanceManager:528) > org.apache.falcon.FalconException: Specified End date 2015-10-28T12:15Z is before the entity was scheduled 2015-10-30T11:20Z > at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEndDate(AbstractInstanceManager.java:853) > at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEndDate(AbstractInstanceManager.java:842) > at org.apache.falcon.resource.AbstractInstanceManager.getListing(AbstractInstanceManager.java:524) > at org.apache.falcon.resource.InstanceManager.getListing(InstanceManager.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) > at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185) > at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)