Listeners!

I am getting an error , - TNS:listener does not currently know of service requested in connect (When running report )
now, we have installed oracle application server ! successfully , and of course infra!
then installed Oracle (sofrware only )
then imported full database
ultimate Goal is to run reports !
CONFUSING is , where to create service to connect which database (because in start menu (windows) there are 5 net manager available -oracleas1 , oracleas2 , oracleinfrastructure , oracleapplicationserver, and oracle (database))
so , there are 2 database -1 is infrastructure database , and 1 is oracle database (in which i have imported our forms )
now, in each net managers by mistake i have created services connected to oracle database ,
in Services.msc there are 3 services - TNSas1listner, TNSas2listener,TNS10ghomelistener .
by default when windows start , TNSas1listener is started and TNS10ghome isnt, AND WHEN I TRY TO START 10GLISTENER , it gives error of termination
, i found in my pc that i need to stop AS1 and AS2 Services to start 10gService
Now , 1 more issue is , when i stop as1 and as2 service , EM says Infrastucture Database is Unavailable ,
and when 10glistener service is stopeed , it gives error of listener does not know of service....
application server - 10g
database -10g r2
OS-windows server 2003 r2

newbieDBA wrote:
EdStevens wrote:
newbieDBA wrote:
I am getting an error , - TNS:listener does not currently know of service requested in connect (When running report )
now, we have installed oracle application server ! successfully , and of course infra!Oh, "of course". I assume by "infra" you mean Grid Infrastructure. Why do you consider that to be "of course"? sorry!! i meant Oracle application server Infrastructure ! and i been told that its mandatory to install it before installing application server , thats why i used "of course "
then installed Oracle (sofrware only )
then imported full database1st i installed Oracle application server Infrastructure , then application server , and then installed Oracle and imported full database ( we having fullbackup as fulldump.dmp )
How did you manage to "imported full database" when you installed "software only". Import requires a running database into which to do the import.sorry My bad !
ultimate Goal is to run reports !
CONFUSING is , where to create service to connect which database (because in start menu (windows) there are 5 net manager available -oracleas1 , oracleas2 , oracleinfrastructure , oracleapplicationserver, and oracle (database))
so , there are 2 database -1 is infrastructure database , and 1 is oracle database (in which i have imported our forms )
now, in each net managers by mistake i have created services connected to oracle database ,
in Services.msc there are 3 services - TNSas1listner, TNSas2listener,TNS10ghomelistener .
by default when windows start , TNSas1listener is started and TNS10ghome isnt, AND WHEN I TRY TO START 10GLISTENER , it gives error of termination
, i found in my pc that i need to stop AS1 and AS2 Services to start 10gService Probably because the multiple listeners are contending for the same port.Isnt the port 1521 is default for all? ,Yes it's the default for "all", but you can only have one listener on a given port. Computing fundamentals 101 concerning the use of ports by processes.
Sir what exactly difference btw "service naming" and "listeners" that we found in NET Manager !!
How to determine from which Net Manager to create service to connect which database ?I haven't used Net Manager in over 15 years, so I had to fire it up just to see what it was doing.
The "service naming" tab is for configuring your tnsnames.ora file
The "listeners" tab is for configuring listeners. I suppose that on a Win platform, it also creates the listener service -- of which you only need one.
Can one listener be sufficient ?
As I said in my previous post:
+"You only need one listener. One single listener, with the default name of LISTENER, running on the default port of 1521, is quite capable of -- indeed, WAS DESIGNED TO -- service multiple databases of multiple versions running from multiple oracle homes."+
>
>>
Now , 1 more issue is , when i stop as1 and as2 service , EM says Infrastucture Database is Unavailable ,
and when 10glistener service is stopeed , it gives error of listener does not know of service....
application server - 10g
database -10g r2
OS-windows server 2003 r2this is all so confusing I don't know where to start, really.Here its in detail
I have 3 TNSlistener services - oracleas1tnslistener (mayb its for oracle application server infrastructure ), oracleas2tnslistener ( for oracle application server ) , 10ghometnslistener (for database that i have created )
NOw, these oracleas1tnslisteneer and oracleas2tnslistener both services can run togather ,, BUT NOT WITH 10ghometnslistener .
because when i try to start 10ghometnslistener service it says "terminated" because those both service (as1 and as2) are running ... and visa versa
i cant really understand why three all service cant start togather (if its possible i dnt knw )Again, you only need one listener.
Did you read the links I gave you?

