Project: talendesb
Issue TESB-7271: tOracleInput component: ClassCastException when check "Specify a data source alias".
I create very easy job with 2 components: tOracleInput and tLogRow. tOracleInput connect to oracle database and select all records from one table. When I don't check "Specify a data source alias" it works ok both in studio and in runtime. When I deploy check "Specify a data source alias" and deploy it in runtime I receive exception: Exception in component tOracleInput_1 java.lang.ClassCastException: oracle.jdbc.driver.LogicalConnection cannot be cast to oracle.jdbc.OracleConnection at testoracle.oracletest_0_1.OracleTest.tOracleInput_1Process(OracleTest.java:482) at testoracle.oracletest_0_1.OracleTest.runJobInTOS(OracleTest.java:794) at org.talend.esb.job.controller.internal.SimpleJobTask$JobRunner.run(SimpleJobTask.java:80) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at org.talend.esb.job.controller.internal.SimpleJobTask.run(SimpleJobTask.java:62) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Other tOracleRow component works without exceptions.
Story points: 1