karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (KARAF-670) Missing ${karaf.base}/system cause NullPointerException
Date Thu, 09 Jun 2011 09:58:59 GMT

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

Jean-Baptiste Onofré resolved KARAF-670.
----------------------------------------

    Resolution: Fixed

> Missing ${karaf.base}/system cause NullPointerException
> -------------------------------------------------------
>
>                 Key: KARAF-670
>                 URL: https://issues.apache.org/jira/browse/KARAF-670
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: running karaf via Talend Service Factory 2.4.0.0, Win7, Oracle JDK1.6.0.25
>            Reporter: Chris Dolan
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.2, 3.0.0
>
>
> I manually created an instance and set karaf.base to the new instance folder, but I forgot
to create the folder ${karaf.base}/system. This missing folder died on dir.listFiles() in
Main.findFiles(). That method checks theFile for existence, but its caller forgets to check
bundleDir.
> Could not create framework: java.lang.NullPointerException
> java.lang.NullPointerException
> 	at org.apache.karaf.main.Main.findFile(Main.java:1063)
> 	at org.apache.karaf.main.Main.findFile(Main.java:1048)
> 	at org.apache.karaf.main.Main.processConfigurationProperties(Main.java:1014)
> 	at org.apache.karaf.main.Main.loadConfigProperties(Main.java:873)
> 	at org.apache.karaf.main.Main.launch(Main.java:225)
> 	at org.apache.karaf.main.Main.main(Main.java:416)
> Error occured shutting down framework: java.lang.NullPointerException
> java.lang.NullPointerException
> 	at org.apache.karaf.main.Main.awaitShutdown(Main.java:274)
> 	at org.apache.karaf.main.Main.main(Main.java:423)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message