Oracle SQL - Bug

Hi All,
I am writing this so that someone someday can take this to Oracle Corp as this is a simple bug which ought to be rectified by Oracle.
Eg: select * from emp a where a.empno in ( select empno from empl b)
Here i am using an Isolation Level 1 by using a Sub-Query to only return rows that matches with empno in table Empl but Empl table used in Sub Query does not have a Column by name empno . This should have returned an Oracle error instead it is taking the Column alias of table emp in Main Query.
Many of us here will think or presume that this is correct as when using Isolation levels but this is not happening that way . There is an Oracle Bug which ought to be rectified in their next release.

Definitively not a bug, at least bad query writing.
Use prefix should solve your problem, something like this :
select * from emp a where a.empno in ( select[b] b.empno from empl b)Furthermore, I wouldn't understand why you want, in the subquery, get the empno from the emp table instead of empl.
Here was some threads about that, please read one of them here below :
Re: Bug in Oracle 9.2.0.1.0.
Moreover, this is not because you said "many of us here" want a correction that Oracle will correct it, because that's not a bug !
Nicolas.

Similar Messages

  • Oracle SQL Developer Data Modeler 3.0 Bugs, Resolution and workarounds

    The purpose of this thread is to list bugs discovered while using ORACLE SQL Developer Data Modeler 3.0
    Mainly with SQL SERVER 2005 and ORACLE 10g models.

    SQL Server Physical model doesn't save table identity column.
    here are the steps to get this bug:
    1. create a table in relational model with a column as an integer to be used as an identity.
    2. create or open a physical model for SQL-SERVER 2005
    3. open the table in the physical model
    4. edit the integer column property dialog
    5. tick the identity check box and close the property dialog
    6. save the model and close it
    7. open it again, you will find the identity check is removed! (probably not saved from the start)

  • Bug in Oracle SQL Developer

    I had Oracle SQL Developer 1.5.0.53 and when I did a "Check for Update" it said no updates found, even though SQL Developer 1.5.1 was released on June 9, 2008. So obviously this is a bug you need to fix.
    OK - So I downloaded the latest Oracle SQL Developer and installed it and when I opened it up, all my connections were gone!!!
    That's another bug you need to fix.

    See Does check for updates install 1.5.1 for some suggestions for Check for Update.
    For installing 1.5.1 and then losing your connections, did you install in a new directory or over the top of 1.5.0? If yes, then reinstall again into a new directory. If not, did migrate your settings from 1.5.0? Without doing that 1.5.1 won't find your existing connections.
    theFurryOne

  • BUG in Oracle SQL Developer 3.0.04 on the "generating DLL" with comments?

    I'm newbie on oracle, but I think that I found out a bug in Oracle SQL Developer version 3.0.04 on the "generating DLL" tool using "comments".
    I will describe the steps that I gave:
    I created a view, but after I test it I had to change my “where” condition, so I comment the old code and then I wrote the new “where” condition below. After I done that I tried to look at the sql code of my view using “generating DLL” tool, but oracle sql developer only shown me half of the code, a lot of code were missing. Then I began with some test trying to understand what happen and I notice that if I put an invalid sql code in my comment the generating DLL start working with no problems, for example(pseudo-code):
    (COMMENT WITH VALID SQL CODE the "Generating SQL" don't work:)
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    SELECT column1, column2
    FROM table1
    INNER JOIN
    (SELECT
    FROM table2
    INNER JOIN .....
    INNER JOIN ....
    --where time_stamp = (select max(time_stamp) from .....)
    WHERE time_stamp >= TRUNC(sysdate)
    ) t1 ON t1.ID = ....
    AND ..... >= TRUNC(sysdate)
    ORDER BY ....
    Generating DLL returns this(when the error occurs):
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    (COMMENT WITH VALID SQL CODE the "Generating SQL" work with no problems:)
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    SELECT column1, column2
    FROM table1
    INNER JOIN
    (SELECT
    FROM table2
    INNER JOIN .....
    INNER JOIN ....
    --where
    WHERE time_stamp >= TRUNC(sysdate)
    ) t1 ON t1.ID = ....
    AND ..... >= TRUNC(sysdate)
    ORDER BY ....
    I believe that "Generating DLL" tool have some problem with the comments, I also used /*...*/ to comment but the problem is still active.
    I notice as well that if I started to add some more comments along the code, the conditions migth change, so I think the problem is related with "comments" code.
    Would you mind telling me if this is a real bug or if I'm doing anything wrong.
    Thank you in advance,
    Rodrigo Campos
    Edited by: 894886 on 3/Nov/2011 5:29

    Hi Rodrigo,
    Thank you for reporting this. The only bug I see currently logged on a comment affecting the generated View DDL involves ending the last line of the definition with a comment, which treats the ending semi-colon (even if on a different line) as part of the comment. That is actually related to a low-priority bug against an Oracle database API.
    Unfortunately, your pseudo-code is a bit complex. Trying a few quick, simpler tests against the standard HR schema did not reproduce the issue. I tried INNER JOIN, and nested SELECTs. It would help greatly if you could provide a test case compilable against one of the standard schema, like HR or SCOTT.
    Regards,
    Gary
    SQL Developer Team

  • Oracle SQL Developer 3.2, SQL*Plus COLUMN FORMAT bug

    SQL*Plus command COLUMN truncates output result in SQL Developer.
    Script in Worksheet:
    column nn format 999
    select level nn from dual connect by level<=10;The Run Script (F5) result contains only 8 lines in Script Output window:
    NN
    1
    2
    3
    4
    5
    6
    7
    8
    Changing column alias:
    select level nn2 from dual connect by level<=10NN2
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    10 rows selected
    The output can contain no data for more formatted columns.
    ===============================================================
    About
    Oracle SQL Developer 3.2.09
    Version 3.2.09
    Build MAIN-09.30
    Copyright © 2005, 2012 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.4.37.59.48
    Product ID: oracle.sqldeveloper
    Product Version: 11.2.0.09.30
    Version
    Component     Version
    =========     =======
    Java(TM) Platform     1.7.0_02
    Oracle IDE     3.2.09.30
    Versioning Support     3.2.09.30

    sqldeveloper64-3.2.09.30-no-jre.zip.
    My jdk now is 1.7.07 x64, Windows 7 x64.
    C:\Java\jdk17\bin>java -version
    java version "1.7.0_07"
    Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
    Gary Graham wrote:Also, I don't understand what you mean by
    The output can contain no data for more formatted columns.
    Sript:
    col owner format a10
    col table_name format a20
    col column_name format a20
    col comments format a50
    select
       row_number() over(order by column_name) r11,   
       count(*) over() c11,
       owner ow,
       table_name tn,
       column_name cn,
       comments co
    from all_col_comments t
    where owner='SYS' and table_name='INDEX_STATS';
    select
       row_number() over(order by column_name) r,   
       count(*) over() c,
       owner,
       table_name,
       column_name,
       comments
    from all_col_comments t
    where owner='SYS' and table_name='INDEX_STATS';
    select 1 from dual;
    prompt abcThe output truncated after headers of second queryR11 C11 OW                             TN                             CN                             CO                                                                                                                                                        
      1  25 SYS                            INDEX_STATS                    BLKS_GETS_PER_ACCESS           Expected number of consistent mode block gets per row. This assumes that a row chosen at random from the table is being searched for using the index
      2  25 SYS                            INDEX_STATS                    BLOCKS                         blocks allocated to the segment                                                                                                                    
      3  25 SYS                            INDEX_STATS                    BR_BLKS                        number of branch blocks in the b-tree                                                     
      4  25 SYS                            INDEX_STATS                    BR_BLK_LEN                     useable space in a branch block                                                           
      5  25 SYS                            INDEX_STATS                    BR_ROWS                        number of branch rows                                                                     
      6  25 SYS                            INDEX_STATS                    BR_ROWS_LEN                    sum of the lengths of all the branch blocks in the b-tree                                 
      7  25 SYS                            INDEX_STATS                    BTREE_SPACE                    total space currently allocated in the b-tree                                             
      8  25 SYS                            INDEX_STATS                    DEL_LF_ROWS                    number of deleted leaf rows in the index                                                  
      9  25 SYS                            INDEX_STATS                    DEL_LF_ROWS_LEN                total length of all deleted rows in the index                                             
    10  25 SYS                            INDEX_STATS                    DISTINCT_KEYS                  number of distinct keys in the index                                                      
    11  25 SYS                            INDEX_STATS                    HEIGHT                         height of the b-tree                                                                      
    12  25 SYS                            INDEX_STATS                    LF_BLKS                        number of leaf blocks in the b-tree                                                       
    13  25 SYS                            INDEX_STATS                    LF_BLK_LEN                     useable space in a leaf block                                                             
    14  25 SYS                            INDEX_STATS                    LF_ROWS                        number of leaf rows (values in the index)                                                 
    15  25 SYS                            INDEX_STATS                    LF_ROWS_LEN                    sum of the lengths of all the leaf rows                                                   
    16  25 SYS                            INDEX_STATS                    MOST_REPEATED_KEY              how many times the most repeated key is repeated                                          
    17  25 SYS                            INDEX_STATS                    NAME                           name of the index                                                                         
    18  25 SYS                            INDEX_STATS                    OPT_CMPR_COUNT                 optimal prefix compression count for the index                                            
    19  25 SYS                            INDEX_STATS                    OPT_CMPR_PCTSAVE               percentage storage saving expected from optimal prefix compression                        
    20  25 SYS                            INDEX_STATS                    PARTITION_NAME                 name of the index partition, if partitioned                                               
    21  25 SYS                            INDEX_STATS                    PCT_USED                       percent of space allocated in the b-tree that is being used                               
    22  25 SYS                            INDEX_STATS                    PRE_ROWS                       number of prefix rows (values in the index)                                               
    23  25 SYS                            INDEX_STATS                    PRE_ROWS_LEN                   sum of lengths of all prefix rows                                                         
    24  25 SYS                            INDEX_STATS                    ROWS_PER_KEY                   average number of rows per distinct key                                                   
    25  25 SYS                            INDEX_STATS                    USED_SPACE                     total space that is currently being used in the b-tree                                    
    25 rows selected
    R C OWNER      TABLE_NAME           COLUMN_NAME          COMMENTS                                        
    - - ---------- -------------------- -------------------- --------------------------------------------------

  • SQL Bug in "Minus" in correlated subquery presence of index (11.2.0.1.0)

    SQL Bug in "Minus" in correlated subquery presence of index
    (Oracle Database 11g Release 11.2.0.1.0)
    Below, there is a small example that shows the bug. Further below,
    there are some more comments.
    drop table Country;
    create table Country
    (code VARCHAR2(4) constraint countrykey PRIMARY KEY,
    name VARCHAR2(35));
    -- if the key constraint is not given, the bug does not occur
    drop table City;
    create table City
    (name VARCHAR2(35),
    country VARCHAR2(4),
    population number);
    drop table Locatedon;
    create table Locatedon
    (city VARCHAR2(35),
    country VARCHAR2(4),
    island VARCHAR2(35));
    insert into country values('E','Spain');
    insert into country values('F','France');
    insert into country values('S','Sweden');
    insert into country values('GB','Sweden');
    insert into city values('Ajaccio','F',53500);
    insert into city values('Paris','F',2152423);
    insert into city values('Palma','E',322008);
    insert into city values('Madrid','E',3041101);
    insert into city values('Stockholm','S',711119);
    insert into city values('London','GB',6967500);
    insert into locatedon values('Ajaccio','F','Corse');
    insert into locatedon values('Palma','E','Mallorca');
    insert into locatedon values('London','GB','Great Britain');
    -- all countries that have a city that is not located on
    -- some island: should be E, F, S.
    Select c.name
    From country c
    Where exists
    ((Select name
    From city
    Where city.country=c.code)
    minus
    (Select city
    From locatedon
    Where locatedon.country=c.code)
    -- wrong answer: only Sweden; Spain and France not in the answer!
    select distinct country from
    ((Select name, country
    From city)
    minus
    (Select city, country
    From locatedon)
    -- correct answer: E, F, S
    Comments:
    The bug has been found by students in our SQL course.
    Using a larger database from that course, the bug can be reproduced
    (same queries as above) at
    http://www.semwebtech.org/sqlfrontend/
    (wrong: 142 answers, correct: 154 answers)
    During reducing it to a simple sample, there were some interesting
    observations: trying with smaller and simpler tables (without the keys)
    and synthetic data, the bug did not occur immediately. When
    restating the query after about one day, the bug occurred. Obviously,
    Oracle creates some index on its own in course of its internal
    optimization that (or more exactly, its usage) exhibits the bug. The
    query plan (showed in SQL Developer) was the same before and after.
    Wolfgang

    There's a typo in the test data - GB should presumably not be in Sweden. However....
    the bug did not occur immediatelyIt's possible. But what would have almost certainly happened is that the execution plan DID change at some point. There are various reasons why it might not be immediate.
    Obviously, Oracle creates some index on its own in course of its internal optimizationFar from obvious, what are you on about?
    The query plan was the same before and afterBet you it wasn't.
    A clear illustration of the issue and indication that it must be a bug is below.
    Simply by hinting a different access method, we can change the result. Therefore, bug.
    See [url http://support.oracle.com]Oracle Support and search for "wrong results".
    Please raise with Oracle Support to get confirmation of bug.
    There have been so many wrong results bugs recently, it's getting ridiculous.
    It's a real issue, IMHO.
    If you can't trust the DB to get your data right....
    Note that the query plan is very much NOT the same and it is the difference in query plan which s that is the root cause of the bug.
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    SQL> SELECT c.name
      2  FROM   country1 c
      3  WHERE  exists ((SELECT name
      4                  FROM   city1
      5                  WHERE  city1.country=c.code)
      6                  MINUS
      7                 (SELECT city
      8                  FROM   locatedon1
      9                  WHERE  locatedon1.country=c.code));
    NAME
    Sweden
    SQL> SELECT /*+ full(c) */
      2         c.name
      3  FROM   country1 c
      4  WHERE  exists ((SELECT name
      5                  FROM   city1
      6                  WHERE  city1.country=c.code)
      7                  MINUS
      8                 (SELECT city
      9                  FROM   locatedon1
    10                  WHERE  locatedon1.country=c.code));
    NAME
    Spain
    France
    Sweden
    SQL> explain plan for
      2  SELECT c.name
      3  FROM   country1 c
      4  WHERE  exists ((SELECT name
      5                  FROM   city1
      6                  WHERE  city1.country=c.code)
      7                  MINUS
      8                 (SELECT city
      9                  FROM   locatedon1
    10                  WHERE  locatedon1.country=c.code));
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 156929629
    | Id  | Operation                    | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |            |     1 |    27 |    12  (25)| 00:00:01 |
    |   1 |  NESTED LOOPS                |            |       |       |            |          |
    |   2 |   NESTED LOOPS               |            |     1 |    27 |    12  (25)| 00:00:01 |
    |   3 |    VIEW                      | VW_SQ_1    |     6 |    24 |    10  (20)| 00:00:01 |
    |   4 |     MINUS                    |            |       |       |            |          |
    |   5 |      SORT UNIQUE             |            |     6 |   138 |            |          |
    |   6 |       TABLE ACCESS FULL      | CITY1      |     6 |   138 |     4   (0)| 00:00:01 |
    |   7 |      SORT UNIQUE             |            |     3 |    69 |            |          |
    |   8 |       TABLE ACCESS FULL      | LOCATEDON1 |     3 |    69 |     4   (0)| 00:00:01 |
    |*  9 |    INDEX UNIQUE SCAN         | COUNTRYKEY |     1 |       |     0   (0)| 00:00:01 |
    |  10 |   TABLE ACCESS BY INDEX ROWID| COUNTRY1   |     1 |    23 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       9 - access("VW_COL_1"="C"."CODE")
    Note
       - dynamic sampling used for this statement (level=4)
    26 rows selected.
    SQL> explain plan for
      2  SELECT /*+ full(c) */
      3         c.name
      4  FROM   country1 c
      5  WHERE  exists ((SELECT name
      6                  FROM   city1
      7                  WHERE  city1.country=c.code)
      8                  MINUS
      9                 (SELECT city
    10                  FROM   locatedon1
    11                  WHERE  locatedon1.country=c.code));
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 1378726376
    | Id  | Operation            | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |            |     1 |    23 |    14  (15)| 00:00:01 |
    |*  1 |  FILTER              |            |       |       |            |          |
    |   2 |   TABLE ACCESS FULL  | COUNTRY1   |     4 |    92 |     4   (0)| 00:00:01 |
    |   3 |   MINUS              |            |       |       |            |          |
    |   4 |    SORT UNIQUE       |            |     1 |    23 |     5  (20)| 00:00:01 |
    |*  5 |     TABLE ACCESS FULL| CITY1      |     1 |    23 |     4   (0)| 00:00:01 |
    |   6 |    SORT UNIQUE       |            |     1 |    23 |     5  (20)| 00:00:01 |
    |*  7 |     TABLE ACCESS FULL| LOCATEDON1 |     1 |    23 |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter( EXISTS ( (SELECT "NAME" FROM "CITY1" "CITY1" WHERE
                  "CITY1"."COUNTRY"=:B1)MINUS (SELECT "CITY" FROM "LOCATEDON1" "LOCATEDON1"
                  WHERE "LOCATEDON1"."COUNTRY"=:B2)))
       5 - filter("CITY1"."COUNTRY"=:B1)
       7 - filter("LOCATEDON1"."COUNTRY"=:B1)
    Note
       - dynamic sampling used for this statement (level=4)
    27 rows selected.Just to show that it's related to query transformation:
    SQL> SELECT /*+ 
      2             no_query_transformation
      3         */
      4         c.name
      5  FROM   country1 c
      6  WHERE  exists ((SELECT name
      7                  FROM   city1
      8                  WHERE  city1.country=c.code)
      9                  MINUS
    10                 (SELECT city
    11                  FROM   locatedon1
    12                  WHERE  locatedon1.country=c.code));
    NAME
    Spain
    France
    Sweden
    SQL> Edited by: Dom Brooks on Jun 30, 2011 2:50 PM

  • Set indention / tab size in Oracle SQL Developer

    I've been poking around for an hour. Can't figure this out.
    Where, either on the app's UI or in the "product-preferences.xml" file, can I change SQL Developer's indention (tab) size to 3? My organization uses PowerBuilder, and when I copy+paste our PB SQL (which uses leading tabs) into Oracle SQL Developer, it looks like crap. It would really help if I could change the code editor to a tab size equivalent to three spaces.
    And no, we can’t use spaces. :-)
    Thanks!
    (maybe SQL Developer 2 could have a tab size field in “Preferences”)

    In 1.5.x, it's under Preferences - Database - SQL Formatter - Alignment and Indentation .
    However, at least in the current 1.5.3, a bug ignores the tab preferences completely, so you're stuck with the 2 spaces. If you can't wait until this gets fixed (with luck in the upcoming 1.5.4 or else maybe by 2.0), revert to an earlier version.
    Regards,
    K.

  • Oracle SQL Developer for OSX not able to compile/execute/handle packages?

    Hi,
    Have been stuck with this for quite some mins now,
    When I execute this simple -valid- create package statement in Oracle SQL Developer:
    http://www.pastebin.ca/757859
    It shows it's not compiled and has errors, when I check the Packages part in Oracle SQL Developer I see this:
    http://www.pastebin.ca/757860
    The ; after end has been removed by the application. In fact this means I can't do anything with packages in Oracle SQL Developer for OSX?
    Is this a known bug?
    Or am I doing something wrong?
    Any resolving response to this matter would be really appreciated.

    Yeah, that bug is in there since stoneage, and is really a no-brainer to fix. Until they don't, we'd be losing time recompiling.
    FWIW, everything works fine using the procedure editor for creating, editing and compiling.
    Regards,
    K.

  • Oracle SQL Developer Release 1.5.5 "compile for debug"

    Using Oracle SQL Developer Release 1.5.5 on Windows XP pro machine connecting to 9.2.0.4 database on AIX machine.
    Trying to debug a procedure, in the navigator window, I rt-clk the procedure and select "Compile for Debug", then nothing happens. This happens for every procedure I've tried. I've been granted both DEBUG ANY PROCEDURE and DEBUG CONNECT SESSION. Any ideas?

    This is the first I've used SQL Developer, so I'll take the blame. I had not noticed that the Messages Log does in fact tell me that the proc compiled. However, the debug icon (little red bug) was nowhere to be found.
    I see now that I need to Edit, not Open, the proc in order to debug. If I had read the Help screens a little more closely, I would have seen that I needed to be in Edit mode. My bad. Thanx to all for your responses.

  • ClassCastException in oracle.sql.TRANSDUMP with parameterbinding

    We are facing with the following problem when we use Toplink DirectToFieldMapping on a field of java-type java.util.Calendar where the database-type is DATE.
    This exception ONLY occures if we use parameter-binding set to true in sessions.xml
    <should-bind-all-parameters>true</should-bind-all-parameters>
    trace:
    [java] java.lang.ClassCastException
    [java] at oracle.sql.TRANSDUMP.getTransitions(TRANSDUMP.java:41)
    [java] at oracle.sql.TIMEZONETAB.updateTable(TIMEZONETAB.java:456)
    [java] at oracle.sql.TIMESTAMPTZ.toBytes(TIMESTAMPTZ.java:1424)
    [java] at oracle.sql.TIMESTAMPTZ.toBytes(TIMESTAMPTZ.java:1614)
    [java] at oracle.sql.TIMESTAMPTZ.<init>(TIMESTAMPTZ.java:256)
    [java] at oracle.toplink.internal.platform.database.oracle.TIMESTAMPHelper.buildTIMESTAMPTZ(TIMESTAMPHelper.jav
    a:21)
    [java] at oracle.toplink.oraclespecific.Oracle9Platform.setParameterValueInDatabaseCall(Oracle9Platform.java:34
    5)
    [java] at oracle.toplink.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.prepareBatchStatements(P
    arameterizedSQLBatchWritingMechanism.java:171)
    [java] at oracle.toplink.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatchedStatements
    (ParameterizedSQLBatchWritingMechanism.java:135)
    [java] at oracle.toplink.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.appendCall(Parameterized
    SQLBatchWritingMechanism.java:78)
    [java] at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:621)
    [java] at oracle.toplink.publicinterface.UnitOfWork.executeCall(UnitOfWork.java:1400)
    [java] at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:131)
    [java] at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
    [java] at oracle.toplink.internal.queryframework.CallQueryMechanism.insertObject(CallQueryMechanism.java:264)
    [java] at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.j
    ava:171)
    [java] at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.j
    ava:188)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMecha
    nism.java:433)
    [java] at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:45)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMe
    chanism.java:596)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryM
    echanism.java:563)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(Datab
    aseQueryMechanism.java:465)
    [java] at oracle.toplink.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:119)
    [java] at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQuery
    Mechanism.java:258)
    [java] at oracle.toplink.queryframework.WriteObjectQuery.execute(WriteObjectQuery.java:51)
    [java] at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
    [java] at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
    [java] at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2255)
    [java] at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
    [java] at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
    [java] at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:177)
    [java] at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3223)
    [java] at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1092)
    [java] at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1137)
    [java] at oracle.toplink.publicinterface.UnitOfWork.issueSQLbeforeCompletion(UnitOfWork.java:2492)
    [java] at oracle.toplink.jts.oracle9i.Oracle9iJTSSynchronizationListener.beforeCompletion(Oracle9iJTSSynchroniz
    ationListener.java:75)
    [java] at com.evermind.server.ApplicationServerTransaction.callSynchronizationBeforeCompletion(ApplicationServe
    rTransaction.java:1404)
    [java] at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1
    256)
    [java] at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:680)
    [java] at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:1035)
    [java] at StandortFacade_StatelessSessionBeanWrapper28.create(StandortFacade_StatelessSessionBeanWrapper28.java
    :478)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java
    :192)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] at connection to localhost/127.0.0.1
    [java] at com.evermind.server.rmi.OrionRemoteException.receive(OrionRemoteException.java:130)
    [java] at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1738)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:453)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:333)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java
    :186)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] 2005-06-28 19:33:03,452 WARN de.dpag.move.stammdaten.cs.StandortDelegate - resetHome
    [java] 2005-06-28 19:33:03,452 ERROR de.dpag.move.client.stammdaten.model.standort.StandortEditDialogModel - Intern
    er Fehler auf dem Server!
    [java] de.dpag.move.infrastructure.exception.InternalException: com.evermind.server.rmi.OrionRemoteException: Trans
    action was rolled back: Error in transaction: java.lang.ClassCastException; nested exception is:
    [java] java.lang.ClassCastException
    [java] at de.dpag.move.stammdaten.cs.StandortDelegate.create(StandortDelegate.java:184)
    [java] at de.dpag.move.client.stammdaten.model.standort.StandortEditDialogModel.createDataAtServer(StandortEdit
    DialogModel.java:235)
    [java] at de.dpag.move.client.stammdaten.model.AbstractEditDialogModel.storeTO(AbstractEditDialogModel.java:124
    [java] at de.dpag.move.client.stammdaten.control.AbstractEditDialogController.okay(AbstractEditDialogController
    .java:127)
    [java] at de.dpag.move.client.common.AbstractDialogController.doApply(AbstractDialogController.java:714)
    [java] at de.dpag.move.client.common.AbstractDialogController$2.apply(AbstractDialogController.java:230)
    [java] at de.dpag.move.client.common.AbstractMDIDialog$4.actionPerformed(AbstractMDIDialog.java:326)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    [java] at java.awt.Component.processMouseEvent(Component.java:5100)
    [java] at java.awt.Component.processEvent(Component.java:4897)
    [java] at java.awt.Container.processEvent(Container.java:1569)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3615)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1627)
    [java] at java.awt.Component.dispatchEvent(Component.java:3477)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1613)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1606)
    [java] at java.awt.Component.dispatchEvent(Component.java:3477)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    [java] Caused by: com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error in transaction:
    java.lang.ClassCastException; nested exception is:
    [java] java.lang.ClassCastException
    [java] at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:
    1602)
    [java] at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1553)
    [java] at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
    [java] at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.
    java:22)
    [java] at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocati
    onHandler.java:50)
    [java] at __Proxy5.create(Unknown Source)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at de.dpag.move.infrastructure.interceptor.MethodCallInterceptor.invoke(MethodCallInterceptor.java:31)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.DelegateAuthentifizierungInterceptor.invoke(DelegateAuthentif
    izierungInterceptor.java:70)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.DelegateExceptionHandlingInterceptor.invoke(DelegateException
    HandlingInterceptor.java:34)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.BadThreadInterceptor.invoke(BadThreadInterceptor.java:27)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.infrastructure.interceptor.TraceInterceptor.invoke(TraceInterceptor.java:39)
    [java] at de.dpag.move.infrastructure.interceptor.MoveMethodInvocation.proceed(MoveMethodInvocation.java:58)
    [java] at de.dpag.move.stammdaten.cs.StandortDelegate.create(StandortDelegate.java:178)
    [java] ... 29 more
    [java] Caused by: java.lang.ClassCastException
    [java] at com.evermind.server.rmi.OrionRemoteException.receive(OrionRemoteException.java:130)
    [java] at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1738)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:453)
    [java] at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:333)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java
    :186)
    [java] at java.lang.Thread.run(Thread.java:534)
    we have made a debugging and can see that connection.prepareCall(...) answers an instance of com.evermind.sql.CallableStatementBCELProxy,
    which of course results in the ClassCastException showed above.
    the exception occurs at the class TRANSDUMP in the line where the explicit cast to OracleCallableStatement is done
    oracle.sql.TRANSDUMP is taken from ojdbc14.jar, the recommended one from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html
    public class TRANSDUMP
    public TRANSDUMP()
    public static byte[] getTransitions(Connection connection, int i)
    throws SQLException
    OracleCallableStatement oraclecallablestatement = (OracleCallableStatement)connection.prepareCall("begin dbms_utility.get_tz_transitions(?,?); end;");
    NUMBER number = new NUMBER(i);
    oraclecallablestatement.setNUMBER(1, number);
    oraclecallablestatement.registerOutParameter(2, -2);
    oraclecallablestatement.execute();
    byte abyte0[] = oraclecallablestatement.getBytes(2);
    oraclecallablestatement.close();
    return abyte0;
    we use the following settings in our data-sources.xml
    <data-source
              name="FOODS"
              username="scott"
              password="tiger"
              location="jdbc/FOODS"          
              connection-driver="oracle.jdbc.driver.OracleDriver"
              class="com.evermind.sql.OrionCMTDataSource"
              url="jdbc:oracle:thin:@foo-db-1:1545:db1"
              inactivity-timeout="30"/>
    the used sessions.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE toplink-configuration PUBLIC "-//Oracle Corp.//DTD TopLink Sessions 9.0.4//EN" "sessions_9_0_4.dtd">
    <toplink-configuration>
    <session>
    <name>datenpool</name>
    <project-xml>datenpool.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/FOODS</datasource>
    <platform-class>oracle.toplink.oraclespecific.Oracle9Platform</platform-class>
    <uses-native-sequencing>true</uses-native-sequencing>
    <should-bind-all-parameters>true</should-bind-all-parameters>
    <uses-streams-for-binding>true</uses-streams-for-binding>
    <should-force-field-names-to-uppercase>true</should-force-field-names-to-uppercase>
    <uses-batch-writing>true</uses-batch-writing>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-native-sql>true</uses-native-sql>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    <enable-logging>true</enable-logging>
    <logging-options/>
    </session>
    </toplink-configuration>
    environment:
    OC4J: 10.1.2
    Toplink: 9.0.4.5
    JDBC-Driver: ojdbc14.jar for Oracle9i (9.2.0.5) and the needed classes12dms.jar carried with the oc4j10.1.2.0 installation (jdbc\lib\classes12dms.jar.jar)
    Oracle9i: 9.2.0.5
    Is this a problem in our oc4j with toplink and datasource configuration or perhaps a real BUG ?
    Regards,
    Dirk

    Hi everyone, i'm developing an application based on Spring - TopLink combination, in a test enviroment using JDeveloper embedded OC4J, everything works fine, but when i try to deploy the application on OAS 10.1.3.1 (SOA suite), i get the next Exception
    07/12/13 18:13:39 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ToplinkSessionFactory' defined in class path resource [cu-generarprocesoseleccion-app-context.xml]: Initialization of bean failed; nested exception is java.lang.ClassCastException: oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController
    07/12/13 18:13:39 java.lang.ClassCastException: oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController
    07/12/13 18:13:39      at oracle.toplink.platform.server.ServerPlatformBase.initializeExternalTransactionController(ServerPlatformBase.java:194)
    07/12/13 18:13:39      at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:498)
    07/12/13 18:13:39      at org.springframework.orm.toplink.LocalSessionFactory.createSessionFactory(LocalSessionFactory.java:292)
    07/12/13 18:13:39      at org.springframework.orm.toplink.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:52)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    07/12/13 18:13:39      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
    07/12/13 18:13:39      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
    07/12/13 18:13:39      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:81)
    07/12/13 18:13:39      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
    07/12/13 18:13:39      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:57)
    07/12/13 18:13:39      at com.iqsoft.rrhh.cu_generarprocesoseleccion.business.ejb.GenerarProcesoSeleccionBean.ejbCreate(GenerarProcesoSeleccionBean.java:25)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/12/13 18:13:39      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/12/13 18:13:39      at java.lang.reflect.Method.invoke(Method.java:585)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    07/12/13 18:13:39      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/12/13 18:13:39      at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    07/12/13 18:13:39      at com.evermind.server.ejb.LifecycleManager.invokeLifecycleMethod(LifecycleManager.java:262)
    07/12/13 18:13:39      at com.evermind.server.ejb.LifecycleManager.invokeLifecycleMethod(LifecycleManager.java:252)
    07/12/13 18:13:39      at com.evermind.server.ejb.LifecycleManager.postConstruct(LifecycleManager.java:113)
    07/12/13 18:13:39      at com.evermind.server.ejb.StatelessSessionBeanPool.createContextImpl(StatelessSessionBeanPool.java:40)
    07/12/13 18:13:39      at com.evermind.server.ejb.BeanPool.createContext(BeanPool.java:418)
    07/12/13 18:13:39      at com.evermind.server.ejb.BeanPool.allocateContext(BeanPool.java:244)
    07/12/13 18:13:39      at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:25)
    07/12/13 18:13:39      at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
    07/12/13 18:13:39      at GenerarProcesoSeleccionEJB_LocalProxy_1heg7kp.registrarProcesoSeleccion(Unknown Source)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/12/13 18:13:39      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/12/13 18:13:39      at java.lang.reflect.Method.invoke(Method.java:585)
    07/12/13 18:13:39      at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invoke(LocalSlsbInvokerInterceptor.java:66)
    07/12/13 18:13:39      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    07/12/13 18:13:39      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
    07/12/13 18:13:39      at $Proxy0.registrarProcesoSeleccion(Unknown Source)
    07/12/13 18:13:39      at com.iqsoft.rrhh.cu_generarprocesoseleccion.web.bean.RegistrarProcesoJSFBean.registrarProcesoSeleccion(RegistrarProcesoJSFBean.java:129)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/12/13 18:13:39      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/12/13 18:13:39      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/12/13 18:13:39      at java.lang.reflect.Method.invoke(Method.java:585)
    07/12/13 18:13:39      at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
    07/12/13 18:13:39      at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
    07/12/13 18:13:39      at javax.faces.component.UICommand.broadcast(UICommand.java:109)
    07/12/13 18:13:39      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
    07/12/13 18:13:39      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
    07/12/13 18:13:39      at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
    07/12/13 18:13:39      at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
    07/12/13 18:13:39      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
    07/12/13 18:13:39      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
    07/12/13 18:13:39      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
    07/12/13 18:13:39      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    07/12/13 18:13:39      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
    07/12/13 18:13:39      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
    07/12/13 18:13:39      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    07/12/13 18:13:39      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    07/12/13 18:13:39      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    07/12/13 18:13:39      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/12/13 18:13:39      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    07/12/13 18:13:39      at java.lang.Thread.run(Thread.java:595)
    As you can see, the problem seems to be the Oracle9iJTSExternalTransactionController class.
    hte sessions.xml, i'm using, is the next:
    <toplink-configuration>
    <session>
    <name>RRHHadmin</name>
    <project-xml>META-INF/IQSOFTDomain/rrhh-deployment-descriptor.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/HrDS</datasource>
    <sequence-preallocation-size>50</sequence-preallocation-size>
    <sequence-table>SEQUENCE</sequence-table>
    <sequence-name-field>SEQ_NAME</sequence-name-field>
    <sequence-counter-field>SEQ_COUNT</sequence-counter-field>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    </session>
    </toplink-configuration>
    I'm using TopLink 10, any help would be appreciated

  • Oracle.sql.BLOB.getBytes

    Hi,
    When my application( weblogiv 12c) is trying to fetch data from a BLOB column of a table, it is getting the below exception.
         at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.lang.NullPointerException
         at oracle.sql.BLOB.getBytes(BLOB.java:344)
         at oracle.jdbc.driver.OracleBlobInputStream.needBytes(OracleBlobInputStream.java:181)
         at oracle.jdbc.driver.OracleBufferedStream.readInternal(OracleBufferedStream.java:169)
         at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java:143)
         at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java:132)
         at com.tcs.bancs.ARCH.Q_USER.Get(Q_USER.java:4026)
         ... 63 more
    I am thinking in lines of inappropriate oracle drivers. This application is currently pointed to oracle 11g database and throwing exception. However, when I swtich the database to another one (oracle 10g) with exactly the same data (to be precise, it is a replica of 11g mentioned above), it functions without any issue.
    Could anyone please help me in getting through this ..

    It does sound like a bug/incompatibility between drivers and DBMSes. Open an official support case with Oracle.

  • Oracle.sql.BLOB.freeTemporary() is not freeing TEMP space in the database

    Hi Folks,
    We are using oracle.sql.BLOB to store some file information into the database.
    Allocation of the temp space is done as below
    BLOB blob=BLOB.createTemporary(conn, false, BLOB.DURATION_SESSION); // this results in the usage of TEMP space from database
    And subsequent release is done as below
    blob.freeTemporary(); // this should have release the space from the database.
    This is on Oracle 10g, Java 1.6, ojdbc6.jar There are no exceptions. Even a simple program results in the same.
    Anybody faced something similar? Any pointers would be really appreciated.
    Thanks,
    Deva
    Edited by: user10728663 on Oct 11, 2011 5:33 AM

    Thanks a lot for the information.
    Memory is fine. And I am able to reproduce this within the scope of a simple example as well.
    Would you have any reference to the thread which had earlier reported this as a bug. I tried a reasonable amount of search in the forum, but no success.
    Thanks very much for any pointers.

  • Oracle sql STRUCT query

    Hi all. I have a simple program running in JDeveloper using JDBC for retrieving SDO_Geometry values from various spatial tables. The program works fine but when I run the following SQL statement to retrieve the geometry column from a table states it is returning the sdo_geometry values in the following format:
    spatialQuery = "select a.geom from states a";oracle.sql.STRUCT@e2dae9,     
    oracle.sql.STRUCT@19209ea,     
    oracle.sql.STRUCT@c8f6f8,     
    oracle.sql.STRUCT@1ce2dd4,     
    oracle.sql.STRUCT@122cdb6,     
    I know the program works but can anyone tell me how to interpret these results or even how to translate them into a more useful format. Cheers Joe

    I assume you are getting back a List (Vector) with the Struct inside it. Try ((List)query.getSingleResult()).get(0).
    In JPA you should get the Struct back directly if the result size was 1, otherwise an Object[], this was a bug in EclipseLink 1.0 that was fixed in EclipseLink 1.1.
    You should probably upgrade to EclipseLink 1.1.
    James : http://www.eclipselink.org

  • Import data using Excel and Oracle SQL Developer - I need some help

    Dear friends,
    I'm using Oracle SQL Developer 1.5.1 and I need to import an Excel file into a database table. If I try to import this file in XLS format, fields and headers are correctly being shown and separated, but if I press "Next" button, it simply doesn't do anything - it stays stopped.
    I did some search here in this forum and it seems to me that, when you try to import a file via XLS format, SQL Developer has bugs. Is this correct?
    If I save the same file in CSV format and try to import the same file, it goes ahead, but SQL Developer is not separating fields and headers correctly. It combines all CSV fields into one - let's say Column0 and fields 1;TEST;01/01/2000 below the same Column0.
    Saving the file in CSV format is not a problem, taking a very little time. But I don't know how to make SQL Developer import it correctly. Could somebody please help me? Thanks in advance.
    Best regards,
    Franklin

    Hello K,
    yes, you're right. I found the following topic after posting this question here.
    Re: After update to 1.5.1, import from Excel fails
    I downloaded version 1.5.0 and I'll use it whenever I import data from Excel.
    Thanks,
    Franklin

  • Issue with Oracle.sql.NUMBER in Java Stored Procedure

    When we try to make a call to the Oracle.sql.NUMBER(String) inside a java stored procedure and pass values from '01' to '09', it throws java.lang.StringIndexOutOfBoundsException: String index out of range: 3
    We use Oracle 9.2.0.6 - JServer Release 9.2.0.6.0.
    It works fine for other values. Please find below the code used for simulating the issue outside the application. Thanks.
    create or replace and compile java source named testNumber as
    import oracle.sql.NUMBER;
    import java.sql.SQLException;
    public class TestNumber
           public static String convertNumber(String parm) {
                     NUMBER nTest;
                     try {
                             nTest = new NUMBER(parm);
                             return "TRUE";
                     }catch (SQLException sqle) {
                             return "FALSE";
    create or replace function test_number (p_str in varchar2) return varchar2 as
    language Java name 'TestNumber.convertNumber(java.lang.String) return
    java.lang.String';
    select test_number('05') from dual;  - Throws exception ORA-29532: Java call terminated by uncaught Java exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 3
    select test_number('5') from dual; - Works fine
    select test_number('010') from dual; - Works fine

    Siva,
    I'm only guessing, but it could be an Oracle bug, in which case I suggest checking with Oracle Support.
    (You do have a support contract, don't you? ;-)
    Did you try compiling and running your java class "TestNumber" outside the database?
    Class "oracle.sql.NUMBER" should be in Oracle's JDBC driver, I believe.
    Good Luck,
    Avi.

Maybe you are looking for

  • Unable to close iPad2 attachments

    I am brand new to the apple community, so please bear with me for the newbee question. After configuring my brand new iPad2 yesterday to sync with my mail provider, I opened an email attachment and I am unable to close it. When I press and hold the t

  • Lose full screen when streaming movies

    Lately when streaming netflix my screen minimizes on it's own.If I click on full screen it comes right back.The intervals are random.It just started doing this and I don't think I added anything to my computer that caused this.

  • BDC for QP01

    Can any one help me ,BDC for QP01 transaction with multiple line items. Thanx in advance,I promise to reward.

  • Corrupted characters when importing PDFS to combined PDF

    When I import PDFS they are showing up in the combined PDF with corrupted characters. What's up?

  • MIRO excise entries

    Hi, I have a PO which has excise conditions maintained in it. But at GR I didn't take its excise. Now when I am doing MIRO system is showing cenvat clng entries. There is a note available to avoid this MIRO entry. May I know the note number? thanks,