10 g Listener behavior

hi ALL
I have 9i and 10g database on my linux machine.
i m using the 10g Lsitener.
i m trying to connect from client macine.
my problem is -----
1 When ORACLE_HOME , ORACLE_BASE and all parameters are set for 9i . and i start the 10g lsitener.. i m able to coneect with 9i from client. for 10g ist not connecting . i m getting ORA-12500 error.
2 When ORACLE_HOME , ORACLE_BASE and all parameters are set for 10g . and i start the 10g lsitener.. i m able to coneect with 10g from client. for 9i ist not connecting . i m getting ORA-12537 error..
On server i m able to connect with both the database in both condition.
my TNS_ADMIN is common for both.
help
regds
Ashish

Hi,
>>1 When ORACLE_HOME , ORACLE_BASE and all parameters are set for 9i . and i start the 10g lsitener.. i m able to coneect with 9i from client. for 10g ist not connecting . i m getting ORA-12500 error.
if all the parameter set for oracle 9i then why r you start 10 g listener.
i hope both database have different oracle users.
so first connect from 9i user by
su - <oracle 9i user>
lsnrctl start
and then by 10g user
su - <oracle 10g user>
lsnrctl start
Thanks
Kuljeet Pal Singh

Similar Messages

  • Listener Behavior

    Recently I have migrated from 8i to 10g Database. Everything went fine during the first week. then I got a complain from the developer that his application cannot connect to database using OCI Oracle client.
    After investigation, I found that the listener process called "LISTENER" listening to port 1521 created another child process. I tried to tnsping to listener I could not. But it worked fine as soon as I killed the child process.
    Could someone explain to me why there is a child process? And how to prevent this a occur again?
    Message was edited by:
    user446383

    Thanks Guys for you reply
    Any how I am using Oracle 10.1.0.3.0 client & 10.1.0.3.0 Database with "Critical Patch Update for April CPU05". Sun Solaris 9
    Below is my listener.ora
    ====================
    # listener.ora Network Configuration File: /oracle/software/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/software)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rpdb)(PORT = 1521))
    =============================
    Here is snapshot of listener.log
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    06-AUG-2005 08:23:43 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    06-AUG-2005 08:24:27 * (CONNECT_DATA=(SID=rpdb)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOS
    T=192.168.7.4)(PORT=41465)) * establish * rpdb * 0
    06-AUG-2005 08:36:16 * service_update * rpdb * 0
    06-AUG-2005 08:46:18 * service_update * rpdb * 0
    06-AUG-2005 08:52:54 * service_update * rpdb * 0
    06-AUG-2005 08:54:15 * service_update * rpdb * 0
    06-AUG-2005 08:56:02 * ping * 0
    06-AUG-2005 08:56:21 * (CONNECT_DATA=(SERVICE_NAME=rpdb)(CID=(PROGRAM=)(HOST=client03)(USER=ora10g))) * (ADDRESS=(PROTOCOL=
    tcp)(HOST=192.168.7.4)(PORT=41956)) * establish * rpdb * 0
    06-AUG-2005 09:02:55 * service_update * rpdb * 0
    06-AUG-2005 09:10:33 * (CONNECT_DATA=(SID=rpdb)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOS
    T=192.168.7.4)(PORT=42196)) * establish * rpdb * 0
    06-AUG-2005 09:10:39 * (CONNECT_DATA=(SID=rpdb)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOS
    T=192.168.7.4)(PORT=42198)) * establish * rpdb * 0
    06-AUG-2005 09:10:39 * (CONNECT_DATA=(SID=rpdb)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOS
    T=192.168.7.4)(PORT=42200)) * establish * rpdb * 0
    06-AUG-2005 09:10:39 * (CONNECT_DATA=(SID=rpdb)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOS
    ====================================

  • Itunes U Files No Longer Appearing in the Device in Itunes

    I've been using Itunes U files with no problem for a while now but just yesterday something changed. Before I'd drag them into my device like any other file and they would appear in the "music" subfolder of my device. Fair enough. I could listen to them and delete them from there when done.
    Now they don't appear anywhere in my itunes. That is, I can put them in my device and listen to them there, but as they don't appear in the music folder anymore (or the podcast folder... or in their own) I cannot delete them. This wouldn't be a problem if I had a big player - but I intentionally have a small player (First Generation 1 GB Nano) so that I limit my options and force my listening behavior.
    My only present work around is restoring them to the factory settings. It's kind of a pain to do every other day as you can imagine but what's a boy to do? So... what's going on? A new bug? Some new thing I've missed? Help!!!!!

    I have my entire music collection ripped using iTunes and stored on a Mac mini running Windows. It is all in Apple Lossless format and shared with Windows Media Player and Media Center which can play the Apple Lossless files thanks to a solution I came up with along with assistance from Milenko Mitrovic.
    While I do deliberately chose to embed 600x600 pixel artwork in each track (disk space is cheap), I also put a folder.jpg of the same artwork in each album folder for the benefit of WMP and Media Center.
    The steps I use to do this are as follows.
    1. Rip the CD using iTunes
    2. Tell iTunes to download album artwork for that Album. Life is made much easier if you only do one album at a time.
    3. Look in your Music folder for the iTunes folder and look in that for the Album Artwork folder
    4. In the Album Artwork folder will be a Download folder and in that various subfolders eventually leading to a file called something like A392573AD3DE300C-45855BDAB6F38792.itc2 by checking the file creation date/time you will be able to confirm it corresponds with the one you just downloaded.
    5. Use the free utility bitmaprip available here http://mark0.net/soft-bitmaprip-e.html to 'extract' the real artwork from inside Apple's proprietary itc2 file. You can then move this to the iTunes album folder for that album and name it folder.jpg
    If you then like I do, want to make this artwork embedded, then do the following extra steps.
    6. Select one of the tracks for the album
    7. Copy the artwork to the clipboard
    8. Clear the downloaded artwork
    9. Delete any folders left in your Album Artwork folder so they do not confuse you for the next album
    10. Select all the tracks for the album
    11. Paste the artwork in

  • JScrollPane function with Custom Paint ???

    Hi, I'm having a problem with scrolling with components for which I've overidden the paint method for.
    I have a scrollpane which contains a ContentPanel (my own subclass of JPanel in which I implemented paint and paintComponent). The ContentPanel contains Subclasses JButton's which also have their own paintComponent methods.
    Problem: Everything (including scrollbars) paint correctly initially. The problem arises when one tries to scroll. When I pull the scrollbar in any direction, the JButtons paint oscillate between painting themselves at the correct scrolled position and at the original position in the Viewport. Then when one lets go of the scroll, the component rests in exactly the same position in the Viewport as it started.
    I tried implementing the Scrollable inteface, still no luck. The documentation seems to imply that custom painting should have no effect on scrolling because the content is contained in the view and the ScrollBar commissions a Viewport class to help it move around. I'm not sure, but it seems like it should not be the result of my overidding the paint methods.
    I'm so confused, is there something else I need to implement to use JScrollPanes, like Adjustment Listener?
    Thanks for your help, Aurora

    Dear Tom,
    It looks like the code you have was originally made for awt, not swing. In swing, one should override the paintComponent(Graphics g) method, not the paint() method.
    For reasons why check out this tutotial on how painting works.
    http://java.sun.com/docs/books/tutorial/uiswing/overview/draw.html
    The reason why you need to call super.paintComponent() in the JPanel is because the JPanel you have is not completely opaque, (I think). Anyway, it has to do with how painting works.
    public class myPanel extends JPanel
    public myPanel()
    setVisible(true);
    setSize(600,200);
    setLayout(null);
    setBackground(Color.white);
    myBox m1 = new myBox();
    //is the bounds of myBox set appropriately??? Perhaps you need to setBounds() in the constructor of mybox.
    add(m1);
    public void paintComponent(Graphics g)
    super.paintComponent(g);
    g.setColor(Color.black);
    g.drawString("Test", 10, 13);
    m1.paint(g);
    //this is important. The subcomponents will not paint themselves unless they are told to by their containers.
    In Swing, basically painting works as a hierarchy where the top level Component paints itself and then paints all it's children component, they paint their children and so on. Swing also determines many important things using the bounds of each component. To ensure correct painting and listening behavior, make sure the bounds for your myBoxes are the correct size. Also, implement public void paintComponent(Graphics g) in the myBox so that it will draw it's own rectangle when called by myPanel.
    If that doesn't work, check out how myPanel is being added to the overall JFrame. It may not be displaying correctly because you have forgotten to add it or don't have a layout manager etc.
    Good luck,
    Aurora

  • Strange behavior of listener

    I am running to databases on my oracle 8.1.7.
    For one of the database say A the behavior of listener is normal,but for the other say B its behavior is very strange.
    i am using the same listener for both the database , can that be reason of problem ?
    If i've to connect this database B from a remote machine i need to restart the listener everytime, while at the same time i can connect to the database B from the machine running database.
    i got the following error at remote machine if i don't restart the listener :-
    ORA-12541: TNS:no listener
    but when i check the listener status it tell that its running and i was able to connect to database at local machine without any difficulty, also the lisnter.log captured the unsuccessful attempt as connection established.
    Shutting down the database A , doesn't help much as other than starting for everytime i got advantage of starting after few more connections.
    i don't know much about setup of database and managing of two instance of database.
    has everybody else faced this error before ?
    thanks

    my tnsnames.ora is as follows -
    A.LOCALDOMAIN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = A)
    B.LOCALDOMAIN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = B)
    INST1_HTTP.LOCALDOMAIN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = B)
    (PRESENTATION = http://admin)
    EXTPROC_CONNECTION_DATA.LOCALDOMAIN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    B is the database instance with which i am getting the problem.

  • Apex Listener 2.0.1 vs Sql Developer Administration 3.2.20.09 bugs

    Apex Listener 2.0.1 / Sql Developer 3.2.20.09 / Apex 4.1.1
    1. I'm using basic connection type with service name. Each time I connect to listener administration it is resetted to SID with default name as orcl.
    2. Test Settings does not work in case hostname is localhost.
    Database Settings apex:Cannot connect to APEX_PUBLIC_USER. Исключение ввода/вывода (input/output exception): The Network Adapter could not establish the connection>
    At the same time it's working in defaults.xml:
    <entry key="db.hostname">localhost</entry>I'm not sure why. Database and Apex Listener are installed on the same mashine. May be this can help:
    <Warning> <Server> <x> <> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <> <BEA-002611> <Hostname "x", maps to multiple IP addresses: 10.110.x.x, 0:0:0:0:0:0:0:1> 3. I can see "Enable RESTful Services" action in (url http://docs.oracle.com/cd/E35137_01/appdev.32/e35117/intro.htm#autoId110)SQL Developer User's Guide. Still there is no such action in Sql Developer. Thus settings are always uploaded with enabled RESTful Services.
    I see error
    The pool named: apex_al does not existeach time I connect to Apex Listener Administration in case of RESTful Services is not configured during configuration of apex.war.
    I can't find any restrictions for RESTful Services to be configured. So I think this error is unnecessary.
    4. From sql developer User's Guide
    Connect (context menu only): Connects to the Application Express Listener (see Connecting to Application Express Listener Server).Retrieve Settings, Upload Settings, and Launch URL are enabled when you connect to the Application Express Listener.>
    administration settings are retrieved and displayed but still Retrieve Settings, Upload Settings, and Launch URL are disabled in context menu after connection.
    I need to perform New Administration action to make them enabled.
    Is this expected behavior ?
    Is this all bugs or known features ?
    Regards,
    Igor

    DB: V11.2
    APEX V 4.2.3.00.08
    APEX Listener: V2.0.5.287.04.27
    SQLDeveloper: Version 3.2.20.09
    OS WIndows 7 64 bit
    I am trying to create a connection to a standalone Apex Listener installation via SQL Developer to manage the listener settings. I start a new connection and after entering the UN/PWD of the Listener Administrator I get the following error:
    Authentication failed
    "CANNOT CONNECT TO CONNECTION.
    INVALID RESOURCE OWNER CREDENTIALS"
    In the Standalone APEX Listener DOS window I'm getting the following error message:
    SEVERE: The pool named: apex_al does not exist
    So where do I even start to trouble shoot this???
    I add a connection as follows:
    Connection Name: Connection
    Usename: adminlistener  (pwd=adminlistener configured using command :java -jar apex.war user adminlistener "Listener Administrator")
    HTTP radio button
    Hostname: localhost
    Port: 8080
    Server Path: /apex
    thanks in advance
    Paul Platt

  • MDB behavior with Foreign JMS Provider

              I am experiencing some MDB behavior which I do not quite understand. I would appreciate
              if someone could tell me what might be happening.
              An application on WebLogic 8.1 SP1 (also tried it with SP2) has MDB's which listen
              on a MQ Queue. If I put a large XML message on the MQ Queue (say around 600 KB),
              the onMessage execution is very random, For the large messages only 1 MDB gets
              invoked and the other messages just sit on the MQ Queue. Even though I have defined
              an weblogic execute queue for the MDB's and they have 15 threads allocated.
              The other messages get picked up after the first one gets completed. The problem
              is the whole transaction (which is XA) can take a while (upto 10 minutes). This
              is not intended, but for some reason it takes that long.
              Also, while monitoring the MDB execute queues, I noticed that none of the threads
              from that queue are performing the work and a thread dump shows that the weblogic.ejb20.internal.JMSPoller
              thread has invoked the MDB and is currently waiting for the database to finish
              some processing.
              When the message size is smaller, the MDB's fire concurrently and are executed
              on the MDB execute queue.
              Thanks,
              Ketan.
              

    When we're using MDBs against a foreign JMS provider with XA, the EJB
              container tries to reduce the number of threads that are blocked waiting for
              a message. You should see lots of threads working when there are lots of
              messages on the queue, a few threads (or only one) working when the queue is
              empty or nearly so, and there should be some ramp-up and ramp-down time in
              between. It sounds like the ramp-up takes longer in your case because
              receiving the very first message takes a long time.
              If this behavior is causing big problems for you, you might want to contact
              product support and file an enhancement request.
              greg
              "Ketan" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Here is some more information regarding this issue.
              >
              > When I place sufficiently large messages (such that the parsing and
              processing
              > of these messages takes longer than it does for normal size messages), I
              notice
              > the following behavior.
              >
              > Lets say I put 6 large messages on the MQ Queue. The server immediately
              picks
              > up 1 message and starts processing it. The other 5 messages are sitting on
              the
              > MQ Queue, while the MDB execute queue has all 15 idle threads.
              >
              > After the processing of the message is done, 2 messages get picked up.
              This time,
              > 1 thread in the MDB execute queue gets the message and the other is
              processed
              > by the JMSPoller thread. After these 2 messages are processed, 3 Messages
              get
              > picked up and this time 2 messages are on the MDB execute queue and 1 is
              processed
              > by the JMSPoller.
              >
              > So based on this the question is ..Is this the expected behavior? I was
              under
              > the impression that the poller would simply dispatch messages to the
              execute queue,
              > and as a result, I was expecting all the messages would get picked up from
              the
              > MQ queue pretty fast and would not have to wait for 1 or more MDB's to
              finish
              > processing.
              >
              > I would really appreciate any suggestions anyone may have for me.
              >
              > Again the environment is WLS 8.1 SP2, MQ 5.3
              >
              > thanks,
              > Ketan
              

  • Strange Behavior from iTunes 7.2

    Running itunes - 7.2Recently had my itunes library “corrupted” or non functional.
    Spent a long, long time rebuilding the library (see below) and noticed some strange behavior that has me terrified that itunes is corrupted and I am going to loose all the hard work, etc..
    1. I have about 100 GB of music in various formats (apple protected/itunes store, mp3 (128 to 320), apple lossless, wav) and when I tried to rebuild the library by clicking on add to library it only added about 65 GB of the 100 GB. I had to go through and figure out what was missing and manually choose the specific folder when I added it.
    Major pain and very time consuming.
    So it is not adding songs correctly, but through way too much effort able to work around this.
    2. About ½ of the itunes store tunes I purchased are no longer apple protected format. Somehow they were converted to mp3 at 192kbs. Some of the songs play fine others are now not as crisp and make a poping sound or skip. How could this happen? Are these files corrupted? Will I loose them?
    3. At the top center of itunes the information bar, where the read out is for what song is playing and how much time has elapsed in the song, is not working. When I click on a song it starts playing but the elapsed time bar and counter never move, and when the next song starts playing the information never changes. It is stuck on what ever song you initiate play with by clicking on it and the information stays frozen.
    4. itunes randomly stops playing at the end of a song….If listening to an album it is usually after three or four songs and when listening to a play list it is usually after one song.
    I am afraid itunes is corrupted and will not function correctly and I am going to loose the hard work I put in trying to recover from the last crash.
    Any suggestions??
    Can’t wait for time machine. I hope it works as advertised. If so I could just go back in time to the last time iTunes worked correctly and go from there.

    First of all I hope that you have a good b/u of all your tunes - either on ext HD or on DVD. Don't forget to b/u the iTunes Library and .xml files at the same time.
    Have you tried to reinstall iTunes? Drag the app to the trash and remove the iTunesX.pkg from HD>Library>Receipts>iTunesX.pkg. Using a fresh .dmg of iTunes 7.2 reinstall.
    Have you repaired permissions with Disk Utility?
    Is your Quicktime up to date? At least version v7.1.5.
    MJ

  • I can no longer download any NPR podcasts I subscribe to. I can download and listen to other podcasts but none from NPR.  I have tried on Windows 7 and Windows 8.  Other podcasts, music etc. download fine.

    I can no longer download any NPR podcasts I subscribe to.
    I can download and listen to other podcasts but none from NPR. 
    I have tried downloading the podcasts on computers that run Windows 7 and Windows 8.  Other podcasts, music etc. download fine.
    iTunes version:  11.3.0.54
    I have tried uninstalling, reinstalling iTunes and I have tried unsubscribing and resubscribing to the podcasts.
    I don't have trouble getting NPR podcasts from the store. I just can't play them in iTunes.

    For additional context and to verify if we are talking about the same behavior.  Here is what the download screen looks like on my iPod:

  • Why does iTunes keep asking for my password when I want to listen to my music on my iPhone?

    When I want to listen to music on my iPhone, iTunes keeps asking for my password.  I am not purchasing anything.  It started today.  Why is that?

    I've been having the same problem on my iPad and iPhone. I talked to Apple customer service this morning. They had me do the following on both devices in the Settings:
    * Sign out of iTunes & App Store
    * Sign out of FaceTime
    * Sign out of Game Center
    * Delete iCloud account
    They also had me restore my iPad due to some glitchy behavior in the Music app.
    Things seemed to me fixed for a few hours until I went into the iTunes Store app on my iPad and added a movie to my Wish List. When I went back to the Music app, the dreaded "Sign In to iTunes Store" popup started showing up again on both devices. Suspicious!
    So, I cleared out my Wish List in both the iTunes Store and App Store. I've been poking at the Music app on both my iPhone and iPad since then I haven't seen that popup once since then. I'm not going to declare victory yet since it's only been an hour or two, but I thought that this was worth mentioning.

  • Control break behavior

    Hi,
    Can anyone tell if there's a way to override the default behavior of Control Break?
    In my report (a schedule), I have a column that holds the values for days (monday, tuesday, etc.).
    I want to control break on that column but keep the resulting grups ordered in a natural order (monday first, tuesday second and so on).
    I can write the sql that generates my report that way by using decode, but once I Control Break apex is applying a new order by clause on my report, destroying my order.
    Any ideas on how to tell apex how to order for control break using decode, or how to disable ordering entirely when I use Control Break on a specific column?
    Thank you!
    Edited by: user2130586 on May 17, 2012 6:40 AM
    Edited by: user2130586 on May 17, 2012 6:41 AM

    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already).
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    When asking a question about "reports" it's firstly essential to differentiate between standard and interactive reports. Which is it?
    I suggest you take advantage of the opportunities provided by apex.oracle.com and reproduce the problem there...

  • Out of the box behavior of the Pagination control

    Why does the Pagination invoke the PageFactory callback upon page count change?  And when it does invoke it, why is it with currentPageIndex=0?  Should there be an API to remove this listener if this is undesirable behavior?  If we know we may need to alter the Page Count after construction of the Pagination control, would it be best to remove the old one, and construct a new one for display at that point since the current implementation seems to behave inconsistently when one wants to alter the Page Count post-construction and/or callback configuration.
    Please consider the following scenario:
    The user is viewing a TableView of items.  Below the TableView is a Paginator whose PageFactory callback fetches rows from a database and calls TableView.setItems(<results>).  There are 3 pages and the user is on the 3rd page.  Only 5 rows remain out of a possible page size of 20.  The user decides to delete the 5 remaining rows on page 3 from the table/database.  Now it would seem natural at this point to conclude that page 3 no longer exists and we would want to the user to return to page 2.  If we simply call paginator.setCurrentPageIndex(currentIndex - 1) then we will correctly transition the user to Page 2, however Page 3 will remain displayed in the Pagination control and if the user browses back to that page, he is met with the "There is no content to display" label.  So it would seem natural that we could presume this happening and instead call paginator.setPageCount(2), then paginator.setCurrentPageIndex(currentIndex - 1).  That way the Pagination control reflects an accurate number of pages.  Unfortunately, this results in TWO callbacks to the PageFactory method, one at currentPageIndex=0 and another at the correct index.  Sometimes the widget that is constructed in the PageFactory callback (TableView) doesn't get displayed properly (disclaimer: speculation ahead) probably due to some asynchronous nature of the two competing callbacks (?).
    I'm struggling to get a handle on this control.  So far, my experience with TableView has been pretty good.  I love the features you get with this Pagination control out of the box, but some of the choices that were made with regards with what APIs to expose confuse me.  The frustrating thing about callbacks is that sometimes you can get caught in this callback hell where there are all sorts of callbacks being invoked and you don't really know why.  Often times, the Javadoc does not indicate that there is a default listener being applied to certain property that may invoke one of these callback.  I don't mean to sound like a rant.  Overall my experience with JavaFX 8 has been very positive so far.  I can usually always find a workaround if a come across a weird issue with an out of the box control.  Worst comes to worst, I'll write my own Pagination control.
    Thanks for your time.

    For anyone else that may come across this post.  I was able to find a workaround by simply using a field, boolean pageCountReset, and then bounding all of the logic in my page factory call back with a condition checking for this boolean value i.e. if (!pageCountReset) // continue, else // noop.  Then, if I need to reset the page count, I set my boolean to true so that the page factory callback results in a noop.  Because the pagination control under the hood will make currentPageIndex=0 (as I talked about above) if the page count is reset, I then have to be very explicit and either call my page factory callback manually to refresh the current page if it still valid, or I call pagination.setCurrentPageIndex(<new index>) so that the page factory callback will be invoked and pageCountReset will be false at this point, so I can successfully transition pages.

  • A Listener For JTable Row Selection Changed?

    Never mind... Thought of a couple other things after I posted and found ListSelectionListener. This looks like it fulfills my requirement nicely. - cimmerian76
    >>>
    TableModelListener isn't what I am looking for here. Basically, I'm looking for something that behaves in a way that is analogous to
    TreeSelectionListener's valueChanged(...). Perhaps I'm looking in the wrong places, but the only things I've found were RowSet listener (not even close)
    and TableModelListener (not exactly what I'm looking for - I'm not concerned about data in the table changing).
    The tool I'm writing displays additional information about the object in the row selected in an adjacent panel.
    This display should change every time a user selects a different row.
    I can mimic the behavior I want using a mouse listener on the table, so this isn't an emergency.
    It's more about curiosity. If I can find something that produces this functionality directly, I would prefer to use that.
    <<<
    Message was edited by:
    cimmerian76

    Hi,
    you can use this to handle selection events for the table:
    yourTable.getSelectionModel().addListSelectionListener(... );
    Now e.g. the class containing your main can implement interface ListSelectionListener.

  • How can I add action listener to a cell or row in a table?

    hi there
    I need to be able to click on one cell or one row in a table, and perform some action, like openning a dialog or something. how can i add listener?

    // See How to Use Tables in tutorial. You will get one idea about Table Renderer and Editors.
    // If u understand the concept, ur problem is very easy to solve by adding Editor to your column.
    "You can think of the renderer as a configurable ink stamp that the table uses to stamp appropriately formatted data onto each cell. When the user starts to edit a cell's data, a cell editor takes over the cell, controlling the cell's editing behavior.
    Here, While tabing thru the table row, default all cell editors are JLabels. (Not editables)
    So u can make it those cells are editable JTextFields or JComboBoxes based on the column while tabbing. And you can add Listeners to that fields too. So those editable fields are called Editor Components.
    // see javax.swing.DefaultCellEditor class for more description
    Here i am adding my own JTextField editor to 3rd column of a table by using
    mytable.getColumnModel().getColumn(2).setCellEditor(editor );
    Here editor is a obj of below class. (Not complete..class)
    public class JbuiEditor extends DefaultCellEditor implements // any listener {
    public JbuiEditor(JTextField tField) {
    super(tField);
    setClickCountToStart(1);
    tField.addFocusListener(this);
    this.editorComponent = tField;
    public Component getComponent(){
         return editorComponent;
    public Component getTreeCellEditorComponent(JTree tree, Object value,
                                  boolean isSelected,
                                  boolean expanded,
                                  boolean leaf, int row) {
         String StringValue = tree.convertValueToText(value, isSelected,
                             expanded, leaf, row, false);
         delegate.setValue(stringValue);
         return editorComponent;
    public Object getCellEditorValue() {
    return super.getCellEditorValue();
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,int row, int column) {
    super.getTableCellEditorComponent(table,value,isSelected,row,column);
    ((JTextField)editorComponent).setText(value.toString());
    //Here u can add any type of listener to this Editor component.like..
    ((JTextField)editorComponent).addActionListener(..);
    ((JTextField)editorComponent).addFocusListener(..);
    return editorComponent;
    Hope gives some idea.

  • PopupMenu behavior

    Hi all!
    I have a problem with the JPopupMenu behavior. My popup menu has a submenu:
    JPopupMenu p = new JPopupMenu();
    JMenu menu = new JMenu();
    menu.add(new JMenuItem("1"));
    menu.add(new JMenuItem("2"));
    p.add(menu);
    p.setVisible(true);
    It works, but it doesn't have the 'normal' menu behavior, like the ones in a JMenuBar. I mean when I click on the submenu, the components don't popup. Is there a way to change this with a specific method ?
    Thanks!

    Hello
    Try this:
    JTextArea text = new JTextArea(10,20);
    JMenu menu = new JMenu("Menu");
    JPopupMenu popup = new JPopupMenu();
    JMenuItem mnitm1 = JMenuItem("1");
    JMenuItem mnitm2 = JMenuItem("2");
    menu.add(mnitm1);
    menu.add(mnitm2);
    popup.add(menu);
    // add mouse listener to pop up menu
    MouseListener popuplistener = new popupListener();
    text.addMouseListener(popuplistener);
    class popupListener extends MouseAdapter {
    public void mousePressed(MouseEvent e) {
    showPopup(e);
    try{
    }catch(Exception ex){
    public void mouseReleased(MouseEvent e) {
    showPopup(e);
    private void showPopup(MouseEvent e) {
    if (e.isPopupTrigger()) {
    popup.show(e.getComponent(),
    e.getX(), e.getY());
    This will work!!!!
    Rana

Maybe you are looking for

  • Downloading PDF files

    Why all of a sudden, when I try to download PDF files, I just get a black screen? Never had this problem, before. I have trided downloading a pdf file, that Idownloaded some time ago with no problem, but now iget the black screen all the time. Help!!

  • Is it suitable install Arch Linux on a USB key?

    I want to install Arch Linux on a USB  key following the wiki https://wiki.archlinux.org/index.php/In - _a_USB_key But I now heard that Arch Linux will be very very slow than LiveUSB because of USB's bad I/O speed. Is it real? Forgive my poor English

  • Can I change the overall text size for the app interface...NOT the titler

    How can I increse the font size globally for all panels?? I need to make it larger I have looked for the answer, is there one...Coming from FCP which is easily changed, please help these old eyes! Thanks   CS5 on a Mac

  • How to attach a help page to custom form

    hi all i want to attach a online help page to the custom developed page when user clicks on help in the tool bar,the online help page should display.

  • Question about j2me bluetooth lack of documentation!

    I don't know if I am searching in the wrong places. I am coding a simple (at least for now) java application that communicates through bluetooth. I have been using the j2me api available at http://java.sun.com/javame/reference/apis/jsr082/ But it lac