Hi,

Did you check that your password contains a space? This is required
when using CIPHER=AES.
This works for me:

        JdbcDataSource ds = new JdbcDataSource();
        ds.setURL("jdbc:h2:~/test2;CIPHER=AES");
        ds.setUser("sa");
        ds.setPassword("123 456");
        ds.getConnection().close();
        ds = new JdbcDataSource();
        ds.setURL("jdbc:h2:~/test2;CIPHER=AES");
        ds.setUser("sa");
        ds.setPasswordChars("123 456".toCharArray());
        ds.getConnection().close();

Regards,
Thomas
On Tue, Sep 9, 2008 at 3:31 PM, Clinton <[EMAIL PROTECTED]> wrote:
>
> On Sep 8, 11:41 pm, "Thomas Mueller" <[EMAIL PROTECTED]>
> wrote:
>> Hi,
>>
>> > Thank you for adding this method.  It is, however, throwing an
>> > exception back at me.
>>
>> Strange... What database URL do you use?
>>
>> Regards,
>> Thomas
>
> Thomas,
>
> The database URL is:
> jdbc:h2:/db/h2_db;IFEXISTS=TRUE;CIPHER=AES
>
> Clinton
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to