Discussions

General J2EE: In 10G, cmp findbyprimarykey is not working....anyone is facing?

  1. In the following scenario on "Oracle 10g" throwing exception.

    session bean method(){
    //variables
    //lookups

    BMP bean lookup and accessing method
    method access

    Direct JDBC code,
    preparestament and execueupdate();

    one more SLS method access

    try{
    finding cmp-1 if found updating else it will throw object not found exception
    }
    catch(ObjectNotfoundException){
    calling CMP-1 create method
    }
    similarly for CMP-2
    try{
    finding cmp-2if found updating else it will throw object not found exception
    }
    catch(ObjectNotFound Exception)
    {
    calling CMP-2create method
    }
    }
    ObjectNotfound exception.

    Transaction attribute for all the methods is "Required"

    the above described code is throwing ObjectNotfound for CMP's though data is present.

    This is working in oracle 9ias and 9.0.2 coontainer

    This might be bug in 10g.

    is anybody comeacrossed this problem?

    Thanks in advance,
    Purush

    Threaded Messages (1)

  2. patch#3829014[ Go to top ]

    Oracle has released patch for this issues accepting it as bug.

    Patch details are as follows:
    patch#3829014