jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davide Giannella (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (OAK-4045) NPE when running oak-run from within the IDE
Date Thu, 10 Mar 2016 11:20:42 GMT

     [ https://issues.apache.org/jira/browse/OAK-4045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Davide Giannella closed OAK-4045.
---------------------------------

Bulk close for 1.4.0

> NPE when running oak-run from within the IDE
> --------------------------------------------
>
>                 Key: OAK-4045
>                 URL: https://issues.apache.org/jira/browse/OAK-4045
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: run
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>              Labels: tooling
>             Fix For: 1.4, 1.4.0
>
>
> Running oak-run from within the IDE causes a {{NPE}}:
> {code}
> Exception in thread "main" java.lang.NullPointerException
> 	at java.util.Properties$LineReader.readLine(Properties.java:434)
> 	at java.util.Properties.load0(Properties.java:353)
> 	at java.util.Properties.load(Properties.java:341)
> 	at org.apache.jackrabbit.oak.run.Main.getProductVersion(Main.java:76)
> 	at org.apache.jackrabbit.oak.run.Main.getProductVersion(Main.java:66)
> 	at org.apache.jackrabbit.oak.run.Main.getProductInfo(Main.java:53)
> 	at org.apache.jackrabbit.oak.run.Main.printProductInfo(Main.java:86)
> {code}
> This is caused by not checking the return value of {{getResourceAsStream}} for {{null}}
when trying to load {{/META-INF/maven/org.apache.jackrabbit/oak-run/pom.properties}}. That
file is not on the class path when running from within the IDE. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message