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 2013/02/14 19:11:12 UTC

[jira] [Commented] (KARAF-2035) Not able to clone the root instance

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

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

NB: the problem occurs with any started instances. When an instance is started, Windows "considers" that it locks a file resource, that's why the clone is not possible. I'm going to find a workaround using a temp file.
                
> Not able to clone the root instance
> -----------------------------------
>
>                 Key: KARAF-2035
>                 URL: https://issues.apache.org/jira/browse/KARAF-2035
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-instance, karaf-shell
>    Affects Versions: 2.3.0
>         Environment: Windows 7, Oracle JDK 1.6
>            Reporter: Claudiu Dumitrescu
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.3.1, 3.0.0
>
>
> When I try to clone the root instance I get the exception:
> {color:red}Error executing command: The process cannot access the file because another process has locked a portion of the file{color}
> From the log I read:
> {quote}
> java.io.IOException: The process cannot access the file because another process has locked a portion of the file
>         at java.io.FileInputStream.readBytes(Native Method)[:1.6.0_35]
>         at java.io.FileInputStream.read(FileInputStream.java:198)[:1.6.0_35]
>         at org.apache.karaf.admin.internal.AdminServiceImpl.copy(AdminServiceImpl.java:530)[43:org.apache.karaf.admin.core:2.3.0]
>         at org.apache.karaf.admin.internal.AdminServiceImpl.copy(AdminServiceImpl.java:523)[43:org.apache.karaf.admin.core:2.3.0]
>         at org.apache.karaf.admin.internal.AdminServiceImpl.copy(AdminServiceImpl.java:523)[43:org.apache.karaf.admin.core:2.3.0]
>         at org.apache.karaf.admin.internal.AdminServiceImpl.copy(AdminServiceImpl.java:523)[43:org.apache.karaf.admin.core:2.3.0]
>         at org.apache.karaf.admin.internal.AdminServiceImpl.cloneInstance(AdminServiceImpl.java:325)[43:org.apache.karaf.admin.core:2.3.0]
>         at Proxy4cd52749_879e_4fa9_bb31_30fa2e0339f2.cloneInstance(Unknown Source)[:]
>         at org.apache.karaf.admin.command.CloneCommand.doExecute(CloneCommand.java:57)[27:org.apache.karaf.admin.command:2.3.0]
>         at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.0]
>         at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.0]
>         at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[14:org.apache.karaf.shell.console:2.3.0]
>         at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14:org.apache.karaf.shell.console:2.3.0]
>         at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[14:org.apache.karaf.shell.console:2.3.0]
>         at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.karaf.shell.console:2.3.0]
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:org.apache.karaf.shell.console:2.3.0]
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:org.apache.karaf.shell.console:2.3.0]
>         at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.0]
>         at org.apache.karaf.shell.console.jline.Console.run(Console.java:175)[14:org.apache.karaf.shell.console:2.3.0]
>         at java.lang.Thread.run(Thread.java:662)[:1.6.0_35]
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira