Debug applets

I am using Sun Java Studio Enterprise Version 8 and I'm wandering if anybody knows the best way to debug a mixed applet/Servlet environment. I am able to debug the servlets running on tomcat without any problems but the applets are not setup to debug. Any ideas on the best way to setup this environment? I appreciate the help.

From the ide field guide:
http://usersguide.netbeans.org/files/documents/40/70/Chapter6-WebApps-Tomcat.pdf
NetBeans IDE does not have a specific project type for applets, so the development cycle for applets is a little different than for other types of projects. You can not designate an applet as a main project, which means that several project-specific commands (such as Run Project) do not apply to applets. However, you can still create, test, and deploy applets fairly easily. The general outline of applet development is as follows:
1. Create a Java Library project to hold the applet.
2. Create an applet from one of the templates in the New File wizard and fill in code for the applet.
3. Test the applet in the JDK's applet viewer by right-clicking the applet's node in the Projects window and choosing Run File.
4. Create a JAR file for the applet by right-clicking the applet's project node and choosing Build Project.
5. If you want to add the applet to a Web application, add the applet's project (or just the applet's JAR file) through the Web project's Libraries node.
...To run an applet, right-click the applet's node in the Projects window and choose Run File. To start debugging an applet:
1. Set a breakpoint in the code by selecting the line where you first want execution to pause and press Ctrl-F8.
2. Right-click the applet's node in the Projects window and choose Debug File.
Therefore the suggested approach seems to be debug the applet separately.
Also of possible interest:
http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=53777
Simply open the applet class in the editor and choose "Debug File"
(normally it is Ctrl-Shift-F5 or menu "Run > Run File > Debug
foo.java"). The applet viewer comes up and breakpoints that I have set
in the IDE are perfectly hit.
http://www.netbeans.org/kb/41/tutorial-applets.html#runanddebug

Similar Messages

  • Debug applet embedded in jsp using tomcat and eclipse

    I am trying to debug applet embeded in jsp. I have deployed my application on tomcat.
    The steps I followed
    1. Added JVM rumtime parameters in Java plugin control panel
    -Djava.compiler=NONE -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=localhost:8000,suspend=n
    2. Added JPDA_ADDRESS = localhost:8000 and JPDA_TRANSPORT=dt_socket to catlina.bat
    3. I start my server from commandline prompt "catalina.bat JPDA start"
    4.I have made a new configuration for remote debug in eclipse debug>new> connection type (socket attach) >port 8000
    5. when I open my application url in browser browser closes and command prompt displays "*Debugger failed to attach , timeout before handshake*"
    Any help on this ?
    Thanks in advance

    Personally, I have no knowledge about Applet but have you checked this link?
    [http://blogs.sun.com/thejavatutorials/entry/deployment_toolkit_101|http://blogs.sun.com/thejavatutorials/entry/deployment_toolkit_101]

  • Problem on debug Applet

    hi all,
    i am developing an user debugger which is used to debug Applet.
    problem is, the Applet debugged must be in same directory as the debugger, simply says, the command must be:
    appletviewer MyApplet
    or
    java sun.applet.AppletViewer MyApplet
    i need following command work:
    appletviewer file:/c:\folder\MyApplet
    because normally debugger is not in the same directory as Applet debugged.
    how to solve the problem?
    i guess i have to develop my own AppletViewer, but how to do?
    thx

    i fix it.

  • How to debug applets

    I'm a new at this.
    Can anyone suggest of a way to debug applets. I'd love
    to trace through statements in the code. How can I do it?
    Thanks in advance.

    Look into documentation provided by your IDE, it should provide example on how to dynamically debug an applet. Typically you would provide the html file (that loads the applet) name as a configuration parameter
    HTH

  • Problem to debug applet, please help...

    i use windows.
    there are 3 files under "c:\current" directory, they are
    file 1. mem_appletviewer.bat - with content:
    "e:\install\java\jdk1.3.1_05\bin\appletviewer" -J-Xdebug -J-Xrunjdwp:transport=dt_shmem,address=conn001122,server=y,suspend=y test.htm
    file 2. mem_jdb.bat - with content:
    "e:\install\java\jdk1.3.1_05\bin\jdb" -attach conn001122
    file 3. test.htm - with applet tag:
    <applet
    code="Let0.class"
    codebase="G:\Victor\Vc5060\Develop\JCity\files\RecentFile"
    width=400 height=250 ></applet>
    (Let0.class is a simplest class extends Applet)
    please note, codebase is not "c:\current" directory
    problems happend when i debug: (run mem_appletviewer.bat first then mem_jdb.bat)
    a) if move Let0.class to "c:\current" directory, debug is fine but test.htm can not load Let0.class itself because of codebase tag.
    b) if move Let0.class to codebase directory (G:\Victor\Vc5060\Develop\JCity\files\RecentFile), test.htm can load the class but appletviewer can not load the class (can not find Let0.class).
    ===========================================================
    in my application, i need to put Let0.class in codebase directory.
    Question:
    1) how to set -classpath for appletviewer (as debug application class in java.exe )? is it possible?
    2) codebase TAG in test.htm doesn't work for appletviewer, what is problem? how to fix it?
    totally:
    how to debug Let0.class if it is in codebase directory (not in "c:\current")?
    thx

    i fix it.

  • Debugging / applets on websites

    Dear All
    This is probably a horrifically stupid question, I am trying to add Java code to my website and as expected it doesn't work. However, how do I debug and find out where exactly it's going wrong?
    When I upload the html to the site it simply says "failed to load applet" but I have no idea why.
    Is there any way to debug or do I have to work blind?
    Cheers
    Dan

    Hi Kai
    Here are the contents of my Java Console.
    First of all it can find my "Main.class" that's the biggest problem!
    It is in the same directory as all the html and the page that loads it.
    Do I need to give more info as to where the class is?
    Laden: Klasse ["Main.class"] nicht gefunden
    java.lang.ClassNotFoundException: ["Main.class"]
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Exception in thread "Thread-25" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception in thread "thread applet-["Main.class"]" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • Java - Eclipse debug applet with System.out.print in jboss console

    I use System.out.print to debug my java programs using Eclipse. I'm new
    with applets, and when nothing showed up in the applet window, I tried
    using print statements. I was expecting to see them in the jboss console like
    always, but there was nothing there. I tried looking this problem up
    online and found nothing. Does anyone know how I can use print
    statements to debug my applet? (Japplet to be specific).

    System.out.println works for me. The output statment are visible in the Console Window within Eclipse.

  • Debugging applet with Netbeans IDE 3.6

    First of all,hoi to everyone,this in an excellent forum.
    I guess this is the appropiate subforum to post my query,if not feel free to move it.
    Well let's go,i'm developing an applet,using Netbeans IDE 3.6.Problem is,i can't debug it.. i've set in the .class file of the applet the properties that are needed (applet debugger),but it doesnt work.
    It just executes the applet normally,without debugging.
    I was using opera 7.51 as browser,but 've switched to IE for better compatibility..so it isnt the problem.
    Any idea of what should i do ?
    Thanks

    Hi,
    Refer http://www.netbeans.org/kb/faqs/debugger.html#FAQ_6
    -Amol

  • How to debug applet on Microsoft JVM

    Hi,
    Right now I have a Java applet application written by Visual J++ and running on Microsoft's JVM. OS is WinXP SP2 with IE 6.
    I want to write an external application to get the data from applet when Text Field's value is changed and also want to simulate to click button, input text, and press keyboard to applets.
    I can make it if the Java applet application is running on Sun's JVM. It is because Sun provides JVMDI (Java Virtual Machine Debug Interface) and JNI (Java Native Interface) to monitor and control applets in browser. We can configure Java Plug-in to inject a DLL into IE browser to get the Sun's JVM runtime environment and then use JNI to operate Java objects. I have written several external applications for Sun's JVM using JRE 1.4.2_xx. And they work well.
    But for Microsoft JVM I don't know if I can do the same thing. I wonder if Microsoft has the same interfaces or has another mechanism to handle this.
    Any helps will be highly appreciated. Thanks.

    the applet is in jar form right? that jar is just another bit of static content your site delivers, much like an image. put it in a folder inside your server-side application, where you put other static content, and link to it with a URL
    for the future, you're better off not telling people how urgent your problem is - it's only urgent to you, and doing that can put people off answering at all

  • AccessControlException in debugging Applet

    I tried to debug famous clock2 Applet in
    JDeveloper3/JDK 1.2.2.
    Whenever executing the statement
    "timer = new Thread(this);" exception
    AccessControlException:acces denied (java.runtimePermission modifyThreadGroup)
    will be raised in appletviewer.
    This happens also to other applets trying to
    run themselve as a thread.
    running the applet from Jdev works fine as
    does running directly in browser or appletviewer.
    Any ideas?

    Seems a little odd that a WEB applet can't interact
    with other WEBsites, oh well, thanks for your quick
    response :DNot really. It is a good security restriction.
    You can connect to any website you want from an application. But better to restrict an applet I think.

  • Debug an applet that has a run-time (logic) error how?

    hi,
    I have an applet that has a non-terminating loop in it...I found it after eye-balling my code.
    How would one debug an applet? I have bought sooooo many books on java, & NONE provide/identify a process for debugging applets. I use JTextPad & would appreciate a method i can use to debug applets....ppppllleezzzz

    TheStijn is correct about stepping thru code - you'd need a development environment. However, the better of these for use in a commercial environment are usually expensive (>$1000). The free ones are not so good (although given that WSAD is based on Eclipse and I think WSAD is pretty good, maybe you could go for Eclipse). They also take some time to get to grips with.
    You could instead litter your code with System.out.println() statements to see what it is doing. These can be viewed from the browser's Java console. On IE, you enable the console by doing Tools > Internet Options > Advanced. Scroll down to "Microsoft VM" and select "Java Console enabled". Then the console is visible (after re-starting IE) from the View menu (at the bottom).
    With Netscape (4.7), you do Communicator > Tools > Java Console. You can also view it on other browsers thru similar mechanisms. Hope this helps in the short-term.

  • Applet Debug in IE

    HI,
    Can I debug my applet embeded in Internet Explore?

    Some IDE's will allow you to debug applets using appletviewer. This is outside of the browser.
    If you need to debug in the browser, enable the java console (in control panel) and use system.out.println() to print messages and variables to that console. The console will show up as a coffee cup in the system tray.

  • Applet being a bit uncorporative

    the program compiles fine but then when i try and run it comes out with this error message and says the applet has failed, any help would me much appreciated
    deps-jar:
    Compiling 1 source file to C:\Documents and Settings\Darren\My Documents\NetBeansProjects\ClientServer\build\classes
    compile-single:
    java.lang.NullPointerException
    at java.awt.Container.addImpl(Container.java:1027)
    at java.awt.Container.add(Container.java:903)
    at Client.init(Client.java:55)
    at sun.applet.AppletPanel.run(AppletPanel.java:425)
    at java.lang.Thread.run(Thread.java:619)
    debug-applet:
    BUILD SUCCESSFUL (total time: 5 seconds)
    import java.io.*;
    import java.net.*;
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    public  class  Client  extends  Applet  implements ActionListener, Runnable
            Thread programThread;
            TextField  output;
            Button confirmation;
         Label description,description2;
            Checkbox eggFriedRice,chowMein,chopSuey,vermicelli;
            Checkbox pork, chicken,vegetable,prawn,fish;
            CheckboxGroup radioGroup;
            DecimalFormat pounds = new DecimalFormat ("�###,##0.00");
         public  void  init() {
            setLayout(new BorderLayout());    
            radioGroup = new CheckboxGroup();
            description  =  new Label("Please choose one main dish");
            eggFriedRice= new Checkbox("Egg Fried Rice",radioGroup,true);
            chowMein= new Checkbox("chow Mein",radioGroup,false);
            chopSuey = new Checkbox("Chop Suey",radioGroup,false);
            vermicelli = new Checkbox("Vermicelli",radioGroup,false);
            description2 = new Label ("Please choose some ingredients");
            pork = new Checkbox("Pork",false);
            chicken = new Checkbox("Chicken",false);
            prawn = new Checkbox("Prawn",false);
            fish = new Checkbox("Fish",false);
            confirmation = new Button("Enter");
            output  =  new  TextField(70);
            add(description,"Center");
            add(eggFriedRice,"Center");
            add(chowMein,"Center");
            add(chopSuey,"Center");
            add(vermicelli,"Center");
            add(description2,"Center");
            add(pork,"Center");
            add(chicken,"Center");
            add(vegetable,"Center");
            add(prawn,"Center");   
            add(fish,"Center");  
            add(confirmation,"South");
            add(output,"South");
            programThread= new Thread(this);
            programThread.start();
            confirmation.addActionListener(this);
         public void run()
            String mainDish;  
              if (eggFriedRice.getState()) mainDish = "egg fried rice";   
              else if (chowMein.getState()) mainDish = "chow mein";
              else if (chopSuey.getState()) mainDish = "chop suey";
              else mainDish = "vermicelli"; 
              String ingredient1;
              if(pork.getState()) ingredient1 = "pork";
              else ingredient1 = "";
              String ingredient2;
              if (chicken.getState()) ingredient2 = "chicken";
              else ingredient2 = "";
              String ingredient3;
              if (vegetable.getState()) ingredient3 = "vegetables";
              else ingredient3 = "";
              String ingredient4;
              if (prawn.getState()) ingredient4 = "prawn";
              else ingredient4 = "";
              String ingredient5;
              if (fish.getState()) ingredient5 = "fish";
              else ingredient5 = "";
               boolean egg = eggFriedRice.getState();
               boolean chow = chowMein.getState();
               boolean chop = chopSuey.getState();
               boolean verm = vermicelli.getState();
               boolean pork1 = pork.getState();
               boolean chick = chicken.getState();
               boolean veg = vegetable.getState();
               boolean prawn1 = prawn.getState();
               boolean fish1 = fish.getState();
              try
                   Socket  cts  =  new
                   Socket(getCodeBase().getHost(),  6000);
                DataInputStream  isfs  =  new DataInputStream(cts.getInputStream());
                DataOutputStream  osts  =  new DataOutputStream(cts.getOutputStream());
                   osts.writeBoolean(egg);
                   osts.flush();
                   osts.writeBoolean(chow);
                   osts.flush();
                   osts.writeBoolean(chop);
                   osts.flush();
                   osts.writeBoolean(verm);
                   osts.flush();
                   osts.writeBoolean(pork1);
                   osts.flush();
                   osts.writeBoolean(chick);
                   osts.flush();
                   osts.writeBoolean(veg);
                   osts.flush();
                   osts.writeBoolean(prawn1);
                   osts.flush();
                   osts.writeBoolean(fish1);
                osts.flush();
                double circf  = isfs.readDouble();
    String message = "Your order of" + " " + mainDish+ " "+ "with"+ " "+ ingredient1+" "+ ingredient2+  " "+ ingredient3+" "+ ingredient4+" "+ ingredient5+" "+ "costs" + " "+(pounds.format(circf));
    output.setText(message); 
    } catch (IOException ex) {
    System.out.println(ex);
         public  void  actionPerformed (ActionEvent  ev)  {
          if(ev.getSource()==confirmation) {          
          run();    
    }

    at Client.init(Client.java:55You add something on the line 55. That 'something' is null, i.e. it is not instantiated.

  • JApplet debugging problem

    Hi there all:
    I'm having a problem with debugging a JApplet. I created a new workspace, project and applet and didn't make any changes to anything. When I try to debug the applet, I get these messages:
    System Error: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup )
    System Error: java.lang.Object java.lang.Class.newInstance0()
    System Error: java.lang.Object java.lang.Class.newInstance()
    System Error: java.applet.Applet sun.applet.AppletPanel.createApplet(sun.applet.AppletClassLoader)
    System Error: void sun.applet.AppletPanel.runLoader()
    System Error: void sun.applet.AppletPa
    System Error: nel.run()
    System Error: void java.lang.Thread.run()
    If I change the object from a JApplet class to an Applet class, I can debug just fine.
    Anyone know what's going on here?
    Thanks
    Jeff

    Me again. Was doing some searching on the net about this one since I've gotten no response.
    Found this at Inprise (Borland) about a debugging problem with JBuilder3 (I assume that the base of jdev is still JBuilder).
    http://community.borland.com/article/0,1410,19739,00.html
    To quote from their document--------
    Question:
    I can't seem to debug Applets with JBuilder3 Standard. If I attempt to debug my Applet
    I recieve the following error:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission
    modifyThreadGroup )
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:195)
    at java.security.AccessController.checkPermission(AccessController.java:403)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    Why?
    Answer:
    In a nutshell this is an installation problem with JBuilder3 Standard edition.
    The install for JBuilder3 Standard did not provide the file 'DebugApplet.policy'.
    To resolve this problem download the file from the following URL:
    http://www.borland.com/devsupport/jbuilder/downloads/DebugApplet.policy
    After you have downloaded the file, copy the file to your JBuilder3\bin directory.
    This will fix the problem.
    You can also cut and paste the following:
    (NOTE: create the file DebugApplet.policy in your JBuilder3\bin directory)
    //DebugApplet.policy
    // These policy permissions are needed for the AppletViewer used by sun.tools.debug.
    grant {
    permission java.lang.RuntimePermission "accessClassInPackage.*";
    permission java.lang.RuntimePermission "modifyThread";
    permission java.lang.RuntimePermission "modifyThreadGroup";
    permission java.net.SocketPermission "*", "accept, connect, listen, resolve";
    permission java.util.PropertyPermission "appletviewer.version", "read";
    permission java.io.FilePermission "<>", "read";
    permission java.security.AllPermission;
    Could this be a problem in JDev3 too?
    Jeff
    null

  • I cannot load my java card applet Response APDU: 69 85

    I know there have been many threads on this subject, I am a newbie to Java card development.
    Please someone help me.
    I am using the gpj for downloading the applet.
    The following is the output from the command "java -jar gpj.jar -load JCHelloWorld.cap -install"
    Thanks in advance
    run:
    Found terminals: [PC/SC terminal Generic PCSC Smartcard Reader 0]
    Found card in terminal: Generic PCSC Smartcard Reader 0
    ATR: 3B DB 96 00 80 B1 FE 45 1F 83 00 31 C0 64 C7 FC 10 00 01 90 00 74
    INFO: Selecting Security Domain OP201a, AID=A000000003000000
    DEBUG: Command APDU: 00 A4 04 00 08 A0 00 00 00 03 00 00 00
    DEBUG: Response APDU: 6F 6E 84 08 A0 00 00 00 03 00 00 00 A5 62 73 2F 06 07 2A 86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B 02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B 06 09 2A 86 48 86 FC 6B 04 01 05 9F 6E 2A 48 20 50 2B 82 31 80 30 00 63 03 12 63 00 07 BB 03 00 11 42 12 97 11 43 12 97 11 44 12 97 01 00 00 00 00 00 00 00 00 00 00 00 9F 65 01 FF 90 00
    Successfully selected Security Domain OP201a A0 00 00 00 03 00 00 00
    DEBUG: Command APDU: 80 50 00 00 08 FC 81 DB FE 80 72 19 28
    DEBUG: Response APDU: 00 00 03 12 63 00 07 BB 03 00 FF 01 DA 26 EF 49 10 B7 72 00 9A 24 7F B4 A0 1F C7 C8 90 00
    INFO: INITIALIZE UPDATE Successful
    DEBUG: Command APDU: 84 82 00 00 10 D5 41 CE BE F4 A8 E4 DD 36 6C C5 3E 19 9C 77 93
    DEBUG: Response APDU: 90 00
    DEBUG: Command APDU: 84 82 00 00 08 D5 41 CE BE F4 A8 E4 DD
    DEBUG: Response APDU: 90 00
    INFO: External Authentication Successful
    DEBUG: packagePath: com/samptah/card/javacard/
    DEBUG: package: com.samptah.card
    DEBUG: package AID: 9C 25 F6 5E AB 3F
    DEBUG: applet AIDs: [9C 25 F6 5E AB CD ]
    DEBUG: Command APDU: 80 E6 02 00 13 06 9C 25 F6 5E AB 3F 08 A0 00 00 00 03 00 00 00 00 00 00
    DEBUG: Response APDU: 00 90 00
    DEBUG: Command APDU: 80 E8 00 00 FF C4 82 01 4C 01 00 10 DE CA FF ED 01 02 04 00 01 06 9C 25 F6 5E AB 3F 02 00 1F 00 10 00 1F 00 0A 00 15 00 2E 00 0C 00 7F 00 18 00 12 00 00 00 6F 00 02 00 01 00 0B 02 01 00 04 00 15 02 04 01 07 A0 00 00 00 62 01 01 00 01 07 A0 00 00 00 62 00 01 03 00 0A 01 06 9C 25 F6 5E AB CD 00 08 06 00 0C 00 80 03 00 FF 00 07 01 00 00 00 1C 07 00 7F 00 01 10 18 8C 00 00 7A 05 30 8F 00 01 3D 8C 00 02 18 1D 04 41 18 1D 25 8B 00 03 7A 02 23 18 8B 00 04 60 03 7A 19 8B 00 05 2D 1A 03 25 11 00 FF 53 5B 32 1A 04 25 11 00 FF 53 5B 29 04 1F 10 80 6A 08 11 6E 00 8D 00 06 16 04 75 00 10 00 01 00 00 00 09 18 19 8C 00 07 70 08 11 6D 00 8D 00 06 7A 05 22 19 8B 00 05 2D 7B 00 08 92 32 7B 00 08 03 1A 03 1F 8D 00 09 3B 19 03 1F 8B 00 0A 7A 08 00 18 00 02 00 01 00 01 03 00 0B 48 65 6C 6C
    DEBUG: Response APDU: 69 85
    net.sourceforge.gpj.cardservices.exceptions.GPLoadException: Load failed, SW: 69 85
    at net.sourceforge.gpj.cardservices.GlobalPlatformService.loadCapFile(GlobalPlatformService.java:707)
    at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(GlobalPlatformService.java:1675)
    at gpj.Main.main(Main.java:26)
    BUILD SUCCESSFUL (total time: 1 second)

    Quite similar problem here. Here's what I got from GPShell:
    enable_trace
    establish_context
    card_connect
    select -AID a0000000030000
    Command --> 00A4040007A0000000030000
    Wrapped command --> 00A4040007A0000000030000
    Response <-- 6F658408A000000003000000A5599F6501FF9F6E06479181023100734A06072A864
    886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B0
    40215650B06092B8510864864020103660C060A2B060104012A026E01029000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
    f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    Command --> 805000000804C1C46CBC9932AA00
    Wrapped command --> 805000000804C1C46CBC9932AA00
    Response <-- 000010700108859552580101AA4F3AEC5503E7A7435A0560E047AF489000
    Command --> 84820100100C2766279A1FC158181037B7A811AB93
    Wrapped command --> 84820100100C2766279A1FC158181037B7A811AB93
    Response <-- 9000
    delete -AID D0D1D2D3D4D50101
    Command --> 80E400000A4F08D0D1D2D3D4D5010100
    Wrapped command --> 84E40000124F08D0D1D2D3D4D501014018673D5E89975900
    Response <-- 6A88
    delete() returns 0x80206A88 (6A88: Referenced data not found.)
    delete -AID D0D1D2D3D4D501
    Command --> 80E40000094F07D0D1D2D3D4D50100
    Wrapped command --> 84E40000114F07D0D1D2D3D4D501887135A5C0B424D500
    Response <-- 6A88
    delete() returns 0x80206A88 (6A88: Referenced data not found.)
    delete -AID D0D1D2D3D4D50101
    Command --> 80E400000A4F08D0D1D2D3D4D5010100
    Wrapped command --> 84E40000124F08D0D1D2D3D4D501017144DF5DE0D2DE9F00
    Response <-- 6A88
    delete() returns 0x80206A88 (6A88: Referenced data not found.)
    install -file helloworld.cap -nvDataLimit 500 -instParam 00 -priv 2
    Command --> 80E602001907D0D1D2D3D4D50107A00000000300000006EF04C60201600000
    Wrapped command --> 84E602002107D0D1D2D3D4D50107A00000000300000006EF04C602016000
    C6EDAE8F91652A3B00
    Response <-- 6A88
    install_for_load() returns 0x80206A88 (6A88: Referenced data not found.)And this is what I've got from gpj
    Found terminals: [PC/SC terminal ACS ACR1281 1S Dual Reader ICC 0, PC/SC termina
    l ACS ACR1281 1S Dual Reader PICC 0, PC/SC terminal ACS ACR1281 1S Dual Reader S
    AM 0]
    Found card in terminal: ACS ACR1281 1S Dual Reader ICC 0
    ATR: 3B F8 18 00 00 81 31 FE 45 4A 43 4F 50 76 32 34 31 BC
    DEBUG: Command  APDU: 00 A4 04 00 07 A0 00 00 01 51 00 00
    DEBUG: Response APDU: 6A 82
    Failed to select Security Domain GP211 A0 00 00 01 51 00 00 , SW: 6A 82
    DEBUG: Command  APDU: 00 A4 04 00 08 A0 00 00 00 18 43 4D 00
    DEBUG: Response APDU: 6A 82
    Failed to select Security Domain GemaltoXpressPro A0 00 00 00 18 43 4D 00 , SW:
    6A 82
    DEBUG: Command  APDU: 00 A4 04 00 08 A0 00 00 00 03 00 00 00
    DEBUG: Response APDU: 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65 01 FF 9F 6
    E 06 47 91 81 02 31 00 73 4A 06 07 2A 86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86
    FC 6B 02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B 06 09 2A 86 48 86 FC 6B
    04 02 15 65 0B 06 09 2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04 01 2A 0
    2 6E 01 02 90 00
    Successfully selected Security Domain OP201a A0 00 00 00 03 00 00 00
    DEBUG: Command  APDU: 80 50 00 00 08 A5 6A EB 5F E3 31 30 37
    DEBUG: Response APDU: 00 00 10 70 01 08 85 95 52 58 01 01 2E 43 22 1A A3 0A 65 4
    0 AA 8B D1 2A D5 89 8D 70 90 00
    DEBUG: Command  APDU: 84 82 00 00 10 B8 3A E1 AD 36 01 D8 E3 5F CC 77 B4 A7 F2 B
    E 68
    DEBUG: Response APDU: 90 00
    DEBUG: Command  APDU: 84 82 00 00 08 B8 3A E1 AD 36 01 D8 E3
    DEBUG: Response APDU: 90 00
    DEBUG: packagePath: com/tru/card/javacard/
    DEBUG: package: com.tru.card
    DEBUG: package AID: C3 79 3E 65 A1 00 EB F3 FD 20
    DEBUG: applet AIDs: [C3 79 3E 65 A1 C9 85 3B ]
    DEBUG: Command  APDU: 80 E6 02 00 17 0A C3 79 3E 65 A1 00 EB F3 FD 20 08 A0 00 0
    0 00 03 00 00 00 00 00 00
    DEBUG: Response APDU: 00 90 00
    DEBUG: Command  APDU: 80 E6 02 00 17 0A C3 79 3E 65 A1 00 EB F3 FD 20 08 A0 00 0
    0 00 03 00 00 00 00 00 00
    DEBUG: Response APDU: 00 90 00
    DEBUG: Command  APDU: 80 E8 00 00 FF C4 82 04 32 01 00 14 DE CA FF ED 01 02 04 0
    0 01 0A C3 79 3E 65 A1 00 EB F3 FD 20 02 00 1F 00 14 00 1F 00 0C 00 15 00 86 00
    12 02 CE 00 0A 00 53 00 00 00 F9 00 00 00 00 00 00 02 01 00 04 00 15 02 04 01 07
    A0 00 00 00 62 01 01 00 01 07 A0 00 00 00 62 00 01 03 00 0C 01 08 C3 79 3E 65 A
    1 C9 85 3B 00 01 06 00 12 00 80 03 0C 00 06 04 04 00 00 00 0C FF FF FF FF 01 27
    07 02 CE 00 02 30 8F 00 0C 3D 8C 00 0E 3B 7A 01 10 18 8C 00 0D AD 00 8B 00 0F 7A
    05 10 18 8C 00 10 18 10 08 88 01 18 11 3F 02 89 02 18 11 3F 03 89 03 18 11 3F 0
    4 89 04 18 11 3F 05 89 05 18 8B 00 1E 18 10 08 90 0B 3D 03 10 54 38 3D 04 10 52
    38 3D 05 10 55 38 3D 06 10 53 38 3D 07 10 4D 38 3D 08 10 41 38 3D 10 06 10 52 38
    3D 10 07 10 54 38 87 06 18 10 06 90 0B 3D 03 10 54 38 3D 04 10 53 38 3D 05 10 4
    3
    DEBUG: Response APDU: 6A 80
    DEBUG: Command  APDU: 80 E8 00 00 FF C4 82 04 32 01 00 14 DE CA FF ED 01 02 04 0
    0 01 0A C3 79 3E 65 A1 00 EB F3 FD 20 02 00 1F 00 14 00 1F 00 0C 00 15 00 86 00
    12 02 CE 00 0A 00 53 00 00 00 F9 00 00 00 00 00 00 02 01 00 04 00 15 02 04 01 07
    A0 00 00 00 62 01 01 00 01 07 A0 00 00 00 62 00 01 03 00 0C 01 08 C3 79 3E 65 A
    1 C9 85 3B 00 01 06 00 12 00 80 03 0C 00 06 04 04 00 00 00 0C FF FF FF FF 01 27
    07 02 CE 00 02 30 8F 00 0C 3D 8C 00 0E 3B 7A 01 10 18 8C 00 0D AD 00 8B 00 0F 7A
    05 10 18 8C 00 10 18 10 08 88 01 18 11 3F 02 89 02 18 11 3F 03 89 03 18 11 3F 0
    4 89 04 18 11 3F 05 89 05 18 8B 00 1E 18 10 08 90 0B 3D 03 10 54 38 3D 04 10 52
    38 3D 05 10 55 38 3D 06 10 53 38 3D 07 10 4D 38 3D 08 10 41 38 3D 10 06 10 52 38
    3D 10 07 10 54 38 87 06 18 10 06 90 0B 3D 03 10 54 38 3D 04 10 53 38 3D 05 10 4
    3
    DEBUG: Response APDU: 6A 80
    net.sourceforge.gpj.cardservices.exceptions.GPLoadException: Load failed, SW: 6A
    80
            at net.sourceforge.gpj.cardservices.GlobalPlatformService.loadCapFile(Un
    known Source)
            at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(Unknown S
    ource)
    javax.smartcardio.CardNotPresentException: No card present
            at sun.security.smartcardio.TerminalImpl.connect(Unknown Source)
            at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(Unknown S
    ource)
    Caused by: sun.security.smartcardio.PCSCException: SCARD_W_REMOVED_CARD
            at sun.security.smartcardio.PCSC.SCardConnect(Native Method)
            at sun.security.smartcardio.CardImpl.<init>(Unknown Source)
            ... 2 more
    Found card in terminal: ACS ACR1281 1S Dual Reader PICC 0
    java.lang.NullPointerException
            at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(Unknown S
    ource)
    javax.smartcardio.CardNotPresentException: No card present
            at sun.security.smartcardio.TerminalImpl.connect(Unknown Source)
            at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(Unknown S
    ource)
    Caused by: sun.security.smartcardio.PCSCException: SCARD_W_REMOVED_CARD
            at sun.security.smartcardio.PCSC.SCardConnect(Native Method)
            at sun.security.smartcardio.CardImpl.<init>(Unknown Source)
            ... 2 more
    Found card in terminal: ACS ACR1281 1S Dual Reader SAM 0
    java.lang.NullPointerException
            at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(Unknown S
    ource)What can I do to fix this? Did I missed any steps? Thanks for any reply.

Maybe you are looking for

  • I need to get email for this company. Please help me.

    Thanks Apple! you lost me like a good customer.

  • Windows 7 and the W500

    Not sure what the latest info is with regards to Windows 7 and the W500 but today I reinserted my 160GB hard drive and installed Windows 7 Pro x64 (RTM) on it, I was surprised to see that everything except for the modem driver, figerprint, and audio

  • Dvd drive won't mount disks

    My dvd/cd super drive will not mount or burn dvd disks. Cds are able to mount and burn. This is a new issue that started after my Apple Care expired six months ago... Any suggestions? Thanks. G5   Mac OS X (10.4.9)   1.8 Ghz PowerPC G5 single process

  • Modified plugin, but change doesn't seem to be reflected

    Hi, I have a simple plugin. It shows the filesystems (name, used, avail, ..) on a host. It was working fine. Today I added the mount point column to the filesystem metric, redeployed it, but it is not reflecting the change?! Also, the configuration d

  • How to debug DB Adapter

    Hi, In our production DB we have a DB Adapter (SOA Suite 10.1.3.5.0) which seems suddenly stopped polling a table for records. For the OC4J instance i have set the following loglevels; oracle.tip.esb.server.dispatch =FINEST oracle.tip.esb.server.serv