Note that there are some explanatory texts on larger screens.

plurals
  1. POcannot create a functioning connection pool with glassfish
    primarykey
    data
    text
    <p>I'm trying to create a connection pool from glassfish to Oracle. When I use command line, all seems to work during the creation, but the application crashed with this exception:</p> <p><code> <code>Caused by: java.sql.SQLException: Protocol violation at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450) at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186) at oracle.jdbc.driver.T4C7Ocommoncall.doOROLLBACK(T4C7Ocommoncall.java:68) at oracle.jdbc.driver.T4CConnection.doRollback(T4CConnection.java:642) at oracle.jdbc.driver.PhysicalConnection.rollback(PhysicalConnection.java:3716) at com.sun.gjc.spi.base.ConnectionHolder.rollback(ConnectionHolder.java:630) at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:217) at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:196)</code> </code><br></p> <p><strong>EDIT</strong>: This exception is trowed when the application try to do a rollback, using JPA. <strong>END EDIT</strong></p> <p>This is the command I used to create the CP:<br> <code> <code>asadmin&gt; create-jdbc-connection-pool --restype javax.sql.DataSource --datasourceclassname oracle.jdbc.pool.OracleDataSource --property "user=myUser:password=myPw:url=jdbc\\:oracle\\:thin\\:@dbHostName\\:1521\\:mySID" My_CP</code> </code></p> <p>I tried also to create the CP from the admin gui (that would be more user friendly), but even if I copied the ojdbc6.jar in /opt/glassfish3_old/glassfish/domains/domain1/lib, when I have to select the driver classname the corresponding selection list is empty!</p> <p><strong>EDIT</strong>: I'm using: java version "1.7.0_06" Java(TM) SE Runtime Environment (build 1.7.0_06-b24) Java HotSpot(TM) Server VM (build 23.2-b09, mixed mode)</p> <p>and glassfish 3.1.2.2 oracle version (but with the 3.1.2 open source version, it behaves the same)<bR> <strong>END EDIT</strong></p> <p>Probably I'm doing a stupid error somewhere.</p> <p>Can anyone have a suggestion?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload