Tricky error on JComboBoxes

Hi!
I�m working on a GUI and
I have two JComboBoxes, say c1 an c2
My class is using anotherClass that is creating
the JcomboBoxes like this:
public myClass
JCombBox c1, c2 ;
public myClass()
  anotherClass a  = new anotherClass() ;
  c1 = a.c1 ;
  c2  =a.c1 ;
//addItemListener on both c1 c2
public void itemStateChanged
              if(y.getSource() == c1 && y.getStateChange() == ItemEvent.SELECTED) 
              //something happens
          if(y.getSource() == c2 && y.getStateChange() == ItemEvent.SELECTED) 
          //something else happens
public anotherClass
      public JComboBox c1
  public antotherClass()
///initiating c1
The problem is that when the c1 menu is activade by clicking
on it:  the program enters both the c1-if in itemStateChange
and the c2.
c1, c2 are refering to the same object but the item-if
should not react if not the correct referens is activated.
This works in an almost identical application I have
Does anyone ever seen anything like this?
It�s not logical? Or did I oversee something?
KR//jF

Hi!
I�m working on a GUI and
I have two JComboBoxes, say c1 an c2
My class is using anotherClass that is creating
the JcomboBoxes like this:
public myClass
JCombBox c1, c2 ;
public myClass()
anotherClass a  = new anotherClass() ;
c1 = a.c1 ;
c2  =a.c1 ;
So both c1 and c2 point to the same Combo box i.e. a.c1! Are you sure you wanted this because it would explain your porblem.
//addItemListener on both c1 c2Why not use separate listeners fo each combo box?
public void itemStateChanged
if(y.getSource() == c1 &&
rce() == c1 && y.getStateChange() ==
ItemEvent.SELECTED)
//something happens
if(y.getSource() == c2 &&
) == c2 && y.getStateChange() == ItemEvent.SELECTED)
//something else happens
public anotherClass
public JComboBox c1
public antotherClass()
///initiating c1
The problem is that when the c1 menu is activade by
clicking
on it: the program enters both the c1-if in
itemStateChange
and the c2.
c1, c2 are refering to the same object but the
item-if
should not react if not the correct referens is
activated.
This works in an almost identical application I have
Does anyone ever seen anything like this?
It�s not logical? Or did I oversee something?
KR//jF

