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 003B917216 for ; Wed, 8 Oct 2014 03:57:56 +0000 (UTC) Received: (qmail 21006 invoked by uid 500); 8 Oct 2014 03:57:55 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 20965 invoked by uid 500); 8 Oct 2014 03:57:55 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 20954 invoked by uid 99); 8 Oct 2014 03:57:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 03:57:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 08 Oct 2014 03:57:54 +0000 Received: (qmail 20113 invoked by uid 99); 8 Oct 2014 03:57:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 03:57:34 +0000 Date: Wed, 8 Oct 2014 03:57:34 +0000 (UTC) From: "Sowmya Ramesh (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FALCON-788) Lineage: Minor bug fixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FALCON-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162975#comment-14162975 ] Sowmya Ramesh edited comment on FALCON-788 at 10/8/14 3:56 AM: --------------------------------------------------------------- [~s_venkatesh]: FalconWebException#newException does the required logging. {noformat} public static FalconWebException newException(String message, Response.Status status) { LOG.error("Action failed: {}\nError: {}", status, message); APIResult result = new APIResult(APIResult.Status.FAILED, message); return new FalconWebException(Response.status(status). entity(result).type(MediaType.TEXT_XML_TYPE).build()); } {noformat} was (Author: sowmyaramesh): [~svenkat]: FalconWebException#newException does the required logging. {noformat} public static FalconWebException newException(String message, Response.Status status) { LOG.error("Action failed: {}\nError: {}", status, message); APIResult result = new APIResult(APIResult.Status.FAILED, message); return new FalconWebException(Response.status(status). entity(result).type(MediaType.TEXT_XML_TYPE).build()); } {noformat} > Lineage: Minor bug fixes > ------------------------ > > Key: FALCON-788 > URL: https://issues.apache.org/jira/browse/FALCON-788 > Project: Falcon > Issue Type: Bug > Affects Versions: 0.6 > Reporter: Sowmya Ramesh > Assignee: Sowmya Ramesh > Labels: lineage > Fix For: 0.6 > > Attachments: FALCON-788.patch > > > Couple of issues > 1> Currently in LineageMetadataResource if there is a JSONException then WebApplicationException is thrown. Client receives INTERNAL_SERVER_ERROR with no message. Also Falcon applicaiton logs doesn't have stack trace. Throw FalconWebException which would log exception message and throw it for debugging purposes > 2> Fixed couple of minor bugs if MetadataMappingService is not enabled -- This message was sent by Atlassian JIRA (v6.3.4#6332)