NullpointerException with sql command BACKUP TO (stable 1.3.176)

43 views
Skip to first unread message

David Pentzlin

unread,
May 20, 2014, 3:06:06 AM5/20/14
to h2-da...@googlegroups.com
Hi,

I get a NullpointerException by using the backup function:

This is all i get in the console:

BACKUP TO 'data.zip';
General error: "java.lang.NullPointerException"; SQL statement:
BACKUP TO 'data.zip' [50000-176] HY000/50000 (Hilfe)
org.h2.jdbc.JdbcSQLException: General error: "java.lang.NullPointerException"; SQL statement:
BACKUP TO 'data.zip' [50000-176] 
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:344) 
    at org.h2.message.DbException.get(DbException.java:167) 
    at org.h2.message.DbException.convert(DbException.java:294) 
    at org.h2.command.Command.executeUpdate(Command.java:262) 
    at org.h2.server.TcpServerThread.process(TcpServerThread.java:346) 
    at org.h2.server.TcpServerThread.run(TcpServerThread.java:160) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: java.lang.NullPointerException 
    at org.h2.command.dml.BackupCommand.backupTo(BackupCommand.java:86) 
    at org.h2.command.dml.BackupCommand.update(BackupCommand.java:52) 
    at org.h2.command.CommandContainer.update(CommandContainer.java:79) 
    at org.h2.command.Command.executeUpdate(Command.java:254) 
    ... 3 more 

    at org.h2.engine.SessionRemote.done(SessionRemote.java:606) 
    at org.h2.command.CommandRemote.executeUpdate(CommandRemote.java:192) 
    at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:186) 
    at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:160) 
    at org.h2.server.web.WebApp.getResult(WebApp.java:1391) 
    at org.h2.server.web.WebApp.query(WebApp.java:1064) 
    at org.h2.server.web.WebApp$1.next(WebApp.java:1026) 
    at org.h2.server.web.WebApp$1.next(WebApp.java:1013) 
    at org.h2.server.web.WebThread.process(WebThread.java:168) 
    at org.h2.server.web.WebThread.run(WebThread.java:94) 
    at java.lang.Thread.run(Unknown Source) 

Best regards

Noel Grandin

unread,
May 20, 2014, 3:37:01 AM5/20/14
to h2-da...@googlegroups.com
Hi


This will be fixed in the next version. For now, check your folder and remove any old "*.mv.db" files you have lying
around that you are not using.

Regards, Noel.

David Pentzlin

unread,
May 20, 2014, 4:13:58 AM5/20/14
to h2-da...@googlegroups.com
Thanks by deleting the all other files it is working.
Reply all
Reply to author
Forward
0 new messages