[
https://issues.apache.org/jira/browse/FELIX-1517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet resolved FELIX-1517.
------------------------------------
Resolution: Fixed
Fix Version/s: karaf-1.0.0
Assignee: Guillaume Nodet
URL: http://svn.apache.org/viewvc?rev=808019&view=rev
Log:
FELIX-1517 and FELIX-1528: use a defined location for the storage of the list
of managed instances and avoid an exception if one instance has been deleted
Modified:
felix/trunk/karaf/gshell/gshell-admin/src/main/java/org/apache/felix/karaf/gshell/admin/AdminServiceMBean.java
felix/trunk/karaf/gshell/gshell-admin/src/main/java/org/apache/felix/karaf/gshell/admin/Instance.java
felix/trunk/karaf/gshell/gshell-admin/src/main/java/org/apache/felix/karaf/gshell/admin/internal/AdminServiceImpl.java
felix/trunk/karaf/gshell/gshell-admin/src/main/java/org/apache/felix/karaf/gshell/admin/internal/AdminServiceMBeanImpl.java
felix/trunk/karaf/gshell/gshell-admin/src/main/java/org/apache/felix/karaf/gshell/admin/internal/InstanceImpl.java
felix/trunk/karaf/gshell/gshell-admin/src/main/resources/OSGI-INF/blueprint/gshell-admin.xml
> Manually deleting an instance breaks admin:list
> -----------------------------------------------
>
> Key: FELIX-1517
> URL: https://issues.apache.org/jira/browse/FELIX-1517
> Project: Felix
> Issue Type: Bug
> Components: Karaf
> Affects Versions: karaf-1.0.0
> Reporter: David Bosschaert
> Assignee: Guillaume Nodet
> Fix For: karaf-1.0.0
>
>
> When I delete an instance manually, by simply deleting the subdirectory from
> the instances directory, it breaks the admin:list command.
> When I run that command afterwards I get this:
> ka...@root> admin:list
> Port State Pid Name
> pipe: java.io.FileNotFoundException:
> K:\assembly\target\apache-felix-karaf-1.2.0
> -SNAPSHOT\instances\too\etc\org.apache.felix.karaf.shell.cfg (The system
> cannot
> find the path specified)
> java.io.FileNotFoundException:
> K:\assembly\target\apache-felix-karaf-1.2.0-SNAPS
> HOT\instances\too\etc\org.apache.felix.karaf.shell.cfg (The system cannot
> find t
> he path specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at
> org.apache.felix.karaf.gshell.admin.internal.InstanceImpl.getPort(InstanceImpl.java:76)
> at
> org.apache.felix.karaf.gshell.admin.internal.commands.ListCommand.doExecute(ListCommand.java:42)
> at
> org.apache.felix.karaf.gshell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)
> at
> org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:34)
> at
> org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:45)
> at
> org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:208)
> at
> org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:147)
> at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:91)
> at
> org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:78)
> at
> org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
> at
> org.apache.felix.karaf.gshell.console.jline.Console.run(Console.java:115)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.