Similar Messages

  • Error in JComboBox and JMenu with JDK 1.6

    We have a Desktop application that uses JMenuBar, JMenu, and JMenuItem and JComboBox. As we use the application, is the disappearance of the menu items, ie, they are not painted and does not drop down.
    We tested with jdk1.6.0 update 17.
    We tested with jdk1.6.0 update 22.
    We tried to force the paint component among other ways to make it work, but without success!
    We would like to know if it's a bug in Swing because we know other applications that use implementations Desktop also the same problem occurs.
    We look back!
    Edited by: Rubens on May 13, 2012 10:16 PM

    Works for me. The updates you tried are rather old too. But I would first suspect your code. Adding menu items fom the wrong thread for example.

  • Windows is Scanning and repairing drive... (- Errors in Event Viewer)

    Long post, please be patient... :)
    I have a fairly new (purchased 8/2013) Lenovo ThinkPad T431s with Windows 8.1 Pro 64-bit (updated from 8.0 -> 8.1). It has a very tricky error coming basically 8 / 10 boots:
    Windows is Scanning and repairing drive...
    Error details from Windows Event Viewer (a new similar error appears on every boot to event viewer):
    A corruption was discovered in the file system structure on volume \?\Volume{f62db2cf-efe4-4b55-a3f7-0e7db991a984}.
    A file on the volume is no longer reachable from its parent directory. The parent file reference number is 0x2000000000002. The name of the parent directory is "". The parent index attribute is ":$I30:$INDEX_ALLOCATION". The file reference
    number of the file that needs to be reconnected is 0x400000003db80. There may be additional files on the volume that also need to be reconnected to this parent directory.
    What has been done 1st trying to fix that:
    SSD disk has been changed (image from previous SSD copied back) ->
    no solution, error remains
    chkdsk /F /R -> no solution, error remains
    SFC /scannow -> no solution, error remains
    dism /online /cleanup-image /restorehealth -> no solution, error remains after a few boots
    TRIED using Windows 8.1 "Update & Recovery -> Refresh Your PC without affecting your files" -> Inserted the Lenovo "Operating System Recovery Disk Windows 8 Pro (OEM Activation 3.0 Required)" BUT Windows did not accept
    that DVD claiming "The media inserted is not valid"... ???
    Ended up calling Lenovo Support and they instructed me to order the Recovery DVD from
    Lenovorecovery.com -> Unfortunatelly Windows does not recognice the DVD(s)...
    mountvol returns:
    \\?\Volume{4d337687-0033-42f7-8a8e-b6968b533cb3}\
    (This is my C:\ drive where Windows installation resides)
    \\?\Volume{e010cf9d-c04d-4c82-b517-3cda1b647fe7}\
    *** NO MOUNT POINTS ***
    \\?\Volume{f62db2cf-efe4-4b55-a3f7-0e7db991a984}\
    *** NO MOUNT POINTS ***
    \\?\Volume{33f0062f-0aff-4fd2-8402-1c7911d86897}\
    *** NO MOUNT POINTS ***
    Then running fsutil dirty query on each returns:
    Volume - \\?\Volume{4d337687-0033-42f7-8a8e-b6968b533cb3} is NOT Dirty
    Volume - \\?\Volume{e010cf9d-c04d-4c82-b517-3cda1b647fe7} is NOT Dirty
    Volume - \\?\Volume{f62db2cf-efe4-4b55-a3f7-0e7db991a984} is Dirty
    Volume - \\?\Volume{33f0062f-0aff-4fd2-8402-1c7911d86897} is NOT Dirty
    The chkdsk on the dirty volume
    \\?\Volume{f62db2cf-efe4-4b55-a3f7-0e7db991a984}\ returned:
    The type of the file system is NTFS.
    Insufficient storage available to create either the shadow copy storage file or
    other shadow copy data.
    A snapshot error occured while scanning this drive. Run an offline scan and fix.
    Diskpart output on the same volume:
    DISKPART> lis par
    Partition ### Type Size Offset
    Partition 1 Reserved 128 MB 17 KB
    Partition 2 Recovery 1000 MB 129 MB
    Partition 3 System 260 MB 1129 MB
    Partition 4 Primary 146 GB 1389 MB
    Partition 5 Recovery 350 MB 147 GB
    Partition 6 Recovery 19 GB 148 GB
    Questions:
    1) Are my Partitions OK, haven't "touched" anything?
    2) Excluded the dirty volume from boot checking with chkntfs /x
    -> still the Error appears in Event viewer log (but Scanning is skipped/not shown anymore during the boot).
    What is causing the error?
    3) Why do I have three (3) recovery partitions?

    What has happened in the past days:
    A) Lenovo on-site-Support changed the motherboard -> had no impact on the error (which I expected).
    B) I found
    instructions how to manually create USB Flash stick with a booting Custom (OEM) Recovery Image.
    C) Booted with USB and performed "Refresh your PC without affecting your files."
    D) Windows was refreshed but...
    -->>
    Still the error remains (Windows scanning and repairing drive \?\Volume{f62db2cf-efe4-4b55-a3f7-0e7db991a984} on each and every boot.
    1) Related Error in Event viewer (NTFS):
    A corruption was discovered in the file system structure on volume \?\Volume{f62db2cf-efe4-4b55-a3f7-0e7db991a984}.
    A file on the volume is no longer reachable from its parent directory. The parent file reference number is 0x2000000000002. The name of the parent directory is "". The parent index attribute is ":$I30:$INDEX_ALLOCATION". The file reference number of the
    file that needs to be reconnected is 0x400000003db80. There may be additional files on the volume that also need to be reconnected to this parent directory.
    2) Related Error in Event viewer (NTFS - Microsoft Windows NTFS):
    Volume \\?\Volume{f62db2cf-efe4-4b55-a3f7-0e7db991a984} (\Device\HarddiskVolume5) needs to be taken offline to perform a Full Chkdsk.  Please run "CHKDSK /F" locally via the command line, or run "REPAIR-VOLUME <drive:>" locally or remotely via
    PowerShell.
    -->>
    Now Lenovo support is proposing a full re-install (to be performed by myself) of Windows as this is SW issue.
    Summary:
    - Refreshing my T431s with OEM Image does not help
    - The error remains on \?\Volume{f62db2cf-efe4-4b55-a3f7-0e7db991a984} (\Device\HarddiskVolume5; Lenovo Recovery partition) OR at least Windows thinks so...

  • Configuring the HP PSC 2510 on a new network

    I'm posting at the end of a long weekend setting up my psc 2510 on a new wireless network. I'm pretty much done, and I'm posting to share what I've learned with others in the hope of saving them trouble. I'm beyond my warranty period, so my advice is based on a few hints from phone tech support and a lot of work by trial and error.
    I have four machines total, two of them running OS X 10.4, the others running 10.3.9.
    1. Start by hooking the printer up to a wired (ethernet) network. Print out a network config page (setup, 6, 1) when the printer shows its blue "networked" light. Dial the printer's URL into your web browser and enter the new network's info into the printer's embedded web server. If you get everything right, when you turn off the printer, disconnect the ethernet cable, and turn on the printer, you'll get that blue "networked" light after a minute or so.
    If you don't see the light, print out another config page and check the "Wireless Status": "Scanning" means that the printer's having trouble connecting to the network. Your best bet is to temporarily turn off all wireless encryption/security and reconfigure the printer's connection. Once you have a connection, then try adding various sorts of security/encryption. In my experience, the printer doesn't do well if the SSID of the network isn't being broadcast or with a list of acceptable MAC addresses. In my old network I managed to get the printer running with WPA security, but this time I had to settle for WEP 128 bit security.
    The Wireless Status will read "Disabled" if the printer has a USB cable or Ethernet cable attached. This means you need to unplug all cables (and possibly turn the printer off and on) to enable the wireless card. If the Wireless Status is "Disabled" even though you have no cables attached, you have probably reset the printer to factory defaults (see #2 below).
    Things to watch for: is the default gateway of the printer the same as that of your new network? I had to change my new network's gateway to "192.168.1.1 addressing" from "10.0.1.1 addressing" because the printer was expecting "192 etc." after being hooked up to a Linksys router for several years.
    Also, you may find you need to give the printer a self-assigned (manual) IP address, if other computers, once linked to the printer, lose printing and/or scanning capabilities a few days or weeks later. This can be set in the printer's web access server, but make sure to assign the printer an IP address that's compatible with the range of IPs that your router's is leasing to the network. I'm a novice at this network stuff, so sorry if I'm being vauge on this point.
    2. It's possible I could have saved myself a lot of trouble setting up the printer for the network if I had reset the printer's network settings to factory defaults right at the start. But if you decide to follow HP's instructions and reset network settings to factory defaults, BEWARE: the printer's embedded web server can't for some reason configure the printer to re-enable wireless networking. And the latest download of the hp all-in-one installer doesn't contain the network config utility found on the original HP installation CD. (On this old CD, the config utility isn't part of the install package, but it is invoked automatically during the installation process.)
    SOLUTION: Run the PSC 2500 Series installer found on the HP CD, preferably from a Mac running an system older than Tiger. It might also be possible to avoid running the installer and just run the config utility.
    From this point on, I'll assume you've managed to get the printer on your network. Here's how to get all your computers configured to use the psc's printer and scanner functions.
    HP tech support advised me to download the latest installer/print driver and use that to install and configure the psc 2150. This is good advice, insofar as the old HP Director software has a memory leak and the old HP Scan was prone to crashing whenever the 2510 went into Energy Saving mode. But if your mac isn't running OX X 10.4 (Tiger), you'll find that your system doesn't seem to recognize the new print drivers installed with by the download. This is especially a problem if you follow HP tech support's advice and delete a bunch of files prior to upgrading from the old installer to the new one, as (I suspect) it was at this point that I deleted working printer drivers from my Macs running Mac OS 10.3.9.
    So if you're running 10.3.9 or earlier, I advise you not to delete any files and to configure your computer for the print and scanner functions in the opposite order that HP advises.
    Most important: through trial and error I discovered that the HP Setup application isn't able to configure the printer if more than one user is logged in (Fast User Switching!). (This is a particularly tricky error to diagnose as the only symptom is that the setup app keeps claiming that it "can't find device" even though in the stage just prior it had successfully detected it!) Log out all other users, then proceed with the following steps:
    1. Go to Print Center (called Print Setup Utility in Tiger), delete your old psc printer (if any) and click "add printer". The psc should show up in HP IP printing or under Rendezvous (called Bonjour in Tiger), and when you click on it, the Add Printer utilty should automatically find the "HP All-in-one" printer driver. If something's gone wrong, though, you may get the message "Print Driver not installed". That's what happened to me after I deleted files (see above).
    SOLUTION: Run the PSC 2500 Series installer found on your original HP CD. When it finishes, it will start the HP setup assistant, in the course of which you'll be directed to go to the Print Center and add your printer. Do so.
    2. Once you've added the printer successfully, run the latest HP installer, a download from the HP website. You should be able to skip the step where it asks you to add the printer, as you did this in step one.
    3. Finally, since you didn't delete any files earlier, be sure to remove HP Director from your dock and from your Startup items (Login items in Tiger) by opening Mac System Prefs - Accounts - Startup/Login Items. HP Director has a memory leak. And it is superceded by the newer HP Device Manager when you download and run the latest HP installer. You should find the new HP Device Manager in your dock after step 2 (above).
    If you have questions, write me at the following email (account name reversed to foil spam bots):
    [email protected]
    Powerbook 17"   Mac OS X (10.4.3)   Airport Express base station

    Hello dgt228, welcome.
    I am not sure why you are choosing EAP.  If you have set your router to use WPA, you should just set your printer to enable WPA. Is your wireless light illuminated on the front of your printer?  Run a Wireless Network Test from the front of the printer to self-test the radio. If you can connect this printer with Ethernet to your router its connection will be more secure and more reliable.

  • HP PSC 2510 all-in-one network setup problems

    At the end of a long weekend of work, I've finished setting up my psc 2510 on a new wireless network. I use Tiger on two of my machines and Panther on the others. So I've posted advice over in the Tiger support forum, and I'm going to post the same instructions over here. (Moderators: I thought about just posting a link here to my other post, but I want to make sure that the search engine picks up this posting if someone does a search here.)
    I have four machines total, two of them running OS X 10.4, the others running 10.3.9.
    1. Start by hooking the printer up to a wired (ethernet) network. Print out a network config page (setup, 6, 1) when the printer shows its blue "networked" light. Dial the printer's URL into your web browser and enter the new network's info into the printer's embedded web server. If you get everything right, when you turn off the printer, disconnect the ethernet cable, and turn on the printer, you'll get that blue "networked" light after a minute or so.
    If you don't see the light, print out another config page and check the "Wireless Status": "Scanning" means that the printer's having trouble connecting to the network. Your best bet is to temporarily turn off all wireless encryption/security and reconfigure the printer's connection. Once you have a connection, then try adding various sorts of security/encryption. In my experience, the printer doesn't do well if the SSID of the network isn't being broadcast or with a list of acceptable MAC addresses. In my old network I managed to get the printer running with WPA security, but this time I had to settle for WEP 128 bit security.
    The Wireless Status will read "Disabled" if the printer has a USB cable or Ethernet cable attached. This means you need to unplug all cables (and possibly turn the printer off and on) to enable the wireless card. If the Wireless Status is "Disabled" even though you have no cables attached, you have probably reset the printer to factory defaults (see #2 below).
    Things to watch for: is the default gateway of the printer the same as that of your new network? I had to change my new network's gateway to "192.168.1.1 addressing" from "10.0.1.1 addressing" because the printer was expecting "192 etc." after being hooked up to a Linksys router for several years.
    Also, you may find you need to give the printer a self-assigned (manual) IP address, if other computers, once linked to the printer, lose printing and/or scanning capabilities a few days or weeks later. This can be set in the printer's web access server, but make sure to assign the printer an IP address that's compatible with the range of IPs that your router's is leasing to the network. I'm a novice at this network stuff, so sorry if I'm being vauge on this point.
    2. It's possible I could have saved myself a lot of trouble setting up the printer for the network if I had reset the printer's network settings to factory defaults right at the start. But if you decide to follow HP's instructions and reset network settings to factory defaults, BEWARE: the printer's embedded web server can’t for some reason configure the printer to re-enable wireless networking. And the latest download of the hp all-in-one installer doesn’t contain the network config utility found on the original HP installation CD. (On this old CD, the config utility isn’t part of the install package, but it is invoked automatically during the installation process.)
    SOLUTION: Run the PSC 2500 Series installer found on the HP CD, preferably from a Mac running an system older than Tiger. It might also be possible to avoid running the installer and just run the config utility.
    From this point on, I'll assume you've managed to get the printer on your network. Here's how to get all your computers configured to use the psc's printer and scanner functions.
    HP tech support advised me to download the latest installer/print driver and use that to install and configure the psc 2150. This is good advice, insofar as the old HP Director software has a memory leak and the old HP Scan was prone to crashing whenever the 2510 went into Energy Saving mode. But if your mac isn't running OX X 10.4 (Tiger), you'll find that your system doesn't seem to recognize the new print drivers installed with by the download. This is especially a problem if you follow HP tech support's advice and delete a bunch of files prior to upgrading from the old installer to the new one, as (I suspect) it was at this point that I deleted working printer drivers from my Macs running Mac OS 10.3.9.
    So if you're running 10.3.9 or earlier, I advise you not to delete any files and to configure your computer for the print and scanner functions in the opposite order that HP advises.
    Most important: through trial and error I discovered that the HP Setup application isn't able to configure the printer if more than one user is logged in (Fast User Switching!). (This is a particularly tricky error to diagnose as the only symptom is that the setup app keeps claiming that it "can't find device" even though in the stage just prior it had successfully detected it!) Log out all other users, then proceed with the following steps:
    1. Go to Print Center (called Print Setup Utility in Tiger), delete your old psc printer (if any) and click "add printer". The psc should show up in HP IP printing or under Rendezvous (called Bonjour in Tiger), and when you click on it, the Add Printer utilty should automatically find the "HP All-in-one" printer driver. If something's gone wrong, though, you may get the message “Print Driver not installed”. That's what happened to me after I deleted files (see above).
    SOLUTION: Run the PSC 2500 Series installer found on your original HP CD. When it finishes, it will start the HP setup assistant, in the course of which you'll be directed to go to the Print Center and add your printer. Do so.
    2. Once you've added the printer successfully, run the latest HP installer, a download from the HP website. You should be able to skip the step where it asks you to add the printer, as you did this in step one.
    3. Finally, since you didn't delete any files earlier, be sure to remove HP Director from your dock and from your Startup items (Login items in Tiger) by opening Mac System Prefs - Accounts - Startup/Login Items. HP Director has a memory leak. And it is superceded by the newer HP Device Manager when you download and run the latest HP installer. You should find the new HP Device Manager in your dock after step 2 (above).
    If you have questions, write me at the following email (account name reversed to foil spam bots):
    [email protected]
    Powerbook 17"   Mac OS X (10.4.3)  

    At the end of a long weekend of work, I've finished setting up my psc 2510 on a new wireless network. I use Tiger on two of my machines and Panther on the others. So I've posted advice over in the Tiger support forum, and I'm going to post the same instructions over here. (Moderators: I thought about just posting a link here to my other post, but I want to make sure that the search engine picks up this posting if someone does a search here.)
    I have four machines total, two of them running OS X 10.4, the others running 10.3.9.
    1. Start by hooking the printer up to a wired (ethernet) network. Print out a network config page (setup, 6, 1) when the printer shows its blue "networked" light. Dial the printer's URL into your web browser and enter the new network's info into the printer's embedded web server. If you get everything right, when you turn off the printer, disconnect the ethernet cable, and turn on the printer, you'll get that blue "networked" light after a minute or so.
    If you don't see the light, print out another config page and check the "Wireless Status": "Scanning" means that the printer's having trouble connecting to the network. Your best bet is to temporarily turn off all wireless encryption/security and reconfigure the printer's connection. Once you have a connection, then try adding various sorts of security/encryption. In my experience, the printer doesn't do well if the SSID of the network isn't being broadcast or with a list of acceptable MAC addresses. In my old network I managed to get the printer running with WPA security, but this time I had to settle for WEP 128 bit security.
    The Wireless Status will read "Disabled" if the printer has a USB cable or Ethernet cable attached. This means you need to unplug all cables (and possibly turn the printer off and on) to enable the wireless card. If the Wireless Status is "Disabled" even though you have no cables attached, you have probably reset the printer to factory defaults (see #2 below).
    Things to watch for: is the default gateway of the printer the same as that of your new network? I had to change my new network's gateway to "192.168.1.1 addressing" from "10.0.1.1 addressing" because the printer was expecting "192 etc." after being hooked up to a Linksys router for several years.
    Also, you may find you need to give the printer a self-assigned (manual) IP address, if other computers, once linked to the printer, lose printing and/or scanning capabilities a few days or weeks later. This can be set in the printer's web access server, but make sure to assign the printer an IP address that's compatible with the range of IPs that your router's is leasing to the network. I'm a novice at this network stuff, so sorry if I'm being vauge on this point.
    2. It's possible I could have saved myself a lot of trouble setting up the printer for the network if I had reset the printer's network settings to factory defaults right at the start. But if you decide to follow HP's instructions and reset network settings to factory defaults, BEWARE: the printer's embedded web server can’t for some reason configure the printer to re-enable wireless networking. And the latest download of the hp all-in-one installer doesn’t contain the network config utility found on the original HP installation CD. (On this old CD, the config utility isn’t part of the install package, but it is invoked automatically during the installation process.)
    SOLUTION: Run the PSC 2500 Series installer found on the HP CD, preferably from a Mac running an system older than Tiger. It might also be possible to avoid running the installer and just run the config utility.
    From this point on, I'll assume you've managed to get the printer on your network. Here's how to get all your computers configured to use the psc's printer and scanner functions.
    HP tech support advised me to download the latest installer/print driver and use that to install and configure the psc 2150. This is good advice, insofar as the old HP Director software has a memory leak and the old HP Scan was prone to crashing whenever the 2510 went into Energy Saving mode. But if your mac isn't running OX X 10.4 (Tiger), you'll find that your system doesn't seem to recognize the new print drivers installed with by the download. This is especially a problem if you follow HP tech support's advice and delete a bunch of files prior to upgrading from the old installer to the new one, as (I suspect) it was at this point that I deleted working printer drivers from my Macs running Mac OS 10.3.9.
    So if you're running 10.3.9 or earlier, I advise you not to delete any files and to configure your computer for the print and scanner functions in the opposite order that HP advises.
    Most important: through trial and error I discovered that the HP Setup application isn't able to configure the printer if more than one user is logged in (Fast User Switching!). (This is a particularly tricky error to diagnose as the only symptom is that the setup app keeps claiming that it "can't find device" even though in the stage just prior it had successfully detected it!) Log out all other users, then proceed with the following steps:
    1. Go to Print Center (called Print Setup Utility in Tiger), delete your old psc printer (if any) and click "add printer". The psc should show up in HP IP printing or under Rendezvous (called Bonjour in Tiger), and when you click on it, the Add Printer utilty should automatically find the "HP All-in-one" printer driver. If something's gone wrong, though, you may get the message “Print Driver not installed”. That's what happened to me after I deleted files (see above).
    SOLUTION: Run the PSC 2500 Series installer found on your original HP CD. When it finishes, it will start the HP setup assistant, in the course of which you'll be directed to go to the Print Center and add your printer. Do so.
    2. Once you've added the printer successfully, run the latest HP installer, a download from the HP website. You should be able to skip the step where it asks you to add the printer, as you did this in step one.
    3. Finally, since you didn't delete any files earlier, be sure to remove HP Director from your dock and from your Startup items (Login items in Tiger) by opening Mac System Prefs - Accounts - Startup/Login Items. HP Director has a memory leak. And it is superceded by the newer HP Device Manager when you download and run the latest HP installer. You should find the new HP Device Manager in your dock after step 2 (above).
    If you have questions, write me at the following email (account name reversed to foil spam bots):
    [email protected]
    Powerbook 17"   Mac OS X (10.4.3)  

  • Itunes.exe not valid win32 application

    i cannot install the new itunes update. because after i download the update my computer says that this is not a valid win32 application. how do i get rid of this and install the new update. i have tried all of the suggestions that are on the support site and still cannot get it to work.

    This is a tricky error message...sigh...Let's try something first, besides the typical troubleshooting stuff.
    Try setting up another User account thru XP with Full Admin Priveleges and see if iTunes and Quicktime will download and install on this account. Try saving the install to your hard drive and runnig it from there instead of running it over the 'Net.
    Try completely removing Quicktime and iTunes on your current account. You may want to try Windows Installer Clean Up Utility to remove any remnants. Find out about that here: http://support.microsoft.com/kb/290301/
    I would also download a free program called CCleaner. http://www.download.com/CCleaner/3000-2144_4-10315544.html
    You can read about what it does from this page as well. It can help clear up some invalid Registry issues.
    Rachyl

  • Workflow Condition Step Failing

    Hi All,
    I am facing a very peculiar error.
    I have two outcomes modelled  depending on a varible (Material Type) in the worklfow.
    My workflow gets triggered when I push SUBMIT button on my ADOBE interactive form on ABAP Web Dynpro launcehd
    from UWL. Now if i check the workflow container, the variable is set properly. But still the condition fails. A backgorund task
    having import parameters as Owrkflow container elements fails with an exception even though the import parameters are set.
    But yes, again the workflow container same elements can be displayed on any form in further steps by reading the container
    from ABAP webDynpro launched from UWL. Peculiar !!!
    The same workflow works fine if I directly set the variables and test the workflow.
    Why this ?..... Any Idea.... ? If something is written on to the workflow container can the workflow work on those variables ?
    Please suggest.
    Thanks & Regards,
    Deb

    Hi Rick,
    Thanks for your suggestions. Actually we could solve it ina different way. It was a nice but tricky error in muy coding.
    Here is what I was doing:
    1)  I tirgger my workflow on click of 'SUBMIT' button on my ADOBE interactive in AWD
    2) Then I get the instance of the workflow to get the Workflow Work Item ID
    3) Now I write the form data to the workflow container.
    Note: By the time I write to my container, my workflow had been already triggered, with the condition step at the 1st.
             And the container is not yet written, hence the condition fails.
    Solution:  I used a wait step. And Read the workflow container in loop untill the container elements are populated.
                   Once out of this loop, I now tirgger the write to the container and raise the wait event.
    Cheers !!
    Deb

  • For jdeveloper team

    I'm hoping I can get some feedback on a couple of issues regarding the usage of bc4j framework in a web-application. I've found some other posts asking some of the same questions, but have not been able to find any posts with answers. I apologize in advance if I've missed them:
    1) post vs. get: Within the OC4J container (when run from inside Jdeveloper), using the post method on forms seems broken. Specifically, I have a page which posts with the form's action set to a controller servlet. Using debug mode, I can see that as the controller servlet receives the request, the parameters do exist. However, the controller then forwards to a view page which, when debugged, shows that the request's parameters are empty. On a side note, doing the very same thing under tomcat (this very same application) works fine (i.e., the 'view' jsp receives the parameters from the original request. According to my reading of the spec, a forward should preserve the request parameters. Finally, using the 'get' method does preserve the request parameters under oc4j.
    2) JSP-centric development: While digging through the web-application samples and various HOWTO documents, it appears that the recommended way of building web-applications is to make use of the bc4j datatags. This is not necessarily the way many folks want to develop non-trivial web-apps these days. Keeping with the philosophy that JSP code should be related to the 'view' only, and that all 'controller' code should be separate, what (if any) plans do the jdeveloper/bc4j teams have to open the functionality available in the jsp datatags for servlet development? I certainly understand that pretty anything I can do using datatags are possible to do from a servlet by using the given bc4j API; however, even just getting the application module from the pool ends up being significantly more work than using the <jbo:ApplicationModule> tag. Additionally, when I've looked into using pieces of code in the datatag implementations, and I then check the javadocs, I see an awful lot of "Internal: Applications should not use this method", or worse yet, no explanation of what the method is supposed to do. So at this point, I've got much more "code" in my JSP's that I'd like, and my controller-servlet and related modules are really not doing as much as I'd like them to do.
    Thanks in advance for any input!

    John,
    For the first question, the only thing I can related to this problem is a bug in OC4J which has been fix in the 9.0.2 release. I do not know which version of OC4J you are using but that might be the problem. More specifically, it had to do with the use of the JAZN request handler no processing the request parameters correctly after a forward or an include. May be you should post a message on the oc4j message list.
    As for the second question, your are identifying correctly some problems associated the 9.0.2 BC4J JSP application wizards. The Controller written into View problem is actually not because of the BC4J datatags themself but more because of the missing controller part.
    The BC4J datatags provides a great way to retrieve the model information and display it in the view. But infortunately we had to build the controlling part using JSP and that become very messy (even if we tried very hard to put of controlling code in one file called DataHandlerComponent.jsp and use as many tags as possible).
    In our next release (9.0.3) we are extending our model by integrating with the Struts Controller.
    Here is a list of current problems that Struts will help us fix:
    * The execution of the business logic and the event handling is done in the JSP page itself forcing you to write a lot of java code in scriptlet not easily portable.
    * Missing page flow control.
    * No Runtime NLS support.
    * The application pool management is error prone because of the requirement of the ApplicationModel and ReleasePageResource tag in specific place in the JSP file.
    * Tricky error handling.
    So using the servlet controller is the right thing to do, would it be your own or Struts. We can help you with the code to manage the ApplicationModules with the pool or you can wait for 9.0.3 where this will be handle with Struts.
    Charles.

  • I m trying to make a jcombobox that has 3 colors red, yellow and green.........its a run time error.......caus i m not getting the required output

    * To change this license header, choose License Headers in Project Properties.
    * To change this template file, choose Tools | Templates
    * and open the template in the editor.
    package Exp4;
    import java.awt.Color;
    import java.awt.GridLayout;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    * @author Gursimran
    public class combox extends JFrame implements ItemListener{
        public combox()
            JComboBox cb;
            setLayout(new GridLayout(10,10));
            cb= new JComboBox<>();
            cb.addItem("Red");
            cb.addItem("Green");
            cb.addItem("Blue");
            add(cb);
            cb.addItemListener(this);
            setVisible(true);
            setSize(400,400);
        public static void main(String[] args)
            combox obj=new combox();
        @Override
        public void itemStateChanged(ItemEvent e)
            if(e.getItemSelectable().equals(0))
                        this.getContentPane().setBackground(Color.red);
            else if(e.getItemSelectable().equals(1))
                        this.getContentPane().setBackground(Color.green);

    Please post the exact error message you get.

  • Tricky : how to avoid this error transparent to users ?

    Hello, Oracle people !
    I probably have a very common problem / question ...
    We use third party application (called Kintana) that has some SQL queries referencing my custom Oracle views.
    Connection to Oracle via JDBC. Some of those views are also using packaged functions residing in one custom package. So when I need to change logic, I'm recompiling just PACKAGE BODY at off-hours time in production. But when next time user runs those queries via Kintana web interface they get an error :
    -- The following error is thrown by the Database:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package body "KNTA.OM_MISC_LIBRARY_PKG" has been invalidated
    ORA-04065: not executed, altered or dropped package body "KNTA.OM_MISC_LIBRARY_PKG"
    But when users refresh their screen on IE browser,
    error goes away. (probably Oracle calls it again and recompiles object restoring its valid state)
    I understand that how Oracle works,
    but I was given a task by Manager :
    "Make sure that users don't see this error !"
    (some of users are VIP, CIO, VPs and other "highly important" executives)
    So I tried to avoid this error but can't ...
    I don't know how to restore valid state of recompile package to existing user sessions without this error being seen ...
    Please HELP !!!
    thanx,
    Steve.

    I've been reluctant to tell you this since it could have some serious side effects and performance issues but you could reset the entire session package state by calling DBMS_SESSION.RESET_PACKAGE BEFORE you attempt the calls. The problem is that it resets ALL package's state information and I'm not aware of a way to do it for a single package. Unfortunately, it doesn't appear that you can call this routine after the exception occurs. For some reason, the exception seems to have to make it all the way back to the client before Oracle will acknowledge the reset.

  • Error while deleting a project

    Hello
    I want to delete a project : I 'm using the "delete" command after right-cliking. ODI deletes all interfaces, variables and so on but not the project itsel :
    I get the message :
    com.microsoft.sqlserver.jdbc.SQLServerException: L'instruction DELETE est en conflit avec la contrainte REFERENCE "FK_UFUNC_TECHNO". Le conflit s'est produit dans la base de données "MLPODI_MAINT", table "dbo.SNP_UFUNC_TECHNO", column 'I_UFUNC_IMPL'.
    In inglish, it should be something like :
    com.microsoft.sqlserver.jdbc.SQLServerException: th DELETE instruction is conflicting with REFERENCE constraint "FK_UFUNC_TECHNO". The conflict has occured in the database "MLPODI_MAINT", table "dbo.SNP_UFUNC_TECHNO", column 'I_UFUNC_IMPL'.
    Does any has experienced this ? How to delete my project ?

    Thank you all, HTH and Jitendra
    Thanks to your advise and after reading more carefully the error message, I can now understand what's happening :
    My project includes a user function that causes the issue : ODI can't delete the project because it can't delete this user function.
    But I can't understand what's happening whith this function : it seems to be in a tricky situation : it has nos syntax and no description though it shoud not be possible to create a user fucntion whithout populating these fields.
    When I try to enter a syntax, I have another error message talking about conflict and FK.
    I can see the line related to this function in the SNP_UFUNC, SNP_UFUNC_IMPL and SNP_UFUNC_TECHNO tables. I tried unsuccessfully to delete the line (though I guess this action could be dangerous). I don't know what to do now ?

  • Can No Longer Write files to a NSF-mounted drive on one Server. Error -36

    Hi Folks:
    I have searched the Net (including these forums now) for several hours and found nothing definite.
    The story is this: I have a Fedora 14 server that, up to this point, has been acting as a file server. Sometime last week (around the 28th we think) it stopped allowing people to copy files from the Mac OS X 10.6.8 workstations (which is what we have, largely) to the shared drives. It fails with a "The Finder can't complete the operation because some data in "" can't be read or written. (Error Code -36)."  People can mount the drives in question, see them, read from them, copy from them, but not copy anything, or write anything (Save as from Word) to the drives.
    Now at about the time period where this started we moved a mySQL database from this particular server somewhere else. As part of that operation, the server was rebooted. The server where we moved the DB to was not. It also have an NFS share that continues to work.
    I have verified service by service that nothing is running that shouldn't be. One of my thoughts was that something came up that shouldn't of when the reboot happened. Everything seems fine in that regard.
    My looking through the Net has yielded several possible answers none of which has worked. One has been that this is a sign of bad media.  I have checked the drive array in question three seperate times. It has passed all those times. I started another share on a separate spindle on the server and I still cannot write to this new share on a totally different drive.
    The drives in question are formatted for EXT3 (hey, I've giving out as many details as I can here!  :-)  ).
    I have also repaired permissions on the SOURCE drives. No luck there.
    My export file looks like this:
    /raid/data/BigBang 
    *(rw,insecure,sync,no_subtree_check,nohide,all_squash)
    /raid/data         
    *(rw,insecure,sync,no_subtree_check,nohide,no_root_squash)
    /raid              
    *(rw,insecure,sync,no_subtree_check,nohide,no_root_squash)
    /home/rkinne/test  
    *(rw,insecure,sync,no_subtree_check,nohide,no_root_squash)
    No thoughts on security right now. I'm trying to get this darn thing to work, especially on /raid/data/BigBang. That share WAS "no_root_squash" but I changed it to "all_squash" as I've been flailing around today. There was no change in behavior. The exports file on the other server that is working is virtually identical.
    Two Mac workstations work right now. One is running 10.4. The other is running 10.7.3. The rest - the problematic ones - are running 10.6.8. One is running 10.5 and is also not working.
    I have also flushed the DNS caches from the servers in question, but its too early to see if that will do something yet.
    This issue has flumouxed folks for years now. I understand that. Oddly, it JUST came out of the blue for us.  Any thoughts would be appreciated.
    Doc Kinne
    American Assoc. of Variable Star Observers

    TimVasilovic wrote:
    I understand the process you are describing,  In the past I have been able to embed metadata to a Raw file, move it to a server, pick that file up on another computer and see the metadata without need of the .xmp sidecar.  Is the ability to embed no longer supported  by Photoshop? Since this issue began we have taken to doing all our metadata editing in PhotoMechanic, which embeds without creating a sidecar.  If Photoshop is pushing people to create sidecar .xmp files only for writing metadata to Raw files I will probabaly move fully to PhotoMechanic because using sidecars has proven tricky in the past with how our files get moved around.
    If using Adobe Camera Raw on camera raw file you either have an XMP sidecar file created or the data is stored in a database.  Which happens it is your option in Edit/camera raw.  If you use ACR and edit a jpeg it does not create a distinct XMP file but it is also not directly written to the image either.  One can still delete the edits in Bridge with Edit/develp settings.
    If you use a DNG the metadata is written to the image.  Not sure what process Photo Mechanic uses.
    It appears to be a permission problem as other than CS6 Bridge is now 64 bit and has a new cache method there are no changes in how it handles metadata.

  • Windows Vista Bonjour error "You do not have sufficient access..."

    My Windows Vista laptop recognizes my HP PSC 1310 printer connected as a USB printer with Airport Extreme. It even has the correct driver. When i go to finish set up i get an error "You do not have sufficient access to your computer to connect to the selected printer". I am doing this as an admin on my PC. The printer works correctly on my Macbook. The guidance given by apple is no help at all. Any ideas?

    I experienced the same general problem and did find a manual workaround in my particular instance. Hopefully this is helpful to anyone who's facing the same situation.
    MY SETUP: installing a hp LaserJet 1012 that's tethered to a wireless Time Capsule (home network) on a virtual VISTA platform running within Parallels 4.0.3810 on an iMac OS 10.5.6.
    THE PROBLEM: WinXP (also virtual) connected to the printer through BONJOUR FOR WINDOWS without any problems. However, doing the same in Vista resulted in a last step termination of installation with the following message from Vista: "You do not have sufficient access to your computer to connect to the selected printer." Lovely.
    Turns out, according to Microsoft (link: support.microsoft.com/kb/946394/en-us Help and Support Article ID: 946394 - Last Review: January 24, 2008), the problems is due to "the Hewlett-Packard (HP) print driver uses an HPBmini.dll file ("HP Mini Installer") whose version is earlier than 1.0.0.13."
    My workaround was to simply install the network printer manually via ~ (the following are the choices that I clicked on in VISTA)
    Vista Control Panel > Hardware and Sound > Printers > Add a printer >
    Add a network, wireless or Bluetooth printer >
    The printer that I want isn't listed >
    Add a printer using a TCP/IP address or hostname >
    CHOOSE - Device type: Autodetect
    INPUT - Hostname or IP address: "Time-Capsule"
    (which is the specific hostname in my case, the hostname can be found by going to OS X System Preference > Print & Fax > click & highlight the printer installed on the local network in OS X and look for the hostname after "Location:". Remember, Windows do not do spaces, so if there are any spaces in your hostname be sure to substitute a dash "-".
    SELECT - "Query the printer and automatically select the driver to use" >
    Device Type > Standard | Generic Network Card > Install the printer driver* >
    (*Here's the tricky step, since you don't want to use an old driver which would bring up that old insufficient access message, but you do have some options:
    a) you have a known VISTA COMPATIBLE driver from the manufacturer (net downld);
    b) the "Add Printer Wizard" window may contain a driver for your specific printer or a similar printer. Also, try the "Windows Update" button to refresh the choices if you can't find it the first time; and finally,
    c)"Generic" is a legitimate choice in the Manufacturer window if you can't find any better options.)
    From there, it's just Next > Next > and choose to share printer, etc. to finish up.
    Luckily, I got through to "Print a test page" and it all works without the annoying "insufficient access" message.
    Best of luck to you.

  • Custom Error Message in Value Help

    Hi,
    In my application i have a Inputfield called "CLASS", for which i have added a value help..it has these values
    B    Business
    E    Economy
    F    First Class
    When the user enters a value(say "X") other than B, E, and F, it displays a message
    <b>String "X" does not match the enumeration</b>
    I want to put my own message like " Please enter a valid value" instead of the above message.
    Please let me know how to do this ?
    Thanks
    Senthil

    Senthil,
    First, "looping through the list and checking the user entered value with values in the list" is possible only with non-validating actions. Using non-validating actions is a tricky task in real life.
    Second, workarounds are possible, but they involves calculated attributes (like here: /people/valery.silaev/blog/2005/11/29/800format-your-way). Solving this problem generically (45 attributes is a good number to start with a generic solution) will result in solution with complexity comparable to this: https://weblogs.sdn.sap.com/pub/wlg/3309. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] Do you need such thing just to alter error message?
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Error in log file (WWC-41439)

    Hi,
    When i installed Oracle Portal, i had the error WWc-41439 when i tried log in Oracle Portal. I revised the log file and i saw the following error.(I have isntalled Oracle Portal 3.0., Oracle Database 8.1.7 on windows NT).
    STEP 24 : Installing SSO packages to public
    INSTALL_ACTION : installSSOLayer()..\..\bin\sqlplus portal30_sso/portal30_sso@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoinsg.sql
    STEP 25 : Associating Login Server & Oracle Portal
    INSTALL_ACTION :assocNewLoginServer: Portal Url Prefix: http://pablo/pls/portal30/
    INSTALL_ACTION :assocNewLoginServer: SSO URL Prefix: http://pablo/pls/portal30_sso/
    INSTALL_ACTION : assocNewLoginServer: ..\..\bin\sqlplus portal30_sso/portal30_sso@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoseedl.sql portal30 http://pablo/pls/portal30/ portal30_sso http://pablo/pls/portal30_sso/ NO
    INSTALL_ACTION : assocNewLoginServer: ..\..\bin\sqlplus portal30_sso/portal30_sso@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoinsgp.sql portal30
    INSTALL_ACTION : assocNewLoginServer:..\..\bin\sqlplus portal30/portal30@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoseedw.sql portal30 portal30_sso http://pablo/pls/portal30_sso/ http://pablo/pls/portal30/
    INSTALL_ACTION : STEP 19 : assocNewLoginServer:..\..\bin\sqlplus portal30/portal30@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\wwc\secpsr.sql
    INSTALL_ACTION : STEP 19 : assocNewLoginServer:..\..\bin\sqlplus portal30/portal30@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\wwc\secps.sql portal30_sso_PS N N N N
    INSTALL_ACTION : assocNewLoginServer:..\..\bin\sqlplus portal30_sso/portal30_sso@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoinsrp.sql portal30
    INSTALL_ACTION : assocNewLoginServer:..\..\bin\sqlplus portal30_sso/portal30_sso@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoseedu.sql portal30
    Installing and running diagnostics
    INSTALL_ACTION:installDiagnostics() : ..\..\bin\loadjava -resolve -verbose -thin -user portal30/portal30@localhost:1521:or8i ..\..\portal30\admin\plsql\wwc\Diagnose.class
    C:\ORACLE\iSuites\assistants\opca>REM
    C:\ORACLE\iSuites\assistants\opca>REM $Header: runljava.bat@@/main/3 \
    C:\ORACLE\iSuites\assistants\opca>REM Checked in on Fri Nov 17 15:32:36 PST 2000 by meoropez \
    C:\ORACLE\iSuites\assistants\opca>REM Copyright (c) 2000 by Oracle Corporation. All Rights Reserved. \
    C:\ORACLE\iSuites\assistants\opca>REM $
    C:\ORACLE\iSuites\assistants\opca>REM
    C:\ORACLE\iSuites\assistants\opca>Rem For running the Loadjava from the Configuration Assistant.
    C:\ORACLE\iSuites\assistants\opca>..\..\bin\loadjava -resolve -verbose -thin -user portal30/portal30@localhost:1521:or8i ..\..\portal30\admin\plsql\wwc\Diagnose.class
    INSTALL_ACTION : Running Diagnostics ..\..\bin\sqlplus portal30/portal30@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\wwc\secdiag.sql
    SQL*Plus: Release 8.1.7.0.0 - Production on Dom Abr 20 20:23:37 2003
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Conectado a:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    Creating Table 'wwsec_diagnostic$'
    Creating Sequence 'wwsec_diagnostic_seq'
    Diagnostics Report v 1.01: Oracle Portal v 3.0.9.8.0
    As of 20-Abr-2003 20:23:41 Schema Name: PORTAL30 SSO Schema Name: portal30_sso
    Proxy Server Settings:
    HTTP Server:
    HTTP Server Port:
    No Proxy Servers for Domains beginning with:
    URL Connection Time-Out (seconds):
    PORTAL30.wwsec_enabler_config_info$
    Login Server URL : http://pablo/pls/portal30_sso/portal30_sso.wwsso_app_admin.ls_login
    DAD          : portal30_sso
    Host connection : *** FAILED ***
    Unable to find the Schema Name for the Login Server
    Recommendations:
    Please check the DAD settings for the Login Server
    Desconectado de Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    INSTALL_ACTION : End of Installation.
    How i resolve the problem?
    Is there somebody in the same situacion?
    Thank you

    Did you promoted/demoted a server? ( like from consumer to master , master to consumer , hub to consumer/master OR disabled replication and re-enabled with another unique ID and recreated replication agreements again?
    IF YES, find out the current Unique ID in all the related server and delete the old serverIDs in the nsslapd-rererral.
    Also the error will tell you for which server it is trying to update the duplicate entry. Mostly , that entry will be the old value as I explained before.
    I have seen this before and mostly by doing above it gets corrected. I recommend that you should think before doing it.
    In any case dont forget to update us since this is a tricky situation to me.
    -Kunal

Maybe you are looking for