Problems Overriding DBTransactionImpl2/DatabaseTransactionFactory

I have been following the tutorial in the JDeveloper Developer's Guide 25.8.4 How to Implement a Custom Constraint Error Handling Routine to catch and handle database constraint messages in our JHeadstart-based applications.
Implementing and testing the code through my Embedded OC4J worked flawlessly. However, a flagrant problem occurred when the app was deployed to a real application server. When deployed to our Oracle SOA Suite instance the customized code is simply not being used. My implementing is doing nearly the exact same thing as the tutorial in the Developer's Guide, except that instead of nulling the exceptions, I am throwing a new JboException with a nice error message for the user.
What would cause my code to work fine in the Embedded OC4J, but not in a deployed Oracle Application Sever instance? Would a simple library version conflict cause such a disparity? If so, how would I go about comparing my Embedded OC4J ADF libraries to the ADF libraries on our application server?
Thanks
Enviroment Information
JDeveloeper 10.1.3.1.0.3984
JHeadstart 10.1.3.26
Oracle SOA Suite 10.1.3.1.0

Hello,
> What would cause my code to work fine in the Embedded OC4J, but not in a
deployed Oracle Application Sever instance? Would a simple library version
conflict cause such a disparity?
In general, we indeed suspect a different version of the ADF Faces libraries.
For what concerns your case, would it be possible that another ADF BC application is running in the same OC4J instance ?
I'm asking that because I logged the following bug a few days after a customer reported that the first application was using the correct DBTransactionFactory, but any other application deployed in the same OC4J was using the same instance of the same DBTransactionFactory (Bug 7000435 - ADF BC APPS DEPLOYED ON THE SAME OC4J INSTANCE SHARE SAME DBTRANSACTIONFACTORY).
> If so, how would I go about comparing my Embedded OC4J ADF libraries
to the ADF libraries on our application server?
No easy way that I'm aware of.
We often recommend to re-install the ADF libraries, that's faster than trying to find out the difference.
If you really want to check the versions, you can see them by opening the JAR files and checking the version in the MANIFEST.
Regards,
Didier.

Similar Messages

  • Problem overriding default JSF conversion error messages

    Hello !
    I have a problem to override default JSF conversation error message. I have an inputText which is binded to BigDecimal attribute, so when I enter a character in that field I get this error message: "- Conversion failed."
    I think I need to register the message bundle in my faces config, and put the key of this error message to my properties file.. am I right ?
    Can somebody help me with this ? Which key I need to put into the properties file ?
    Miljan

    Get [Sun's Java EE tutorial |https://www.sun.com/offers/details/JavaEETutorial.xml?cid=20090723ZA_TACO_JVEE_0004] and read the relevant section so you don't have to guess what you need to do.

  • Problems Overriding setInterval with Button onRelease

    Hi.
    I'm successfully jumping between playing Frame 1 and Frame 2
    using the functions below and setIntervals ...
    ( The following code is in Frame 1 main timeline ... )
    stop();
    / / this advances to the next frame
    var myInterval:Number;
    function proceed() {
    nextFrame();
    clearInterval(myInterval);
    myInterval = setInterval(proceed,15000);
    // The code below is in Frame 2 of the main timeline
    stop();
    // the following function goes back a frame
    var myInterval:Number;
    function receed() {
    clearInterval(myInterval);
    prevFrame();
    myInterval = setInterval(receed,9000);
    Everything gets all jacked up when I try and add a button to
    escape the flipping between Frame 1 and 2 and jump to Frame 5. My
    button is in frame 1. The following script is on Frame 1 of main
    Timeline and instead of going to Frame 5 when the button is pressed
    it just goes to the Next Frame (not overriding setInterval??)
    //FLASH GLOSSY BUTTON
    //designed and developed by [email protected]
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    //functions used for the event handlers
    function over(){
    var myTween:Tween = new
    Tween(this.btn_mask,"_alpha",Strong.easeOut,this.btn_mask._alpha,50,2,true);
    function out(){
    var myTween:Tween = new
    Tween(this.btn_mask,"_alpha",Strong.easeOut,this.btn_mask._alpha,0,2,true);
    function press(){
    this._y +=3;
    this._x +=3;
    // Want to go to Frame 5 on release of button ...
    function release(){
    this._y -=3;
    this._x -=3;
    clearInterval(myInterval);
    gotoAndPlay("5");
    function releaseoutside(){
    var myTween:Tween = new
    Tween(this.btn_mask,"_alpha",Strong.easeOut,this.btn_mask._alpha,0,2,true);
    this._y -=3;
    this._x -=3;
    //button1 events
    btn1.onRollOver = over;
    btn1.onRollOut = out;
    btn1.onPress = press;
    btn1.onRelease = release;
    btn1.onReleaseOutside = releaseoutside;
    Any suggestions?
    Sincerely,
    Paul Cross

    unless your frame is labeled with the string 5, you should
    use:
    gotoAndStop(5).
    and if it is labeled with the string 5 you should change it.
    it's problematic to use flash names that start with a
    number.

  • Problem  overriding methods

    Hi All:
    There is a problem in executing the following code. Ambiguity error is reported on compilation.....if i have MyMethod(double x) in the base class there is no hassle....so what's the fun is about.
    //--------code starts here---------
    class MyBase{
         public void MyMethod(int x){
              System.out.println("double");
    class MyDerived extends MyBase{
         public void MyMethod(double x){
              System.out.println("int");
    public class EntryPoint{
         public static void main(String args[]){
              MyDerived myD = new MyDerived();
              myD.MyMethod(10.8);
              myD.MyMethod(12);
    //----------code ends here-------
    overlooking for your feedbacks

    As far as I know, methods get called in accordance with what kind of class the reference points to - i.e myDerived (but it's possible that I confused this with how "calls" to variables are handled, so don't bet your life on it). However, I guess there could be an ambiguity problem since methods that take doubles could also take integers. So... when you pass a double to myMethod as it is given in your code, there is no question about it - it has to be handled by the MyMethod in the subclass (the super class only deals with integers). On the other hand, if you pass an integer to MyMethod(), it's really an open question (as I see it, anyway) which method you actually want.
    EDIT: Hmm... it's possible to pass an int to a method wanting doubles, is it not? Or am I too C++-ish? If it's not possible, I have no idea what the problem is. If it is possible, I guess the amibuity stems from the possibility to call any of those two method. Ehm. That's what I think.

  • Problems overriding interrupt() method in Thread

    I have a class that extends Thread and overrides interrupt() method but it does not seem to be using that. I have some print statements in my method but they never get printed.
    public class ProcessingThread extends Thread {
       public void run () {
           // Processing code
    public void interrupt() {
         System.out.println("Interrupt() method");
         super.interrupt();
    }It won't print the statement in the interrupt() method. I tried to add synchronized as well,. Is it possible or maybe java does not allow this?

    Basically the code that calls it is like in a java tutorial example
    ProcessingThread pt = new ProcessingThread();
    pt.start();
    long timeout = 1000 * 60;   // one minute
    long startTime = System.currentTimeMillis();
    while(pt.isAlive()){
    pt.join(1000);
    if(((System.currentTimeMillis() - startTime) > timeout) && pt.isAlive()) {
        pt.interrupt() ;
    }When it calls pt.interrupt it doesn't call the overrided method (I tried adding a flush but still no indication that it goes into that method)

  • Java Language problem: Multiple interfaces extension.

    Not just any interfaces. Take a close look:
    public interface interface1 {
         public void aMethod();
    public interface Interface2 {
         public void aMethod() throws Exception();
    }As you can see, both interfaces define a single method with the same signature... but one of them throws Exception.
    Consider "merging" these two interfaces:
    public interface Interface3 extends Interface1, Interface2 {}Should the resulting method throw Exception? Eclipse says it does. But I think it shouldn't. Here's the logic:
    If the method in Interface3 DIDN'T throw Exception, it would be able to extends the method in Interface1 and Interface2, because it is not throwing checked exceptions not thrown in the superinterfaces' methods definitions... however, as It DOES throw Exception, it can't extend the method in Interface1, because Interface1's method doesn't throw Exception. Am I right?

    It's not a naming problem. I'll tell you where the problem comes from:
    I'm working with EJBs. I (personally) like to separete the business "signatures" of the beans in a single interface.
    So, for every bean I make, I have a single interface that defines the method.... it says NOTHING about the beans.
    Remote beans methods have to throw RemoteException, so I have to throw RemoteException in my business logic classes. I then make two interfaces that implement this interface. One remote (that just extends this interface and EJBRemote) and another local that extends EJBLocal and overrides all the methods so they don't throw RemoteExceptions (Local bean interfaces' methods must NOT throw RemoteException).
    For example:
    public interface Beaninterface {
    public void aMethod() throws RemoteExeption();
    public interface Bean extends EJBRemote, BeanInterface {}
    public interface BeanLocal extends EJBLocalObject , Beaninterface {
    public void aMethod();
    }No problem so far.
    Here's where the mess comences:
    I want to EXTEND this bean interfaces so I make a bean based on the former.
    I will add another method to the business interface of the new bean:
    Business Interface
    public interface ExtendedBeanInterface extends BeanInterface {
    public void newMethod() throws RemoteException;
    }This new interface defines the new method and inherits the method from BeanInterface
    Remote Interface of the new bean:
    public interface ExtendedBean extends ExtendedBeanInterface, EJBObject {}Nothing wo do there.
    Here is the real problem:
    I have to extend the ExtendedBeanInterface, but that will bring two methods that throw Remote Exception. I have no problem overriding both methods in this interface.. but how about if thyere are 50 methods in the BeanInterface? I'm not going to go ahead and removing each method for evety bean I extend. That makes NO sense. What I think I should do is to extend BeanLocal so those methods that were brought from BeanInterface be known not to throw RemoteExeption.
    public interface ExtendedBeanLocal extends EJBLocalObject, ExtendedBeanInterface, BeanLocal {
    public void newMethod();
    }And THERE is where I hit the wall, because when I deploy the bean, the application server informs me that the resulting interface is throwing RemoteException (courtesy of ExtendedBeanInterface).
    Accoring to my logic about Java Language, by extending BeanLocal, aMethod() shouldn't throw RemoteException as a result in ExtendedBeanLocal.
    So... what is the next step? Go with JCP?

  • Tile problem: Working on 1.3 and not on 1.3.1

    Ok, I've already sent this as a bug in JavaFX Jira but it's not public yet, so I'm going to post it here in case someone can understand what is really happening. The problem timeline is the following:
    - I have a tile with 3 rectangles that had a roll over effect (they scale their size)
    - After 1 second I remove all of the rectangles, so the tile has 0 elements and the rectangles are not shown.
    - One second later a put again 3 rectangles in the tile and at this point we have to different behaviours:
    - In 1.3 the three rectangles apear without problems
    - In 1.3.1 none of them is shown, but strangely if I put the mouse over their "virtual" position the rollover is done and all of them
    magically appear (not only the one I was over)
    package test;
    import javafx.scene.CustomNode;
    import javafx.scene.Node;
    import javafx.scene.paint.Color;
    import javafx.scene.layout.Tile;
    import javafx.animation.Timeline;
    import javafx.animation.KeyFrame;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.input.MouseEvent;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    public class SimpleBidButtons extends CustomNode {
        public var numButtons: Integer;
        init {
            this.children = [ Tile {
                        id: "firstMenuBar{id}";
                        rows: 1;
                        content: bind for(i in [0..numButtons-1])
                            def but:Rectangle = Rectangle {
                            width: 90; height: 90;
                            onMouseEntered: function(e: MouseEvent) {
                                but.scaleX = 1.1;
                                but.scaleY = 1.1;
                            onMouseExited: function(e: MouseEvent) {
                                but.scaleX = 1.0;
                                but.scaleY = 1.0;
                            fill: Color.BLACK
                            but;
                        height: 100;
                        width: 300;
    function run() {
        var buttons: Integer = 3;
        var menu = SimpleBidButtons {
                    numButtons: bind buttons;
                Stage {
         title: "MyApp"
         onClose: function () {  }
         scene: Scene {
              width: 320
              height: 120
              content: menu;
        Timeline {
            keyFrames: [
                KeyFrame {
                    time: 1s;
                    action: function() {
                        buttons = 0;
                } KeyFrame {
                    time: 2s
                    action: function() {
                        println("Push");
                        buttons = 3;
        }.play();
    }Edited by: AnderRuiz on Aug 23, 2010 1:14 AM

    There is no need to override create function anymore in 1.3 and in fact the children variable was created to avoid memory consumption because many CustomNodes create a Group in 1.2. Anyway I changed my code to override create() and as I supposed the result was the same. This code was working also with JavaFX 1.2 without any problems (overriding create() of course)
    Edited by: AnderRuiz on Aug 23, 2010 3:59 AM

  • Overriding getInputMap and getActionMap

    Hi
    I am having a problem overriding the default behaviour of enter key in
    a JEditorPane.
    This is what I have done
    CustomEditorKit kit = (CustomEditorKit)(getEditorKit);
    KeyStroke ks = KeyStroke.getKeyStroke( KeyEvent.VK_ENTER, 0, true );
    getInputMap().put(ks, "insert-enter");
    getActionMap().put("insert-enter",kit.insertEnterAction);
    The behaviour I am getting is DefaultEditorKit's enter action followed
    by my custom action. Anyone with any hints ?

    ...no, not exactly, it must be
    am.remove([originalEnterKeyName]); where
    [originalEnterKeyName] would have to be found out by
    finding the appropriate action name from the array
    returned by am.allKeys();
    UlrichOK, I found my mistake. The key stroke I had, needed to be created for
    Key Pressed and not for key released. Once I did that the same code
    worked.
    So the code must have been.
    CustomEditorKit kit = (CustomEditorKit)(getEditorKit());
    KeyStroke ks = KeyStroke.getKeyStroke( KeyEvent.VK_ENTER, 0, false );
    getInputMap().put(ks, "insert-enter");
    getActionMap().put("insert-enter",kit.insertEnterAction);
    As far as Stas' suggestion of overriding insertString goes, I didn't
    want to take that route. If fact, I had that piece of code in place
    when I posted this question and wanted to remove it due to various
    reasons as it is not the right thing to do from the design perspective.
    Thanks for your response.
    Narayanan

  • Error Message..Not Authorized to Synch music??

    I recently bought an ipod and bought a few tunes, which I tried to synch to my ipod. When I try to do this I recieve the following error message:
    "Some of the items in the itunes library were not copied to the ipod because you are not authorized to play them on this computer"
    and that is for ALL the songs. Luckily I only bought 3...I have also created a library on my laptop (with the song of the week freebie) and there was no problem overriding and resynching with thisone. While it may be simple to say I should just use mylaptop, I would really much rather use my desktop...
    any one have this issues before or have any suggestions?
    Thank you

    This just happened to me yesterday. I had purchased an audio book from Itunes then received an error message when I synched that I was not authorized to play it on "this" computer. I clicked on the "Purchased" tab on the left side of Itunes display and the book I just ordered appeared in the main window. When I clicked on the book title itself a message appeared saying that I could authorize up to 5 computers to play the purchased selections, then requested a logon (the same logon I used for Itunes). Completing the logon and password authorized this PC. After this process my Iphone synched just fine. Hope this helps.

  • Display for: timer sets itself, no matter what

    I was prompted to download an update to Captivate today. So,
    I did. Now I am having problems overriding the "Display for:"
    timer. It keeps setting itself, I need to override it to something
    less than what it thinks it needs. Is there a way to turn this off.
    I was not having this problem until I downloaded the update...so,
    I'm frustrated.
    What am I doing: I want to create a slide, and the user can
    click/not click on the correct area. If not a failure message pops
    up for 0.2 secs. Then, I advance to the next slide and I display a
    text box with the same error message and add some animation.
    However, I am having a hard time gettng the Display for: timer set
    to 0.2, it keeps setting itself to 4 or 5 seconds. Is anyone else
    having this issue? Are you able to get around it. Otherwise, I'll
    have to try to remove the update.

    Capti8r,
    I don't know if that was the issue or not. (I wound up
    restoring my system because I wasn't able to be productive).
    However, here is what I know, I NEVER unchecked that option to
    begin with. What was happening was that I would go to the Options
    page and manually type my change in the Display For: field. Then,
    I'd hit Apply, and it would change the time to what it calculated
    and not keep my manual changes. I would expect that no matter what,
    if I made a manual change, then it should keep it. Unless the new
    version enforced that option differently. But, why would they do
    that...

  • Problem with paragraph style overrides and character formatting

    I've had this problem for a long time, and sometimes it resolves itself, sometimes it doesn't. Finally I'm begging for help.
    I am typesetting academic articles into a journal.  We use endnotes. The endnotes have both italic and regular formatting--italics for book and journal titles, and foreign phrases.
    Sometimes when I place the text, the formatting reverts to whatever it was in Word.  To try to fix that, I've begun stripping the Word formatting from the original document, making everything "Courier New" and just importing it like that.  I figured this would clear a lot of the problems I've had with fiddly formatting issues.
    I was mistaken. 
    Here is what happens:
    When I place the document it comes up in the original Courier New font, with italics and other formatting intact.  If I click "article style" which is the main article paragraph  style format, normally it changes.  but if I right click and select "apply article style" it is more likely to change the paragraph to the proper style, with italics and other formatting still intact.
    But when it gets to endnotes, I'm sort of screwed.
    My endnotes style is a bulletted style, so that I can have the endnote numbers consistent.  but this seems to screw all the style formatting.
    Here is what I do:
    With the cursor in endnote text, I click "bulleted endnote style".  The character format remains the same, with a + beside the style. The endnote number format is different, however.  If I click "clear overrides" it does in fact change to the proper formatting, but it strips any italics or other character in the text.  This is frustrating because many of these endnotes have lots of italicized journal and book titles, and it takes a long time to figure out which ones I need to reitalicize manually.
    I have tried to use the "customize style import>Style mapping" but it has not fixed anything.
    Please help me figure out how to make these transitions more smoothly.  I am open to suggestions both on how to make the changes once the document is placed in the Indesign file, and also making modifications to formats in the native Word file so that I don't have these problems. 
    Thanks
    Dan

    Sorry, that last message wasn't supposed to send (if that's not obvious!). I was writing it and got interrupted.  Damn iphone. 
    I know why there are two numbers.  This is not an issue. What I didn't finish writing was that, the note number before i bullet it is a different font/ format. Again, not a problem.  Here is something interesting, though.  If I delete that original number by placing the cursor in the middle of it (say a between the 4 and 2 of 42) then delete everything by Shift+arrow forward, press delete then delete the rest of the unnecessary characters, THEN apply the style formatting, it works just fine.  Is it something to do with the character codes of those original note numbers? 
    Word drops in so many hidden codes that it screws everything up!

  • Overriding problems in life

    Well it's me again, having inheritance problems..
    I'm trying to override from one of the flexlib classes
    (ColoredScheduleEntry) and I notice that it's got two methods...
    override public function copy() : IScheduleEntry
    and
    override public function copyFrom(entry : IScheduleEntry) :
    void
    Now, I'm extending this class, and implementing
    IScheduleEntry but when I try to override the above functions, I
    get...
    "Method marked override must override another method" for
    both methods...which is kinda obvious, but there is a method that
    it's overriding from, and it's public too...
    Any ideas?
    Thanks

    Hi mac,
    did you mean this
    class
    ColoredScheduleEntry?
    The documentation and the code didn´t note any function
    copy or copyfrom. Are sure you that this is the right class ?
    kcell

  • Problem in not overriding equals and Hashcode

    I have a very small question. We know that if we do not override the equals and hascode of Object class, we can not use the object in the Hashed collection. Can anybody provide me a concrete example which indicates the problem if we do not override the equals and hascode.

    back to the original question from DebadattaMishra
    I have a very small question. We know that if we do
    not override the equals and hascode of Object class,
    we can not use the object in the Hashed collection.
    Can anybody provide me a concrete example which
    indicates the problem if we do not override the
    equals and hascode.lets extend the example from jverd. Suppose we have a Person and want to store some Score in a HashMapclass Person {
        String name;
        Person(String name) {
            this.name = name;
    class Score {
        int value;
        Score(int value) {
            this.value = value;
    public class PersonTest {
        Map<Person, Score> map = new HashMap<Person, Score>();
        void test() {
            map.put(new Person("John"), new Score(1));
            map.put(new Person("Maria"), new Score(2));
            Score score = searchScore("John");
            System.out.println("Found: " + score);  // Found: null
        Score searchScore(String name) {
            return map.get(new Person(name));
    }if you run test() you will get "Found: null" since the John instance in the HashMap is not the same as used in searchScore. HashMap uses the equals method from Object since we have not overridden it.
    If we add an equals methodclass Person {
        String name;
        Person(String name) {
            this.name = name;
        public boolean equals(Object obj) {
            if(obj instanceof Person) {
                Person p = (Person) obj;
                return name.equals(p.name);
            } else {
                return false;
        // hashcode not overridden
    }we probably will get "Found: null" most if the time. The HashMap uses the hashcode() to create an index for saving the keys, so it mostly will not find the Person.((there is still a very small probability that the correct Person is found))
    It will work fine if we add a hashcode like    public int hashCode() {
            return name.hashCode();
        }I hope this example helped.

  • My apple keyboard had some problems, the store replaced it for me. I had to sign in to my computer, and couldn't get to pair the keyboard with the computer, as could not sign in. I know there is a command that lets you override this, does anyone know whic

    My apple keyboard had some problems, the store replaced it for me. I had to sign in to my computer, and couldn't get to pair the keyboard with the computer, as could not sign in. I know there is a command that lets you override this, does anyone know which buttons to  press.  I gather when you do this, a box comes up and pairs the two with a number you have to type in.

    Hi rpaspinall,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    Apple Wireless Keyboard: Difficulty during pairing process
    http://support.apple.com/kb/ts1569
    Best of luck,
    Mario

  • Method override problems

    I am new to Java programming and this is likely a trivial problem, but I have been unable to find an answer after a few hours in books and on the Web.
    I have created two subclasses of a class, and overridden a public method (the same method) in each of the subclasses. At runtime however, all calls to this method from an instance of the superclass or either subclass results in the same method; i.e. the override in one subclass is overriding the other subclass and the superclass. Why is the scope of this override so large, and how do I fix this?
    Thanks,
    ~Jon Hurst

    I think there must be something wrong in the way the instance is being created. Anyway try running the sample below and you will see that it works the way it is expected to.
    Hope this helps.
    regards
    manalar
    <code>
    public class SuperClass{
    public void display(){
    System.out.println("display in super class");
    import SuperClass;
    public class AnotherClass{
    public AnotherClass(){
              SuperClass sc = new SuperClass();
              sc.display();
              SubClass1 sb1 = new SubClass1();
              sb1.display();
              SubClass2 sb2 = new SubClass2();
    sb2.display();
    public void display(){
    System.out.println("display in AnotherClass");
    private class SubClass1 extends SuperClass{
    public void display(){
    System.out.println("display in SubClass1");
    private class SubClass2 extends SuperClass{
    public void display(){
    System.out.println("display in SubClass2");
    public static void main(String args[]){
    AnotherClass ac = new AnotherClass();
    ac.display();
    </code>

Maybe you are looking for

  • I can no longer send e-mail in TB but still receive it.

    Recently TB quit allowing me to send e-mail messages. I still receive mail, but when I try to send messages, I am prompted for a password. It does not accept the correct password. I can send messages from my iphone and a web-based e-mail app, so it i

  • How to Restrict Input Parameter in MD02

    Dear Sir, While running In the Tcode MD02 , we are looking for the following requirement : Under MRP Control Parameter , the parameter "Create Purchase Requisition"  must have a default value as 3 and it should be grayed-out also so that user is not

  • User Authorizations for Plant & Material Type

    The requirement says Get all the users having authorizations to transactions - QA11, QA12, MSC1N, MSC2N & MSC4N. Then filter out the users to those who have access to Plant & material Type which are entered on the selction- screen. now how to get tho

  • HP Deskjet Ink Advantage 4515 Activation

    I recently bout a HP Deskjet Ink Advantage 4515.  Prints OK, but have had much problem with scanning and copying.  WHen doing so, the scanner/copier hangs-up.  I used to be able to fix the problem by enbling scan to computer.  But even that has stopp

  • Automatica​lly getting the cursor numbers on a histogram plot

    I am tryiong to get to the cursor values on a histogram plot.  I can see them on the screen as part of the plot features but I want to get to those numbers so i can automatically use them.