Hi,

I was trying to test the online backup process.  I received a
ComException saying "Channel has been closed".

Here is my code which is copied from your Testbackup with a small modification:

   private String serverPath = "localhost";
   private String backupPath = "target/var/backuedup-serverdb";

   public void fullThenIncremental() throws Exception
   {
       ServerInterface server = startServer();
       OnlineBackup backup = OnlineBackup.from( "localhost",7474 );
       backup.full( backupPath );
       shutdownServer( server );

       DbRepresentation furtherRepresentation = addMoreData();
       server = startServer();
       backup.incremental( backupPath );
       assertEquals( furtherRepresentation, DbRepresentation.of(
backupPath ) );
       shutdownServer( server );
   }

and the error message is:

run:
Mon Feb 14 13:37:54 CST 2011: Client connected to localhost:7474
Mon Feb 14 13:37:54 CST 2011: Opened a new channel to localhost/127.0.0.1:7474
2011/2/14 01:37:54 itags.Sync.SyncData main
: null
org.neo4j.com.ComException: org.neo4j.com.ComException: Channel has been closed
       at org.neo4j.com.Client.sendRequest(Client.java:183)
       at org.neo4j.com.backup.BackupClient.fullBackup(BackupClient.java:42)
       at org.neo4j.com.backup.OnlineBackup.full(OnlineBackup.java:67)
       at itags.Sync.SyncData.fullThenIncremental(SyncData.java:45)
       at itags.Sync.SyncData.main(SyncData.java:232)
Caused by: org.neo4j.com.ComException: Channel has been closed
       at org.neo4j.com.Client$2.readNext(Client.java:159)
       at 
org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:79)
       at 
org.neo4j.com.DechunkingChannelBuffer.<init>(DechunkingChannelBuffer.java:50)
       at org.neo4j.com.Client$2.<init>(Client.java:151)
       at org.neo4j.com.Client.sendRequest(Client.java:150)
       ... 4 more

I have my db server started as window service.

Also, I want to know if we need the process "startServer()" if the db
server has been started.

Regards,

Brendan
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to