Menu

#18 Hotbackup produces exceptions on 2.0alpha3

open
Core (2)
5
2008-01-15
2007-05-16
No

I am trying to do the hot backup option. I have a space running "primary"

I am trying to back up the data in the "primary" javaspace to a directory. But when I try the following command:

java -Djava.security.policy=config\policy.all -classpath c:\tools\frameworks\jiniWindows\lib\jsk-lib.jar;c:\tools\frameworks\jiniWindows\lib\jsk-platform.jar;c:\tools\frameworks\jiniWindows\lib\sun-util.jar;c:\tools\server\blitz\blitz20a3\lib\blitz.jar org.dancres.blitz.tools.HotBackup primary c:\tools\frameworks\rio\Blitz\roshBackup

I get the following error:

Found space: org.dancres.blitz.remote.ConstrainableBlitzProxy@e573d3c3
net.jini.core.constraint.RemoteMethodControl(sun.misc.Launcher$AppClassLoader@13
3056f) java.io.Serializable(null) net.jini.space.JavaSpace(sun.misc.Launcher$App
ClassLoader@133056f) net.jini.space.JavaSpace05(sun.misc.Launcher$AppClassLoader
@133056f) net.jini.admin.Administrable(sun.misc.Launcher$AppClassLoader@133056f)
net.jini.id.ReferentUuid(sun.misc.Launcher$AppClassLoader@133056f)
net.jini.core.constraint.RemoteMethodControl(sun.misc.Launcher$AppClassLoader@13
3056f) com.sun.jini.admin.DestroyAdmin(sun.misc.Launcher$AppClassLoader@133056f)
net.jini.admin.JoinAdmin(sun.misc.Launcher$AppClassLoader@133056f) java.io.Seri
alizable(null) net.jini.id.ReferentUuid(sun.misc.Launcher$AppClassLoader@133056f
) org.dancres.blitz.remote.StatsAdmin(sun.misc.Launcher$AppClassLoader@133056f)
org.dancres.blitz.remote.BlitzAdmin(sun.misc.Launcher$AppClassLoader@133056f) co
m.sun.jini.outrigger.JavaSpaceAdmin(sun.misc.Launcher$AppClassLoader@133056f)
Invoking backup to: c:\tools\frameworks\rio\Blitz\roshBackup
Failed to backup
java.io.IOException: The process cannot access the file because another process
has locked a portion of the file
at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.FileDispatcher.read(FileDispatcher.java:28)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
at sun.nio.ch.IOUtil.read(IOUtil.java:200)
at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:145)
at org.dancres.io.FileCopier.copy(FileCopier.java:50)
at org.dancres.blitz.disk.BackupTask.run(BackupTask.java:39)
at org.dancres.blitz.disk.WriteDaemon$OutputTracker.run(WriteDaemon.java
:254)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
Worker(ThreadPoolExecutor.java:987)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Thread.java:595)
at com.sun.jini.jeri.internal.runtime.Util.__________EXCEPTION_RECEIVED_
FROM_SERVER__________(Util.java:108)
at com.sun.jini.jeri.internal.runtime.Util.exceptionReceivedFromServer(U
til.java:101)
at net.jini.jeri.BasicInvocationHandler.unmarshalThrow(BasicInvocationHa
ndler.java:1303)
at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethodOnce(BasicInvo
cationHandler.java:832)
at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethod(BasicInvocati
onHandler.java:659)
at net.jini.jeri.BasicInvocationHandler.invoke(BasicInvocationHandler.ja
va:528)
at $Proxy1.backup(Unknown Source)
at org.dancres.blitz.remote.AdminProxy.backup(AdminProxy.java:229)
at org.dancres.blitz.tools.HotBackup.main(HotBackup.java:85)

Discussion

  • Dan Creswell

    Dan Creswell - 2007-05-16

    Logged In: YES
    user_id=832130
    Originator: YES

    It's possible the exception is harmless but we're developing a test case and will report back once we have a more accurate diagnosis.

     
  • Dan Creswell

    Dan Creswell - 2007-12-31
    • status: open --> closed
     
  • Dan Creswell

    Dan Creswell - 2007-12-31
    • status: closed --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     
  • Dan Creswell

    Dan Creswell - 2008-01-15
    • status: closed --> open
     

Log in to post a comment.