Bug when using JComboBox as JTable CellEditor

Hello! I have a JTable that displays database information, and one of the columns is editable using a JComboBox. When the user selects an item from the JComboBox, the database (and consequently the JTable) is updated with the new value.
Everything works fine except for a serious and subtle bug. To explain what happens, here is an example. If Row 1 has the value "ABC" and the user selects the editable column on that row, the JComboBox drops down with the existing value "ABC" already selected (this is the default behavior, not something I implemented). Now, if the user does not select a new value from the JComboBox, and instead selects the editable column on Row 2 that contains "XYZ", Row 1 gets updated to contain "XYZ"!
The reason that is happening is because I'm updating the database by responding to the ActionListener.actionPerformed event in the JComboBox, and when a new row is selected, the actionPerformed event gets fired BEFORE the JTable's selected row index gets updated. So the old row gets updated with the new row's information, even though the user never actually selected a new item in the JComboBox.
If I use ItemListener.itemStateChanged instead, I get the same results. If I use MouseListener.mousePressed/Released I get no events at all for the JComboBox list selection. If anyone else has encountered this problem and found a workaround, I would very much appreciate knowing what you did. Here are the relavent code snippets:
// In the dialog containing JTable:
JComboBox cboRouteType = new JComboBox(new String[]{"ABC", "XYZ"));
cboRouteType.addActionListener(new ActionListener() {
     public void actionPerformed(ActionEvent ev) {
          doCboRouteTypeSelect((String)cboRouteType.getSelectedItem());
private void doCboRouteTypeSelect(String selItem) {
     final RouteEntry selRoute = tblRoutes.getSelectedRoute();
     if (selRoute == null) { return; }
     RouteType newType = RouteType.fromString(selItem);
     // Only update the database if the value was actually changed.
     if (selRoute.getRouteType() == newType) { return; }
     RouteType oldType = selRoute.getRouteType();
     selRoute.setRouteType(newType);
     // (update the db below)
// In the JTable:
public RouteEntry getSelectedRoute() {
     int selIndx = getSelectedRow();
     if (selIndx < 0) return null;
     return model.getRouteAt(selIndx);
// In the TableModel:
private Vector<RouteEntry> vRoutes = new Vector<RouteEntry>();
public RouteEntry getRouteAt(int indx) { return vRoutes.get(indx); }

Update: I was able to resolve this issue. In case anyone is curious, the problem was caused by using the actionPerformed method in the first place. Apparently when the JComboBox is used as a table cell editor, it calls setValueAt on my table model and that's where I'm supposed to respond to the selection.
Obviously the table itself shouldn't be responsible for database updates, so I had to create a CellEditListener interface and implement it from the class that actually does the DB update in a thread and is capable of reporting SQL exceptions to the user. All that work just to let the user update the table/database with a dropdown. Sheesh!

Similar Messages

  • Bug when using IBOT

    Hi all,
    has anyone had this kind of error?
    I am using IBOT, and I set Schedule_ to Start Date=21/09/2009, Time of Day=08:00, Set Time Zone=GMT+01:01, and Recurrence_ to Every 1 week(s) on  MON.
    When I look overview of this IBOT, everything is fine, but when I go Show IBOTs acting on my behalf Next Run is not date that I had set. And IBOT is not running in time that he should. But when I set Recurrence_ Daily Every 7 day(s) every thing is OK. IBOT is running and Next Run shows correct date and time.
    Thanks

    This looks the same as bug 5539348 "Schedule an iBot to run immediately and weekly, the immediate run doesn't take place". According to that bug when you say start immediately and run every 1 week you are actually saying start the schedule now not start the ibot?! So a schedule is created in the scheduler to run your ibot every week on Mon but it does not run it immediately.
    I think this is a bug with the weekly schedule though as setting it to 7 days seems to fix it. The bug database seems in infer that later releases of 10g fixed this problem so it might be worth upgrading to a newer patch release if it becomes a problem and seeing if this fixes it.

  • Potential bug when using Parsley 2.4.1 and Cairngorm's module 0.17 in Flex 4.5.1

    Hi
    I have an issue when using cairngorm's ModuleViewLoader along with ParsleyModuleDescriptor to load a simple module consistig mainly of HBoxes, VBoxes and Datagrids.
    The module consists of one child (let's call it ViewA) and that child consists of several children as its components.
    When I use cairngorm's ModuleViewLoader along with the ParsleyModuleDescriptor and Parlsey to inject the modulemanager in my main app, the module loads, as well as ViewA but some nearly all of ViewA's children are not loaded (in fact they're initialized but creationComplete is not invoked).
    When I use Flex's mx:ModuleLoader all ViewA's chikldren are initialized and creation complete is also invoked.
    I will attach the source as a zip file  later on....
    but for now...this is all I can give http://dpaste.com/713503/
    Thanks
    Andreas

    Did you ever find an answer to this?  I am running into the same issue with needing to upgrade parsley to 2.4.x, but with parts of application heavily relying on cairngorm module, upgrading it from module-0.11 to 0.17 seems to break compile! 

  • Data refresh bug when using inheritance?

    I am getting unexpected behaviour when using the pm.refresh(Object) method.
    Refresh works correctly and reloads data if the lock has been updated on
    tables/objects with no inheritance. However, if I try to use refresh on an
    object that is part of an inheritance hierarchy, the query that is executed
    to get the jdolockx value is missing the table join.
    Example:
    Table Entity
    id
    displayname
    jdolockx
    jdoclassx
    Table Individual (inherits from Entity)
    id
    firstName
    lastName
    jdolockx
    Query executed when calling refresh and passing in Individual
    SELECT
    t0.JDOLOCKX
    FROM
    ENTITY t0,
    INDIVIDUAL t1
    WHERE
    t1.ID = 1151
    Problem
    Missing crucial join t1.ID = t0.ID
    These classes work correctly with correct SQL when inserting/selecting.
    Any help is greatly appreciated.
    Regards
    Nathan Boyes

    Sorry, forgot to mention Kodo version
    Kodo 2.5.3
    SQLServer2000
    "nathan boyes" <[email protected]> wrote in message
    news:bmj215$qq3$[email protected]..
    I am getting unexpected behaviour when using the pm.refresh(Object)method.
    Refresh works correctly and reloads data if the lock has been updated on
    tables/objects with no inheritance. However, if I try to use refresh onan
    object that is part of an inheritance hierarchy, the query that isexecuted
    to get the jdolockx value is missing the table join.
    Example:
    Table Entity
    id
    displayname
    jdolockx
    jdoclassx
    Table Individual (inherits from Entity)
    id
    firstName
    lastName
    jdolockx
    Query executed when calling refresh and passing in Individual
    SELECT
    t0.JDOLOCKX
    FROM
    ENTITY t0,
    INDIVIDUAL t1
    WHERE
    t1.ID = 1151
    Problem
    Missing crucial join t1.ID = t0.ID
    These classes work correctly with correct SQL when inserting/selecting.
    Any help is greatly appreciated.
    Regards
    Nathan Boyes

  • Strange UI bug when using People view/face recognition

    I've started playing with the face recognition in LR6/CC and have encountered an odd display bug when viewing the groups of 'named people':
    The thumbnail for each named person includes a count of how many images (or perhaps that should be faces) are attributed to their specific name. However, once the number of images for a person exceeds 100, LR only displays the first two digits in the thumbnail and drops off the third one, e.g. 254 is displayed as 25. If you hover over the thumbnail, the full count (e.g. 254) is displayed so long as the mouse cursor is kept on the thumbnail. Interestingly, once the number of images attributed to a named person exceeds 1000, it does the same thing, only it adds an extra digit (so 1400 becomes 140).
    I'm running this on Win7.
    Anyone else seeing this?
    M

    I guess I was primarily "testing the water" to see if the problem was specific to my configuration in some way, but you make a fair point John.
    Here's my (possible) bug report: LIGHTROOM Facial recognition: thumbnails not displaying full number
    M

  • Using Editor JComboBox is JTable CellEditors

    Hello all.
    I have a JTable with an editable JComboBox as a cell editor, but when it is activated the text inside the edit area is cut off.
    Example: http://www.rightstep.org/Image.jpg
    What can I do with the JComboBox settings to make more of the text visible? If some of it is cut off, that is not a huge issue -- but I'd like as much visible as possible for when people need to enter text that is not already in the drop down box.
    Thanks for any help!

    A combo box has an associated editor which in turn has an associated textfield.... get the textfield and set a null or empty border on it.
    ;o)
    V.V.

  • ITunes 11.4 bug when used with OS 10.6.8 - won't sync or backup iPhone

    I actually just wanted to post this in case Apple monitors these boards. iTunes 11.4 says it's compatible with OS 10.6.8 or later, but there is a bug in it when you're running OS 10.6.8 that prevents you from backing up or synching your iPhone (in my case, a 5s). Doesn't matter what iOS you're running. If you attempt to backup in iTunes 11.4, it immediately ends the backup and only displays "Other" content being stored on your phone. Also, the "Sync" button is greyed out, so you can't even attempt to sync.
    No amount of restoring (even a DFU restore) or reinstalling iTunes 11.4 will fix this. The solution is to delete iTunes 11.4 and its related files and to reinstall iTunes 11.3.1, at least until Apple gets the bug corrected. After hours of restores trying to resolve it, I followed this process and it completely solved my problem in about ten minutes. I found the solution with instructions in this thread:
    Upgraded to iTunes 11.4 and now it won't sync my iPhone 5s-sync button is greyed out.
    Thanks to cwa2, enee and Zak for supplying the solution. I've also summarized the steps here.
    (1) Use this link to download a copy of iTunes 11.3.1:
    http://www.v3.co.uk/v3-uk/download-review/1957301/apple-itunes-for-mac-1110
    (2) Delete the following iTunes 11.4 components (they will be replaced when you install iTunes 11.3.1) by dragging them to the Trash:
    /Applications/iTunes.app
    /Library/Frameworks/iTunesLibrary.framework
    /System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bun dle
    /System/Library/Extensions/AppleMobileDevice.kext
    /System/Library/Extensions/AppleUSBEthernetHost.kext
    /System/Library/PrivateFrameworks/AirTrafficHost.framework
    /System/Library/PrivateFrameworks/CoreFP.framework
    /System/Library/PrivateFrameworks/DeviceLink.framework
    /System/Library/PrivateFrameworks/iTunesAccess.framework
    /System/Library/PrivateFrameworks/MobileDevice.framework
    (3) Some people have had trouble seeing the contents of the CoreTypes.bundle to get to the MobileDevices.bundle. You can access it this way:
    In the Finder, select Go To Folder under the Go To menu (or Shift+ Cmd+ G)
    Type in: /System/Library/CoreServices/CoreTypes.bundle/Contents/Library/
    The MobileDevices.bundle will be displayed; drag it to the Trash.
    (4) Empty your Trash.
    (5) Install iTunes 11.3.1, and go back to living your life. Remember, do not upgrade to iTunes 11.4 again until you're certain the bug has been resolved.

    In Reply to all fellow Apple fans: It is great that someone found a work-around to the iTunes 11.4 no syncing problem. I think that is fine for the short term. And  I am really glad that we customers have a forum to share information and experiences regarding Apple's products. However, as someone here said, we are all customers; and posting a problem here "IN HOPES THAT APPLE READS THESE POSTS" is NOT a way to resolve this issue or any issue.
    PLEASE CONTACT APPLE: Apple Service Center: 1-800-275-2273   - Once you get a ticket number then and only then is this documented and then Apple can follow-through and alert the engineers who will fix this.
    The "CWA2" work-around band-aid does several things in addition to reverting back to iTunes 11.3.1. :
    1) It ensures that Apple continues to know nothing of the problem.
    2) It ensures that the faulty code that is within 11.4 remains there and is perpetuated into future versions.
    3) It ensures that YOU can never upgrade to future versions. (If the resident faulty code remains and perpetuates)
    So once you have reverted back to 11.3.1, the problem APPEARS to have gone away (FOR YOU) but you have not solved the problem.
    Again, respectfully,
    1) Sending feedback to apple (using the "Report Bugs To Apple" menu item in Safari will get the information to someone, somewhere and add it to the pile of issues, complaints, suggestions, etc.
    2) CALLING the Apple service/support Center at  1-800-275-2273 will put you in touch with a real APPLE person who will begin the process of documenting and forwarding this issue on to those who will fix it.
    and
    3) emailing Apple directly will make sure that they get the information.
    lets get this fixed !!!!!!!!!

  • IPhoto 11 bug when using external editor (Photoshop Elements)

    In iPhoto 11, my iPhoto database is confused/corrupted whenever I edit a picture in my external editor (Photoshop Elements 8). I believe this is an iPhoto problem because the picture is not corrupted until I quit iPhoto try to re-open the edited version.
    Steps I take:
    1. Pick a file, and "Edit in External Editor". Duplicate of the file is made (ThisPic.jpg becomes ThisPic_2.jpg), and that duplicate is opened in PSE. I edit the photo in PSE, and hit Save - PSE updates ThisPic_2.jpg. I close PSE, go back to iPhoto, and I can do whatever I want to the file - double click to view larger, export, everything seems fine. When I pick "File | Reveal in Finder" and use either the "modified file" or "original file" option, they take me to ThisPic_2.jpg in the finder.
    2. Close iPhoto
    3. Re-open iPhoto
    4. Now, that file seems to be corrupt in iPhoto. I can see the thumbnail image for ThisPic_2.jpg, but nothing else works. I double click on the file, and I get a black screen with a triangle and an exclamation point in it. When I try to export the file, nothing happens.
    The interesting thing is when I go into "File | Reveal in Finder". When I pick the "modified file", it doesn't seem to find it - I am shown the root of my hard drive in the finder. But when I pick "original file", it takes me to ThisPic_2.jpg, and I can use preview to see that my edits are still there.
    I copied that file to the desktop, re-imported it into iPhoto, and I can access that photo again through iPhoto - everything works, even after I close and re-open iPhoto.
    I reported this through the iPhoto Feedback option. I thought I'd share what I found in case it helps anyone else.

    Welcome to the Apple Discussions. I get the same response when I follow your workflow. If you select the thumbnail of that photo and use the Photos ➙ Revert to Original menu option you will be able to view the photo in full size.
    Evidently editing in iPhoto with an external editor puts the edits on the duplicated original file and puts that file in the same Masters subfolder as the first file was imported into. Once iPhoto is restarted the links are messed up and the Revert gets rid of the "edited" link and keeps the link to the file in the Masters folder.
    It definitely is a bug. However, it's not taking up more space on the hard drive than the edit that resulted in a modified file linked to the original file. There still are just two files.
    Subsequent edits to the file with the external editor result is the edits being added to the file with no problems if iPhoto is closed and relaunched. The downside is that if you make 3 edits to the file you can't go back one edit. It's non reversible. The edited version can be deleted leaving the untouched original version.
    Subsequent edits to the same file with iPhoto work as usual, with a modified version being created.
    So Old Toad, I have just gone from iPhoto 9 to iPhoto 11 and step by step this is what is happening for me.
    In iPhoto 9 if I selected photoshop to alter an image it created one duplicate version of the image and put that into the modified folder and that edited image became the image you would see in the events viewer. All very logical.
    Now iPhoto 11 is doing the same for me but is creating multiple duplicates ie. everytime I select photoshop to edit an image. One image I edited recently has now got 6 versions in the library. If that is the way iPhoto works then that will be fine as it is doing it's job for me but the caviat is have I got 6 times the memory space being used up or does it just appear that way? If the memory space useage isn't being increased then I am OK with this new way of doing things but if the memory space is being used up then it is a fiasco - especially as apple are concentrating on writing their systems to use up less space than before in line with current thinking.
    Look forward to you clarifying this point if you can.

  • Warning: NetGear ReadyNAS major bug when using AppleShare File Protocol

    I own a large number of NetGear (formerly Infrant) NAS devices. After NetGear bought the company, they came out with a new version of the embedded OS of those devices that looks like it is mostly just a cosmetic update that changes the name Infrant to NetGear.
    Unfortunately, it also introduces a very serious and reproducible bug. When you mount one of the NAS boxes running the new version of the OS under AppleShare, a file copied to the NAS box always gets today's date as its creation date. Strangely, if you copy a folder, the folder date is set correctly to the original creation date of the source folder, but the files contained inside of it lose their original creation dates.
    This bug occurs ONLY under the new version of the OS (4.00), not under the previous version (3.01). It occurs both under OS X 10.4 and 10.5.
    I have spent considerable time on hold and on the phone with NetGear technical support, and they claim this is a problem with the AFS file protocol. I don't know how they can make this claim when quite evidently everything works just fine under the previous version of their own software, but the gentleman on the phone basically told me something to the effect of "nobody uses AFS anyway, so why should we care".
    If you are considering a NAS box, you may want to hold off on purchasing a NetGear device for the time being. And using Samba file sharing is not really an option either, because that severely limits your file naming possibilities.
    If Apple is reading this, I hope someone can contact people "higher up" within NetGear to fix the problem.
    Michael

    appreciate if someone can assist with my errors as mentioned in my first post.'
    Thanks.

  • Tabular form default column value bug when using named notation?

    Hi,
    I am using Application Express 4.0.2.00.07
    After exporting and importing an application, the default value of a tabular form column results in an "ORA-00907: missing right parenthesis" error.
    My original application uses named notation while calling my function (no problem here):
    Report Attributes > Column Attributes > Tabular Form Attributes > Default type = PL/SQL Expression or Function > Default = pkg_customers.some_funtion (*in_param =>* :P15_FK_CUSTOMER_ID).
    When I change this in my imported application to ... > Default = pkg_customers.some_funtion (:P15_FK_CUSTOMER_ID) everything works fine again.
    Is this a known bug or is there something I do not see?
    Regards,
    Frederik Van de Velde.

    yes it is
    p_column_default=> 'calpa_pkg_klanten.fun_sm_betreft_default (in_pk_klant_id => :P9_FK_KLANT_ID)',
    p_column_default_type=> 'FUNCTION',
    by default it is set exactly the same, but when running the page the tabular form does not render because of the usage of " =>".
    thx

  • BUG when using JUTableBinding

    if one uses JUTableBinding.createAttributeListBinding(...) to create a javax.swing.table.TableModel and
    than uses the created TableModel with a JTable, the JTable / TableModel returns a rowCount of 1000, when the
    VO bound with it delivers no rows and the JTable is not visible yet.
    The Workaround posted for the 1000 empty lines in another otn / metalink posting:
    //workaround to remove the 1000 empty lines in a table
    JUIteratorBinding iter = getPanelBinding().findIterBinding("TableViewObjectIter");
    iter.resolveRangeSize(-1);
    only works after the JTable is set visible(true)
    I want to perform logic before the table is set visible true (in fact my table is never set visible true just need the model).
    Anyway, how can one prevent the tablemodel return 1000 rows if there are no rows.
    All can be reproduced if one creates a simple JClient Form showing a Table based on a ViewObject that does not
    deliver any rows. (for test case one can set where clause to e.g. 1=2)
    now call table.getRowCount() before the table is visible, than you get the wrong row count.

    thanks for the quick reply
    in my application i get following error msg if i do the described
    i will try to build a test case but maybe someone knows allready whats wrong
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=Row index out of range
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:491)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:543)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:2557)
         at de.opitzconsulting.framework.query.QueryDialog.executeQuery(QueryDialog.java:401)
         at de.opitzconsulting.framework.query.QueryDialog.executeAtStartUp(QueryDialog.java:389)
         at de.opitzconsulting.framework.query.AbstractFrwFormQueryDialog.init(AbstractFrwFormQueryDialog.java:72)
         at de.opitzconsulting.framework.query.AbstractFrwFormQueryDialog.<init>(AbstractFrwFormQueryDialog.java:58)
         at de.contiteves.pac.basedata.PacVehicleFormQuery.<init>(PacVehicleFormQuery.java:25)
         at de.contiteves.pac.basedata.PacVehicleForm.jbInit(PacVehicleForm.java:81)
         at de.contiteves.pac.basedata.PacVehicleForm.<init>(PacVehicleForm.java:60)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:237)
         at de.opitzconsulting.framework.form.FrwJUPanelFactory.createForName(FrwJUPanelFactory.java:33)
         at de.opitzconsulting.framework.form.FrwJUPanelManager.getForm(FrwJUPanelManager.java:76)
         at de.contiteves.application.desktop.PacDesktopManager.getForm(PacDesktopManager.java:214)
         at de.contiteves.application.desktop.PacDesktopManager.showForm(PacDesktopManager.java:134)
         at de.opitzconsulting.framework.command.OpenFormCommand.execute(OpenFormCommand.java:61)
         at de.opitzconsulting.framework.actions.CommandAction.actionPerformed(CommandAction.java:76)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:926)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    ## Detail 0 ##
    java.lang.IllegalArgumentException: Row index out of range
         at oracle.jbo.uicli.binding.JUIteratorBinding.navigated(JUIteratorBinding.java:445)
         at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:252)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:2713)
         at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:2513)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1099)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2171)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:4251)
         at oracle.jbo.uicli.binding.JUIteratorBinding.rangeRefreshed(JUIteratorBinding.java:289)
         at oracle.jbo.common.RowSetHelper.fireRangeRefreshed(RowSetHelper.java:163)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRangeRefreshed(ViewRowSetIteratorImpl.java:2672)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2038)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2218)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1503)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:527)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:543)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:2557)
         at de.opitzconsulting.framework.query.QueryDialog.executeQuery(QueryDialog.java:401)
         at de.opitzconsulting.framework.query.QueryDialog.executeAtStartUp(QueryDialog.java:389)
         at de.opitzconsulting.framework.query.AbstractFrwFormQueryDialog.init(AbstractFrwFormQueryDialog.java:72)
         at de.opitzconsulting.framework.query.AbstractFrwFormQueryDialog.<init>(AbstractFrwFormQueryDialog.java:58)
         at de.contiteves.pac.basedata.PacVehicleFormQuery.<init>(PacVehicleFormQuery.java:25)
         at de.contiteves.pac.basedata.PacVehicleForm.jbInit(PacVehicleForm.java:81)
         at de.contiteves.pac.basedata.PacVehicleForm.<init>(PacVehicleForm.java:60)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:237)
         at de.opitzconsulting.framework.form.FrwJUPanelFactory.createForName(FrwJUPanelFactory.java:33)
         at de.opitzconsulting.framework.form.FrwJUPanelManager.getForm(FrwJUPanelManager.java:76)
         at de.contiteves.application.desktop.PacDesktopManager.getForm(PacDesktopManager.java:214)
         at de.contiteves.application.desktop.PacDesktopManager.showForm(PacDesktopManager.java:134)
         at de.opitzconsulting.framework.command.OpenFormCommand.execute(OpenFormCommand.java:61)
         at de.opitzconsulting.framework.actions.CommandAction.actionPerformed(CommandAction.java:76)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:926)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

  • Bug when using Remote Desktop

    I've found a bug that I have replicated on 3 different computers, all running Vista. Listen to a song in iTunes and pause it. Now, remote desktop to that computer from a new computer. After you're connected, simply disconnect and return to the original computer.
    Now, if you press Play, the button changes to the Pause symbol like usual, but it never actually plays. The timebar doesn't advance either.
    Is there a fix for this?

    You must turn off hardware acceleration in the Firefox 4 browser on the remote PC to allow remote desktop applications to refresh the screen properly. Obviously you will not be able to make this change remotely, as you will not be able to see the menus until after the change is made.
    1. FireFox > options > options> Advanced > Browsing > Uncheck "Use hardware acceleration when available"
    2. Restart Firefox 4

  • Bug when using a Map for SelectItems?

    Hi there,
    I think I found a pretty bad bug.... I don't think this behaviour is intended:
    I create a selectOneListbox which uses a map for storing the selectItems. The property holding the value is type compatible with the value in the map. When the component is shown, the wrong item is selected (ie NOT The one that is returned by the value property). If I use SelectItem[] for the selectItems, it works. Here is some sample code:
    The methods in the bean (managed bean with the name helloBean). The value property always returns 12 .....
      public Map getItems(){
        Map map = new HashMap();
        map.put("Hello_11", new Integer(11));
        map.put("Hello_12", new Integer(12));
        map.put("Hello_13", new Integer(13));
        map.put("Hello_14", new Integer(14));
        return map;
      public SelectItem[] getItems2(){
        SelectItem[] items = {
            new SelectItem(new Integer(11), "Hello_11"),
            new SelectItem(new Integer(12), "Hello_12"),
            new SelectItem(new Integer(13), "Hello_13"),
            new SelectItem(new Integer(14), "Hello_14"),       
        return items;
      public Integer getValue(){
        return new Integer(12);
      }..... here is how the selectOneListboxes are initialized ......
    <h:form id="helloForm">
            <h:selectOneListbox size="1" value="#{helloBean.value}">
              <f:selectItems value="#{helloBean.items}"/>
            </h:selectOneListbox>
            <h:selectOneListbox size="1" value="#{helloBean.value}">
              <f:selectItems value="#{helloBean.items2}"/>
            </h:selectOneListbox>
    </h:form>.... so both boxes refer to the same value property but their selectItems are taken from a map and a SelectItem[] array respectively. I would expect to see in both boxes the text "Hello_12", BUT:
    <select name="welcomeForm:_id0" size="1">     
         <option value="14">Hello_14</option>
         <option value="12">Hello_12</option>
         <option value="13">Hello_13</option>
         <option value="11">Hello_11</option>
    </select>
    <select name="welcomeForm:_id2" size="1">     
         <option value="11">Hello_11</option>
         <option value="12" selected="selected">Hello_12</option>
         <option value="13">Hello_13</option>
         <option value="14">Hello_14</option>
    </select>as you can see, only for the array the correct value is initially selected.
    Can anyone confirm this is a bug - or - what i would prefer tell me how to get around this?
    Thanks a lot!

    If getValue returns "12" (a String value), the situation is reversed.
    See the page 9-31 of the specification. It says:
    4. A java.util.Map where the keys are
    converted to Strings and used as labels, and
    the corresponding values are converted to
    Strings and used as values for newly
    created javax.faces.model.SelectItem
    instances. The instances are created in the
    order of the iterator over the keys provided
    by the Map.

  • ]]] Bug when using XPATH?

    Hello,
    we're querying an XMLType_Instance with the following XPATH expressions:
    SELECT
    XMLQuery('for $forvar in /Hotel/HotelBSeite/HotelXVKSonderpreise/HotelXBeschreibung
    return $forvar' passing by value XMLEXP_CONTENT RETURNING CONTENT)
    FROM table;
    - or -
    SELECT
    EXTRACT(XMLEXP_CONTENT, '/Hotel/HotelBSeite/HotelXVKSonderpreise/HotelXBeschreibung');
    FROM table;
    This work fine, and shows a result like this:
    <HotelXBeschreibung><![CDATA[1 TAG PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[3 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[2 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[1 TAG PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[3 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[2 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[1 TAG PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[3 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[2 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    BUT from time to time the CDATA is not parsed correctly and then we get something like this:
    <HotelXBeschreibung><![CDATA[1 TAG PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[3 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[2 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[1 TAG PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[3 TAGE PREISVORTEI]]]]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[2 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[1 TAG PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[3 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    <HotelXBeschreibung><![CDATA[2 TAGE PREISVORTEIL]]></HotelXBeschreibung>
    Notice the 5'th element, where the word PREISVORTEIL gets replaced by PREISVORTEI]]].
    This bug(?) appears with other XMLs and elements, too, but we can't figure out, when this happens.
    We're using Oracle 11.1.0.6.0
    Thanks for any hints :-)

    I would advise you to upgrade or test the issue on 11.1.0.7.0 / 11.2.0.1.0. Otherwise create a service request via support.oracle.com

  • Bug when using Sequencer.setTickPosition() ?

    HI,
    I created a Track and added a few ControlChange events in ticks 0,96,192,288,384.
    This corresponds to beat indicators in a resolution of 96 (PPQ).
    I set the sequencer for a loop, starting at tick 0, and ending at tick 384.
    While the sequencer is running, I sometimes set back the tick position using Sequencer.setTickPosition(...) to one of the beat points.
    I also added a ControllerEventListener  using Sequencer.addControllerEventListener(...) which listens on the mentioned ControlChange events.
    What I see in debug logs printed by my listener, is that when I set the tick Position to say, 96, both the 0 and 96 events are being dispatched. I expected only the 96 one to fire. The 0 one is extra...
    In fact, setting the tick position to any value from 1-96 (inclusive), causes the event created with tick 0 to fire.
    If this is a feature and not  a BUG, it is implied that a ControlChange has some kind of "sustain" until the next ControlChange, than at least I expect that setting the tick position to 0-95 (inclusive)  would fire the 0 event, but at tick 96 there is already a different event.
    BTW:
    I am differentiating between the event but having them created with corresponding data1 argument set to (0,1,2,3,4).
    Can anyone explain this weird behavior?

    HI,
    I created a Track and added a few ControlChange events in ticks 0,96,192,288,384.
    This corresponds to beat indicators in a resolution of 96 (PPQ).
    I set the sequencer for a loop, starting at tick 0, and ending at tick 384.
    While the sequencer is running, I sometimes set back the tick position using Sequencer.setTickPosition(...) to one of the beat points.
    I also added a ControllerEventListener  using Sequencer.addControllerEventListener(...) which listens on the mentioned ControlChange events.
    What I see in debug logs printed by my listener, is that when I set the tick Position to say, 96, both the 0 and 96 events are being dispatched. I expected only the 96 one to fire. The 0 one is extra...
    In fact, setting the tick position to any value from 1-96 (inclusive), causes the event created with tick 0 to fire.
    If this is a feature and not  a BUG, it is implied that a ControlChange has some kind of "sustain" until the next ControlChange, than at least I expect that setting the tick position to 0-95 (inclusive)  would fire the 0 event, but at tick 96 there is already a different event.
    BTW:
    I am differentiating between the event but having them created with corresponding data1 argument set to (0,1,2,3,4).
    Can anyone explain this weird behavior?

Maybe you are looking for

  • Ibook won't recognize certain CD-Rs (need help quick)

    I used my work PC to burn a CD-R ("Corporate Express" 700MB/80 min, 52x compatible). The disc includes a Powerpoint presentation and a few jpegs. My iBook sounds like it's trying to read it but nothing pops up in the Finder or Desktop. I see an un-na

  • Horizontal 'gap' between two level tabs SOLVED

    I've got a stange problem: I've got several pages and a two level tabs. Everything worked before a collegue of mine switched the theme into a self created one. Now the design of the two level tabs depends on what page you are on. Sometimes there is a

  • Custom Token For web services security

    How can I implement a token based security for web services? I will return a custom token which contains a session-id among others after a JAAS authnetication. I want to pass this token for every web service invokation. I want the serverside EJB meth

  • Partner Broken

    Hello Guys I have a peculiar problem.Our CRM server is located in the US.We have a (UK) team working during the day and another team working during the night.There is no problem with the system during the day.I mean the connectivity.Unfortunately, du

  • Adobe digital editions cannot connect to activation server?

    I've been reading books on my kobo for 2 years now. All of a sudden my ADE ver 1.7 had an error message - something about fulfilment issues. I downloaded vers. 2.0 and now get the activation error message. Please help. Very frustrated here.