Error in connecting to the smart card

Hi
I am trying to write a very simple program that just detects the card and closes..
Here is the code:
import opencard.core.service.SmartCard;
import opencard.core.service.CardRequest;
import opencard.opt.iso.fs.FileAccessCardService;
import opencard.opt.util.PassThruCardService;
import opencard.opt.iso.fs.CardFile;
public class ReadFile {
     public static void main(String[] args)
          System.out.println("initializing file...");
     try {
          System.out.println("Before start");
          SmartCard.start();
          System.out.println("After start");
          // wait for a smartcard with file access support
          CardRequest cr = new CardRequest(CardRequest.NEWCARD, null, null);//PassThruCardService.class);
          System.out.println("After Card request");
          SmartCard sc = SmartCard.waitForCard(cr);
          System.out.println("After waiting for card");
          sc.close();           
     catch (Exception e)
          e.printStackTrace(System.err);
          System.exit(0);
     finally
     { // even in case of an error...
          try {
               SmartCard.shutdown();
          catch (Exception e)
          e.printStackTrace(System.err);
     System.exit(0);
I am using cyberflex 32k access developer card and reflex v2 usb lite reader
I am getting the following run time errors
C:\J2SDK1.4.0_03\BIN\java.exe ReadFile
Working Directory - C:\
Class Path - C:\;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\samples\classes;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\lib\base-core.jar;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\lib\base-opt.jar;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\lib\reference-terminals-windows.jar;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\lib\pcsc-wrapper-src.jar;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\lib\reference-services.jar;.;c:\Kawa3.5\kawaclasses.zip;c:\j2sdk1.4.0_03\lib\tools.jar;c:\j2sdk1.4.0_03\jre\lib\rt.jar
initializing file...
Before start
[ERROR    ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardGetStatusChange
--- message PCSC Exception in method SCardGetStatusChange: error executing SCardGetStatusChange
return code = 8010002e
--- thread Thread[main,5,main]
--- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@4a5ab2
After start
After Card request
[ERROR    ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardGetStatusChange
--- message PCSC Exception in method SCardGetStatusChange: error executing SCardGetStatusChange
return code = 8010002e
--- thread Thread[Thread-1,5,main]
--- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@4a5ab2
[ERROR    ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardConnect
--- message PCSC Exception in method SCardConnect: PC/SC Error SCardConnect
return code = 80100009
--- thread Thread[Thread-1,5,main]
--- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@4a5ab2
opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC Exception in method SCardConnect: PC/SC Error SCardConnect
return code = 80100009
     at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.translatePcscException(Pcsc10CardTerminal.java:502)
     at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.cardConnect(Pcsc10CardTerminal.java:361)
     at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.internalOpenSlotChannel(Pcsc10CardTerminal.java:315)
     at opencard.core.terminal.CardTerminal.openSlotChannel(CardTerminal.java:385)
     at opencard.core.service.CardServiceRegistry.getSmartCard(CardServiceRegistry.java:316)
     at opencard.core.service.SmartCard.getSmartCard(SmartCard.java:388)
     at opencard.core.service.CardWaiter.cardInserted(CardWaiter.java:98)
     at opencard.core.event.EventGenerator.updateCards(EventGenerator.java:233)
     at opencard.core.terminal.CardTerminalRegistry.cardInserted(CardTerminalRegistry.java:281)
     at opencard.core.terminal.CardTerminal.cardInserted(CardTerminal.java:577)
     at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.poll(Pcsc10CardTerminal.java:493)
     at opencard.core.event.EventGenerator.run(EventGenerator.java:199)
     at java.lang.Thread.run(Thread.java:536)
Process Exit...
It comes out of smartcard.start()
But it also throws some errors.
Cant figure out wat the problem is.
Can someone please guide us in this
Thanks
Nagesh

Hello,
I am encountering the same problem that you had. When I try to execute my OpenCardFramework application, I get the following error, "... PCSC Exception in method SCardConnect: PC/SC Error SCardConnect return code = 80100009 ..."
I am using a Schlumberger USB card reader. I know the card reader works because I have used it with other applications.
What was the problem that you had with the USB reader and the OpenCardFramework? Could you please post it to the forum?
Thanks

Similar Messages

  • Error while connecting to the database from a JSP Page

    Hi,
    I am using a simple JSP page which is based on the sample JSP pages from OTN.
    When I try to connect to my database using the following code:
    InitialContext ic = new InitialContext();
    OracleDataSource ds = (OracleDataSource)ic.lookup("jdbc/OTN9iDS");
    m_connection = ds.getConnection();
    I get the following error:
    Naming exception Error while connecting to the database : javax.naming.NameNotFoundException: jdbc/OTN9iDS not found in JDBCTest-JDBCTestProject-webapp
    Does anybody know wht this is happening?
    Any help would be appreciated
    FRank

    Hi Frank,
    Are you using standalone OC4J or 9iAS ? If you are using standalone OC4J then you need to add a proper data source entry in %OC4J_HOME%j2ee\home\config\data-sources.xml file.
    If you are using 9iAS the you can log in to the Enterprise Manager console and add the data source entry by using wizard provided by 9iAS.
    Ensure the case of the JNDI lookup string, since, it is case sensitive.
    Hope this helps.
    Abhijeet

  • When deploy: Wizard error a connection to the deployment share could not be made "check physical connection"

    Hello everybody,
    yet another issue with deploying a masterdisk. I will give you a short explanation of the situation.
    I need to deploy Windows 8.1 PRO x86. 
    Using: Microsoft Deployment Workbench Microsoft Version: 6.2.5019.0
    1. Reference PC: Windows 8.1 PRO x86 is installed on ORACLE Virtual Box.
    2.  I installed  MDT on my workstation Windows 7 x64, where "C:\DeploymentShare\Windows8" is located.
    3. To change the Unattended.xml file, I have second ORACLE Virtual Box with
    Windows 8.1 PRO x86 with MDT, which connected to the DeploymentShare of Windows 7 x64.
     - The reason is because the Reference PC is x86 and the Unattended.xml file can be changed only if MDT is installed on x86 Windows, otherwise it is not possible.
    The image capture is successful.
    Then I create bootable USB device using rufus-1.4.12.exe. I use: C:\DeploymentShare\Windows8\Boot\LiteTouchPE_x86.iso
    I use a real PC (not virtual machine) and when the deployment starts
    I see: 
    1 Welcome screen, where I select: Run the deployment wizard to  install a new operating system.
    2. The next screen is an error screen where I see the error: 
    "Wizard error
    A connection to the deployment share (\\ComputerName\C\DeployemntShare )could not be made
    DHCP Lease was not obtained for any Networking devices!
    Possible cause: Check physical connection
    I am relatively new with MDT.
    Any suggestions are more than welcome.

    Nick,
    Thank you for the answer!
    Yesterday, I figured out that I need to create an offline bootable disk. 
    The issue is caused, because creating a bootable disk with rufus.exe include only the ISO file and not the WIM file. That is the reason why during OS installation process it asks me for the shared folder...

  • 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?

  • Error: "Cannot connect to the provider. Make sure it is running in the specified host/port. Error (12031)"

    Hi,
    EPM version: EPM 11.1.2.1
    When we are using Zoom In Level as All Levels and tring to drill down for dimention of HFM application we are getting below error.
    Error: "Cannot connect to the provider. Make sure it is running in the specified host/port. Error (12031)"
    As we found some solution from comunity , we have performed below workaround but still we are getting same error.
    ·              We have done the changes in mod_wl_ohs.conf file of OHS  with (WLIOTimeoutSecs 3600 and WLIOSocketTimeoutSecs 3600)
    ·              And then restarted OHS and  APS service but still we found same error.
    Could anyone please suggest ,where can we trace its log from web server and the solution for this issue?
         Thanks,
             D.N. Rana

    Hi,
    We have already performed the changes for APS in OHS as mentioned in the solution and the path also same as under OHS.
    Intially we were getting error for "to increase netRetryCould and NetRetryInterval"  as a solution we have added below 3  registry DWORD keys under  path
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
    "KeepAliveTimeout"=dword:00180000                   (26 Minutes)
    "ReceiveTimeout"=dword:00dbba00                      (240 Minutes)
    "ServerInfoTimeout"=dword:00180000                  (26 Minutes)
    Above error resolved but then we received Error"12031"
    Now we have added above 3 DWORD keys under path HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
    and now we are not getting the  error "12031".
    But here we are not getting how it(LB issue) resolved with above solution?
    Thanks,
    D.N.Rana

  • TS1368 Has anyone found this article useful?  Any other suggestions to resolve the error, "cannot connect to the itunes store" ?

    Any other suggestions to resolve the error, "cannot connect to the itunes store" ?

    Hi paul.labiche,
    When having iTunes Store connectivity issues, the following articles provide the best solutions:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Thanks,
    Matt M.

  • Migration on active directory from 2003 to 2008 and SharePoint error Cannot connect to the configuration database.

    Hi all,
    In advance i`m thankful for your help,
    I come across a problem while migrating the Active Directory from Windows Server 2003 to Windows Server 2008 R2,
    SharePoint 2010 is getting this error Cannot connect to the configuration database. The same goes for the Administrative page,
    Nothing is change in the MySql database, same log in, same server name, i guess it have something to do with the SharePoint Farm,
    My question is will reinstalling the SharePoint do the job? Or is there an easy way to get back on my old track?
    I`ve try to sync users... no good
    PS C:\Users\administrator.SERVERM> if($configManager.IsSynchronizationRunning()
    -eq $false)
    >> {
    >> $configManager.StartSynchronization($true)
    >> Write-Host "Started Synchronizing"
    >> }
    >> else
    >> {
    >> Write-Host "Already Synchronizing"
    >> }
    >>
    Can someone explain a little bit more about this:
    6.     
    Can they talk to each other?
    Verify that SharePoint is using the correct IP address for the SQL server. To do this, run the ping command on the Windows SharePoint Services server.
    Verify that the SharePoint server is obtaining the correct IP address for the SQL server from DNS. To do this, run the
    nslookup command from the SharePoint Server.
    Make sure that there are no incorrect entries for the SQL server. To do this, examine the Hosts file on the SharePoint server. This file is in the following location:
    %systemroot%\system32\drivers\etc\Hosts
    On the SharePoint server, look for SQL client aliases. To do this, follow these steps: Click
    Start, click Run, and then type cliconfg in the
    open box.
    Click the Alias tab. By default, there are no SQL client aliases. If you have any aliases for the SQL server, verify that they are correct, or remove them.
    Open the SQL Server Configuration Manager (Start SQL Server 2008  Configuration Tools  SQL Server Configuration Manager
    Navigate to the SQL Server Network Configuration  Protocols for MSSQLSERVER node in the tree view
    Enable TCP/IP and Named Pipes (you’ll be warned that these changes will not apply until the service is shut down)
    Aleksandar Delcevski, Web-administrator School of Journalism and Public Relations Jurij Gagarin 17-1/1, 1000 Skopje, R. Macedonia t: + 389 2 3090 004 mob: +38972 257 565 [email protected]; www.vs.edu.mk; www.medium.edu.mk; www.unescochair-vs.edu.mk

    Hiya,
    I don't think it is necessary to reinstall.
    You should just confirm that your basic infrastructure is working.
    1: On the SharePoint server, open cmd and write ping <SQL server name>
    2: On the SharePoint server, open cmd and write nslookup <SQL server name>
    Basically the steps outlined here, is the best way to start:
    6.     
    Can they talk to each other?
    Verify that SharePoint is using the correct IP address for the SQL server. To do this, run the ping command on the Windows SharePoint Services server.
    Verify that the SharePoint server is obtaining the correct IP address for the SQL server from DNS. To do this, run the
    nslookup command from the SharePoint Server.
    Make sure that there are no incorrect entries for the SQL server. To do this, examine the Hosts file on the SharePoint server. This file is in the following location:
    %systemroot%\system32\drivers\etc\Hosts
    On the SharePoint server, look for SQL client aliases. To do this, follow these steps: Click
    Start, click Run, and then type cliconfg in the
    open box.
    Click the Alias tab. By default, there are no SQL client aliases. If you have any aliases for the SQL server, verify that they are correct, or remove them.
    Open the SQL Server Configuration Manager (Start SQL Server 2008  Configuration Tools  SQL Server Configuration Manager
    Navigate to the SQL Server Network Configuration  Protocols for MSSQLSERVER node in the tree view
    Enable TCP/IP and Named Pipes (you’ll be warned that these changes will not apply until the service is shut down)

  • Error : Cannot connect to the LDAP server

    I have exported a file called "test1.ldif"
    and then import in a new Oracle ldap server using the command:
    ldapadd -p 389 -D cn="directory manager" -w <password> -f test1.ldif
    But there is error "Cannot connect to the LDAP server".
    Actually, I'm migrating the ldap data from 1 machine to another, please advise. Thanks

    Check your ldap port, by default it is 4032...
    --Bill                                                                                                                                                                                                           

  • When the system status says icloud is OK but it reports "encountered an error when connecting to the server", where do you report the problem, or how do you connect?

    When the system status says icloud is OK but logon reports "encountered an error when connecting to the server", where do you report the problem, or how do you connect?

    Yes i am hoping staff here will look into things, even if i can not get the speeds back what i previously had for near 6 months it would be nice to know why i can not and why the download has dropped by around 10Mb and why my upload is now inconsistant.
    Ironically the post concerned got edited because i actually posted the full rather silly reply the Indian call centre made babbling on about down rates rather than the uprate i queried with them.
    Bit of a shambles really no real way on BTs web site to contact anyone with regards to broadband issues.
    The form which you kindly suggested and i appreciated your help ended up in the hands of someone who either did not bother to read the query or just had such a poor grasp of English they did not understand the query.
    Pretty pathetic really when BT are the largest telco in the UK. I think ill be taking my broadband business elsewhere regardless at the end of my 18 month contract, while im sure staff here are wonderful and may even yet help me, i do not particularly want to go through the almost like pulling teeth pain of getting any future issue looked at.
    They are great at quickly fixing voice line problems and have a great test on their site. Broadband side of things and support for that though seems a shambles.

  • Getting error "cannot connect to the App Store"

    getting error "cannot connect to the App Store"

    YAY!!! Saved it in my Mac's Firefox Bookmarks for easy future access!
    Hope you are having a lovely afternoon today! I'm about ready to go bobo....I have an early meeting, and I don't want to oversleep! The nice part is that I work remotely, so I only have to wake up 15 minutes or so before the meeting.... I don't even use an alarm clock anymore (really, my iPhone alarm, which is much more pleasant), unless I have to get up at 6:30 or something....
    TMI?
    GB

  • Error - Cannot connect to the phone

    Hi all,
    have had a dig around and couldn't find anything so I hoping that someone can sort me out here.
    Ok I have my phone connected to the pc via bluetooth. PC Suite picks up the phone but when I click on the Contacts or Messages (or anything in that window) it comes up with an error message saying "Cannot connect to the phone"
    I have checked the list of supported bluetooth stacks and it should be fine. I have also check the phones compatability and this should also be supported. I can also communicate with the phone through the bluetooth software itself.
    Phone: Nokia 6233
    Bluetooth: ITV Bluesoleil 5.0.5
    OS: Windows Vista
    Error: Cannot connect to the phone
    If you need anymore info or can help me with this problem in anyway, please drop us a line.
    Cheers for all your help
    Chris
    EDIT:
    Operating system:
    Microsoft Windows Vista 32-bit Edition
    Language: English
    Language for non-Unicode programs: English
    Detected Internet browsers:
    - Microsoft Internet Explorer 7.0 (Default browser)
    - Mozilla Firefox 2.0
    Detected Bluetooth stacks:
    - Microsoft (Version: 6.0.6000, Build: 16386)
    PC Connectivity Solution:
    Version 7.37.22.0
    Message Edited by chriscolden on 05-Jan-2008 02:08 AM

    Exactly same problem.
    OS: Windows XP Service Pack 2
    Phone: Nokia 6300
    PC Suite version: 6.85.14.1
    BlueSoleil Version: 1.6.1.4 (which should be the version supported by latest PC Suite software version as per Nokia web site).
    Bluetooth USB Adapter: Billionton USBBTC1A-B
    I can pair the phone with my PC and transfer files using the BlueSoleil software directly, but every time I try to use anything in the Nokia PC Suite (after pairing and authorizing the phone in PC Suite), I get the "Could not connect to the phone" error.
    When using "Help --> About Nokia PC Suite... --> Show System Info" function:
    Operating system:
    Microsoft Windows XP 32-bit Edition, Service Pack 2
    Language: English
    Language for non-Unicode programs: English
    Detected Internet browsers:
    - Microsoft Internet Explorer 7.0 (Default browser)
    - Mozilla Firefox 2.0
    Detected Bluetooth stacks:
    - Microsoft (Version: 5.1.2600, Build: 2180)
    PC Connectivity Solution:
    Version 7.37.22.0
    Why the only Bluetooth stack detected is the Microsoft one? Why is BlueSoleil stack not detected?
    How do I use Microsoft Bluetooth stack (at least to see if my Bluetooth USB Adapter works with it)??
    Is this problem going to be solved soon? Is there something I can do without the PC Suite apart from transfering files? I can't edit contacts (save changes) with PC Suite even when the .vcf files are in my PC. Is this intended?
    Thanks.
    ~JAVA

  • Error : Cannot connect to the server temporarily

    Hi,
    A particular PC is giving an error " cannot connect to the server temporarily", the user is able to login on another PC and no one is able to login to lync 2010 ( internal user ) on this particular PC.
    Options tried:
    1) Deleted sip folder under app data.
    2) Uninstall and reinstall Lync client.
    3) checked timezone and srv records.
    4) checked ping to FE and director server.
    ) checked manually adding FE on lync client.
    Your inputs/suggestions would of great help.
    Thanks.

    Is the computer join the domain?
    Run the following command to check the automatic configuration is working
    Nslookup
    >set type=srv
    >_sipinternaltls._tcp.<sip domain>.com(for internal user)
    >_sip._tls<sip domain>.com(for external user)
    If you can ping to FE, please try to sign in with manual configuration.
    Lisa Zheng
    TechNet Community Support

  • Using Aobe Photoshop Elements 6:  1.  How to download photos in the same order as on the smart card from which I downloaded them?  2.  Changing the date on each photo

    Using Adobe Photoshop Elements 6:
    1.  How can I get the 2000 photos I downloaded in the same order as on the smart card from which I downloaded them?  (This will help me label them correctly)
    2.  How can I change the date on each photo? (I want to sort by date the picture was taken, not the date it was downloaded.
    Thank you!
    Linda Berteau
    [email protected]

    You indicated that the images "seemed" to be in the right order.  It might be a good idea to rename the images on export using a custom name/sequence.  If you have done that and the images are still not in order, it's possible that your operating system browsing window is using a different sort order.  I sometimes change windows explorer to sort by file type, and then files are sometimes in what seems be a strange order.

  • What to do when you have internet connection but go to use an app, you get the Error message, 'An error occurred connecting to the server. Please make sure you have an internet connection' ?

    Yesterday, I downloaded the twoignite app. When I went to open the app to use, this error message appeared: An error occurred connecting to the server. Please make sure you have an internet connection. I checked my connection and found I had a solid connection. I have tried closing the app and reopening it; deleting the app and redownloading it (more than once); turning off my iphone and turning it back on. None of these things have worked. Thanks.

    Have you already seen this:
    http://forums.adobe.com/message/5099439#5099439
    Maybe you could also try asking in the kuler forum.

  • Re: what causes an error "not connected to the internet" when I try and e-mail photos

    I'm having the same problem with my PhotosmartC3180.  When I try to e-mail photos I get a "not connected to the internet"  message despite having a web page open at the same time.  I run the Print & Scan Doctor and it says everything is running perfectly.  Conversely, I cannot see how to save a photo at e-mail quality and I don't want to cut and paste huge pictures that will slow down the receiver's e-mail. Thanks in advance,  Wayne

    Hello WayneSchlapkohl,
    Welcome to the HP Support Forums!
    I understand that you are looking to Email a scanned photo, but do not want the file to be to large. Are you using HP software when you get the error "not connected to the internet" ? If so, What is the Operating System installed, Windows, including version, e.g. Windows 7 or Mac, including version, e.g. 10.8?
    Lowering the DPI or resolution will help keep the file size down, if you have an option for that in the software.
    Also, what is the Email client are you using, MSN, Gmail, etc?
    Cheers,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

Maybe you are looking for

  • Importing and Exporting Video VHS and MiniDV

    I just recently purchased an iMac 27-inch 3.1GHz (2TB Serial ATA Drive / 256GB Solid State Drive / 16GB Memory). I am interested in converting my family videos from my Sony camcorder (MiniDV) and VHS/DVD player. I would prefer not to spend tons of mo

  • DVI to HDMI overscan issue 1080p

    Hello, I have a LCD Samsung LE46A656 FullHD and a new macbook pro late 2008. And have the 1080p resolution sized in mac osx but on the lcd left and right a black free place. i see this thread, and a solution for 720p, now i search one for 1080p: http

  • Cisco 3702i running on a WLC 8500 Drawing low power from 2960s

    Hi ..  I keep getting alarm errors in Prime 2.1. "Access point 'AP01' associated with controller 'WLC-01' draws low power from Ethernet. Failure reason: 'The AP draws 15.4 watts from Ethernet'. Prime is running version 2.1 WC is a 8500 running softwa

  • Bank Reconciliation date

    Dear Experts SBO 2007B pl07 I am doing Manual Reconciliation for Bank. Here i want to put check realized date. Is there any Provision for check realize date? regards

  • Can't get iWork 09 functional after clean install...

    Can't get iWork 09 functional after clean install.  Could use migration assistant and restore from TM, but don't want to bring all apps...just iWork suite.  Original purchased iWork via a trial download, then paid for license.  Here is my error messa