empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "francisdb (JIRA)" <empire-db-...@incubator.apache.org>
Subject [jira] Commented: (EMPIREDB-31) advanced sample throws SQLException (wrong db user)
Date Sun, 28 Dec 2008 16:37:44 GMT

    [ https://issues.apache.org/jira/browse/EMPIREDB-31?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659443#action_12659443
] 

francisdb commented on EMPIREDB-31:
-----------------------------------

I came to this issue because in SampleConfig.java:

if (super.init(filename, false, true) == false){...}

the false argument indicates not to load as resource, which in maven context and maven generated
eclipse context tries to read the file from:
/home/francisdb/workspace/empire-db-mvn/empire-db-example/config.xml but I placed it in the
resources folder which is added to the classpath

we'll have to see how we deal with this when moving to maven. When the app starts up without
the config file there is no indication that the file was not found because the logging subsystem
is not set up yet...

> advanced sample throws SQLException (wrong db user)
> ---------------------------------------------------
>
>                 Key: EMPIREDB-31
>                 URL: https://issues.apache.org/jira/browse/EMPIREDB-31
>             Project: Empire-DB
>          Issue Type: Bug
>          Components: Core
>            Reporter: francisdb
>            Assignee: Rainer Döbele
>
> running the advanced example gives me:
> java.lang.RuntimeException: java.sql.SQLException: User not found: JDBC:HSQLDB:FILE:HSQLDB/SAMPLE;SHUTDOWN=TRUE
> this is because SampleAdvConfig has the wrong value as user:
> is:
> private String jdbcUser = "jdbc:hsqldb:file:hsqldb/sample;shutdown=true";
> should be:
> private String jdbcUser = "sa";
> (I filed this issue before for the main example project, but it seems the advanced example
has the same problem)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message