Solved

Java Error on Oracle 10.2.0.2

Posted on 2008-06-26
12
588 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

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
 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video shows how to recover a database from a user managed backup
Suggested Courses

623 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