karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Anstey (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KARAF-2416) OverlappingFileLockException when cloning an instance
Date Mon, 29 Jul 2013 16:57:49 GMT

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

Jonathan Anstey updated KARAF-2416:
-----------------------------------

    Attachment: KARAF-2416.patch

Fixes the issue on the karaf-2.x branch.
                
> OverlappingFileLockException when cloning an instance
> -----------------------------------------------------
>
>                 Key: KARAF-2416
>                 URL: https://issues.apache.org/jira/browse/KARAF-2416
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.3.2
>            Reporter: Jonathan Anstey
>         Attachments: KARAF-2416.patch
>
>
> Hitting an OverlappingFileLockException when I try to clone an instance:
> {code}
> [janstey@bender apache-karaf-2.3.2]$ ./bin/karaf 
>         __ __                  ____      
>        / //_/____ __________ _/ __/      
>       / ,<  / __ `/ ___/ __ `/ /_        
>      / /| |/ /_/ / /  / /_/ / __/        
>     /_/ |_|\__,_/_/   \__,_/_/         
>   Apache Karaf (2.3.2)
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or type 'osgi:shutdown' or 'logout' to shutdown Karaf.
> karaf@root> admin:clone --ssh-port 8102 --rmi-server-port 44445 --rmi-registry-port
1100 root myClone
> Error executing command: java.nio.channels.OverlappingFileLockException
> karaf@root> log:display-exception
> java.nio.channels.OverlappingFileLockException
> 	at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)[:1.7.0_11]
> 	at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152)[:1.7.0_11]
> 	at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:972)[:1.7.0_11]
> 	at java.nio.channels.FileChannel.lock(FileChannel.java:1052)[:1.7.0_11]
> 	at org.apache.karaf.util.properties.FileLockUtils.execute(FileLockUtils.java:66)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.util.properties.FileLockUtils.execute(FileLockUtils.java:94)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.admin.internal.AdminServiceImpl.execute(AdminServiceImpl.java:215)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.admin.internal.AdminServiceImpl.getKarafPort(AdminServiceImpl.java:656)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.admin.internal.AdminServiceImpl.getInstanceSshPort(AdminServiceImpl.java:632)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.admin.internal.AdminServiceImpl$10.call(AdminServiceImpl.java:549)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.admin.internal.AdminServiceImpl$10.call(AdminServiceImpl.java:522)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.admin.internal.AdminServiceImpl$1.call(AdminServiceImpl.java:218)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.util.properties.FileLockUtils$2.call(FileLockUtils.java:100)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.util.properties.FileLockUtils.execute(FileLockUtils.java:68)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.util.properties.FileLockUtils.execute(FileLockUtils.java:94)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.admin.internal.AdminServiceImpl.execute(AdminServiceImpl.java:215)[45:org.apache.karaf.admin.core:2.3.2]
> 	at org.apache.karaf.admin.internal.AdminServiceImpl.cloneInstance(AdminServiceImpl.java:522)[45:org.apache.karaf.admin.core:2.3.2]
> 	at Proxy6a078d9e_acff_4e40_8793_093812aa05f5.cloneInstance(Unknown Source)[:]
> 	at org.apache.karaf.admin.command.CloneCommand.doExecute(CloneCommand.java:57)[34:org.apache.karaf.admin.command:2.3.2]
> 	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.karaf.shell.console.jline.Console.run(Console.java:173)[14:org.apache.karaf.shell.console:2.3.2]
> 	at java.lang.Thread.run(Thread.java:722)[:1.7.0_11]
> {code}
> Will attach fix for this shortly.

--
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

Mime
View raw message