JBoss 4.0.4 java.sql.SQLException: No more data to read from socket

Posted on 2007-08-06
Last Modified: 2013-12-18
We have 2 machines each with identical JBoss 4.0.4 Server and Oracle 10g installation.
We have an application (war file) installed on both the system.

When trying to insert data into oracle database from within the application, it works fine on one machine, however, on the 2nd machine we encountered the following error.

Oracle-ds.xml (for connection pooling) configuration on both the installation have identical configuration.

2007-08-07 11:15:43,078 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Saw org.jboss.system.server.started notification, starting connectors
2007-08-07 11:15:43,093 INFO  [org.apache.coyote.http11.Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-
2007-08-07 11:15:43,218 INFO  [org.apache.jk.common.ChannelSocket] JK: ajp13 listening on /
2007-08-07 11:15:43,234 INFO  [org.apache.jk.server.JkMain] Jk running ID=0 time=0/94  config=null
2007-08-07 11:15:43,234 INFO  [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 22s:297ms
2007-08-07 11:17:19,000 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 900000 old interval: 9223372036854775807
2007-08-07 11:17:19,000 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: about to notify thread: old next: 1186457089000, new next: 1186457089000
2007-08-07 11:17:40,015 WARN  [org.jboss.resource.connectionmanager.TxConnectionManager] Connection error occured: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@3b9a5f[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@1a7d9e7 handles=1 lastUse=1186456656140 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@d2ee5d context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1f568f xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@16c02df txSync=null]
java.sql.SQLException: No more data to read from socket
      at oracle.jdbc.driver.DatabaseError.throwSqlException(
      at oracle.jdbc.driver.DatabaseError.throwSqlException(
      at oracle.jdbc.driver.DatabaseError.throwSqlException(
      at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(
      at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(
      at oracle.jdbc.driver.T4C8Oall.receive(
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(
      at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(
      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(
      at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(

Any help is appreciated.

Thanks in advance.

Question by:ashishanand
    LVL 10

    Expert Comment

    seems like your DB is not sharable...
    try this and see if the error still persists

    Go to
    Oracle- OraHome92
    --Configuration & Migration Tool
    ----data base Configuration Assistant

    Select radio button ---Configure Data base options in database
    Select your data base--- Oracle /
    Select ----- shared server mode

    Author Comment

    We are using Oracle 10g Express Edition which does not have Configuration & Migration Tool

    Author Comment

    Any updates.

    Updates, I have Oracle XE setup on 2 separate machines. When I connect to the first setup from JBoss and insert about a 100 rows (using a for loop) into the table it works fine. However, when I do the same thing on the 2nd database it fails. It throws SQLException as per my first posting.

    The config of both the Oracle setup is identical.

    Any help



    Accepted Solution

    I have found the cause of the problem. It is because we are using the world lexer option when creating indexes. This is a know problem in Oracle release. It has been fixed in release of Oracle. However, I'm stuck because I'm using express edition of oracle and there is no release for Oracle Express Edition.

    For time being we are using basic lexer for indexing and it works fine.

    Hi Administrator,
    I would need you to help me close this Question.


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
    This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now