Solved

Java Error on Oracle 10.2.0.2

Posted on 2008-06-26
12
581 Views
Last Modified: 2013-12-18
Can anyone tell me what this error could be?  How to troubleshoot.  I am a dba, not a developer and this has me baffled.

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:1123)
        at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1075)
        at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:480)
        at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
        at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:810)
        at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
        at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:850)
        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
        at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
        at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3384)
        at com.salmonllc.sql.DSDataSourceJDBC.generatePrepStmt(DSDataSourceJDBC.java:1389)
        at com.salmonllc.sql.DSDataSourceJDBC.preRetrieve(DSDataSourceJDBC.java:1143)
        at com.salmonllc.sql.DataStore.retrieve(DataStore.java:2060)
        at com.salmonllc.sql.DataStore.retrieve(DataStore.java:1982)
        at com.salmonllc.sql.DataStore.retrieve(DataStore.java:2193)
        at com.amfnl.invest.AFGDataStore.retrieve(AFGDataStore.java:742)
        at com.amfnl.invest.AFGDataStore.retrieve(AFGDataStore.java:644)
        at com.amfnl.invest.AFGDataStore.retrieve(AFGDataStore.java:549)
        at com.amfnl.invest.dbservant.ledger.LedgerEntryDBServant.internalRetrieveLedgerLines(LedgerEntryDBServant.java:944)
        at com.amfnl.invest.dbservant.ledger.LedgerEntryDBServant.internalRetrieve(LedgerEntryDBServant.java:871)
        at com.amfnl.invest.dbservant.ledger.ReportingLedgerEntryDBServant.internalRetrieve(ReportingLedgerEntryDBServant.java:78)
        at com.amfnl.invest.dbservant.ledger.LedgerEntryDBServant.retrieveByLotValueIdsBetweenRealEventDates(LedgerEntryDBServant.java:1216)
        at com.amfnl.reporting.handler.common.BasisSheetRealizedGainLossProgressionReportHandler.extractReportData(BasisSheetRealizedGainLossProgressi
onReportHandler.java:98)
 
0
Comment
Question by:mjimison1956
  • 6
  • 5
12 Comments
 

Author Comment

by:mjimison1956
ID: 21874542
Thanks in advance
0
 
LVL 3

Expert Comment

by:shaz_
ID: 21874600
your app is prolly using connection pooling... so when the app is trying to checkout a connection from the pool which is already timed out etc .. it throws that error....  
0
 

Author Comment

by:mjimison1956
ID: 21874667
We have DHCP.  Should the LOOPBACK ADAPTER BE ENABLED OR DISABLED?

Or what would be a method to troubleshoot.

Here is some of our trys thus far.
disabled the loopback adapter, updated listener.ora
-         ran  Report 9
o        this previously had a socket exception
o        NO ERROR
-         ran Basis Amortization Income Progression - still get socket error:

So one report ran and one did not


0
 

Author Comment

by:mjimison1956
ID: 21874678
Here is listener.ora file
0
 
LVL 3

Expert Comment

by:shaz_
ID: 21874729
mmm if  u were using DBCP  and apache ...i would suggest looking at
http://commons.apache.org/dbcp/configuration.html

and the parametrs like testOnBorrow and testOnReturn

which if set true test the connection everytime the borrow form the pool etc and if the connection is not active no more.. the get another one etc...
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:mjimison1956
ID: 21875024
Why would one report run and one not run.  Are there settings in DHCP that I could change.  Should I use or not use Loopback Adapater?

htnaks
0
 
LVL 3

Expert Comment

by:shaz_
ID: 21875173
i dont see the reason of using a loopback adopter unless ure installing oracle on your own machine and developing on it as well... loopback adapters are outdated... if u remotely connect(network) to db there is no need for a loopback adapter.. or ofc if ure installing on a dhcp machine... which u are... mmm
0
 

Author Comment

by:mjimison1956
ID: 21875266
The application and the db are on the same machine.  I believe that is why the vendor is using a loopback adapter.  This vendor has asked for my help as the application dba as they can not solve the issue and it is holding up the next build of the application.

I recommended that they disbable the adapter and that failed.  I recommended they enable it and make sure the IP address of the server, not the server name, was in the listener.ora.  That failed.  I am at a loss.
0
 
LVL 3

Accepted Solution

by:
shaz_ earned 500 total points
ID: 21875343
installed the db seprately on a seperate networked box... will get rid of the need for a loopback adapter
0
 

Author Comment

by:mjimison1956
ID: 21875387
Was a recommendation I gave them too.   they said had to keep on same due to hardware availabiltiy.

Could have them test app to another db not on same box and see if replicate error?
0
 
LVL 3

Expert Comment

by:shaz_
ID: 21875439
yeh that sounds like a plan.. even if they dont have another box for the db.. im sure they can put the app on another blade
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

744 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

11 Experts available now in Live!

Get 1:1 Help Now