New class instance contains another instance's data

I am using two constructors to instantiate this class but sometimes when I create the second instance the data from the first instance is in the new instance which corrupts the first instance when I change the data in the second.
How is it possible for a second new instance of a single class to have the same data/references? It should be a completely new instance with no references to another objects memory space.

It isn't possible. It's a bug in your code or in your
interpretation of the result. :) Probably in your interpretation of the result, based on your use of phrases like "memory space". The things in an object's "memory space" are primitives and object references, and it is perfectly possible for two different objects to contain references to the same object.

Similar Messages

  • Problem declaring new Class instance

    I would appreciate your help, I am new to programming & decided to learn Java.
    The two programs I have tried to write myself have not compiled for the same error:
    Javac tells me that it cannot resolve the " = new " syntax, it sees NEW as a variable.
    Here is the code for the latest:
    public class DBQuery1 {
         String username, password;
         boolean getOut = false;
    public class PassDB extends javax.swing.JFrame implements ActionListener {
         JTextField uname = new JTextField(10);
         JPasswordField pword = new JPasswordField(10);
         // codePhrase.setEchoChar('*');
         public PassDB() {
              super("duBe's database logon");
              setSize(260, 160);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel pane = new JPanel();
              JLabel unameLabel = new JLabel ("Username: ");
              JLabel pwordLabel = new JLabel ("Password: ");
              JButton submit = new JButton("OK");
              submit.addActionListener(this);
              pane.add(unameLabel);
              pane.add(uname);
              pane.add(pwordLabel);
              pane.add(pword);
              pane.add(submit);
              setContentPane(pane);
              setVisible(true);
              if (getOut == true)
                   PassDB.close();
         public void actionPerformed(ActionEvent evt) {
              PassDB clicked = (PassDB)evt.getSource();
              username = uname.getText();
              password = pword.getText();
              getOut = true;
         public static void main(String[] arguments) {
              PassDB UPass = new PassDB();
    it goes on, but the problem seems to be with the declaration of " UPass ".
    There are other problems with this code that I cannot fix at the moment, but I'll ask those questions when I get this problem fixed.
    Any help will be much appreciated, I know it is something silly I have done, but I can't find the problem myself.
    duBe

    The two programs I have tried to write myself have not
    compiled for the same error:
    Javac tells me that it cannot resolve the " = new "
    syntax, it sees NEW as a variable.It would be interesting to see the error message you are getting - what you have described sounds rather odd - I would expect an error along the lines of "unqualified enclosing instance" or "this can not be referenced from a static context".
    You have declared PassDB as an inner class (it is nested inside another class and is not declared static). As somebody else has already said, if you are new to Java, you might be better not doing that for now.
    To instantiate an inner class, you need an instance of the deepest nested lexically enclosing class. I'm not going to go into detail about that in the New To Java Technology forum, but if you don't already know or understand that, then perhaps inner classes are too much to be tackling right now.
    The syntax for instantiating PassDB is x.new PassDB(), where x is an instance of DBQuery1. Thus new DBQuery1().new PassDB() should compile (though it might not be want you really want). Another option open to you is to use static nested classes - just declare the PassDB class static, and treat it as you would any other class (though now you won't be able to access the non-static fields of DBQuery1 directly)

  • Creating a new class instance in the target VM exception

    Hello,
    The following error appeared when i was trying to instantiate a new object by "new", After the error was thrown , everything just hanged ....
    [email protected](java.lang.String)+-1 in thread Thread-0
    I tried creating a new instance of any class i wrote it gave me the same behaviour. But when i create a new instance of any of the JRE's (BufferedReader for example) classes it runs normally.
    The error seems to be thrown only in dynamic loading because i tried inheriting from a class i wrote and invoking super() it executed normally. Also the problem is not from setting the class path because i am correctly passing the class path to the target virtual machine.
    So what is the problem ? Any help is greatly appreciated.
    Regard,
    Ahmed Ashmawy

    The hanging part is solved , it was a mistake when handling exception events. But anyways i would appreciate it if i knew why the error is being thrown. It just continues normally as if nothing happened

  • New client/instance with single company data

    Hello,
    Having to acquire a new company, the problem comes up when the actual SAP client contains more than one society.
    Is it possible to have a new client or instance with data belonging to a single one of these managed companies?
    How can it be copied/extracted, if possible?
    Thanks

    solved

  • Initialize/set a base class from a another base class instance

    Hi,
    How can I initialize/set a base class from a another base class instance? I do not want to do a copy of it.
    It would look something like:
    class A {...}
    class B extends A
        B(A a)
            // super = a;
        setA(A a)
            // super = a;
    }Thank you.

    erikku wrote:
    Thanks Winton. It is what I did first but A has lots of methods and if methods are later added to A, I will have to edit B again. For those two reasons, I wanted to use inheritance. The part I was not sure with was the way to initialize B's base (A).You pays your money and you takes your choice. One way (this way) you have to provide forwarders; the other way (inheritance) you have to provide constructors (and if A has a lot of em, you may be writing quite a few).
    Ask yourself this question: is every B also an A? No exceptions. Ever.
    If the answer is 'yes', then inheritance is probably the best way to go.
    However, if there is even the remotest chance that an instance of B should not exhibit 100% of the behaviour of A, now or in the future, then the wrapper style is probably what you want.
    Another great advantage of the wrapper style is that methods can be added to A without affecting the API for B (unless you want to).
    Winston
    PS: If your Class A has a constructor or constructors that take a pile of parameters, you might also want to look at the Builder pattern. However, that's not really what we're talking about here, and it should probably be implemented on A anyway.

  • WHEN-NEW-FORM-INSTANCE trigger does not fire

    Hi,
    Does anyone have any idea why code placed in the when-new-form-instance trigger appears to be ignored when the form is executed from one login but runs fine when executed from another? A breakpoint on the first executable line of code in the trigger confirms that the trigger is not being fired.
    Regards,
    Ian Dodds.

    Hi again Duncan,
    I was able to solve it once I ran the form with the Forms Runtime Diagnostics enabled. I had a table in my schema containing old data used to build menu items. This was causing runtime errors to occur during calls to SET_MENU_ITEM_PROPERTY that were not being propagated to the UI so I didn't know they were occuring.
    The upshot was that the WHEN-NEW-FORM-INSTANCE trigger was not firing. Once I corrected the data it worked a treat.
    Thanks very much for pointing me towards FRD, it's the first time I've used it but it won't be the last.
    Cheers,
    Ian.

  • Binding a JavaFX variable to a Java class instance variable

    Hi,
    I am pretty new to JavaFX but have been developing in Java for many years. I am trying to develop a JavaFX webservice client. What I am doing is creating a basic scene that displays the data values that I am polling with a Java class that extends Thread. The Java class is reading temperature and voltage from a remote server and storing the response in an instance variable. I would like to bind a JavaFx variable to the Java class instance variable so that I can display the values whenever they change.
    var conn: WebserviceConnection; // Java class that extends Thread
    var response: WebserviceResponse;
    try {
    conn = new WebserviceConnection("some_url");
    conn.start();
    Thread.sleep(10000);
    } catch (e:Exception) {
    e.printStackTrace();
    def bindTemp = bind conn.getResponse().getTemperature();
    def bindVolt = bind conn.getResponse().getVoltage();
    The WebserviceConnection class is opening a socket connection and reading some data in a separate thread. A regular socket connection is used because the server is not using HTTP.
    When I run the application, the bindTemp and bindVolt are not updated whenever new data values are received.
    Am I missing something with how bind works? Can I do what I want to do with 'bind'. I basically want to run a separate thread to retrieve data and want my UI to be updated when the data changes.
    Is there a better way to do this than the way I am trying to do it?
    Thanks for any help in advance.
    -Richard

    Hi,
    If you don't want to constantly poll for value change, you can use the observer design pattern, but you need to modify the classes that serve the values to javafx.
    Heres a simple example:
    The Thread which updates a value in every second:
    // TimeServer.java
    public class TimeServer extends Thread {
        private boolean interrupted = false;
        public ValueObject valueObject = new ValueObject();
        @Override
        public void run() {
            while (!interrupted) {
                try {
                    valueObject.setValue(Long.toString(System.currentTimeMillis()));
                    sleep(1000);
                } catch (InterruptedException ex) {
                    interrupted = true;
    }The ValueObject class which contains the values we want to bind in javafx:
    // ValueObject.java
    import java.util.Observable;
    public class ValueObject extends Observable {
        private String value;
        public String getValue() {
            return this.value;
        public void setValue(String value) {
            this.value = value;
            fireNotify();
        private void fireNotify() {
            setChanged();
            notifyObservers();
    }We also need an adapter class in JFX so we can use bind:
    // ValueObjectAdapter.fx
    import java.util.Observer;
    import java.util.Observable;
    public class ValueObjectAdapter extends Observer {
        public-read var value : String;
        public var valueObject : ValueObject
            on replace { valueObject.addObserver(this)}
        override function update(observable: Observable, arg: Object) {
             // We need to run every code in the JFX EDT
             // do not change if the update method can be called outside the Event Dispatch Thread!
             FX.deferAction(
                 function(): Void {
                    value = valueObject.getValue();
    }And finally the main JFX code which displays the canging value:
    // Main.fx
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import threadbindfx.TimeServer;
    var timeServer : TimeServer;
    var valueObjectAdapter : ValueObjectAdapter = new ValueObjectAdapter();
    timeServer = new TimeServer();
    valueObjectAdapter.valueObject = timeServer.valueObject;
    timeServer.start();
    Stage {
        title: "Time Application"
        width: 250
        height: 80
        scene: Scene {
            content: Text {
                font : Font {
                    size : 24
                x : 10, y : 30
                content: bind valueObjectAdapter.value;
    }This approach uses less cpu time than constant polling, and changes aren't dependent on the polling interval.
    However this cannot be applied to code which you cannot change obviously.
    I hope this helps.

  • SQL2008R2 new named instance in existiong cluster as a new resource.

    Hello everyone.
    I'm trying to find out the best way to install a new named instance of a SQL2008R2 server in clustered environment.
    The current windows cluster is a 2 node cluster and contains the DTC and 2 Named SQL Server instance:
    MSSQLSERVER(Default)  Network name: Clust1
    Example1 Network name: Clust2
    I need another instance but i want to reach it through the MSSQLSERVER's SQL Network Name.
    In the end I need to be able to connect to the default instance with Clust1 and the new instance with Clust1\New.
    Is it even possible to install SQL server not as a cluster service, more like inside a service as a new Resource?

    Hello,<o:p></o:p>
    Thank you for your reply.<o:p></o:p>
    I want to create the installation on both nodes,
    so when a failover occurs on the Clust1 SQL cluster, both the default and
    the new instance fails over and starts up at the new node.<o:p></o:p>
    I tested the standalone installation method, the
    problem is that it won’t show up as a resource in the cluster service.
    I have to add it manually?
    No,what you are suggesting cannot be attained by standalone installation you need to add new instance in cluster aware mode.That would be your third instance in cluster which would require new disk ,IP for data files and Virtual name respectively.MSDTC can
    be shared.
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Get class Instance, and then get hers attributes

    Hi Gurus,
    i'm new to ABAP Object,
    creating an a BSP whit MVC controller i've try to implement the class controller,
    but on a method of it i want to get instance of the class parents:
    the class that i implement is an extension of CL_BSP_CONTROLLER2.
    In this class in the method DO_REQUEST ( for example ) i try to get the instance of the class
    parent ( and i got it! ) using this syntax:
      data: Parent type ref to IF_BSP_DISPATCHER,   " type take from attribute M_PARENT of the class
    Parent = ME->M_PARENT.
    In debug i see that 'Parent'  get rightly the class parent instance but than i want do this:
    (i want get the sub controller of the main contoller 'parent', in debug i can see everything fine)
       SubController = Parent->GET_ATTRIBUTE(LEFT_CONTROLLER).
    But the compiler say that the class instance 'Parent' has no methods and no attribute.
    i've try other syntax like:
        call METHOD Parent_>GET_ATTRIBUTE
            IMPORTING
         LEFT_CONTROLLER)
      call METHOD ME->M_PARENT->GET_CONTROLLER
       EXPORTING
         CONTROLLER_ID = 'search'
       IMPORTING
         CONTROLLER_INSTANCE = Parent2
    No one work!
    How can i do?
    Here screnshot of that i see in debug mode, and that i want get:
    http://img190.imageshack.us/i/1debugscreen.jpg/
    http://img10.imageshack.us/i/2debugscreen.jpg/
    Thanks in advance,
    Davide

    Hi Pawan,
    classes ref to CL_BSP_CONTROLLER2 like my controller class, have an attribute
    M_PARENT type IF_BSP_DISPATCHER.
    If the class is a subclass of an main class it has the M_PARENT attribute containing the instance of the parent class,
    i can see in debug mode ( here example: http://img40.imageshack.us/img40/1648/3debugscreen.jpg )
    i can get this attribute:
      data: Parent type ref to IF_BSP_DISPATCHER,   " type take from attribute M_PARENT of the class
    Parent = ME->M_PARENT.
    but  the interface IF_BSP_DISPATCHER has no attribute and no method defined, and if i declare 'Parent' as type ref to
    CL_BSP_CONTROLLER2 the compiler return error
          <=>      "The type of "PARENT" cannot be converted to the type of "ME->M_PARENT". "
    Davide

  • Any way to for a class instance to ask what its instance name is?

    Hey. I have a class which needs to create a movie clip on the
    stage. Since each instance of the class will only ever have 1 movie
    clip on the stage at a time, it seems reasonable that I have the
    instance create a movie clip with its own name, prefixed with "mc_"
    or something of the sort.
    Here's where I don't know quite what to do... How do I get at
    this information? For instance, when you a dealing with an XMLNode,
    you can simply use...
    the_answer = xmlNodeInstance.nodeName;
    ...I know the analogy fails, but hopefully you know what I'm
    looking for.
    Thanks!

    hu....
    and when you create your movie clip, (assuming you don't just
    build it at authoring time) you specify an instance id through the
    createEmptyMovieClip function....
    taking a cue from this, I'm guessing that my answer is to
    change the structure of what I'm doing a little... instantiate my
    object with an instance name as a parameter given to the Class
    Constructor... that way the class can have it's own name on file.
    I guess my only concern there is how do I keep the "name"
    variable from being just completely arbitrary...?
    I guess I'm getting away from application (becaust I don't
    know when I'd do this...) and into theory.... but for instance,
    let's say I create my class like this:
    var instanceReference:mySuperCoolClass = new
    mySuperCoolClass("instanceName");
    So. I have my class instance... ideally, the class would
    exist on the stage as "instanceName", with "instanceReference"
    being another way to reference the instance. That would be ideal...
    but how do I make that happen? Because in the scenario of what I've
    just done, I see the class instance existing on the stage as
    "instanceReference", and I've just passed it a fun, but meaningless
    bit of data called "instanceName"...
    I suppose I could have the class go back to "_parent" and
    create it's own object.... but here again I'm getting into
    territory that feels a lot like i have no idea what I'm doing...
    haha!
    I guess I have enough info to get back to coding for now...
    But I'm deffinately open to more tips... I feel like I'm still
    missing how a lot of this works.
    (I'm at that awkward place where I can easily explain what
    OOP is, but I'm far from experienced in how to implement it... I've
    only written about half a dozen classes so far... so I still have a
    lot to learn. Thanks for your patience, all of you!)

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-

    Hi,
    In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror...
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510
    This error is not happening when we search for the SYSADMIN user....
    Any idea why this error happening...
    Also another error which is faced by users other than SYSADMIN is the below one when changing the responsability...
    APP-FND-01926---The custom event WHEN-RESPONSIBILITY-CHANGED raised unhandled exception:User Defined Exception
    Thanks
    Joseph
    Edited by: 783717 on Sep 27, 2010 10:49 PM

    Hi,
    In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror...
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510
    This error is not happening when we search for the SYSADMIN user....
    Any idea why this error happening...What changes have been done recently?
    Please run AutoConfig and make sure it completes successfully.
    Also another error which is faced by users other than SYSADMIN is the below one when changing the responsability...
    APP-FND-01926---The custom event WHEN-RESPONSIBILITY-CHANGED raised unhandled exception:User Defined ExceptionCan you find any errors in the database log file?
    Please compile CUSTOM.pll (and other files) as per these docs and try again (as you are on R12 use frmcmp_batch.sh instead of f60gen).
    APP-FND-01926, ORA-06508 [ID 797242.1]
    APP-FND-01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-06508: PL/SQL: [ID 831159.1]
    APP-FND-01926 when logon changed ORA-06508 [ID 334295.1]
    Thanks,
    Hussein

  • Webutil-Problem (not the usual "PRE-FORM", "WHEN-NEW-FORM-INSTANCE" etc.)

    Hello,
    We have an application with lots of modules, where we use webutil to create text files on the client for data exports. The export is called in a WHEN-BUTTON-PRESSED Trigger and usually works fine, but we have the following problem:
    If two modules, where webutil is used, are opened at the same time and one module is closed, webutil does not function anymore in the other module. If we then try to create a text file after closing on module, we get the following error-message:
    Oracle.forms.webutil.file.FileFunctions bean not found.
    WEBUTIL.FILE.FILE_SELECTION_DIALOG_INT will not work.
    It’s not only the FileFunctions bean, all other webutil functions do not work also anymore in the remaining module.
    This is not the usual “PRE-FORM”, “WHEN-NEW-FORM-INSTANCE” etc. Webutil-Problem.
    As I said before, webutil works, but when we close one module with webutil used, it does not work in another open module anymore.
    Any Idea, why this happens and how to solve the problem???
    Kind regards
    Udo

    Hello,
    Yes, both modules work in the the same session and session is not disconnected, when one of the modules is closed.
    Webutill.pll is attached on both forms and all forms in our application using webutil usually work fine with the exception mentioned above.
    It's a bit difficult to explain, what happens in our application, but I try:
    Our application consists of modules that call other modules with call_form or go_form , when the module is open, all in the same session. "Global" Parameters are passed with SHARE_LIBRARY_DATA. Usually the calling forms stays open.
    In the following constellation webutil does not work anymore at a certain point :
    - Open module A (with webutil attached) and webutil works
    - Then module A calls module B (with webutil attached) and webutil works in module B
    - GO_FORM (module A) and webutil still works (while module B is still open)
    - CALL_FORM (module C) (in our case webutil is not attached to this module, but I think that is not the problem) module C closes module B (while module A stays open)
    - After making a choice in module C, module C closes itself with EXIT_FORM.
    - Go back to the open module A, make a new query with the choice made in module C and webutil does not work anymore in module A
    Regards
    Udo

  • Problem referencing a newly created class instance - I don't understand why

    Hi,
    I am completely new to actionscript although I do come from a OOP background. I have been asked to trial Flash and Actionscript 3 in particular - so I do come with a few preconceptions on how I expect actionscript to behave.
    I have a problem I donot understand. I have created a new class and to test it I use a simple test harness in the form of a .fla file.
    The issue I have is when I create a new instance of the class and assign it to a variable, subsequent background changes to that instance of the class are not 'picked-up' when referenced through the variable. I would expect that given instance of class could be assigned to many different variables and any updates using one variable would  accessible using any of the other variables.
    My test class, XMLDataLoader, is coded as follows:
    package  {   
        public class XMLDataLoader {
            import flash.events.*;
            import flash.net.*;
            import flash.utils.*
            private var _xmlData:XML;
            private var _xmlLoaded:Boolean;
            public function XMLDataLoader(pFileName:String){
                init(pFileName);
            public function getXMLData():XML {
                return this._xmlData;
            public function XMLLoaded():Boolean {
                return this._xmlLoaded;
            private function init(pFileName:String):void
                // Create the URLLoader instance to be able to load data
                  var loader:URLLoader = new URLLoader( );
                var urlRequest:URLRequest = new URLRequest(pFileName);
                this._xmlLoaded = false;
                // Define the event handlers to listen for success and failure
                   loader.addEventListener ( Event.COMPLETE, handleComplete );
                loader.load(urlRequest);
                function handleComplete ( e:Event ):void
                    trace ( "The data has successfully loaded" );
                    this.xmlData = new XML(e.currentTarget.data);
                    this._xmlLoaded = true;
    The class simply reads a text file and assigns its contents to the class variable _xmlData. The class variable _xmlLoaded identifies when the load is complete.
    The test harness is a simple flash app consisting if a single timeline with 1 frame, 1 symbol on the stage and the following actionscript code:
    import flash.events.TimerEvent;
    var t:XMLDataLoader = new XMLDataLoader("Test Article.xml");
    var xmlData:XML;
    var waits:uint = 0;
    wait(1);
    function wait(ct:uint):void
        var TimerInstance:Timer = new Timer(500, 1);
        TimerInstance.addEventListener(TimerEvent.TIMER, TimerHandler);
        TimerInstance.start();
        function TimerHandler(event:TimerEvent):void
           if(t.XMLLoaded()){
                xmlData = t.getXMLData();  
                trace(xmlData.toXMLString);
            } else {
                trace(ct + " - Waiting....");
                if (ct <= 10) {
                    wait(++ct);
    The script defines a variable and assigns it a new instance of the XMLDataLoader. Originally, I immediately followed this with a trace statement but  insuffient time had elapsed to allow the load to complete, so I had to introduce a wait function to force a delay. This wait function is recursive. It checks to see if the load is complete. If it is, a trace statement will outoput the xml. If not the function will call itself again (upto 10 times)
    The resultant output is as follows:
    The data has successfully loaded
    1 - Waiting....
    2 - Waiting....
    3 - Waiting....
    4 - Waiting....
    5 - Waiting....
    6 - Waiting....
    7 - Waiting....
    8 - Waiting....
    9 - Waiting....
    10 - Waiting....
    According to this output, the XML has been loaded before the end of the first timer cycle but this is not detected in the test harness. I have stepped through the code in debug mode and I have confirmed that the XML was loaded, and the class variables where correctly set, including _xmlLoaded = true. However, in the test harness the instance both class variables  are null. I don't believe this should be the case but obviously I must be wrong - can anyone explain where my logic is flawed. I did think scoping might be the problem but having tried a couple of modifications, I concluded that it wasn't.
    Thanks in advance.

    never nest named functions.  unnest TimerHandler and retest.
    (and, you should be using listener to determine when loading is complete.)

  • How to create new OC4J instance in AS 10.1.3 with BC4J- and ADF-Libraries

    Hi
    I have done all the steps mentioned in this thread:
    How to create new OC4J instance in AS 10.1.3
    However, the new created OC4J instance obviously misses some libraries. If I deploy my Application to this OC4J I get an internal error: Class not found: oracle.jbo.JboException.
    The same Application runs well in the "home" Instance.
    What is the trick, to create a new OC4J instance, which more or less behaves the same way as the "home" instances (and especially has all the same libraries)?
    Thanks for your help
    Frank Brandstetter

    I encountered this last month. I definitely agree that it is a glaring omission to not have "Create Like" functionality when instantiating new containers. Here's my notes on the manual steps required after using createinstance to create the fresh container. Not too bad. I've been deploying ADF applications to the new container with no problems after this.
    ==============
    The default (home) OC4J container is pre-configured for ADF 10.1.3 applications; however, when $ORACLE_HOME/bin/createinstance is used to create additional containers, these containers are not configured automatically to host ADF 10.1.3 applications.
    I followed these manual steps:
    1. $ORACLE_HOME/j2ee/home/config/server.xml defines three shared libraries that "install" the needed JARs for Oracle ADF applications in your application server instance (container). Note that "install" does not necessarily mean available to applications (see Step 2). Copy the three shared library element definitions to the <application-server> element of your new container (in server.xml).
    <shared-library name="oracle.expression-evaluator" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/jlib/commons-el.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/oracle-el.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jsp-el-api.jar"/>
    </shared-library>
    <shared-library name="adf.oracle.domain" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/BC4J/lib"/>
         <code-source path="/usr2/oracle/as10130/jlib/commons-cli-1.0.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/concurrent.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/mdsrt.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/share.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/regexp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/xmlef.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfmtl.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfui.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adf-connections.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/dc-adapters.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordim.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordhttp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/ojmisc.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jdev-cm.jar"/>
         <code-source path="/usr2/oracle/as10130/lib/xsqlserializers.jar"/>
         <import-shared-library name="oracle.xml"/>
         <import-shared-library name="oracle.jdbc"/>
         <import-shared-library name="oracle.cache"/>
         <import-shared-library name="oracle.dms"/>
         <import-shared-library name="oracle.sqlj"/>
         <import-shared-library name="oracle.toplink"/>
         <import-shared-library name="oracle.ws.core"/>
         <import-shared-library name="oracle.ws.client"/>
         <import-shared-library name="oracle.xml.security"/>
         <import-shared-library name="oracle.ws.security"/>
         <import-shared-library name="oracle.ws.reliability"/>
         <import-shared-library name="oracle.jwsdl"/>
         <import-shared-library name="oracle.http.client"/>
         <import-shared-library name="oracle.expression-evaluator"/>
    </shared-library>
    <shared-library name="adf.generic.domain" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/bc4jdomgnrc.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/lib"/>
         <code-source path="/usr2/oracle/as10130/jlib/commons-cli-1.0.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/concurrent.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/mdsrt.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/share.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/regexp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/xmlef.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfmtl.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfui.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adf-connections.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/dc-adapters.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordim.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordhttp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/ojmisc.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jdev-cm.jar"/>
         <code-source path="/usr2/oracle/as10130/lib/xsqlserializers.jar"/>
         <import-shared-library name="oracle.xml"/>
         <import-shared-library name="oracle.jdbc"/>
         <import-shared-library name="oracle.cache"/>
         <import-shared-library name="oracle.dms"/>
         <import-shared-library name="oracle.sqlj"/>
         <import-shared-library name="oracle.toplink"/>
         <import-shared-library name="oracle.ws.core"/>
         <import-shared-library name="oracle.ws.client"/>
         <import-shared-library name="oracle.xml.security"/>
         <import-shared-library name="oracle.ws.security"/>
         <import-shared-library name="oracle.ws.reliability"/>
         <import-shared-library name="oracle.jwsdl"/>
         <import-shared-library name="oracle.http.client"/>
         <import-shared-library name="oracle.expression-evaluator"/>
    </shared-library>
    2. To make the necessary ADF and JSF support libraries available to your deployed ADF application, the default application (that your ADF application and the majority of applications should inherit from) should explicitly import the shared library in the <orion-application> element of $ORACLE_HOME/j2ee/<your container>/config/application.xml.
    <imported-shared-libraries>
         <import-shared-library name="adf.oracle.domain"/>
    </imported-shared-libraries>
    Note: the adf.oracle.domain shared library imports several other shared libraries including oracle.expression-evaluator.

  • How to create a new database instance from an existing one?

    Hi, I basically want to create a snapshot of a production
    instance (version 8.1.7) for querying purposes. Would anyone
    tell me the steps involved? What I did as follows:
    1. Copy all data files to a new location
    2. Modify init.ora accordingly. I believe there is no separate
    control file for this version.
    But when I startup the instance, got this error:
    ORA-01103: database name 'TRITON' in controlfile is not 'HERCULE'
    What is missing? Do these data files contains links to the
    previous instance name?
    Thanks for any help.

    Hi All,
    I need some help in recreating new database instance.
    Here are the steps I have done so far:
    1. Created a database with name 'LASTDB' using DBCA
    2. Connected to RMAN.
    3. RMAN>SET DBID=******; (of the source database)
    4. Connect to target. RMAN>connect target SYS/*****;
    5. Executed controlfile restore on RMAN.
         RMAN>Run{
    Allocate channel D1 Type DISK;
              Set controlfile autobackup format for device type DISK to
    ‘\\<ip_address>\Backup\Prod\%F’;
    Restore controlfile from autobackup;
    6. RMAN> ALTER DATABASE MOUNT;
    Now got an error saying ORA-01103: database name ‘PRODDB' in control file is not ‘LASTDB’
    I tried using NID to change the database name but it's throwing an error that database is not mounted.
    I have browsed a lot and found that I need to recreate a control file of the production database using ALTER DATABASE BACKUP CONTROLFILE TO TRACE and should edit the trace file. But it also says to shutdown the source database which is production database and I cannot try that.
    Also I have tried adding a line to init.ora like lock_space_name = LASTDB. Also tried replacing everything from LASTDB to PRODDB but that didn't work either.
    I have been trying to find a solution to this. Please bear with me as I'm a beginner and please let me know how I can fix the error.
    I am running oracle 10.1.0.2.0 enterprise edition on windows 2000.
    Thanks for your patience,
    KG

Maybe you are looking for

  • 10.4.8 Killed my Mac

    I downloaded 10.4.8 via software update. Approximately 18 seconds after the login screen appears I get the blasted rainbow cursor and all I can do is move the cursor so I have to forcibly shutdown my PowerMac dual G5 and try to reboot. But each time

  • Stop streaming when a popup is created

    Hello, I've just installed a button on my flash player that, when clicked, a popup window of said flash player appears. Everything works but I have one wee problem. When I click for the Flash player to popup, the existing player in the original windo

  • Buttons on 20" Display No Longer Work

    For the past two years I've been using my 20" Apple Cinema Display (the one with the white edges, not the newest version) with my 12" PowerBook by connecting it through Apple's ADC to DVI adapter and plugging it into the Mini-DVI slot on my PowerBook

  • How to get auto generated column in spring jdbc

    Hi guys , I am using springJDBC and sybase db. I think what i am facing is a standard problem but whatever support i am getting from google is not working. My problem is : "While inserting values in database one colum is autogenerated .....how do i g

  • Adobe Flash Player video wont play

    using Mozilla Firefox v4.0.1, ...Sucessfully downloaded and installed Adobe Flash V10, now I can not view vidoes or u tube. Video. PC tries to load and start but stops copleted and appears to be trying to load but nothing happens. system running Wind