-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Error Connection with Datasource
PostPosted: Mon Apr 04, 2005 11:00 am 
Beginner
Beginner

Joined: Mon Jan 24, 2005 11:56 am
Posts: 24
Hi,

We got error
Caused by: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
ORA-12705: invalid or unknown NLS parameter value specified

When we try to connect to OracleDB 10.1.0.3 from OracleAS 10.1.0.2 with Hibernate version 2.1.7.

It works on OracleAS 9.0.4!

Regards,
Alireza Fattahi

****************
The Stack Trace is:
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:647)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at com.evermind.sql.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:213)
at com.evermind.sql.DriverManagerConnectionPoolDataSource.getPooledConnection(DriverManagerConnectionPoolDataSource.java:36)
at com.evermind.sql.OrionPooledDataSource.getPooledConnection(OrionPooledDataSource.java:582)
at com.evermind.sql.PooledConnectionUsage.getPooledConnection(PooledConnectionUsage.java:22)
at com.evermind.sql.OrionPooledDataSource.getConnection(OrionPooledDataSource.java:346)
at com.liferay.util.dao.hibernate.DSConnectionProvider.getConnection(DSConnectionProvider.java:61)
at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:289)


********
The DSConnectionProvider is

public class DSConnectionProvider implements ConnectionProvider {

public void configure(Properties props) throws HibernateException {
String location = props.getProperty(Environment.DATASOURCE);

try {
_ds = (DataSource)JNDIUtil.lookup(new InitialContext(), location);
}
catch (Exception e) {
throw new HibernateException(e.getMessage());
}
}

public Connection getConnection() throws SQLException {
return _ds.getConnection();
}

public void closeConnection(Connection con) throws SQLException {
con.close();
}

public boolean isStatementCache() {
return false;
}

public void close() {
}

private DataSource _ds;

}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.