Subject | Re: Embedded DB backup |
---|---|
Author | pcmilhouse |
Post date | 2010-01-18T07:59:03Z |
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)
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
>