Similar Messages

  • Is there a problem with JFrame and window listeners?

    As the subject implies, i'm having a problem with my JFrame window and the window listeners. I believe i have implemented it properly (i copied it from another class that works). Anyway, none of the events are caught and i'm not sure why. Here's the code
    package gcas.gui.plan;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.event.WindowEvent;
    import java.awt.event.WindowListener;
    import java.util.Hashtable;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import gcas.plandata.TaskData;
    import gcas.util.GCASProperties;
    import gcas.gui.planlist.MainPanel;
    * MainFrame extends JPanel and is the main class for the plan details window
    public class MainFrame extends JFrame implements WindowListener
         * the container for this window
        private Container contentPane;
         * a string value containing the name of the plan being viewed
        private String labelText;
         * a string value containing the name of the window (GCAS - plan list)
        private static String title;
         * an instance of JDialog class
        private static MainFrame dialog;
         * hashTable that correlates the task name to its id as found in the
         * plan
        private Hashtable taskNameToId = new Hashtable();
         * an instance of taskSetPane.  This is the current instance of taskSetPane
         * being viewed
        private PlanTaskSet currentPane;
         * instance of TaskData class.  Each instance will hold information on
         * an individual task
        private TaskData taskData;
         * hashTable containing instances of the taskSetPane class
        private Hashtable taskSetPanes = new Hashtable();
         * an instance of the OuterPanel class
        OuterPanel mainPanel;
         * an instance of the ButtonPanel class
        ButtonPanel buttonsPanel;
         * an instance of the LeftPanel class
        LeftPanel leftPanel;
         * an instance of the the GCASProperties class
        GCASProperties gcasProps;
        private static MainFrame thisPlanMain = null;
        private MainPanel planListMain;
         * constructor for MainFrame
         * @param frame the parent frame calling this class
         * @param locationComp the location of the component that initiated the opening of the dialog
         * @param labelText the name of the plan that is being viewed
         * @param title title of window
        private MainFrame(JFrame frame, Component locationComp, String labelText,
                String title)
            super(title);
            gcasProps = GCASProperties.getInstance();
            mainPanel = new OuterPanel(labelText, currentPane,
                    taskNameToId, taskSetPanes);
            leftPanel = mainPanel.getLeftPanel();
            System.out.println("LABLE: " + labelText);
            leftPanel.setMainPanelContents();
            buttonsPanel = new ButtonPanel(labelText, taskSetPanes,
                    taskNameToId, leftPanel);
            contentPane = getContentPane();
            contentPane.add(mainPanel, BorderLayout.CENTER);
            contentPane.add(buttonsPanel, BorderLayout.PAGE_END);
            this.addWindowListener(this);
            this.labelText = labelText;
            pack();
            setLocationRelativeTo(locationComp);
            this.setVisible(true);
            planListMain = MainPanel.getInstance();
            planListMain.setVisible(false);
        public static MainFrame getInstance(JFrame frame, Component locationComp, String labelText,
                String title)
            if (thisPlanMain == null)
                thisPlanMain = new MainFrame(frame, locationComp, labelText,
                        title);
            return thisPlanMain;
        public static MainFrame getDialogObject()
        {   //from the location this is called (ButtonPanel), this will never
            //be null
            return thisPlanMain;
        public static void setABMDDialogNull()
            thisPlanMain = null;
         * returns an instance of MainFrame
         * @return MainFrame instance
        public static MainFrame getDialog()
            return dialog;
         * setter for MainFrame
         * @param aDialog a MainFrame instance
        public static void setDialog(MainFrame aDialog)
            dialog = aDialog;
         * window opened event
         * @param windowEvent the window event passed to this method
        public void windowOpened(WindowEvent windowEvent)
         * The window event when a window is closing
         * @param windowEvent the window event passed to this method
        public void windowClosing(WindowEvent windowEvent)
            gcasProps.storeProperties("PlanList");
            MainPanel abmd = MainPanel.getInstance();
    //        planMain = this.getDialogObject();
    //        if(planMain != null)
    //            planMain.setVisible(false);
    //            abmd.setVisible(true);
    //            planMain.setABMDDialogNull();
            if(this.getDialogObject()!= null)
                abmd.setVisible(true);
                setVisible(false);
                setABMDDialogNull(); 
         * Invoked when the Window is set to be the active Window
         * @param windowEvent the window event passed to this method
        public void windowActivated(WindowEvent windowEvent)
         * Invoked when a window has been closed as the result of calling dispose on the window
         * @param windowEvent the window event passed to this method
        public void windowClosed(WindowEvent windowEvent)
         * Invoked when a Window is no longer the active Window
         * @param windowEvent the window event passed to this method
        public void windowDeactivated(WindowEvent windowEvent)
            System.out.println("HI");
         * Invoked when a window is changed from a minimized to a normal state
         * @param windowEvent the window event passed to this method
        public  void windowDeiconified(WindowEvent windowEvent)
            //we could have code here that changed the way alerts are done
           System.out.println("Invoked when a window is changed from a minimized to a normal state.");
         * Invoked when a window is changed from a normal to a minimized state
         * @param windowEvent the window event passed to this method
        public  void windowIconified(WindowEvent windowEvent)
            //we could have code here that changed the way alerts are done
    //        System.out.println("Invoked when a window is changed from a normal to a minimized state.");
    }anyone know whats wrong?

    It turned out that my ide was running the old jar and not updating it, so no matter what code i added, it wasn't being seen. Everything should be fine now.

  • Adding listeners for instances on other frames

    I'm trying to create a very standard menu, the type where there are links on each page that links to each other. So far I've put each menu page on a separate frame (total around 35 frames), and each link as its own instance/class. Originally I planned to create an array containing all the links like this:
    var menuLinks:Array =
                                //Main menu - frame 1
                                menuRightSide.newStoryLink,
                                menuRightSide.continueStoryLink,
                                menuRightSide.selectChapterLink,
                                menuRightSide.optionsLink,
                                menuRightSide.charactersLink,
                                menuRightSide.aboutLink,
                                //chapters menu - frame 2
                                menuRightSide.chapter1,
                                menuRightSide.chapter2,
                                menuRightSide.chapter3,
                                menuRightSide.chapter4,
                                menuRightSide.chapter5,
                                //characters - frame 3
                                menuRightSide.char1,
                                menuRightSide.char2,
                                menuRightSide.char3,
                                menuRightSide.char4,
                                menuRightSide.char5,
                                menuRightSide.char6,
                                //options - frame 4
                                menuRightSide.languageLink,
                                menuRightSide.costumeLink,
                                //function links - these exist on MULTIPLE frames/pages, eg options, characters, chapters all have backToMainLink
                                menuRightSide.backToMainLink,
                                menuRightSide.backToCharLink,
                                menuRightSide.backToOptionsLink,
                                menuRightSide.backToCostumeLink,
                                ]; //create array of links for menus
                currentPage = "main_menu";
                for each (var links:MovieClip in menuLinks)
                    links.buttonMode = true; //set links to behave like button
                    links.mouseChildren = false; //mouse over does not affect this instance's children
                    links.addEventListener(MouseEvent.ROLL_OVER, onOver);
                    links.addEventListener(MouseEvent.ROLL_OUT, onOut);
                    links.addEventListener(MouseEvent.CLICK, onClick);
                function onOver(e:MouseEvent):void //apply glow to every link
                    TweenMax.to(e.target, 1, {glowFilter:{color:0xFFFFFF, alpha:1, blurX:10, blurY:10}}); //glow effect
                function onOut(e:MouseEvent):void //remove glow on link on mouse out
                    TweenMax.to(e.target, 1, {glowFilter:{color:0xFFFFFF, alpha:0, blurX:0, blurY:0, remove:true}}); //remove glow
                function onClick(e:MouseEvent):void
                    currentPage = e.target.name;
                    if (e.target.name == "newStoryLink") { //if click newStoryLink
                        delegate.beginStory();
                    } else if (e.target.name == "optionsLink") { //if click optionsLink
                        TweenLite.to(menuRightSide, 0.2, {alpha:0, onComplete:menuRightSide.gotoAndStop, onCompleteParams:[45]}); //go to frame 45, options screen
                        TweenLite.to(menuRightSide, 0.2, {alpha:1, delay:0.2});
                    } else if (e.target.name == "charactersLink") { //if click charactersLink
                        TweenLite.to(menuRightSide, 0.2, {alpha:0, onComplete:menuRightSide.gotoAndStop, onCompleteParams:[10]}); //go to frame 10, char screen
                        TweenLite.to(menuRightSide, 0.2, {alpha:1, delay:0.2});
                    } else if (e.target.name == "aboutLink") { //if click aboutLink
                        TweenLite.to(menuRightSide, 0.2, {alpha:0, onComplete:menuRightSide.gotoAndStop, onCompleteParams:[180]}); //go to frame 180, about screen
                        TweenLite.to(menuRightSide, 0.2, {alpha:1, delay:0.2});
    Basically adding listener for every link, then simply telling AS what to do when I click the link regardless of what page I'm currently on.
    However the problem is I realized listeners can't be added for links that exist on other frames other than frame 1, because they're null I think until AS flips to that frame.
    So does anyone have an idea on how I should code this? Another challenge is some links (the ones at the bottom of the array) exist on MULTIPLE frames, but perform the exact same thing regardless of which page it was clicked on.
    Thanks.

    I arranged them on separate frames because that way I know exactly what's on each page. If I simply list out all the links on one frame, then it gets extremely messy visually.
    So if I want to add listeners on other frames, how would I do that? I know the pseudo-code:
    on frame 1:
    for (each link on frame 1) {
    link.addEventListener()
    on frame 2:
    for (each link on frame 2) {
    link.addEventListener()
    ... etc
    function onClick(e:MouseEvent):void
                    currentPage = e.target.name;
                    if (e.target.name == "newStoryLink") {
                        delegate.beginStory();
                    } else if (e.target.name == "continueStoryLink") {
                        //do something else

  • How to block execution of event listeners

    Hi all,
    JDev version : 11.1.1.6
    My requirement is that I want to block all event listeners like ActionListeners, SelectionListeners, DisclosureListeners, RowDisclosure listeners when the screen is opened in readonly mode.
    I could block ActionListeners by disabling command links and command buttons etc.
    But there's no way to block SelectionListeners, DisclosureListeners, RowDisclosure listeners.
    So Is there any common code which can block all listeners?
    Or is there any EventController or something like that which will allow me to control event execution?

    I would have if it was just one screen.
    There are hundreds of screens.
    Anyways, can't I use any javascript to do this? There are some interfaces like EventListeners , classes like EventConsumer etc. Do none of them provide feature to block event listeners?

  • How to configure multiple listeners

    Hi All,
    I have installed 2 different Oracle instances on a single machine. I found that each oracle installation created its own Listener. I cant start both of the listeners at the same time. As a result, the respective applications cant talk to their corresponding database instances.
    I could start only one listener for one database instance at any given point of time. Therefore, I am unable to use the other application.
    Can any one please help me in configuring this appropriately so that both the applications can talk to their respective databases?
    Waiting for your kind replies.
    Regards,
    Syed

    Syed Abdul Rahman wrote:
    Hi All,
    I have installed 2 different Oracle instances on a single machine. I found that each oracle installation created its own Listener. I cant start both of the listeners at the same time. As a result, the respective applications cant talk to their corresponding database instances.
    I could start only one listener for one database instance at any given point of time. Therefore, I am unable to use the other application.
    Can any one please help me in configuring this appropriately so that both the applications can talk to their respective databases?
    Waiting for your kind replies.
    Regards,
    Syedit's better to configure a single listener . Configuring multiple listener will increased system resource usage. Multiple listener may be helpful in case of RAC .
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to configure multiple listeners to listen for the same instance.

    Hello everyone,
    I am running oracle database 11g and I want information regarding how to configure multiple listeners to listen for the same database instance. Actually I know how to configure more than one listener but the main thing that I am confused about is when we create listener.ora file, do we have to statically register the database instance with both the listeners or the instance will register itself with both the listeners.
    According to my knowledge the instance will register with the listener specified by LOCAL_LISTENER parameter and we cannot have more than one value for this parameter.
    Please only give detailed answers with example as I am tired of simple answers with details that I already know.

    Hello,
    Yes, it can make sense to have several listener for one Oracle instance. For instance you may have one listener for the applications another listener for DBA administration tasks as well as one listener dedicated to dataguard broker. It is not possible to have several listeners listening on the same IP and Port.
    By default the database try to automatically register to a listener on port 1521. To instruct the instance to register to a specifc list of listeners you can add in the init.ora the local_listener parameter with an alias definition:
    i.e
    local_listener=MY_SET_OFF_LISTENERS
    in your tnsname.ora add an entry called:
    MY_SET_OFF_LISTENERS_LOCAL= (ADDRESS_LIST=
    (ADRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1530))
    (ADRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1531))
    (ADRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1532))
    In this sample your instance will register to three listeners listening on respectively port 1530, 1531 and 1532
    If you want your clients can be balanced over the 3 listeners

  • Can you run multiple APEX listeners for different instances on the same server

    Please confirm that we can run multiple APEX listeners for different instances on the same server?  Is it an xml setup configuration or do we need to do more??
    Thank You,
    Tony Miller
    SmartDog Services
    Austin, TX

    Yes.. Just exactly what I was looking for...
    Thanks Jari!!
    Thank You,
    Tony Miller
    SmartDog Services
    Austin, TX

  • How can I get all the Listeners of an ObservableMap?

    This is my use case:
    A MapListener can be added/removed to an ObservableMap in any node. To remove a listener I need a reference to the listener object to use the removeMapListener(MapListener listener) method. But if the listener was registered in the node A, and it will be removed by the node B how do I get this reference in this node?
    This can be easily solve if there is a way to get a Set of all the active MapListerner that an ObservableMap have.
    Thanks in advance,

    ggarciao.com wrote:
    OK ... this is very interesting. So, what happen if the node that registered the event goes down?
    What I actually need is a way to register clustered-aware events that can be created/removed from any node, and the cluster should guarantee its execution. The use case? a workflow implementation.
    I have several entities with an state field. every time that the state field change, I need to capture that event and do something (like update another system).
    There is a way to do this using listeners in coherence?
    Thanks in advance, and sorry for the delay (vacation) :-)Yes, there are several kind of events and event listeners.
    For your purpose you can take two approaches.
    You can either have a cache listener which listens for all changes in a cache and submits events to some other place.
    Alternatively, you can have a backing map listener which would put events into another cache on the same service and you would syphon the content of this cache to your external system. In the Coherence Incubator there is the Event Distribution pattern and Push Replication pattern projects which provide functionality to achieve this. It has been indicated at on several Coherence SIG meetings that a later Coherence release is going to contain the functionality of these projects out-of-the-box but I believe specific release version and timeline for that release is not confirmed yet, so your safe bet at the moment is the Coherence Incubator (Release 10, I believe is the latest, which you can find at http://coherence.oracle.com/display/INC10/Home ).
    Best regards,
    Robert

  • Help me I'm trying to create event listeners

    I am trying to create event listeners
    Whenever any keyboard event occurs the string s gets appended by a,c
    or p.At the end of the program its supposed to print value of s
    But s always happens to null.Please tell me how to correct it....so
    that detection is possible for any case
    import java.io.*;
    import java.awt.event.*;
    public class trial {
    int x;
    public static String s;
    //OutputStream f1=new FileOutputStream("file2.txt");
    public static void keyReleased(KeyEvent e)
    s=s+"a";
    public static void keyPressed(KeyEvent e)
    s=s+"c";
    public static void keyTyped(KeyEvent e)
    s=s+"p";
    public static void main(String args[])
    throws IOException
    char c;
    BufferedReader br =new BufferedReader(new
    InputStreamReader(System.in));
    System.out.println("Entercharactes,'q' to quit.");
    do
    c=(char)br.read();
    System.out.println(c);
    while(c!='q');
    // for(int i=0;i<s.length();++i)
    System.out.println(s);

    I suggest looking at the java tutorial. Your code completely misses the mark and you need to see examples.

  • How to check the status of all of the current cache listeners

    Hi,
    Is there a way to programmatically show the status of all of the registered cache listeners?
    The background is that we found only one user (among around 20 users) always stops receiving the events from the cache. However the tcp connection to the proxy server is always alive. We are using .NET client.
    Please provide any suggestions on this issue.
    Thanks
    Mu

    Is there a way to programmatically show the status of all of the registered cache listeners?Not easily. The listeners are managed in a hierarchical manner, so each storage-enabled server keeps track (e.g. per partition) what listeners it has to notify of what events, and each proxy keeps track (e.g. per connection) of what clients it has to notify of what events, and on the client it keeps track of what listener objects it has to deliver what events to. At each level in the hierarchy, there is a data structure that keeps track of this information, and that data structure will typically be an instance of com.tangosol.util.MapListenerSupport. While it is theoretically possible to navigate these data structures at any level of the hierarchy, it's not straight-forward.
    The background is that we found only one user (among around 20 users) always stops receiving the events from the cache. However the tcp connection to the proxy server is always alive. We are using .NET client.It sounds like the client is getting disconnected at some point. To eliminate the obvious (e.g. an event listener getting stuck and never returning), take a thread dump of the .NET process, e.g.
    http://support.microsoft.com/kb/286350
    Next, add the listeners on the client side for the MemberLeft events. If the client does get disconnected, it should get that event.
    Also, turn up the logging level on the proxies (to at least D6) and check the logs when this happens.
    I'd also suggest that you file an SR with Oracle support to track this.
    Peace,
    Cameron Purdy | Oracle Coherence
    http://coherence.oracle.com/

  • HTTP Listeners shown as running but can't stop, start or configure

    In 4.0.8.2 Oracle Application Server Manager Enterprise
    Edition, HTTP Listeners, for the "www", the listener shows as
    down but is actually running. If I try to stop it, it says it
    is not running (the IE dialog box pops-up). If I try to start
    it, it says (in a new small browser window) "OWS-08806: Oracle
    Web Listener 'www' is already UP and running at pid 0." Since
    my site is up, I know it is running. However, how can I bring
    it down?
    If I look at the Http listener views it shows both admin and
    www listeners are up and shows pid's for them. But when I go
    to them individually they say they are stopped as I said above.
    I use Oracle Application Server Manager 4.0 to view the HTTP
    Listeners configuration. The Oracle Application Server Manager
    4.0 looks like this:
    - name of the site
    + Oracle Application Server
    - HTTP Listeners
    - host name: admin
    Network
    Server
    etc
    When I click on, for instance: NETWORK, it supposed to show me
    the properties after prompting for a username and password. But
    it just didn't do anything showing page not found.
    Any assistance would be greatly appreciated.
    Thank You!!!
    J

    Thanks again.
    I'll try to be more clear about my current setup:
    Modem
    ->
    Router
    DHCP enabled but supplying server with static ip of: 192.168.1.2 - hence my Ethernet 1 settings on my Xserve. The DHCP address the router supplies to other devices range between 192.168.1.101 - 192.168.1.150 (this is temporary). I'm using the Router as a temporary network connection for devices as I continue to setup the server. Once the server is completed, I will hook everyone up through the switch.
    ->
    Xserve
    The Xserve receives a static IP from the router above (192.168.1.2) even though the router gives DHCP addresses to other devices. The Xserve then goes out Ethernet 2 to (which has also been assigned a static internal address: 192.168.1.3) a switch.
    ->
    Switch
    The Switch definitely has DHCP disabled, and merely extends the network connection.
    Right now, the Xserve is doing nothing other than attempting to supply an internet connection to devices attached to it. I performed a clean install after a day or two of troubleshooting.
    I really want to be able to control content access as well as give certain devices priority over others using the Xserve. I want it to control... the network, in all aspects: DNS, Open Directory (Master), Firewall etc. Am I still able to control the network with the Xserve if it is hooked up side by side to the clients without reconfiguring my router to hop through the Xserve before going to the internet? If not, why not just use the Xserve as a middle man as I currently do?
    What are the benefits of using it side by side to the clients? What are the drawbacks of my current setup? (Other than it not functioning)

  • Using Multiple Event Listeners

    Hi,
    I have a movielcip (A) class in which I have used a Tween class effect on a child movieclip (B) scrollRect. The (B) Movieclip in turn has several movieclips whose have tween class effect being executed on thier child movieclips.
    the tweens are all unique to each movieclip
    and the event listeners are taken off once completed.
    This works all well and good in FLASH IDE...
    My problem arises when I try to view this in a browser on a Windows XP
    it doesnt work in
    Opera Version 9.63
    Firefox 2.0
    and Google Chrome 2.0
    The only browser it works fluently in is
    Internet Explorer 7.0.5
    What is happening in most cases it that the animation appears to "stick" but i think what may be happening is the listening or removal of the event listeners. The animations are left incompleted.
    Is there any rule of thumb when using multiple event listeners?
    here is a snippet of some of my code
    on click event from movieclip (A)
    private function scrollToSlidePrev(e:MouseEvent) {
                   if (((slideIndex - 1) >= 0)) {
                        nextButton.mouseEnabled = nextButton.enabled = previousButton.enabled = previousButton.mouseEnabled = false;
                        var position:Number = 0-SLIDEAREA.width;
                        var slide1:TileListSlide = slides[slideIndex] as TileListSlide;
                        var slide2:TileListSlide = slides[--slideIndex] as TileListSlide;
                        scrollSlide(position,slide1,slide2);
    tween animation in movieclip (A) on (B)
    private function scrollSlide(pos:int,slide1:TileListSlide,slide2:TileListSlide) {
                   slide1.resizeSlideTo(0.6); // execute tween on child movie clips in B
                   slide2.resizeSlideTo(1); // same as above;
                   var rect:Rectangle = sliderMc.scrollRect;
                   var tween1:Tween = new Tween(rect,"x",Regular.easeOut,rect.x,rect.x + pos,3,true);
                   tween1.addEventListener(TweenEvent.MOTION_CHANGE,setSliderScroll,false,4);
                   tween1.addEventListener(TweenEvent.MOTION_FINISH,toggleButtonEnabled,false,3);
    tween animation in movieclip (B) children
    public function resizeSlideTo(sc) {
                   var m:Matrix = tileList.transform.matrix as Matrix;
                   var p:Point = new Point (m.a, 0);
                   var tween2:Tween = new Tween(p,"x",Regular.easeOut,p.x,sc,3,true);
                   if (numericStepper != null) {
                        if (sc != 1) {
                             numericStepper.visible = false;
                             tween2.removeEventListener(TweenEvent.MOTION_FINISH,showStepper);
                        if (sc === 1) {
                             tween2.addEventListener(TweenEvent.MOTION_FINISH,showStepper,false,2);
                   tween2.addEventListener(TweenEvent.MOTION_CHANGE,setScaleOnScroll,false,3);
    here is the link
    http://visual_admin.web.aplus.net/ticker/ticker_widget.html
    the effect disables and re-enables the buttons when its done.... then the listeners are removed.
    each one with the exception cretes its own unique tween (obviously this is a custom class built as each clip)
    i really don't know what to make of it guys         

    apparantly making the tween a property of the class rather than a random variable in a function worked.....go figure

  • Srvctl on 11.2.0.3 does not stop and start listeners

    I recently installed the Grid software under the "grid" user on RH5. Clusterware and ASM run under GRID_HOME, the single instance database runs under ORACLE_HOME. I have created 2 listeners on non-default ports (manually using entried in listener.ora) and then added to srvctl (srvctl add listerner -l LISTENER_XPT -o /app/oracle/product/dhome_1 -p "TCP:1523" -- in ORACLE_HOME.
    When stopping the listener using:
    oracle@#####>srvctl stop listener -l LISTENER_XPT -- note starting with oracle user in ORACLE_HOME. Below is from "/app/grid/product/11.2.0/grid/log/server_name/agent/ohasd/oraagent_grid/oraagent_grid.log
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:) TNS-00511: No listener
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:) Linux Error: 111: Connection refused
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:)Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check]
    **********FROM TAILING THE listener LOG ****************************
    TNS-01190: The user is not authorized to execute the requested listener command
    12-JUN-2012 12:44:12 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
    TNS-01195: Listener rejected registration of endpoint "(ADDRESS=(PROTOCOL=TCP)(HOST=10.5.87.5)(PORT=1523)(IP=FIRST))"
    12-JUN-2012 12:50:02 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
    TNS-01190: The user is not authorized to execute the requested listener command
    12-JUN-2012 15:12:58 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_ADMIN)(VERSION=186647296)) * status * 0
    12-JUN-2012 15:12:58 * version * 0
    12-JUN-2012 15:12:58 * service_register * LsnrAgt * 1195
    TNS-01195: Listener rejected registration of endpoint "(ADDRESS=(PROTOCOL=TCP)(HOST=********)(PORT=1524)(IP=FIRST))"
    12-JUN-2012 15:12:59 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=********)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
    12-JUN-2012 15:13:05 * (CONNECT_DATA=(SID=PRDRAC01)(CID=(PROGRAM=perl)(HOST=********)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=*******)(PORT=41398)) * establish * PRDRAC01 * 0
    Why wouldnt the Oracle user not be able to start/stop a resource from ORACLE_HOME ? Any assistance would be helpful

    I just removed the listener out of the ORACLE_HOME and added it using srvctl to the GRID_HOME. Now I am able to stop and start.
    Still the question, why cant oracle user start an oracle_home managed resource. But the oracle user could start and stop using lsnrctl stop/start
    Below if the results from ps (note I just started listener from GRID_HOME):
    grid@PRODBLD:+ASM>ps -ef |grep lsnr
    grid 9114 1 0 09:40 ? 00:00:00 /app/grid/product/11.2.0/grid/bin/tnslsnr LISTENER_ADMIN -inherit
    grid 10348 1 0 Jun12 ? 00:00:00 /app/grid/product/11.2.0/grid/bin/tnslsnr LISTENER -inherit
    grid 20234 21990 0 09:49 pts/2 00:00:00 grep lsnr
    oracle 29926 1 0 Jun12 ? 00:00:00 /app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr LISTENER_XPT -inherit

  • Best Practice: Where to put Listeners?

    In a Swing application the typical way of handling events is to add a listener. So far, so good.
    But where to locate the listeners? Obviously there are a lot of possible solutions:
    - Scatter them all over your code, like using anonymous listeners.
    - Implement all of them in a single, explicit class.
    - Only uses windows as listeners.
    - etc.
    The intention of my question is not to get a rather long list of more ideas, or to get pros or cons of any of the above suggestion. My actual question is: Is there a best practice for where to locate a listener's implementation? I mean, after decades of Swing and thousands of Swing based applications, I am sure that there must be a best practice where to but listeners implementations.

    mkarg wrote:
    In a Swing application the typical way of handling events is to add a listener. So far, so good.
    But where to locate the listeners? Obviously there are a lot of possible solutions:
    - Scatter them all over your code, like using anonymous listeners.
    - Implement all of them in a single, explicit class.
    - Only uses windows as listeners.
    - etc.
    The intention of my question is not to get a rather long list of more ideas, or to get pros or cons of any of the above suggestion. My actual question is: Is there a best practice for where to locate a listener's implementation? I mean, after decades of Swing and thousands of Swing based applications, I am sure that there must be a best practice where to but listeners implementations.You've asked other similar questions about best practices. No matter how long Swing has been around, people still program in a variety of ways, and there are lots of areas where there are several equally correct ways of doing things. Each way has its pros and cons, and the specific situation drives towards one way or the other. One's best practice of using anonymous listeners will be another's code smell. One's best practice of using inner class will be another's hassle.
    So you will probably only get opinions, and likely not universally recognized best practices.
    That being said, here is my opinion (nothingmore than that, but it has a high value to me :o) :
    In yous list of options, one thing that is more likely to form a consensus against it, is "only uses window as listeners". I assume you mean each frame is implemented as a MyCustomFrame extends JFrame , and add this as listener on all contained widgets.
    This option is disregarded because
    1) extending JFrame is generally not a meaningful use of inheritance (that point is open to debate, as it is quite handy)
    2) register the same object to serve as a listener for several widgets makes the implementation of listener callbacks awkward (lots of if-then-else). See [that thread|http://forums.sun.com/thread.jspa?forumID=57&threadID=5395604] for more arguments.
    Now, no matter what style of listeners you choose, your listeners shouldn't do too much work (how much is too much is also open to debate...):
    if a listener gets complicated, you should simplify it by making it a simple relay, that transform low-level graphical events into functional events to be processed by a higher-level class (+Controller+). I find the Mediator pattern to be a best practice for "more-than-3-widgets" interactions. As the interactions usually involves also calls to the application model, the mediator becomes a controller.
    With that in mind, sort anonymous listeners are fine: the heavy work will be performed by the mediator or controller, and that latter is where maintenance will occur. So "Scatter them all over your code" (sounds quite pejorative) is not much of an issue: you have to hook the widget to the behavior somewhere anyway, the shorter, the best.
    For simpler behavior, see the previous reply which gives perfect advice.

  • Can i have sync and async listeners for the same queue ?

    Hello,
    I am a novice in JMS. Wondering experts over here could throw in some light !
    Can I set both synchronous and asynchronous listeners for a perticular queue.
    eg: pseudo code.
    status; // default to start
    run()
    setListener(Q1); // listener sets status to stop
    while(1)
    waitForUserPrompt(value1);
    switch(value1)
    a: fun1();
    break;
    b: fun2();
    break;
    fun1()
    while(status != stop)
    stay in loop.
    fun2()
    // synchronously wait for "stop"
    receive(Q1);
    // wait and do following important code!
    }

    Hi,
    I don't know in Chrome, but in Safari (pc or mac) you can open icloud.com twice on two different tab or windows and open one with contact and the other in Mail without messing up.  What kind of mess to do you experience?
    There is no other options to do what you want to do.  You need to click on the little top cloud to switch from one to another.
    Beside, I don't understand why even 2 open tab would help more than having to switch via the cloud icon.  I may need to cut/paste some info from contact or calendar from time to time, but switch via the cloud icon is not really painfull.

  • How to identify listeners types for forms, items and events in addon wizard

    Dear users,
    I have developed a sample addon through B1DE wizards and successfully installed and connected the addon and can view menu and form of my addon. Since i am new to this, i didn't add any listeners to my form, items and events because i don't know what type of listeners to add and what coding to add after adding listeners.
    If anyone describe me how to work with listeners, i would be glad. My form has basic fields like BPcode, BPname, Docnum, Itemcode, Item name, quanity, price, total etc. Uptil now my addon form has no function of getting list of BP and Items and calculating the totals based on price and quantity but it has some basic functions like add, update,del, add print view, next record previous, record next etc. which are due to object registration and auto-code generation wizards i think.
    Please help me in adding listeners and their relevant coding.
    Thanks in advance.

    Thanks for reply, Actually I am asking about listeners in the wizard of B1DE, code generator wizard. I think you are telling me about adding listeners directly in the vb.net. Kindly, tell me first, what event type I should add for item, form etc while adding listeners during  the wizard. Or If you know some link where event types of listeners are decribed, you are more than welcome.
    Thanks,
    Farhan

Maybe you are looking for

  • Photoshop can't print legal-size image to legal-size paper

    I go through a lot of sketch stages to get to a final picture, and I sometimes print on legal paper. My Brother printer does fine at that with Apple Pages, MSWord, Acrobat, and Illustrator, but with Photoshop there's a problem. I set up a legal-size

  • Rest drill on column selector change.

    Hi all, We have a column selector for our table, and a defined dimension. There is a requirement that when the user has drilled down, to any level in the dimension, when he/she changes the column in the column selector it resets the drill to the top

  • Volume fluctuations on burned discs

    I recently created my first project on iDVD and burned it to a disc. the sound levels kept fluctuating, raising at some points, then dropping down low. since i had made the project using Magic iDVD, i went back and created it manually. i saved it to

  • Magic Extractor

    Hello Guys: Green Newbie here. I'm working with the Magic Extractor getting rid of my background, and was using the zoom tool while using my foreground brush selecting, and can't figure out how to zoom back out after zooming in??? Help!!! Connie

  • Visio Drawing Using Data Graphics with data that has a field that contains Multiple Values.

    I am working on creating a drawing for SMTP connectors.  I decided I would use a Data Graphic connecting to a spreadsheet.  In the spreadsheet there are a few fields that are Multi-Value fields.  For instance SmartHosts contains multiple Ip address.