[h2] Problem with JDBC Url (h2 server mode)

2014-05-03 Thread Stefan Beigel
Hi guys Getting this exception while starting h2: "A file path that is implicitly relative to the current working directory is not allowed in the database URL" My jdbc string is jdbc:h2:tcp://localhost//data This happens only with version Version 1.4.178 (2014-05-02), Beta yours sincerely

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-05-04 Thread Noel Grandin
We stopped supporting current directory relative url's because people kept not being able to find their database files. Use something like jdbc:h2:tcp://localhost//~/data. On Saturday, 3 May 2014, Stefan Beigel wrote: > Hi guys > > Getting this exception while starting h2: > "A file path that i

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-05-04 Thread Thomas Mueller
Hi, Hm, I think your url should work, as it's absolute due to double slash (database in the root directory). I will investigate. Regards, Thomas On Saturday, May 3, 2014, Stefan Beigel wrote: > Hi guys > > Getting this exception while starting h2: > "A file path that is implicitly relative to

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-05-04 Thread Thomas Mueller
Hi, I can't reproduce the problem with your database URL. Do you use Windows? Do you use the "baseDir" setting? Could you post the complete error message including all stack traces please? Regards, Thomas On Sunday, May 4, 2014, Thomas Mueller wrote: > Hi, > > Hm, I think your url should work

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-05-06 Thread Stefan Beigel
Hi I am using windows 8.1 I don't use basedir stacktrace from webinterface A file path that is implicitly relative to the current working directory is not allowed in the database URL "jdbc:h2:tcp://localhost//data". Use an absolute path, ~/name, ./name, or the baseDir setting instead. [90011-1

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-05-06 Thread Thomas Mueller
Hi, I found the problem, it will be fixed in the next release. It seems to be happening only in Windows by the way. Regards, Thomas On Tuesday, May 6, 2014, Stefan Beigel wrote: > Hi > > I am using windows 8.1 > I don't use basedir > > stacktrace from webinterface > A file path that is implici

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-06-10 Thread Matthew Lohbihler
I'm getting this error message even with a non-relative url. What's wrong with this? A file path that is implicitly relative to the current working directory is not allowed in the database URL "jdbc:h2:/Users/Matthew/git/ma-core-public/Core/target/test/h2/ma;DB_CLOSE_ON_EXIT=FALSE". Use an ab

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-06-13 Thread Thomas Mueller
Hi, I don't know, I can't reproduce the problem with your URL. Did you set the "h2.baseDir" directory? Do those directories exist, and what is in the directory? Does a directory "ma" exist within "h2"? Do you get the same exception if you use a standalone program, such as: public static void

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-06-24 Thread Matthew Lohbihler
Yes, i still get the same exception. public static void main(String[] args) throws SQLException { DriverManager .getConnection("jdbc:h2:/Users/Matthew/git/ma-core-public/Core/target/test/h2/ma;DB_CLOSE_ON_EXIT=FALSE"); } Exception in thread "main" org.h2.jdbc.Jdb

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-06-24 Thread Thomas Mueller
Hi, Could you try again with the very latest version? There was a change in this area (even thought, this was for Windows), maybe it works now. If not, do you use any system properties (for example the h2.baseDir)? Could you post the complete stack trace(es)? Regards, Thomas On Tue, Jun 24, 20

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-06-24 Thread Matthew Lohbihler
Same code using versoin 1.4.179 appears to result in the same stack trace. Exception in thread "main" org.h2.jdbc.JdbcSQLException: A file path that is implicitly relative to the current working directory is not allowed in the database URL "jdbc:h2:/Users/Matthew/git/ma-core-public/Core/target/

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-06-24 Thread Noel Grandin
On 2014-06-24 11:31 PM, Matthew Lohbihler wrote: Same code using versoin 1.4.179 appears to result in the same stack trace. Exception in thread "main" org.h2.jdbc.JdbcSQLException: A file path that is implicitly relative to the current working directory is not allowed in the database URL "jdb

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-06-27 Thread Matthew Lohbihler
Windows. And yes, that solves the problem. Thanks Noel. On Wednesday, 25 June 2014 02:58:11 UTC-4, Noel Grandin wrote: > > > > On 2014-06-24 11:31 PM, Matthew Lohbihler wrote: > > Same code using versoin 1.4.179 appears to result in the same stack > trace. > > > > Exception in thread "main" o

Re: [h2] Problem with JDBC Url (h2 server mode)

2014-07-03 Thread Thomas Mueller
Hi, OK, I didn't think that would be the problem. I will add this to the documentation "For Windows, an absolute path also needs to include the drive ("C:/...").". Regards, Thomas On Friday, June 27, 2014, Matthew Lohbihler wrote: > Windows. And yes, that solves the problem. Thanks Noel. > >