[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-2229) Hibernate Tools - JUnit tests has a lot of errors with Oracle test connection

Vitali Yemialyanchyk (JIRA) jira-events at lists.jboss.org
Fri May 16 12:40:22 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-2229?page=comments#action_12413060 ] 
            
Vitali Yemialyanchyk commented on JBIDE-2229:
---------------------------------------------

and also

BasicMultiSchemaTest->testBasic()

java.sql.SQLException: ORA-00902: ("wrong data type")

	at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:133)
	at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:115)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:221)
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:467)
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:417)
	at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1084)
	at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:187)
	at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1215)
	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1515)
	at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:2400)
	at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:2344)
	at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:892)
	at org.hibernate.tool.JDBCMetaDataBinderTestCase.executeDDL(JDBCMetaDataBinderTestCase.java:101)
	at org.hibernate.tool.JDBCMetaDataBinderTestCase.setUp(JDBCMetaDataBinderTestCase.java:140)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)



> Hibernate Tools - JUnit tests has a lot of errors with Oracle test connection
> -----------------------------------------------------------------------------
>
>                 Key: JBIDE-2229
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-2229
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>            Reporter: Vitali Yemialyanchyk
>         Assigned To: Vitali Yemialyanchyk
>            Priority: Minor
>         Attachments: screenshot-1.jpg, screenshot-2.jpg
>
>
> 1) install Oracle 11g;
> 2) setup default db;
> 3) change etc/hibernate.properties:
> comment ## HypersonicSQL section,
> update ## Oracle section:
> hibernate.dialect org.hibernate.dialect.Oracle10gDialect
> hibernate.connection.driver_class oracle.jdbc.OracleDriver
> hibernate.connection.url jdbc:oracle:thin:@localhost:1521:orcl
> hibernate.connection.username SYSTEM
> hibernate.connection.password sa
> 4) add Oracle driver into the progect (on my computer it is "C:\app\Vitali\product\11.1.0\db_1\jdbc\lib\ojdbc5_g.jar")
> 5) Run ToolAllTests as JUnit test
> screenshot is example.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list