stlhrt / keepass4j

Automatically exported from code.google.com/p/keepass4j
0 stars 0 forks source link

UnsupportedDataBaseException - Invalid database version #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I try to connect to KDB
2. The API show a Exception with KDB version 30004

What is the expected output? What do you see instead?

pl.sind.keepass.exceptions.UnsupportedDataBaseException: Invalid database 
version 30004. Only 30002 version is supported
    at pl.sind.keepass.kdb.v1.KeePassDataBaseV1.validateHeader(KeePassDataBaseV1.java:219)
    at pl.sind.keepass.kdb.v1.KeePassDataBaseV1.<init>(KeePassDataBaseV1.java:69)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at pl.sind.keepass.kdb.KeePassDataBaseFactory.instantiate(KeePassDataBaseFactory.java:71)
    at pl.sind.keepass.kdb.KeePassDataBaseFactory.loadDataBase(KeePassDataBaseFactory.java:61)
    at pl.sind.keepass.kdb.KeePassDataBaseManager.openDataBase(KeePassDataBaseManager.java:41)
    at pl.sind.keepass.kdb.KeePassDataBaseManager.openDataBase(KeePassDataBaseManager.java:33)
    at test.KeePassReader.main(KeePassReader.java:29)

What version of the product are you using? On what operating system?
keepass4j-0.0.3.jar - Windows 7 32bits

Please provide any additional information below.

Original issue reported on code.google.com by jose.sal...@gmail.com on 14 Jun 2013 at 3:23

GoogleCodeExporter commented 8 years ago
I got the same error. It is because keepass4j is able just for kdb ver 1, and 
even keepass can be version 1, but what is important is the version of kdb, and 
if you are trying to read a kdb version 2 or more, you will get that error. I 
hope a new library able to read ver 2 or more be ready soon.

Original comment by omar.lui...@gmail.com on 3 Feb 2015 at 3:47