You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2011/06/09 09:15:59 UTC
[jira] [Commented] (KARAF-670) Missing ${karaf.base}/system cause
NullPointerException
[ https://issues.apache.org/jira/browse/KARAF-670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046368#comment-13046368 ]
Jean-Baptiste Onofré commented on KARAF-670:
--------------------------------------------
Karaf can't start without the system folder as it contains the OSGi framework (Apache Felix framework and Equinox).
So, I'm gonna add a check in the Main to see if the system folder (identified by ${karaf.default.repository}/system) is available at bootstrap.
In the same way, etc folder should be check.
> 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