Java aplication not able to detect card reader sometimes

Hi
We have a Java application (jre1.6.0_05.) which runs as window service under "Local System". It tries to detect card reader after every one minute. Normally it is working fine. However on some machines (which can be Windows XP, 2003 Server etc) some times it is not able to detect Card Reader, while other applications (which are not Java based) are able to detect. Sometimes service restart helps in solving the issue, but it reoccurs again after few hours/days.
Below is the exception we get:
javax.smartcardio.CardException: list() failed
at sun.security.smartcardio.PCSCTerminals.list(PCSCTerminals.java:109)
at javax.smartcardio.CardTerminals.list(CardTerminals.java:55)
Below is the code we are using to get list of terminals:
TerminalFactory factory = TerminalFactory.getDefault();
try {
terminals = factory.terminals().list();
} catch (CardException e) {
e.printStackTrace();
}Any idea what might be causing this random problem?

Hi,
According to the source for OpenJDK 6 (b19) the only way to get the exception you posted was with a PCSCException being thrown with the root exception wrapped in the new exception.
// from PCSCTerminals.list(State state)
try {
    // do some stuff to get the reader list
} catch (PCSCException e) {
    throw new CardException("list() failed", e);
}If this was not the case in the version you have, you will definitely see the root cause with the new JDK.
Cheers,
Shane

