You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Tom White (JIRA)" <ji...@apache.org> on 2016/01/12 12:54:39 UTC

[jira] [Updated] (AVRO-1780) Avro tools jar fails with NPE

     [ 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)