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] [Commented] (KARAF-3083) Don't display stack trace when the repositories.properties doesn't exist
Date Sun, 29 Jun 2014 20:13:24 GMT

    [ https://issues.apache.org/jira/browse/KARAF-3083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047241#comment-14047241
] 

Jean-Baptiste Onofré commented on KARAF-3083:
---------------------------------------------

Fixed on cave-2.x: https://git-wip-us.apache.org/repos/asf?p=karaf-cave.git;a=commitdiff;h=0e4b18406f506e0cc79b240bcff1e76b783f6318

> Don't display stack trace when the repositories.properties doesn't exist
> ------------------------------------------------------------------------
>
>                 Key: KARAF-3083
>                 URL: https://issues.apache.org/jira/browse/KARAF-3083
>             Project: Karaf
>          Issue Type: Improvement
>          Components: cave-repository, cave-server
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: cave-2.3.1, cave-3.0.0
>
>
> Just after the installation of the cave-server feature, the repositories.properties file
is not yet created. We have a warn in the log file but we also have the complete stack trace:
> {code}
> 2014-06-29 22:02:08,059 | WARN  | Local user karaf | CaveRepositoryServiceImpl      
 | 207 - org.apache.karaf.cave.server.storage - 3.0.0.SNAPSHOT | Unable to load Cave repositories
> java.io.FileNotFoundException: cave/repositories.properties (No such file or directory)
>         at java.io.FileInputStream.open(Native Method)[:1.7.0_51]
>         at java.io.FileInputStream.<init>(FileInputStream.java:146)[:1.7.0_51]
>         at org.apache.karaf.cave.server.storage.CaveRepositoryServiceImpl.loadStorage(CaveRepositoryServiceImpl.java:214)
>         at org.apache.karaf.cave.server.storage.CaveRepositoryServiceImpl.init(CaveRepositoryServiceImpl.java:231)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_51]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_51]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_51]
>         at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_51]
>         at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)
>         at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)
>         at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)
>         at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)
>         at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)
>         at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_51]
>         at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
>         at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
> ...
> {code}
> This stack trace should go in trace log level.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message