Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6999101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:29:51+00:00 2026-05-27T20:29:51+00:00

I am trying to create an automated integration test against a running local JBoss

  • 0

I am trying to create an automated integration test against a running local JBoss 5.1 instance where I need to make assertions against the database. The appserver is configured with a HSQL datasource in server mode in order to be accessible through TCP.

These are the relevant (I think) parts of the configuration:

<connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url>
<driver-class>org.hsqldb.jdbcDriver</driver-class>
<user-name>sa</user-name>
<password></password>
<mbean code="org.jboss.jdbc.HypersonicDatabase" 
     name="jboss:service=Hypersonic">
     <attribute name="Port">1701</attribute>        
     <attribute name="BindAddress">${jboss.bind.address}</attribute>     
     <attribute name="Silent">true</attribute>
     <attribute name="Database">default</attribute>
     <attribute name="Trace">false</attribute>
     <attribute name="No_system_exit">true</attribute>
</mbean>

It works in that the deployed application runs fine and I am also able to connect to the database using external tools such as “hsqldbclient” and the Eclipse “Data Source Explorer”.

The problem is that when I try to get a connection from my test case the connection is closed immediately and I get a “Broken Pipe” error.

This is how I try to get a connection:

DriverManager.getConnection("jdbc:hsqldb:hsql://localhost:1701", "sa", "");

This is the error I get on the client side:

Caused by: org.hsqldb.HsqlException: connection exception: connection failure: java.net.SocketException: Broken pipe
    at org.hsqldb.error.Error.error(Unknown Source)
    at org.hsqldb.ClientConnection.execute(Unknown Source)
    at org.hsqldb.ClientConnection.<init>(Unknown Source)

And this is the error I get on the server side:

09:46:04,132 ERROR [STDERR]    Exception in thread "HSQLDB Connection @fa3b82" 
09:46:04,133 ERROR [STDERR]    java.lang.NullPointerException
09:46:04,133 ERROR [STDERR]     at org.hsqldb.ServerConnection.close(Unknown Source)
09:46:04,133 ERROR [STDERR]     at org.hsqldb.ServerConnection.run(Unknown Source)
09:46:04,133 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:662)

I am at a loss in trying to interpret what is happening. It looks like the connection is being made and then immediately closed by the server but the connection is then null which causes a nullpointer to be thrown. Note that this is all on the same machine and I am able to connect using other tools but with the same connection URL as described above.

If anyone has any ideas of what to try I would be very grateful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:29:51+00:00Added an answer on May 27, 2026 at 8:29 pm

    I found the problem after looking into what versions of HSQLDB were used (the answer from fredt gave me the idea).

    For some reason the client was using HSQLDDB 2.0 but JBoss 5.1 comes with 1.8. I changed the client to also use 1.8 and the problem went away. Quite simple really but I was stuck for nearly a day with this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create automated integration tests for this hardware+software test subject which runs
I am trying to create an automated clicker program in C# to make some
I am trying to create an automated log in system with cakePHP and need
Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
I am trying to create some VBA code to automate dashboard creation against a
I'm trying to create an automated job for the SQL Server Agent to run.
I'm trying to create an automated error reporting tool for our Java desktop app.
I'm trying to create a completely new database from an existing MySQL database, bringing
I am trying to create the illusion of AI through automated clicking of buttons.
I'm trying to create a SQL statement which will recreate the hierarchical container/folder/test structure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.