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
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
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
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
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
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
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
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
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
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
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/
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
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
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.
>
>
14 matches
Mail list logo