Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Java Error on Oracle 10.2.0.2

Posted on 2008-06-26
12
Medium Priority
?
592 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
11 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
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 

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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

824 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