Similar Messages

  • USB port not able to power card reader

    Hi,
    I have an eBuyer USB Card Reader which does not power up when I connect it to my Mini Mac. It works fine when connected to my Dell PC. Reading this forum and the Apple documentation it seems that the Mini Mac ports do meet the USB specification, but some devices may need extra power from a powered USB hub.
    Does this sound likely? If so, any reccomended hubs?
    Thanks, Ian

    Hi,
    According to the source for OpenJDK 6 (b19) the only way to get the exception you posted was with a PCSCException being thrown with the root exception wrapped in the new exception.
    // from PCSCTerminals.list(State state)
    try {
        // do some stuff to get the reader list
    } catch (PCSCException e) {
        throw new CardException("list() failed", e);
    }If this was not the case in the version you have, you will definitely see the root cause with the new JDK.
    Cheers,
    Shane

  • My iPhone's bluetooth is not able to detect another iPhone iOS 7.0.6. (latest)

    my iPhone's bluetooth is not able to detect another iPhone iOS 7.0.6. (latest)

    Speakers, keyboards, headsets, pulse monitors, pebble watches, cars with hands free systems, etc.
    Are both phones signed into itunes under the same user?
    are you trying to transfer purchased music to someone else in violation of itunes terms of service?

  • HT201263 While updating Iphone 4 to latest on phone itself it got frozed and now apple sign is coming up after every 10-15 secs , even itunes is not able to detect phone, please help

    While updating Iphone 4 to latest on phone itself it got frozed and now apple sign is coming up after every 10-15 secs , even itunes is not able to detect phone, please help

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...
    But... if the Device has been Modified... this will Not necessarily work.

  • I updated itunes for my 64 bit system to 11.1.4. I was not able to detect my cd drive.  I removed itunes, apple software update, apple mobile device support, bonjour and apple applications support. After a few attempts it now recognizes my cd drive but no

    I updated itunes for my 64 bit system to 11.1.4. I was not able to detect my cd drive.  I removed itunes, apple software update, apple mobile device support, bonjour and apple applications support. After a few attempts it now recognizes my cd drive but not by ipod.  Any suggestions? Thanks.

    I updated itunes for my 64 bit system to 11.1.4. I was not able to detect my cd drive.  I removed itunes, apple software update, apple mobile device support, bonjour and apple applications support. After a few attempts it now recognizes my cd drive but not by ipod.  Any suggestions? Thanks.

  • Not able to download adobe reader on windows7 getting error 1606

    I'm not able to download adobe reader on windows7 geting error 1606
    Message was edited by: Host to remove email address

    Please see the Microsoft site for this error and the solution:
    http://support.microsoft.com/kb/315352

  • I have tried to update IOS 5.1 in my Iphone 4 and unfortunately I got an error message and phone is stucked at restore point. It is not coming back to normal mode and is not able to detect my phone in iTunes. Please help me how to recover my Iphone IOS

    I have tried to update IOS 5.1 in my Iphone 4 and unfortunately I got an error message and phone is stucked at restore point. It is not coming back to normal mode and is not able to detect my phone in iTunes. Please help me how to recover my Iphone IOS, unfortunately I don't have my iphone backup too.

    we have a same problem

  • Acrobat 9 does not recognize the smart card reader that work with other app. Can someone help me?

    Hi to All,
    Acrobat 9 (included in CS4 design premium) does not recognize the smart card reader. I have a smart card reader ACR38 smart card that works with all applications except Acrobat 9 pro. I tried to uninstall and reinstall it again, but when I try to insert the digital signature message is always the same, that does not find the Acrobat reader. Can someone help me?

    Hi MartinR
    Thank you for your reply, i have tried what you suggest, and it did not work, the i DVD opening title changed but not the embedded movie.
    Perhaps it is a setting in Final Cut Express?
    After capturing my footage, i open a new project then i convert all clips to anamorphic, to give me the letterbox effect, i have tried now with and without anamorphic.
    In my canvas screen, the footage does not fill the square, even if i have not selected anamorphic, and fall well within the TV safe areas, but the only way to ill the canvas up is to crop it bigger, but still when i export it does not give me the full screen view.
    Any ideas?

  • I   Am  Not  Able  To  Use  Adobe  Reader 9  As  Installed  In  ITR  On  Line

    I   Am  Not  Able  To  Use  Adobe  Reader 9  As  Installed  In  ITR  On  Line

    Use the forum for Adobe Reader.

  • SAPMMC Java instance not able to start

    Hi All,
    I have installed CE.7.1 version yesterday after installing the same
    In SAPMMC Java instance -xxxx00) and the central services instance xxxxx01 both have been started.
    But when I am trying today java instance which is -xxxx00 is not able start.
    Here we can see 2 process 1 is Jstart.Exe (As java) which is showing status as stopped
    Where as igswd.exe which is showing running.
    So here problem is Jstart.Exe (As java) is not able to start.
    Can you suggest me what should I do to activate the same?
    Regards
    Ishikesh

    Hi Ishiikesh,
    Please check and update JAVA_HOME system enviromental variable in my computer (My computer > Priperties >> Advance >> Startup and Recovery >> Enviromental Variable >> System Variables >> Add new JAVA_HOME parameter with path for installed Java JDK)
    Also please check database server services (Start > Run > Services.msc >> Start your database services manually and change properties as automatic)
    Then try to re-start the server.
    Hope it helps
    Regards
    Arun

  • How do I tell Lightroom 4 not to disconnect my card reader after an import?

    How do I tell Lightroom 4 not to disconnect my card reader after an import?

    I just ran across this post and have no-axe-to-grind on either side of this issue.
    What hasn't been mentioned here are the actual "financial" consequences of leaving images on a memory card (i.e. card in limbo)? Obviously this means you will need more than one (1) memory card, which I'm sure is already the case for most LR users.
    If we compare the cost per image for memory card storage versus film, the price point is about the same:
    36 exposure roll 35mm color negative film = ~$3.00 ÷ 36 = ~$.08 per image
    16GB SanDisk Extreme 400x CF card = ~$50 ÷ (16,000/25) = ~$.08 per image
    (Assuming 25 MB image files, excluding processing costs)
    Unlike film the actual cost per image with memory cards drops significantly over the life of the card, which I'll very conservatively put at 500 card usages.
    ~$.08 per image first shoot÷500 = ~$.00016 per image
    The actual cost per image over the life of the card with only 500 usages works out to about $.16 per 1,000 25 MB images.
    Would you spend 16 cents for “temporary backup” of 1,000 perhaps irreplaceable images until confirmed not corrupted during transfer to your hard drive and a second backup drive? I think so!
    Another side benefit of using additional memory cards and retiring them earlier to the trash is that it reduces the likelihood of catastrophic failure and image loss:
    MTBF (Mean Time Between Failure) ÷ Actual Usage = MTTF (Mean Time To Failure)
    Actually determining when you should replace a memory card and how you track its usage should be discussed in a new post.
    IMHO, this strengthens the case of holding-off on deleting images or reformatting your memory card right after import into LR. Now go buy some more memory cards! (Disclaimer: I do not own any memory company stock.)

  • TCA Java APIs not able to validate input against LOOKUP table

    Hi there,
    I am using the TCA Java APIs to create new source system references like so:
    HzOrigSystemRefPub wrapper = new HzOrigSystemRefPub();
    wrapper.createOrigSystemReference(connection, "T", record, x_return_status, x_msg_count, x_msg_data);
    The record has the following attributes set:
    l_orig_sys_reference_rec.created_by_module := 'TCA_V2_API';
    l_orig_sys_reference_rec.owner_table_name := 'HZ_PARTIES';
    When I run my java code however, the call returns an error saying that the values I have mentioned in the above two attributes were not in my lookup tables:
    1. Value for owner_table_name must be a value defined in lookup type TCA_OWNER_TABLE.
    2. Value for created_by_module must be a value defined in lookup type HZ_CREATED_BY_MODULES.
    When I run queries directly against the database in SQLDeveloper, I am able to find these values. They do exist.
    For some reason, when using the Java API, it cannot find the lookup values.
    I even tried calling the PL/SQL API from Java and the same problem exists.
    Is this a bug?
    Can anyone please help me?
    Thanks in advance!

    OK, solved my own problem.
    The solution is to set the language environment variable to 'AMERICAN'.
    It's a known bug.
    Set it from your Java code like this:
    OracleCallableStatement setter =
    -------(OracleCallableStatement)connection.prepareCall(
    -------"ALTER SESSION SET NLS_LANGUAGE = 'AMERICAN'");
    setter.execute();
    Now any calls after this statement to the Java APIs will work.
    Cheers!

  • HP PAVILION G6-Not able to detect USB FLASH DEVICES.ERROR: NO DRIVERS DETECTED

    HI i have one year old HP pavilion g6 2005AX model with AMD processor.rEcently iam facing a issue with USB drivers.Any new flash drives which i havent used befre are not detectable by my system.It is throwing a error as no drivers detected.What should i do?Iam not able get the driver updates anywhere.

    Samvaram,
    Do a hard reset.
    Turn the computer off.
    Remove the power cable and the battery.
    Hold down the power button for 15 sec while booth power sources are removed.
    This should reset the hardware in the computer.
    As you turn it back on tap the F10 key. This will load BIOS setup utility.
    Press F9 to load defaults.
    Press F10 to save and exit.
    When the computer boots back up, check to see if everything is working.
    Open up command prompt and run the following command SFC /scannow.
    This will scan the system files and correct any errors that it can.
    Here is a link to command prompt.
    When you go to open command prompt, right click and run as administrator.
    What is the device that you are connecting?
    What version of windows are you using?
    Do you have any other devices connected when trying to connect the new device?
    Let me know how everything goes.

  • Not able to use adobe reader 9 on windows 7 OS

    Hi All,
    i have problem with adole reader 9. if i installed on PC i can able to use only PDF file but can not able to use any other executable file.
    all other executable flogo show icon of adobe reader.
      For using other executable file i need to remove adoble reader installer from operating system and then only i can able to use other application on my PC.
    Kindly sugest me as i facing this problem since long time. your prompt revert would be appriceated.
    Thanking you.
    Atul

    Use the forum for Adobe Reader.

  • Not able to open adobe reader 8.1.2, upgrade or uninstall

    I am using Windows 7 operating system.  My adobe was working a couple of months ago, but now I get an error when I try to open it.  It is not able to find the network location (?) and gives me a repeated fatal error.  I have tried to uninstall the original program but it won't allow me to do that either, the same if I try to upgrade.  I need this for both school and work.  Any ideas?

    Can you post a screenshot of the error message that you are seeing?

Maybe you are looking for

  • Determining number of lines in a File without loading it to memory

    hello guys, I'm just wondering if there is a way to know the number of lines in a file without having to load the file entirely into memory and count the lines. in my project i have a restriction that says that i'm not allowed to load into memory mor

  • GETWA_NOT_ASSIGNED short dump

    Hi Gurus, I am trying to load only specific source fields selection cretira to target, i have written following code to load only specific data set. I am getting the short dump as GETWA_NOT_ASSIGNED at this point. If <source_fields>-/BIC/ZCJ_STAT = '

  • I need help making a layer clickable

    I am trying to make the layer "click to call" clickable but cant do it.   Please help.   Thanks!

  • SQL Anywhere 5.0

    Hi all, As we know this is very old version and be ended in 2000. Unfortunately, i need this software to cover my other database issue on Window NT 4.0. Does anybody still keep this version? Could you please help to share to me? Thanks in advance, Nh

  • IBook intermittently boots then resets or only starts in open firmware

    Hi everyone, I've been using my iBook G4 (aka my baby ) since purchasing in feb 06. Never had an issue with it, treated it better than anything else I've ever had and it give me trouble. until now. basically after shutting it donw friday evening i tr