Java.sql.SQLException: Connection to remote site no longer valid
Hi
Somebody can help me with this ?
java.sql.SQLException: Connection to remote site no longer valid
Sometimes this error message appears in the moment when the next code execute, the database is Informix 10
public BeanOutParametersSMS siantelSMS(BeanArgumentsSMS bean)
throws SQLException, NumberFormatException,
NullPointerException, Exception {
String sql = "execute procedure SP_SMS_MKT(?,?,?,?,?,?,?,?,?)";
CallableStatement cs = null;
ResultSet rs = null;
BeanOutParametersSMS out = new BeanOutParametersSMS();
String salesForce = "";
try {
cs = connection.prepareCall(sql);
s.setString(1, bean.getAction());
cs.setString(2, "R0" + bean.getRegion());
cs.setString(3,bean.getCveclientesms());
cs.setString(4,bean.getPuerto());
cs.setString(5,bean.getCveproducto());
if (cs.execute()) {
rs = cs.getResultSet();
if (rs.next()) {
out.setActionInvoked(rs.getString(1));
out.setCode(rs.getString(2));
out.setPuerto(rs.getString(3));
out.setCveproducto(rs.getString(4)); etc ....
note. The stored procedure connecting with two databases (informix 10 & informix 9)
Where do you close the connection and statement/result set?
Similar Messages
-
I keep getting the following error when I try to use 2 different java.sql.Connections
from 2 different database connection pools in my message ejb. The message ejb
uses container managed transaction. The 2 connection pools point to different
Sybase Servers.
Any help will be much appreciated !!!
java.sql.SQLException: Connection has already been created in this tx context
for pool named adrxSYBDEV07. Illegal attempt to create connection from another
pool: Sybbev07Pool JDBCUtil > getConnection()Hi Eddie,
"Eddie Baue" <[email protected]> wrote in message
news:3ddbf74f$[email protected]..
I keep getting the following error when I try to use 2 differentjava.sql.Connections
from 2 different database connection pools in my message ejb. The messageejb
uses container managed transaction. The 2 connection pools point todifferent
Sybase Servers.In order to access more then one database base within
a TX you need to have TXDataSources backed by XA
connection pools...
Regards,
Slava Imeshev -
Oracle DBA team received a stack trace from our developers about an error generated by a JAVA appilcation using a WebLogic 8.1 application server and a Oracle 9.2.0.8 (RAC) database server with a Linux 2.4 OS. No database errors were logged into the database alert or listener logs, and no trace files were generated by database server on the same day. Developers are still looking for a cause.
Here is the info provided to us by the developers:
Nested StackTrace:
java.sql.SQLException:The transaction is no longer active - status: 'Unknown'. No further JDBC access is allowed within this transaction.
weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:219)
weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:228)
weblogic.jdbc.wrapper.ResultSet.getMetaData(ResultSet.java:184)
us.tx.state.rrc.common.util.QueryUtils.getSimpleResults(QueryUtils.java:455)
us.tx.state.rrc.common.util.QueryUtils.executeSimplePS(QueryUtils.java:373)
us.tx.state.rrc.pr.events.valueobject.BaseLeaseEvent.loadEventData(BaseLeaseEvent.java:182)
us.tx.state.rrc.pr.events.valueobject.BaseLeaseEvent.loadEvents(BaseLeaseEvent.java:194)
us.tx.state.rrc.pr.events.valueobject.BaseLeaseEvent.getEvents(BaseLeaseEvent.java:161)
us.tx.state.rrc.pr.events.PREventManager.getLeaseComingleEvents(PREventManager.java:104)
us.tx.state.rrc.pr.events.PREventManager.getAllEvents(PREventManager.java:81)
us.tx.state.rrc.pr.events.process.AutoResolveProcess.createTrxs(AutoResolveProcess.java:80)
us.tx.state.rrc.process.ejb.session.ProcessManagerSessionBean.initProcess(ProcessManagerSessionBean.java:427)
Application reportedly ran okay when resubmitted later on the same day without any other changes to the environment except a RMAN hot full backup finished before the second run. Developers have been unable to reproduce application error. Any ideas on where the developers should look for a more definitive definition of application errors?That message is a WLS-resident event. It means that the WLS-managed transaction
for which the thread/JDBC connection was operating, has already finished, whether by
having completed normally or having been rolled back. -
Hello,
I googled a lot but not found the similar problem that I have.
I don't have any long column neither in my Java code nor in db as data type but getting the subject error. why?
This is my insert code:
public String insertIntoCvDetails(String cvId,
String objectives,String name,String fatherName,String motherName,
String dob,String gender,String mStatus,String nationality,
String passportNo,String email1,String phone,String mobile,
String address,String state,String zipCode,String city,
String education,String work,String skills,String languages,
String hobbies,String achievements,String references)throws Exception{
String insert="";
try{
if ((cnn==null)||cnn.isClosed()){
cnn=DB.getOracleConnection();
String query = " insert into CvDetails( "+
"cv_id,objectives,name,fatherName,motherName,dob,gender, "+
"mStatus,nationality,passportNo,email,phone,mobile, "+
"address,state,zipCode,city,languages, "+
"hobbies,achievements,references,education,experience,skills) "+
" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
PreparedStatement ps=cnn.prepareStatement(query);
ps.setString(1, cvId);
ps.setString(2, objectives);
ps.setString(3, name);
ps.setString(4, fatherName);
ps.setString(5, motherName);
ps.setString(6, dob);
ps.setString(7, gender);
ps.setString(8, mStatus);
ps.setString(9, nationality);
ps.setString(10, passportNo);
ps.setString(11, email1);
ps.setString(12, phone);
ps.setString(13, mobile);
ps.setString(14, address);
ps.setString(15, state);
ps.setString(16, zipCode);
ps.setString(17, city);
ps.setString(18, languages);
ps.setString(19, hobbies);
ps.setString(20, achievements);
ps.setString(21, references);
ps.setString(22, education);
ps.setString(23, work);
ps.setString(24, skills);
ps.executeUpdate();
ps.close();
cnn.commit();
cnn.close();
}catch(Exception e){
insert="UserDAO.insertIntoCvDetails()"+e.toString();
System.out.println("UserDAO.insertIntoCvDetails()"+e.toString());
return insert;
}// Thanks in anitcipationThanks oradba for posting favorable link:
This is the output of my NLS
SQL> SELECT * FROM NLS_DATABASE_PARAMETERS;
PARAMETER
VALUE
NLS_LANGUAGE
AMERICAN
NLS_TERRITORY
AMERICA
NLS_CURRENCY
$
PARAMETER
VALUE
NLS_ISO_CURRENCY
AMERICA
NLS_NUMERIC_CHARACTERS
NLS_CHARACTERSET
AL32UTF8
PARAMETER
VALUE
NLS_CALENDAR
GREGORIAN
NLS_DATE_FORMAT
DD-MON-RR
NLS_DATE_LANGUAGE
AMERICAN
PARAMETER
VALUE
NLS_SORT
BINARY
NLS_TIME_FORMAT
HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT
DD-MON-RR HH.MI.SSXFF AM
PARAMETER
VALUE
NLS_TIME_TZ_FORMAT
HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT
DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY
$
PARAMETER
VALUE
NLS_COMP
BINARY
NLS_LENGTH_SEMANTICS
BYTE
NLS_NCHAR_CONV_EXCP
FALSE
PARAMETER
VALUE
NLS_NCHAR_CHARACTERSET
AL16UTF16
NLS_RDBMS_VERSION
10.2.0.1.0
20 rows selectedThe characterset is already AL16UTF16.
Thanks again & best regards -
Hi All,
I am getting the following error when i am running swing program. I have a large volume of data. My resultset is running upto 2 hours. after 2 hours process is stoped and i got the following error on console.I am using Swing and MS SQL Server 2000.
Exception :java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Unspecified error occurred on SQL Server. Connection may have been terminated by the server.
Exception :java.sql.SQLException: General error
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'F'
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'F' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:464)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:169)
Exception :java.sql.SQLException: General error
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:469)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:169)
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'F'
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'F' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'F'
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:474)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:169)
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'F' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'T'
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'T' order by tblTransaction.FareBasis
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:419)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:424)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'T'
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'T' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
java.lang.Exception: Invalid handle [null] Database error code:0
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'T'
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:429)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:434)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'T' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'F'
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'F' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closedjava.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:439)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'F'
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'F' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:444)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'F'
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'F' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'T'
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:449)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'T' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'T'
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:454)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'T' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'T'
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:459)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'T' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'F'
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:464)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:469)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'F' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'F'
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'F' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 4 : select count(*) from tblTransaction where AuditID = 10001720 and ExcludedFromAudit = 'F' and SystemPricedFare = 'F'
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.batchTransactions(GenerateAuditBatches.java:966)
at com.select.auditlink.GenerateAuditBatches.batchAudit(GenerateAuditBatches.java:474)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:172)
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
GenerateAuditBatches.java sql 5 transactions : select tblTransaction.BatchID, tblTransaction.TransactionNumber, tblTransaction.PrimeDocumentNumber, tblTransaction.AgentIATACode, tblTransaction.NetRemitInd, tblTransaction.ITBTFare, tblTransaction.TourCode, tblTransaction.FareBasis, tblTransaction.TransactionCode, tblTransaction.TransactionCategory, tblTransaction.InternationalOrDomestic, tblTransaction.NumberOfSectors, tblTransaction.TransactionStatus, tblTransaction.TransactionStatusUserID, tblTransactionCRSCheck.FareCorrect, tblTransactionCRSCheck.TaxCorrect, tblTransactionCRSCheck.CommissionCorrect, tblTransactionCRSCheck.ContractRulesCorrect, tblTransactionCRSCheck.ContractID from tblTransaction left join tblTransactionCRSCheck on tblTransactionCRSCheck.AuditID = tblTransaction.AuditID and tblTransactionCRSCheck.TransactionNumber = tblTransaction.TransactionNumber where tblTransaction.AuditID = 10001720 and tblTransaction.ExcludedFromAudit = 'F' and tblTransaction.SystemPricedFare = 'F' order by tblTransaction.FareBasis
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 1 : update tblAudit set NumberOfBatches = 1078 where AuditID = 10001720
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 12 query2 : select BatchID from tblAuditBatch where AuditID = 10001720
Exception :java.sql.SQLException: Invalid handle
Exception :java.lang.Exception: Invalid handle [null] Database error code:0
java.lang.Exception: Invalid handle [null] Database error code:0
at com.select.auditlink.GenerateAuditBatches.updateAuditBatches(GenerateAuditBatches.java:1427)
at com.select.auditlink.GenerateAuditBatches.run(GenerateAuditBatches.java:217)
GenerateAuditBatches.java sql 2 : update tblAudit set NumberOfAuditedBatches = ( select count(*) from tblAuditBatch where AuditID = 10001720 and NumberOfAuditedTransactions = NumberOfTransactions) where AuditID = 10001720
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
GenerateAuditBatches.java sql 3 : update tblAudit set NumberOfAuditedTransactions = ( select count(*) from tblTransaction where AuditID = 10001720 and Audited = 'T') where AuditID = 10001720
Exception :java.sql.SQLException: Invalid handle
Exception :java.sql.SQLException: Connection is closed
Exception :java.sql.SQLException: Connection is closed
Please give me suitable solution of this issue.
Thanks
Rajnish
Message was edited by:
rajnishsunjavajava.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]File must be opened exclusively.
In the Visual Foxpro table, I saw no READ ONLY settings.And also, there are
no delete permission grants and there is no user database sesssion concept.
The ODBC DSN for MYTABLE is setup as:
- Free Tables (not database)
- Null (checked)
- Deleted (checked)If you're using Visual Foxpro database(.DBC), you should see "Exclusive" option too. You can try check it, but I don't know whether your issue will disappear. -
Hi Everyone,
I am Using This Code to read the Mail from server and inserting those into database but i am getting error like
import java.io.*;
import java.util.*;
import javax.mail.*;
import java.sql.*;
public class ReadMail_OLD {
static StringBuffer s= new StringBuffer();
static StringBuffer s1= new StringBuffer();
public static void main(String args[]) throws Exception {
String host = "***.****.co.in";
String user = "***@***.**.**";
String password = "******";
String Message_2000 = new String();
String Message_2001 = new String();
Connection conn;
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc:oracle:thin:@1.2.3.5:1050:abcgdb", "abc", "efg");
Statement stm = conn.createStatement();
String strsql = "insert into READ_MAIL_MSG (MESSAGE_ID,SENT_DATE,MAIL_FROM,MAIL_TO,MAIL_SUBJECT,MESSAGE) values (" ;
// Get system properties
Properties properties = System.getProperties();
// Get the default Session object.
Session session = Session.getDefaultInstance(properties);
// Get a Store object that implements the specified protocol.
Store store = session.getStore("pop3");
//Connect to the current host using the specified username and password.
store.connect(host, user, password);
//Create a Folder object corresponding to the given name.
Folder folder = store.getFolder("inbox");
// Open the Folder.
folder.open(Folder.READ_ONLY);
Message[] message = folder.getMessages();
// Display message.
for (int i = 0; i < message.length; i++)
//System.out.println("------------ Message " + (i + 1) + " ------------");
//System.out.println("SentDate : " + message.getSentDate());
//System.out.println("From : " + message[i].getFrom()[0]);
//System.out.println("Subject : " + message[i].getSubject());
//System.out.print("Message : ");
InputStream stream = message[i].getInputStream();
int j = 0;
Message_2000 = "";
Message_2001 = "";
while(stream.available()>0 && j < 500)
// read the byte and convert the integer to character
s.append((char) stream.read());
j = j+1;
Message_2000 = s.toString();
Message_2001 = Message_2000.replace("'"," ");
System.out.println(strsql+"'"+(i + 1)+"','"+message[i].getSentDate()+"','"+message[i].getFrom()[0]+"','***@***.co.in','"+message[i].getSubject()+"','"+s.toString()+"')");
stm.execute(strsql+"'"+(i + 1)+"','"+message[i].getSentDate()+"','"+message[i].getFrom()[0]+"','***@****.co.in','"+message[i].getSubject()+"','"+Message_2001+"')");
folder.close(true);
store.close();
when i execute this some messages get inserted into table but for some messages
Exception in thread "main" java.sql.SQLException: ORA-01704: string literal too long
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2149)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2032)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2894)
at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:942)
at ReadMail_OLD.main(ReadMail_OLD.java:64)
Edited by: 997089 on May 1, 2013 9:29 PM
Edited by: 997089 on May 1, 2013 9:30 PMHi All,
Thanks for Your Reply .
I got the answer i have made a mistake in loop after every iteration i have not cleared the stringBuffer Varaible so the after one or two iteration it givesthe error.
import java.io.*;
import java.util.*;
import javax.mail.*;
import java.sql.*;
public class ReadMail_OLD {
static StringBuffer s= new StringBuffer();
static StringBuffer s1= new StringBuffer();
public static void main(String args[]) throws Exception {
String host = "***.****.co.in";
String user = "***@***.**.**";
String password = "******";
String Message_2000 = new String();
String Message_2001 = new String();
Connection conn;
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc:oracle:thin:@1.2.3.5:1050:abcgdb", "abc", "efg");
Statement stm = conn.createStatement();
String strsql = "insert into READ_MAIL_MSG (MESSAGE_ID,SENT_DATE,MAIL_FROM,MAIL_TO,MAIL_SUBJECT,MESSAGE) values (" ;
// Get system properties
Properties properties = System.getProperties();
// Get the default Session object.
Session session = Session.getDefaultInstance(properties);
// Get a Store object that implements the specified protocol.
Store store = session.getStore("pop3");
//Connect to the current host using the specified username and password.
store.connect(host, user, password);
//Create a Folder object corresponding to the given name.
Folder folder = store.getFolder("inbox");
// Open the Folder.
folder.open(Folder.READ_ONLY);
Message[] message = folder.getMessages();
// Display message.
for (int i = 0; i < message.length; i++)
//System.out.println("------------ Message " + (i + 1) + " ------------");
//System.out.println("SentDate : " + message.getSentDate());
//System.out.println("From : " + message.getFrom()[0]);
//System.out.println("Subject : " + message.getSubject());
//System.out.print("Message : ");
InputStream stream = message.getInputStream();
int j = 0;
Message_2000 = "";
Message_2001 = "";
while(stream.available()>0 && j < 500)
// read the byte and convert the integer to character
s.append((char) stream.read());
j = j+1;
Message_2000 = s.toString();
Message_2001 = Message_2000.replace("'"," ");
System.out.println(strsql+"'"+(i + 1)+"','"message.getSentDate()"','"message.getFrom()[0]"','***@****.co.in','"message.getSubject()"','"s.toString()"')");
stm.execute(strsql+"'"+(i + 1)+"','"message.getSentDate()"','"message.getFrom()[0]"','***@****.co.in','"message.getSubject()"','"Message_2001"')");
s.delete(0, s.length());
folder.close(true);
store.close();
Thanks for Reply
Edited by: 997089 on May 1, 2013 9:28 PM
Edited by: 997089 on May 1, 2013 9:30 PM -
Java.sql.SQLException: Byte array not long enough
using thin jdbc returned this exception seems to be connected to the length of the statment:
////////create a prepared statement////////
preUpdateStatement = dbConnection.prepareStatement(updateStatement.toString());
// build data output stream on byte array output stream
ByteArrayOutputStream byte_os = new ByteArrayOutputStream();
DataOutputStream data_os = new DataOutputStream(byte_os);
// write chars to data output stream
data_os.writeChars(((Element)m_values_vector.elementAt(i)).m_value);
// create input stream and pass it to prepared statement
ByteArrayInputStream byte_is = new ByteArrayInputStream(byte_os.toByteArray());
preStatement.setUnicodeStream(i+1, byte_is, byte_os.toByteArray().length);
// execute
preUpdateStatement.executeUpdate();
preUpdateStatement.close();
nullstack is:
java.sql.SQLException: Io exception: Char array not long enough: javaCharsToUtf8Bytes
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(Compiled Code)
at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(Compiled Code)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(Compiled Code)
at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(Compiled Code)
at oracle.jdbc.driver.OracleStatement.doExecute(Compiled Code)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Compiled Code)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(Compiled Code) -
Unjnown java.sql.SQLException... :-|
Hello !
Does anybody help me to understand this exception ?
java.sql.SQLException: Connection.close() has already been called. Invalid operation in this state.
at com.mysql.jdbc.Connection.getMutex(Connection.java:2101)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1539)
Thanks
LudovicConnection.close() has already been called. Invalid operation in this state.
What more can be said? I guess the excepiton trace contains the line where you want to work with the connection after close.
Mike -
Java.sql.SQLException: The TCP/IP connection to the host has failed.
Hello. I hope you had a happy new year! Now its back to work.
I am having a problem connecting to a remote SQL Server DB. I am using NetBeans 5.5 and the latest J2EE. I am able to see the tables in the IDE and bind objects to data. But when I run it it gets this:
java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: no further information
at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:100)
at com.sun.sql.rowset.internal.CachedRowSetXReader.connect(CachedRowSetXReader.java:344)
at com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:126)
at com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:968)
at com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1428)
I checked the SQL Server Configuration manager on that machine and TCP/IP connections are allowed. What else could be wrong?
Thank You."Connection refused" means that the client sends a packet saying "I would like to connect to port number NNNN please" to the server computer, and the server computer's OS sends the reply "there is no process listening to that port on the network interface you are using".
The database server is not running, or running but not listening to TCP/IP connections, or at a different port from what you think, or listening to only selected network interfaces (it is possible for a process to listen to a specific interface or a wildcard for all interfaces). A less likely scenario is that a firewall is sending the "connection refused" message.
First aid check list for "connection refused":
- Check host name in connect string.
- Check port number in connect string.
- Try numeric IP address of server host in connect string, in case name server is hosed.
- Are there any firewalls between client and server blocking the port.
- Check that the db server is running.
- Check that the db server is listening to the port. On the server, try: "telnet localhost the-port-number". Or "netstat -an", there should be a listening entry for the port. You need to configure the database to accept TCP connections; the server documentation or google should explain how.
- Try "telnet server-host-name the-port-number" from the client, to see if firewalls are blocking it.
- If "telnet" fails: try telnet with the numeric ip address.
- If "telnet" fails: does it fail immediately or after an obvious timeout? How long is the timeout?
- Does the server respond to "ping serverhost" or "telnet serverhost" or "ssh serverhost"? -
Java.sql.SQLException: ORA-03135: connection lost contact
In the whesphere portal i foun a lot of "ORA-03135: connection lost contact" errors but i cant find this error in the oracle client or oracle database.
Oracle Client 10.2.0.1
Oracle RDBMS 10.2.0.3 -- in Rac with 3 nodes
I have a fragment of the trace:
[20-NOV-2009 23:38:52:338] --- TRACE CONFIGURATION INFORMATION FOLLOWS ---
[20-NOV-2009 23:38:52:338] New trace stream is /opt/oracle/product/10.2.0/network/trace/cli_22293.trc
[20-NOV-2009 23:38:52:338] New trace level is 16
[20-NOV-2009 23:38:52:338] --- TRACE CONFIGURATION INFORMATION ENDS ---
[20-NOV-2009 23:38:52:338] --- PARAMETER SOURCE INFORMATION FOLLOWS ---
[20-NOV-2009 23:38:52:338] Attempted load of system pfile source /opt/oracle/product/10.2.0/network/admin/sqlnet.ora
[20-NOV-2009 23:38:52:338] Parameter source loaded successfully
[20-NOV-2009 23:38:52:338]
[20-NOV-2009 23:38:52:338] Attempted load of local pfile source /home/wasadm/.sqlnet.ora
[20-NOV-2009 23:38:52:338] Parameter source was not loaded
[20-NOV-2009 23:38:52:338]
[20-NOV-2009 23:38:52:338] -> PARAMETER TABLE LOAD RESULTS FOLLOW <-
[20-NOV-2009 23:38:52:338] Successful parameter table load
[20-NOV-2009 23:38:52:338] -> PARAMETER TABLE HAS THE FOLLOWING CONTENTS <-
[20-NOV-2009 23:38:52:338] trace_level_Server = 16
[20-NOV-2009 23:38:52:338] trace_level_client = 16
[20-NOV-2009 23:38:52:338] trace_directory_client = /opt/oracle/product/10.2.0/network/trace
[20-NOV-2009 23:38:52:338] trace_file_server = server
[20-NOV-2009 23:38:52:338] trace_timestamp_client = ON
[20-NOV-2009 23:38:52:338] trace_timestamp_Server = ON
[20-NOV-2009 23:38:52:338] trace_file_client = cli
[20-NOV-2009 23:38:52:338] trace_unique_client = TRUE
[20-NOV-2009 23:38:52:338] trace_directory_server = /opt/oracle/product/10.2.0/network/trace/server
[20-NOV-2009 23:38:52:338] --- PARAMETER SOURCE INFORMATION ENDS ---
[20-NOV-2009 23:38:52:338] --- LOG CONFIGURATION INFORMATION FOLLOWS ---
[20-NOV-2009 23:38:52:338] Log stream will be "/home/wasadm/sqlnet.log"
[20-NOV-2009 23:38:52:338] Log stream validation not requested
[20-NOV-2009 23:38:52:338] --- LOG CONFIGURATION INFORMATION ENDS ---
[20-NOV-2009 23:38:52:338] nlstdipi: entry
[20-NOV-2009 23:38:52:338] nlstdipi: exit
[20-NOV-2009 23:38:52:338] nigini: entry
[20-NOV-2009 23:38:52:339] nigini: Count in the NL global area is now 1
[20-NOV-2009 23:38:52:339] nigini: Count in NI global area now: 1
[20-NOV-2009 23:38:52:339] nrigbi: entry
[20-NOV-2009 23:38:52:339] nrigbni: entry
[20-NOV-2009 23:38:52:339] nrigbni: Unable to get data from navigation file tnsnav.ora
[20-NOV-2009 23:38:52:339] nrigbni: exit
[20-NOV-2009 23:38:52:339] nrigbi: exit
[20-NOV-2009 23:38:52:339] nigini: exit
[20-NOV-2009 23:38:52:339] niqname: Using nnfsn2a() to build connect descriptor for (possibly remote) database.
[20-NOV-2009 23:38:52:339] nnfgiinit: entry
[20-NOV-2009 23:38:52:339] nncpcin_maybe_init: first request sent to name server will have ID 0
[20-NOV-2009 23:38:52:339] nncpcin_maybe_init: initial retry timeout for all name servers is 1500 csecs
[20-NOV-2009 23:38:52:339] nncpcin_maybe_init: max request retries per name server is 1
[20-NOV-2009 23:38:52:338] nlstdipi: exit
[20-NOV-2009 23:38:52:338] nigini: entry
[20-NOV-2009 23:38:52:339] nigini: Count in the NL global area is now 1
[20-NOV-2009 23:38:52:339] nigini: Count in NI global area now: 1
[20-NOV-2009 23:38:52:339] nrigbi: entry
[20-NOV-2009 23:38:52:339] nrigbni: entry
[20-NOV-2009 23:38:52:339] nrigbni: Unable to get data from navigation file tnsnav.ora
[20-NOV-2009 23:38:52:339] nrigbni: exit
[20-NOV-2009 23:38:52:339] nrigbi: exit
[20-NOV-2009 23:38:52:339] nigini: exit
[20-NOV-2009 23:38:52:339] niqname: Using nnfsn2a() to build connect descriptor for (possibly remote) database.
[20-NOV-2009 23:38:52:339] nnfgiinit: entry
[20-NOV-2009 23:38:52:339] nncpcin_maybe_init: first request sent to name server will have ID 0
[20-NOV-2009 23:38:52:339] nncpcin_maybe_init: initial retry timeout for all name servers is 1500 csecs
[20-NOV-2009 23:38:52:339] nncpcin_maybe_init: max request retries per name server is 1
[20-NOV-2009 23:38:52:339] nngsini_init_streams: initializing stream subsystem, cache size is 10
[20-NOV-2009 23:38:52:339] snsgblini: Max no of descriptors supported is 15000
[20-NOV-2009 23:38:52:339] snsgblini: exit
[20-NOV-2009 23:38:52:339] nngtini_init_msg: initializing PDU subsystem, initial pool size is 2
[20-NOV-2009 23:38:52:339] nncpcin_maybe_init: default name server domain is [root]
[20-NOV-2009 23:38:52:339] nnfgiinit: Installing read path
[20-NOV-2009 23:38:52:339] nnfgsrsp: entry
[20-NOV-2009 23:38:52:339] nnfgsrsp: Obtaining path parameter from names.directory_path or native_names.directory_path
[20-NOV-2009 23:38:52:339] nnfgsrsp: Parmeter names.directory_path not found, setting path to compiled in default
[20-NOV-2009 23:38:52:339] nnfgspd: entry
[20-NOV-2009 23:38:52:339] nnfgspd: setting element TNSNAMES
[20-NOV-2009 23:38:52:339] nnfgspd: setting element HOSTNAME
[20-NOV-2009 23:38:52:339] nnfgspd: setting element EZCONNECT
[20-NOV-2009 23:38:52:339] nnfgspd: setting element LDAP
[20-NOV-2009 23:38:52:339] nnfgspd: Path set
[20-NOV-2009 23:38:52:339] nnfgspd: exit
[20-NOV-2009 23:38:52:339] nnfun2a: entry
[20-NOV-2009 23:38:52:339] nlolgobj: entry
[20-NOV-2009 23:38:52:339] nnfgrne: entry
[20-NOV-2009 23:38:52:339] nnfgrne: Going though read path adapters
[20-NOV-2009 23:38:52:339] nnfgrne: Switching to TNSNAMES adapter
[20-NOV-2009 23:38:52:339] nnftboot: entry
[20-NOV-2009 23:38:52:339] nlpaxini: entry
[20-NOV-2009 23:38:52:340] nlpaxini: exit
[20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: entry
[20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: construction of local names file failed
[20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: exit
[20-NOV-2009 23:38:52:340] nlpaxini: entry
[20-NOV-2009 23:38:52:340] nlpaxini: exit
[20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: entry
[20-NOV-2009 23:38:52:339] nnfgspd: Path set
[20-NOV-2009 23:38:52:339] nnfgspd: exit
[20-NOV-2009 23:38:52:339] nnfun2a: entry
[20-NOV-2009 23:38:52:339] nlolgobj: entry
[20-NOV-2009 23:38:52:339] nnfgrne: entry
[20-NOV-2009 23:38:52:339] nnfgrne: Going though read path adapters
[20-NOV-2009 23:38:52:339] nnfgrne: Switching to TNSNAMES adapter
[20-NOV-2009 23:38:52:339] nnftboot: entry
[20-NOV-2009 23:38:52:339] nlpaxini: entry
[20-NOV-2009 23:38:52:340] nlpaxini: exit
[20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: entry
[20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: construction of local names file failed
[20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: exit
[20-NOV-2009 23:38:52:340] nlpaxini: entry
[20-NOV-2009 23:38:52:340] nlpaxini: exit
[20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: entry
[20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: system names file is /opt/oracle/product/10.2.0/network/admin/tnsnames.ora
[20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: exit
[20-NOV-2009 23:38:52:340] nnftboot: exit
[20-NOV-2009 23:38:52:340] nnftrne: entry
[20-NOV-2009 23:38:52:340] nnftrne: Original name: pwp
[20-NOV-2009 23:38:52:340] nnfttran: entry
[20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: --- /opt/oracle/product/10.2.0/network/admin/tnsnames.ora TABLE HAS THE FOLLOWING CONTENTS ---
[20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: PWP = (DESCRIPTION= (ADDRESS_LIST= (FAILOVER=ON) (LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc02-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc03-vip)(PORT=1521))) (CONNECT_DATA= (SERVICE_NAME=HBCLHIA1.MX.HSBC.COM) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))))
[20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: PIDV = (DESCRIPTION= (ADDRESS_LIST= (FAILOVER=ON) (LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=TCP)(HOST=mxtopp1datdbc01-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxtopp1datdbc02-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxtopp1datdbc03-vip)(PORT=1521))) (CONNECT_DATA= (SERVICE_NAME=PIDV.MX.HSBC.COM) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))))
[20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: --- END /opt/oracle/product/10.2.0/network/admin/tnsnames.ora TABLE ---
[20-NOV-2009 23:38:52:340] nnfttran: exit
[20-NOV-2009 23:38:52:340] nnftrne: Using tnsnames.ora address (DESCRIPTION= (ADDRESS_LIST= (FAILOVER=ON) (LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc02-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc03-vip)(PORT=1521))) (CONNECT_DATA= (SERVICE_NAME=HBCLHIA1.MX.HSBC.COM) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)))) for name pwp
[20-NOV-2009 23:38:52:340] nnftrne: exit
[20-NOV-2009 23:38:52:340] nnfgrne: exit
[20-NOV-2009 23:38:52:340] nlolgserv: entry
[20-NOV-2009 23:38:52:340] nnfggav: entry
[20-NOV-2009 23:38:52:340] nnftgav: entry
[20-NOV-2009 23:38:52:340] nnftgav: exit
[20-NOV-2009 23:38:52:340] nnfgfrm: entry
[20-NOV-2009 23:38:52:340] nnftfrm: entry
[20-NOV-2009 23:38:52:340] nnftfrm: exit
[20-NOV-2009 23:38:52:340] nnfgfrm: exit
[20-NOV-2009 23:38:52:340] nlolgserv: exit
[20-NOV-2009 23:38:52:340] nlolgobj: exit
[20-NOV-2009 23:38:52:340] nlolfmem: entry
[20-NOV-2009 23:38:52:340] nlolfmem: exit
[20-NOV-2009 23:38:52:341] nigtrm: Count in the NI global area is now 1
[20-NOV-2009 23:38:52:341] nigtrm: Count in the NL global area is now 1
[20-NOV-2009 23:38:52:341] nigini: entry
[20-NOV-2009 23:38:52:341] nigini: Count in the NL global area is now 2
[20-NOV-2009 23:38:52:341] nigini: Count in NI global area now: 2
[20-NOV-2009 23:38:52:341] nigini: exit
[20-NOV-2009 23:38:52:341] niqname: Hst is already an NVstring.
[20-NOV-2009 23:38:52:341] niqname: Inserting CID.
[20-NOV-2009 23:38:52:341] niotns: entry
[20-NOV-2009 23:38:52:341] niotns: niotns: setting up interrupt handler...
[20-NOV-2009 23:38:52:341] nigsui: entry
[20-NOV-2009 23:38:52:341] nigsui: Set User Interrupt: hdl=1, prc=0xb7526534, ctx=0x80c6fe8.
[20-NOV-2009 23:38:52:341] nigsui: exit (0)
[20-NOV-2009 23:38:52:341] nttbnd2addr: entry
[20-NOV-2009 23:38:52:341] nttbnd2addr: ip=loopback specified
[20-NOV-2009 23:38:52:341] nttbnd2addr: using 127.0.0.1
[20-NOV-2009 23:38:52:341] snlinGetAddrInfo: entry
[20-NOV-2009 23:38:52:341] snlinGetAddrInfo: exit
[20-NOV-2009 23:38:52:341] nttbnd2addr: using host IP address: 127.0.0.1
[20-NOV-2009 23:38:52:341] snlinFreeAddrInfo: entry
[20-NOV-2009 23:38:52:341] snlinFreeAddrInfo: exit
[20-NOV-2009 23:38:52:341] nttbnd2addr: exit
[20-NOV-2009 23:38:52:341] nttcon: entry
[20-NOV-2009 23:38:52:341] nttcon: toc = 2
[20-NOV-2009 23:38:52:341] nttcnp: entry
[20-NOV-2009 23:38:52:341] nttcnp: creating a socket.
[20-NOV-2009 23:38:52:341] nttcnp: binding an address to a socket.
[20-NOV-2009 23:38:52:341] nttcnp: getting sockname
[20-NOV-2009 23:38:52:341] nttcnp: getting peername
[20-NOV-2009 23:38:52:341] nttcnp: exit
[20-NOV-2009 23:38:52:341] nttcon: exit
[20-NOV-2009 23:38:52:342] nttctl: entry
[20-NOV-2009 23:38:52:342] nttctl: Setting connection into non-blocking mode
[20-NOV-2009 23:38:52:342] niotns: Not trying to enable dead connection detection.
[20-NOV-2009 23:38:52:342] niotns: Calling address: (DESCRIPTION=(ADDRESS_LIST=(FAILOVER=ON)(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc02-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc03-vip)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=HBCLHIA1.MX.HSBC.COM)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))(CID=(PROGRAM=sqlplus)(HOST=mxchim1csmwas03)(USER=wasadm))))
[20-NOV-2009 23:38:52:342] nscall: entry
[20-NOV-2009 23:38:52:342] nsmal: entry
[20-NOV-2009 23:38:52:342] nsmal: 212 bytes at 0x80d2510
[20-NOV-2009 23:38:52:342] nsmal: normal exit
[20-NOV-2009 23:38:52:342] nscall: connecting...
[20-NOV-2009 23:38:52:342] nladini: entry
[20-NOV-2009 23:38:52:342] nladini: exit
[20-NOV-2009 23:38:52:342] nladget: entry
[20-NOV-2009 23:38:52:342] nladget: exit
[20-NOV-2009 23:38:52:342] nsc2addr: entry
[20-NOV-2009 23:38:52:342] nsc2addr: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=HBCLHIA1.MX.HSBC.COM)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))(CID=(PROGRAM=sqlplus)(HOST=mxchim1csmwas03)(USER=wasadm))))
[20-NOV-2009 23:38:52:342] nttbnd2addr: entry
[20-NOV-2009 23:38:52:342] snlinGetAddrInfo: entry
[20-NOV-2009 23:38:52:342] snlinGetAddrInfo: Invalid IP address string mxchpp1datdbc01-vip
[20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: entry
[20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: exit
[20-NOV-2009 23:38:52:342] snlinGetAddrInfo: exit
[20-NOV-2009 23:38:52:342] nttbnd2addr: looking up IP addr for host: mxchpp1datdbc01-vip
[20-NOV-2009 23:38:52:342] snlinGetAddrInfo: entry
[20-NOV-2009 23:38:52:342] snlinGetAddrInfo: exit
[20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: entry
[20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: exit
[20-NOV-2009 23:38:52:342] nttbnd2addr: exit
[20-NOV-2009 23:38:52:342] nsc2addr: normal exit
[20-NOV-2009 23:38:52:342] nsopen: entry
[20-NOV-2009 23:38:52:342] nsmal: entry
[20-NOV-2009 23:38:52:343] nsmal: 752 bytes at 0x80d3c98
[20-NOV-2009 23:38:52:343] nsmal: normal exit
[20-NOV-2009 23:38:52:343] nsopenmplx: entry
[20-NOV-2009 23:38:52:343] nsmal: entry
[20-NOV-2009 23:38:52:343] nsmal: 1580 bytes at 0x80d3f90
[20-NOV-2009 23:38:52:343] nsmal: normal exit
[20-NOV-2009 23:38:52:343] nsiorini: entry
[20-NOV-2009 23:38:52:343] nsbal: entry
[20-NOV-2009 23:38:52:343] nsbgetfl: entry
[20-NOV-2009 23:38:52:343] nsbgetfl: normal exit
[20-NOV-2009 23:38:52:343] nsmal: entry
[20-NOV-2009 23:38:52:343] nsmal: 84 bytes at 0x80d3690
[20-NOV-2009 23:38:52:343] nsmal: normal exit
[20-NOV-2009 23:38:52:343] nsbal: normal exit
[20-NOV-2009 23:38:52:343] nsiorini: exit (0)
[20-NOV-2009 23:38:52:343] nscpxget: entry
[20-NOV-2009 23:38:52:343] nscpxget: normal exit
[20-NOV-2009 23:38:52:343] nsopenalloc_nsntx: nlhthput on mplx_ht_nsgbu:ctx=80d3c98, nsntx=80d3f90
[20-NOV-2009 23:38:52:343] nsopenmplx: normal exit
[20-NOV-2009 23:38:52:343] nsopen: opening transport...
[20-NOV-2009 23:38:52:343] nttcon: entry
[20-NOV-2009 23:38:52:343] nttcon: toc = 1
[20-NOV-2009 23:38:52:343] nttcnp: entry
[20-NOV-2009 23:38:52:343] nttcnp: creating a socket.
[20-NOV-2009 23:38:52:343] nttcnp: exit
[20-NOV-2009 23:38:52:343] nttcni: entry
[20-NOV-2009 23:38:52:343] nttcni: trying to connect to socket 9.
[20-NOV-2009 23:38:52:345] snlinGetNameInfo: entry
[20-NOV-2009 23:38:52:345] snlinGetNameInfo: Using numeric form of host's address 10.217.136.201
[20-NOV-2009 23:38:52:345] snlinGetNameInfo: exit
[20-NOV-2009 23:38:52:345] nttcni: connected on ipaddr 10.217.136.201
[20-NOV-2009 23:38:52:345] nttcni: exit
[20-NOV-2009 23:38:52:345] nttcon: NT layer TCP/IP connection has been established.
[20-NOV-2009 23:38:52:345] nttcon: set TCP_NODELAY on 9
[20-NOV-2009 23:38:52:345] nttcon: exit
[20-NOV-2009 23:38:52:345] nsopen: transport is open
[20-NOV-2009 23:38:52:345] nsoptions: entry
[20-NOV-2009 23:38:52:345] nsoptions: lcl[0]=0x0, lcl[1]=0x102000, gbl[0]=0x0, gbl[1]=0xa01, cha=0x0
[20-NOV-2009 23:38:52:345] nsoptions: lcl[0]=0xf4ffe9ff, lcl[1]=0x102000, gbl[0]=0xfebf, gbl[1]=0xc01
[20-NOV-2009 23:38:52:345] nsoptions: normal exit
[20-NOV-2009 23:38:52:345] nsnainit: entry
[20-NOV-2009 23:38:52:345] nsnainit: call
[20-NOV-2009 23:38:52:345] nsnadct: entry
[20-NOV-2009 23:38:52:345] nsnadct: normal exit
[20-NOV-2009 23:38:52:345] nsnasvnainfo: entry
[20-NOV-2009 23:38:52:345] nsnasvnainfo: normal exit
[20-NOV-2009 23:38:52:345] nainit: entry
[20-NOV-2009 23:38:52:345] nagblini: entry
[20-NOV-2009 23:38:52:345] nau_gin: entry
[20-NOV-2009 23:38:52:345] nau_gparams: entry
[20-NOV-2009 23:38:52:345] nam_gbp: Reading parameter "sqlnet.authentication_required" from parameter file
[20-NOV-2009 23:38:52:345] nam_gbp: Parameter not found
[20-NOV-2009 23:38:52:345] nau_gparams: Using default value "FALSE"
[20-NOV-2009 23:38:52:345] nau_gslf: entry
[20-NOV-2009 23:38:52:345] nam_gic: entry
[20-NOV-2009 23:38:52:345] nam_gic: Counting # of items in "sqlnet.authentication_services" parameter
[20-NOV-2009 23:38:52:345] nam_gic: Parameter not found
[20-NOV-2009 23:38:52:345] nam_gic: Found 0 items
[20-NOV-2009 23:38:52:345] nam_gic: exit
[20-NOV-2009 23:38:52:345] nau_gslf: Using default value "all available adapters"
[20-NOV-2009 23:38:52:345] nauss_set_state: entry
[20-NOV-2009 23:38:52:345] nauss_set_state: exit
[20-NOV-2009 23:38:52:345] nau_gslf: exit
[20-NOV-2009 23:38:52:345] nau_gparams: exit
[20-NOV-2009 23:38:52:345] nau_gin: exit
Edited by: ghd on 20/11/2009 05:30 PMYou are right, i added the complete error
By chance do yo have a recommendation where can i look for to find the source problem?
Because in oracle client's logs or database's logs i can't find the ORA-03135 : connection lost contact
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
Caused by: java.sql.SQLException: ORA-03135: connection lost contact
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java(Compiled Code))
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java(Inlined Compiled Code))
at oracle.jdbc.driver.T2CPreparedStatement.executeForDescribe(T2CPreparedStatement.java(Compiled Code))
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java(Compiled Code))
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java(Compiled Code))
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java(Compiled Code))
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecuteQuery(WSJdbcPreparedStatement.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeQuery(WSJdbcPreparedStatement.java(Compiled Code))
at com.ibm.wps.datastore.impl.DataStoreContext.executeQuery(DataStoreContext.java(Compiled Code))
... 67 more -
Hi All,
I am using SUN ONE Webserver 6 on AIX with Oracle 8i. Every now and then I get this error
java.sql.SQLException: Io exception: A remote host did not respond within the timeout period.
I am not able to unterstand this. Some one please help...
ThanksAre you able to connect to the database server from the same machine where you are running SJS Web Server using JDBC?
Are the driver and the Database using compatible drivers?
Does it normally work? Is the error accompanied by other symptoms like application failure or unusually slow responses? -
Cannot connect to the database. java.sql.SQLException:
Hi,
I am trying to connect to Pointbase database through an applcation written under J2EE environment. I am able to connect with other database under Pointbase. I am trying to connect using the code as follows:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("Jdbc:Odbc:study", dbUserID, dbPassword);
and I am getting the Exception as shown delow :
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: access denied (java.lang.RuntimePermission exitVM)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
root cause
java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
java.security.AccessController.checkPermission(AccessController.java:401)
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
java.lang.SecurityManager.checkExit(SecurityManager.java:736)
com.sun.enterprise.J2EESecurityManager.checkExit(J2EESecurityManager.java:70)
java.lang.Runtime.exit(Runtime.java:88)
java.lang.System.exit(System.java:715)
org.apache.jsp.login_jsp._jspService(login_jsp.java:76)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server-PE-8.0 logs.
Sun-Java-System/Application-Server-PE-8.0
Please help.
NNJThanks for the reply. I have attached the server.log herewith :
[#|2008-10-05T11:44:45.945+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1006:Uploading the file to:[C:\Documents and Settings\Administrator\Local Settings\Temp\s1astempdomain1server-1629282413\server\study.war]|#]
[#|2008-10-05T11:44:45.955+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1007:Uploaded the remote file at: [C:\Documents and Settings\Administrator\Local Settings\Temp\s1astempdomain1server-1629282413\server\study.war]|#]
[#|2008-10-05T11:44:46.225+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1041:Sent the event to instance:[ModuleDeployEvent -- undeploy web/study]|#]
[#|2008-10-05T11:44:46.686+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]
[#|2008-10-05T11:44:47.947+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=12;|DPL5109: EJBC - START of EJBC for [study]|#]
[#|2008-10-05T11:44:47.977+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=12;|Processing beans ...|#]
[#|2008-10-05T11:44:47.987+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=12;|DPL5110: EJBC - END of EJBC for [study]|#]
[#|2008-10-05T11:44:48.158+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=12;|Total Deployment Time: 2043 msec, Total EJB Compiler Module Time: 40 msec, Portion spent EJB Compiling: 1%
Breakdown of EJBC Module Time: Total Time for EJBC: 40 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 0 msec (0%),
|#]
[#|2008-10-05T11:44:48.278+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=12;|deployed with moduleid = study|#]
[#|2008-10-05T11:44:48.378+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1041:Sent the event to instance:[ModuleDeployEvent -- deploy web/study]|#]
[#|2008-10-05T11:44:48.488+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.container.web|_ThreadID=12;|WEB0100: Loading web module [study] in virtual server [server] at [study]|#]
[#|2008-10-05T11:44:51.202+0530|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]
[#|2008-10-05T11:46:06.771+0530|WARNING|sun-appserver-pe8.0|javax.enterprise.system.stream.err|_ThreadID=16;|Cannot connect to the database. java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified|#]
[#|2008-10-05T11:46:06.871+0530|SEVERE|sun-appserver-pe8.0|javax.enterprise.system.container.web|_ThreadID=16;|StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkExit(SecurityManager.java:736)
at com.sun.enterprise.J2EESecurityManager.checkExit(J2EESecurityManager.java:70)
at java.lang.Runtime.exit(Runtime.java:88)
at java.lang.System.exit(System.java:715)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:76)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:102)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:261)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:200)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:582)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:647)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)
at java.lang.Thread.run(Thread.java:534)
|#]
regards,
NNJ -
I'm deploying an EJB Module with a CMP in SJAS from SJSE.
I get the following exception "java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found" the first time a CMP tries to connect to the MS SQL Server database.
I can connect through the Admin console (PING works fine) but this error hapens in runtime.
The datasource classname i'm using is "com.sun.sql.jdbcx.sqlserver.SQLServerDataSource" which is suggested by the SJSE.
Any help will be welcome...
Nelson MarquesIf you are using Netbeans, then this link might help:
http://forum.java.sun.com/thread.jspa?forumID=136&threadID=598423
Otherwise, have you try this ?
Verify your sun-ejb-jar.xml does not use default-resource-princinpal element:
<res-ref-name>jdbc/pdisasdb</res-ref-name>
<jndi-name>jdbc/pdisasdb</jndi-name>
<default-resource-principal>
<name>myname</name>
<password>geheim</password>
</default-resource-principal>
</resource-ref> -
Java.sql.SQLException: Error in allocating a connection
hi,
I have developed enterprise application using net beans IDE 5.5.I created one enity bean using sql server database.When i tried deploy this project i am getting following error...
Internal Exception: java.sql.SQLException: Error in allocating a connection.
Cause: Class name is wrong or classpath is not set for : com.microsoft.jdbc.sqlserver.SQLServerDataSourceError
can anybody please help me.....where i went wrong...i am new to netbeans IDE
regrds
patelu need to download the three jar files.
download the following jar files and add in ur classpath.
msutil-2000.sp2-lib.jar
msbase-2000.sp2-lib.jar
mssqlserver-2000.sp2-lib.jar
This is sample program...
u can test in standalone first and do in netbeans....
import java.sql.*;
public class querybean {
public String getdata(String sql) {
try {
System.out.println("testing connection ");
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;databaseName=master;user=sa;password=userpass;");
Statement statement = connection.createStatement();
ResultSet rs = statement.executeQuery(sql);
System.out.println("testing connection pooling");
while(rs.next()) {
System.out.println(rs.getString(1));
} catch(Exception e1) {
System.out.println("exception caught" + e1);
return "";
public static void main (String args[]) throws Exception {
querybean qb = new querybean();
qb.getdata("select * from sampletable");
I belive it will work now -
Java.sql.SQLException: can't create statement from closed connection
java.sql.SQLException: can't create statement from closed connection.
at com.caucho.sql.QPooledConnectionImpl.prepareStatement(QPooledConnecti onImpl.java:411)
I am getting this error with my JSP's, i am running on Resin on Win2k, and MySql as backend.
Has anyone else also faced this issue ?
Looking for someone to help me to solve this issue.
rcLooking for someone to help me to solve this issue.Maybe you are closing the connections. You might want to verify that you are not doing that. Or if you are that that is the correct way to return the connection to the pool.
Or you could have stale connections. Some databases will time out connections if the connection is no used in a while. (This is a good thing.) But this means connection pools must do something with connections that are not used for a while. The pools usually have a configuration option(s) which allows you to set up a keep alive message which keeps the database from closing the connection.
Maybe you are looking for
-
Getting error while running shell scripts
Hi DBAS, I Have one requirement,i want connect n database dynamically by using dynamic password and execute some oracle commands,i written some script ,but while running i am getting error,please any one correct my error ,i am not able to getting err
-
Quote: frustratedbutopenAug 27, 2014 6:17 AM Wow. Apple really screwed up the program this time. Here's some of my new problems. 1. PDF's no longer cycle through the pages in the viewer window. You can't skim the pages, find the one you need, and dro
-
Changing properties of multiple resources in one transaction
Hi, Does anyone have an idea how to change a property in multiple resources in one atomic transaction. There are some interesting comments regarding the use of "mass calls" in various SAP documents but not really anything specific. The changing of o
-
Exporting Prores 422(HQ) Quicktime error -50
I've been having trouble with this particular file, both in Compressor 3 and 3.5 We're trying to run movie through, and we're getting a quicktime error -50 each and every time. The input is a 1920x1080 59.94i film. We're trying to use compressor to I
-
Why doesn't Spotlight actually find stuff
Unless there is something I am doing wrong, I am giving up on Spotlight. It rarely finds what I am looking for whenever I do a search. I can know the exact name of a document I am searching for, do a search and have it not show up in the search resul