?
Solved

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

Posted on 2007-08-06
4
Medium Priority
?
3,140 Views
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-0.0.0.0-8080
2007-08-07 11:15:43,218 INFO  [org.apache.jk.common.ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
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(DatabaseError.java:112)
      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
      at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1118)
      at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1070)
      at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:478)
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
      at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3316)
      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3400)
      at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251)


Any help is appreciated.

Thanks in advance.
Regards,

0
Comment
Question by:ashishanand
  • 3
4 Comments
 
LVL 10

Expert Comment

by:dnojcd
ID: 19670657
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
0
 

Author Comment

by:ashishanand
ID: 19678195
We are using Oracle 10g Express Edition which does not have Configuration & Migration Tool
0
 

Author Comment

by:ashishanand
ID: 19730459
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

Regards,
Anand


0
 

Accepted Solution

by:
ashishanand earned 0 total points
ID: 19882485
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 10.2.0.1.0 release. It has been fixed in release 10.2.0.3.0 of Oracle. However, I'm stuck because I'm using express edition of oracle and there is no release 10.2.0.3.0 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.

Thanks.
Regards
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Suggested Courses

621 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