Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72BE218808 for ; Tue, 12 Jan 2016 11:54:40 +0000 (UTC) Received: (qmail 32029 invoked by uid 500); 12 Jan 2016 11:54:40 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 31969 invoked by uid 500); 12 Jan 2016 11:54:40 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 31938 invoked by uid 99); 12 Jan 2016 11:54:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2016 11:54:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D37F32C1F60 for ; Tue, 12 Jan 2016 11:54:39 +0000 (UTC) Date: Tue, 12 Jan 2016 11:54:39 +0000 (UTC) From: "Tom White (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AVRO-1780) Avro tools jar fails with NPE 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/AVRO-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom White updated AVRO-1780: ---------------------------- Attachment: AVRO-1780.patch Here's a fix that prints the top part of the notice file. > Avro tools jar fails with NPE > ----------------------------- > > Key: AVRO-1780 > URL: https://issues.apache.org/jira/browse/AVRO-1780 > Project: Avro > Issue Type: Bug > Components: java > Affects Versions: 1.8.0 > Reporter: Sean Busbey > Priority: Blocker > Fix For: 1.8.0 > > Attachments: AVRO-1780.patch > > > following our license/notice updates, teh avro-tools jar fails with a NPE because it wants to print out a NOTICE.txt in the root of the jar. > {code} > busbey$ java -jar avro-tools-1.8.0.jar > Version 1.8.0 of Exception in thread "main" java.lang.NullPointerException > at org.apache.avro.tool.Main.printStream(Main.java:105) > at org.apache.avro.tool.Main.run(Main.java:92) > at org.apache.avro.tool.Main.main(Main.java:74) > busbey$ java -jar avro-tools-1.8.0.jar --help > Version 1.8.0 of Exception in thread "main" java.lang.NullPointerException > at org.apache.avro.tool.Main.printStream(Main.java:105) > at org.apache.avro.tool.Main.run(Main.java:92) > at org.apache.avro.tool.Main.main(Main.java:74) > {code} > We should probably not print the entire NOTICE unless a cli arg is given, since it is much bigger now. -- This message was sent by Atlassian JIRA (v6.3.4#6332)