Subject Re: Embedded DB backup
Author pcmilhouse
The value of both path are correct and the db file exists.
I can't understand where could be the problem...maybe the db file is locked. But backup works also if I have any connection opened to db.

--- In Firebird-Java@yahoogroups.com, Roman Rokytskyy <roman@...> wrote:
>
> It means that it cannot open the file... Can you provide the values of
> backupFile.getAbsolutePath() and new File(dbFile).getAbsolutePath()?
>
> 18.01.2010 08:59, pcmilhouse написав(ла):
> > This is the exception I had on backup:
> >
> > GRAVE: null
> > org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544344. I/O error for file CreateFile (open) ""
> > Error while trying to open file
> > null
> > at org.firebirdsql.management.FBServiceManager.executeServicesOperation(FBServiceManager.java:280)
> > at org.firebirdsql.management.FBBackupManager.backupDatabase(FBBackupManager.java:215)
> > at org.firebirdsql.management.FBBackupManager.backupDatabase(FBBackupManager.java:201)
> > at com.tecnosens.ladon.dbInterface.DbManagement.exportDB(DbManagement.java:312)
> > at com.tecnosens.ladon.core.TestLadon.doTest(TestLadon.java:105)
> > at com.tecnosens.ladon.core.TestLadon.main(TestLadon.java:88)
> > at org.firebirdsql.gds.GDSException: I/O error for file CreateFile (open) ""
> > Error while trying to open file
> > null
> > at org.firebirdsql.gds.impl.jni.JniGDSImpl.native_isc_service_query(Native Method)
> > at org.firebirdsql.gds.impl.jni.BaseGDSImpl.iscServiceQuery(BaseGDSImpl.java:829)
> > at org.firebirdsql.management.FBServiceManager.queueService(FBServiceManager.java:227)
> > null
> > at org.firebirdsql.management.FBServiceManager.executeServicesOperation(FBServiceManager.java:275)
> > at org.firebirdsql.management.FBBackupManager.backupDatabase(FBBackupManager.java:215)
> > at org.firebirdsql.management.FBBackupManager.backupDatabase(FBBackupManager.java:201)
> > at com.tecnosens.ladon.dbInterface.DbManagement.exportDB(DbManagement.java:312)
> > at com.tecnosens.ladon.core.TestLadon.doTest(TestLadon.java:105)
> > at com.tecnosens.ladon.core.TestLadon.main(TestLadon.java:88)
> >
> > --- In Firebird-Java@yahoogroups.com, Roman Rokytskyy<roman@> wrote:
> >>
> >>
> >>> That's how I would do myself :) Will check on my computer.
> >>
> >> Tried unit test cases with FB 2.5 embedded, works fine. The example code
> >> is the following:
> >>
> >> backupManager = new FBBackupManager(getGdsType());
> >> backupManager.setUser(DB_USER);
> >> backupManager.setPassword(DB_PASSWORD);
> >> backupManager.setDatabase(getDatabasePath());
> >> backupManager.setBackupPath(getBackupPath());
> >> backupManager.setLogger(System.out);
> >> backupManager.setVerbose(true);
> >>
> >> backupManager.backupDatabase();
> >> backupManager.restoreDatabase();
> >>
> >> What exceptions do you get?
> >>
> >> Roman
> >>
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>