-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Exception connecting to HSQLDB
PostPosted: Sun Dec 04, 2005 9:41 am 
Newbie

Joined: Sun Dec 04, 2005 12:14 am
Posts: 2
I am trying to connect to HSQLDB by running a target from build file. My build file looks like this. I think my URL arg in the target to connect to db is incorrect could any one help me to connect to HSQLDB with its default username(sa) and password

<target name="hsqldb-gui" description="Brings up the hsqldb admin tool">
<property name="database.urlparams" value="?user=sa&amp;password="/>
<java
classname="org.hsqldb.util.DatabaseManagerSwing"
fork="yes"
classpathref="build.class.path"
failonerror="true">
<arg value="-url"/>
<arg value="jdbc:hsqldb:hsql://localhost${database.urlparams}" />
<arg value="-driver"/>
<arg value="org.hsqldb.jdbcDriver"/>
</java>
</target>


hsqldb-gui:
[java] java.sql.SQLException: Connection is broken: localhost?user=sa&password=
[java] at org.hsqldb.Trace.getError(Unknown Source)
[java] at org.hsqldb.Trace.error(Unknown Source)
[java] at org.hsqldb.jdbcConnection.reconnectHSQL(Unknown Source)
[java] at org.hsqldb.jdbcConnection.openHSQL(Unknown Source)
[java] at org.hsqldb.jdbcConnection.<init>(Unknown Source)
[java] at org.hsqldb.jdbcDriver.connect(Unknown Source)
[java] at java.sql.DriverManager.getConnection(Unknown Source)
[java] at java.sql.DriverManager.getConnection(Unknown Source)
[java] at org.hsqldb.util.ConnectionDialogSwing.createConnection(Unknown Source)
[java] at org.hsqldb.util.DatabaseManagerSwing.main(Unknown Source)
BUILD SUCCESSFUL
Total time: 5 seconds


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 04, 2005 9:53 am 
Newbie

Joined: Sun Dec 04, 2005 12:14 am
Posts: 2
I got it!!! I changed the database url to jdbc:hsqldb:hsql instead of jdbc:hsqldb:hsql://localhost and it works fine now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.