Problem in calling .so file  in Linux

HI
i am creating one native library in Linux machine. Then I make my application as .jar file .
The application is located on Windows machine. Then i run my apllication on Linux.
But when i am calling the native library it gives java.lang.UnsatisfiedLinkError -- Intialize()
.i set the environment path as LD_LIBRARY_PATH =/usr/lib.
What's the problem?
Thanks & Regards
B.Anantharamu

HI
this is the detailed error msg. InitializePrinter is native method. whats the problem?
java.lang.UnsatisfiedLinkError: InitializePrinter
at com.eaglelot.gamehawker.terminalAPI.GameHawker.InitializePrinter(Native Method)
at com.eaglelot.gamehawker.terminalAPI.GHTerminalCommn.printLottoTicket(GHTerminalCommn.java:169)
at com.eaglelot.gamehawker.games.PnlLottoGame.printTicket(PnlLottoGame.java:698)
at com.eaglelot.gamehawker.games.PnlLottoGame.ticketWager(PnlLottoGame.java:665)
at com.eaglelot.gamehawker.games.PnlLottoGame.printActionPerformed(PnlLottoGame.java:611)
at com.eaglelot.gamehawker.games.PnlLottoGame.actionPerformed(PnlLottoGame.java:342)
at com.eaglelot.gamehawker.games.PnlLottoGame.actionPerformed(PnlLottoGame.java:314)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Similar Messages

  • Problem in opening pdf file in linux

    how can i open a pdf file in linux(openSuse)..i can open .doc, .xls, .pdf in windows using the code.. its working fine..
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + path_of_PDF);like that i want to open in linux...
    i would be very grateful to you and i need help..plz
    plz............
    Thanks in Advance....

    I've used code like
    File path=new File("/home/RichHelp.pdf");                Runtime.getRuntime().exec("Desktop.getDesktop().open()"+path);i'm getting these errors
    java.io.IOException: Cannot run program "Desktop.getDesktop().open()/home/RichHelp.pdf": java.io.IOException: error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
    at java.lang.Runtime.exec(Runtime.java:593)
    at java.lang.Runtime.exec(Runtime.java:431)
    at java.lang.Runtime.exec(Runtime.java:328)
    at richwoods.MasterScreen.actionPerformed(MasterScreen.java:795)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1216)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1257)
    at java.awt.Component.processMouseEvent(Component.java:6038)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
    at java.awt.Component.processEvent(Component.java:5803)
    at java.awt.Container.processEvent(Container.java:2058)
    at java.awt.Component.dispatchEventImpl(Component.java:4410)
    at java.awt.Container.dispatchEventImpl(Container.java:2116)
    at java.awt.Component.dispatchEvent(Component.java:4240)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
    at java.awt.Container.dispatchEventImpl(Container.java:2102)
    at java.awt.Window.dispatchEventImpl(Window.java:2429)
    at java.awt.Component.dispatchEvent(Component.java:4240)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
    ... 31 more

  • Problem while  calling PDF file from java

    Hi,
    In my Java standalone application i need show PDF files.
    By using following code I can be able to show PDF files.
    String theUrl=""//location of the
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + theUrl);
    This is working fine with Acrobat 5, Acrobat 6 and Acrobat 7.
    But problem with Adobe Acrobat 8
    Cant be able to show PDF files using the above code.
    Please help me to resolve to this issue.
    Thanks & Regards
    TKR

    I have the exact same problem as TKR. How do we fix the problem so ADOBE 8.1.2 will work for PDF files?

  • Question about calling batch file by using the System Exec+.vi?

    Hi
    I have a problem about calling batch file. I know that the system exec is equivalent to "run" in Windows. I called the batch file c:\rtxdos\bs\ch0.bat successfully in the "run" but it didn't work in the LabVIEW program. The dos prompt had an error message "Bad command or file name" and it just happen when I call this batch file in LabVIEW. Why?
    Bill.

    Hi,
    Try to set the "working directory" parameter of System exec.vi to the directory where the batch file is located. It may help.
    Good luck.
    Oleg Chutko.

  • Problem while generating file in linux server

    I am generating one text file in windows server by using UTL_FILE .after completion of line it is coming to next line properly.
    When i am generating the same file in linux server by using UTL_FILE. It is not going to next line after the end of file.Instead of that it is showing one BOX symbol .After that it is not moving to next line.it is continuing with that box
    for example:
    I generated the file in Windows server the output is
    "number name age
    number name age
    etc..."
    If I am generating the same file LINUX server the output is
    "number name age 'Box symbol' number name age'Box symbol'etc..."
    please help me out.....i have to submit this job in the next 12 hours....

    M_FIELD_VALUE := SUBSTR(M_FIELD_VALUE,1,C6_REC.DFCS_FIELD_SIZE);
                        IF (NVL(LENGTH(M_ROW_VALUE),0) + NVL(LENGTH(M_FIELD_VALUE),0)) < 32000 THEN
                        M_ROW_VALUE := M_ROW_VALUE || M_FIELD_VALUE;
    END IF;
    END LOOP; End Column Loop D
    UTL_FILE.PUT_LINE(M_FILE_HANDLE,M_ROW_VALUE);------here I am printing the row in text format

  • EPS-file: How to preserve resource fork when moving file to Linux

    Hi!
    We have a following problem on our DAM system:
    When saving an EPS-file from Photoshop CS2 on 10.4 with Machintosh preview we can´t transfer the file to Linux DAM system without losing the preview picture. Apparently this is because the PICT preview file is in resource fork of the file and Linux doesn´t understand anything about those.
    The problem occurs only with Freehand MX when using these un-"resource forked" files. Then using EPS with TIFF-preview we get a black background if cut path is used in the image so that´s not a proper solution.
    Can ANYONE point me a possible solution: how can I transfer Macintosh files on Linux without losing resource forks??
      Mac OS X (10.4.8)  

    Control-click on the file and choose the Create
    Archive of "blah" item in the menu that pops up.
    This creates a file called "blah.zip", which has
    been compressed in such a way that it can be safely
    stored on non-Mac systems. When it is de-archived
    on another Mac OS X system (by double-clicking it),
    the file should be intact. (Note that third-party
    apps for decoding zip files may not properly restore
    the resource fork, as the Mac's archive function
    creates a zip archive with the resource contents
    stored in a special way, which other unzip utilities
    will just read as another file (or folder, don't
    recall which).
    Thanks but I should have been more precise:
    What I meant was that is there any tool for Linux to handle resource forks without archiving/compressing the file?
    Our DAM generates preview image for the EPS automatically so it can´t be inside compressed file.

  • Problem during loadgae of file

    Hello,
    I am trying to modify Loader.java sample to load simple HelloWorld applet to the
    JCOP simulator.
    During the execution the problem with call to the installForInstallAbdMakeSelectable aperas. The error code returned by he simulator is just 6a80 (Wrong data). I cant't find out what is the problem... Maybe anyone could help me?
    So here is the code of my program, that shoul load and install applet, also make it selectable:
    public class Loader
        private Loader(){}
        private void load(String capFileName) throws Exception
              CapFile capFile = new CapFile(capFileName, null);
              System.out.println("Package name: " + capFile.pkg);
              byte[][] applets = capFile.aids;
              if ((applets == null) || (applets.length == 0))
                  throw new RuntimeException("no applets in cap file");
              // Get connection to terminal, we look for the simulation.
              // As you might want to use "pcsc", "4" or "tcl", "10" in case of
              // Windows or "PCSC", null in case of Linux, you should pass the name
              // of the terminal on the command line or in a properties file
              System.out.println("Open terminal ...");
              JCTerminal term = JCTerminal.getInstance("Remote", null);
              term.open();
              // Create a logging terminal spitting out the APDUs on standard out
              TraceJCTerminal _term = new TraceJCTerminal();
              _term.setLog(new PrintWriter(System.out));
              _term.init(term);
              term = _term;
              // Get JavaCard representative, passing NULL resets card and returns ATR
              System.out.println("Get card ...");
              JCard card = new JCard(term, null, 2000);
              // Get the off-card representative for the card manager and use it to
              // select the on-card CardManager
              System.out.println("Select card manager ...");
              CardManager cardManager = new CardManager(card, CardManager.daid);
              cardManager.select();
              // For downloading something, we have to be authenticated to card manager.
              // For this, the keys must be set. The keys to use should of course
              // be configurable as well.
              byte[] dfltKey = c2b("404142434445464748494a4b4c4d4e4f");
              cardManager.setKey(new OPKey(255, 1, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(255, 2, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(255, 3, OPKey.DES_ECB, dfltKey));
              //cardManager.setKey(new OPKey(1, 1, OPKey.DES_ECB, c2b("707172737475767778797a7b7c7d7e7f")));
              //cardManager.setKey(new OPKey(1, 2, OPKey.DES_ECB, c2b("606162636465666768696a6b6c6d6e6f")));
              cardManager.setKey(new OPKey(1, 3, OPKey.DES_ECB, c2b("505152535455565758595a5b5c5d5e5f")));
              System.out.println("Authenticate to card manager ...");
              cardManager.initializeUpdate(255, 0, OPApplet.SCP_UNDEFINED);
              cardManager.externalAuthenticate(OPApplet.APDU_CLR);
              System.out.println("deleting applets");
              cardManager.deleteObject(capFile.pkgId, 0, capFile.pkgId.length, true);
              System.out.println("applets deleted");
              // And load the cap-file, do not forget to call installForLoad
              System.out.println("Loading cap-file ..."+capFile.pkg);
              cardManager.installForLoad(capFile.pkgId, 0, capFile.pkgId.length, null, 0, 0, null, 0, null, 0, 0, null, 0);
              cardManager.load(capFile, null, SecurityDomain.LOAD_ALL, new PrintWriter(System.out), 250);
              System.out.println("Finished loading !");
              // Install applet, we try to install the first applet given in the
              // cap file, and try to instantiate it under the same AID as given for its
              // representation in the cap file. No installation data is passed.
              System.out.println("Installing applet ...");
              cardManager.installForInstallAndMakeSelectable     //HERE EXCEPTION APPEARS
                        capFile.pkgId,
                        0,
                        capFile.pkgId.length,
                        applets[0],
                        0,
                        applets[0].length, /* applet */
                        applets[0],
                        0,
                        applets[0].length, /* instance aid */
                        OPApplet.NO_PRIVS,  /* no special priviledges */
                        null,
                        0,
                        0,   /* install data */
                        null,
                        0
              System.out.println("Install succeeded!");
              // synchronize state with on-card card manager
              cardManager.update();
              // Print information regarding card manager, applets and packages on-card
              JCInfo info = JCInfo.INFO;
              System.out.println("\nCardManager AID   :  " + info.dataToString(cardManager.getAID()));
              System.out.println("CardManager state :  " + info.toString("card.status", (byte) cardManager.getState()) + "\n");There is the reaply of the smulator:
    Open terminal ...
    Get card ...
    --Waiting for card...
    Select card manager ...
    ATR=3B FA 13 00 00 81 31 FE 45 4A 43 4F 50 34 31 56    ;.....1.EJCOP41V
        32 32 31 96                                        221.
    => 00 A4 04 00 07 A0 00 00 00 03 00 00 00             .............
    (0 msec)
    <= 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65    o..............e
        01 FF 90 00                                        ....
    Status: No Error
    Authenticate to card manager ...
    => 80 50 00 00 08 A9 2D 23 0F 2E CD 55 7A 00          .P....-#...Uz.
    (0 msec)
    <= 00 00 57 F3 97 D9 7F 72 88 55 FF 02 00 20 BA 9A    ..W....r.U... ..
        16 94 77 B9 81 CE 96 61 84 55 71 73 90 00          ..w....a.Uqs..
    Status: No Error
    => 84 82 00 00 10 18 F1 1A 0C 97 BD D1 66 8B 43 41    ............f.CA
        46 39 44 85 9C                                     F9D..
    (0 msec)
    <= 90 00                                              ..
    Status: No Error
    deleting applets
    => 80 E4 00 80 0C 4F 0A 48 65 6C 6C 6F 57 6F 72 6C    .....O.HelloWorl
        64 00                                              d.
    (0 msec)
    <= 00 90 00                                           ...
    Status: No Error
    applets deleted
    Loading cap-file ...com.sun.javacard.samples.HelloWorld
    => 80 E6 02 00 0F 0A 48 65 6C 6C 6F 57 6F 72 6C 64    ......HelloWorld
        00 00 00 00 00                                     .....
    (0 msec)
    <= 00 90 00                                           ...
    Status: No Error
    => 80 E8 00 00 FA C4 82 01 57 01 00 38 DE CA FF ED    ........W..8....
        02 02 04 00 01 0A 48 65 6C 6C 6F 57 6F 72 6C 64    ......HelloWorld
        23 63 6F 6D 2F 73 75 6E 2F 6A 61 76 61 63 61 72    #com/sun/javacar
        64 2F 73 61 6D 70 6C 65 73 2F 48 65 6C 6C 6F 57    d/samples/HelloW
        6F 72 6C 64 02 00 21 00 38 00 21 00 12 00 0B 00    orld..!.8.!.....
        36 00 0E 00 65 00 0A 00 13 00 00 00 6E 02 9A 00    6...e.......n...
        00 00 00 00 00 01 01 00 04 00 0B 01 02 01 07 A0    ................
        00 00 00 62 01 01 03 00 12 01 0E 48 65 6C 6C 6F    ...b.......Hello
        57 6F 72 6C 64 41 70 70 6C 00 14 06 00 0E 00 00    WorldAppl.......
        00 80 03 01 00 01 07 01 00 00 00 1D 07 00 65 00    ..............e.
        02 10 18 8C 00 07 18 11 01 00 90 0B 87 00 18 8B    ................
        00 05 7A 01 30 8F 00 03 8C 00 0A 7A 05 23 19 8B    ..z.0......z.#..
        00 08 2D 19 8B 00 02 32 03 29 04 70 19 1A 08 AD    ..-....2.).p....
        00 16 04 1F 8D 00 01 3B 16 04 1F 41 29 04 19 08    .......;...A)...
        8B 00 09 32 1F 64 E8 19 8B 00 06 3B 19 16 04 08    ...2.d.....;....
        41 8B 00 04 19 03 08 8B 00 0B 19 AD 00 03 16 00    A...............
    (0 msec)
    <= 00 90 00                                           ...
    Status: No Error
    => 80 E8 80 01 61 04 8B 00 0C 7A 08 00 0A 00 00 00    ....a....z......
        00 00 00 00 00 00 00 05 00 36 00 0D 02 00 02 00    .........6......
        06 80 10 02 03 80 0A 06 01 00 02 00 03 80 0A 09    ................
        03 80 03 01 03 80 0A 07 06 80 03 00 03 80 0A 01    ................
        03 80 0A 03 06 00 00 01 03 80 0A 04 03 80 0A 05    ................
        09 00 13 00 03 0E 23 2C 00 0C 05 0C 06 03 07 05    ......#,........
        10 0C 08 09 06 09 00                               .......
    (16 msec)
    <= 00 90 00                                           ...
    Status: No Error
    Finished loading !
    Installing applet ...
    => 80 E6 0C 00 2D 0A 48 65 6C 6C 6F 57 6F 72 6C 64    ....-.HelloWorld
        0E 48 65 6C 6C 6F 57 6F 72 6C 64 41 70 70 6C 0E    .HelloWorldAppl.
        48 65 6C 6C 6F 57 6F 72 6C 64 41 70 70 6C 01 00    HelloWorldAppl..
        00 00 00                                           ...
    (0 msec)
    <= 6A 80                                              j.
    Status: Wrong data
    EX: msg null, class class com.ibm.jc.JCException
    com.ibm.jc.JCException:
      Error: 6a80
      APDU:  6A80
            at com.ibm.jc.JCUtil.check9000(Unknown Source)
            at com.ibm.jc.SecurityDomain.handleInstall(Unknown Source)
            at com.ibm.jc.SecurityDomain.installForInstallAndMakeSelectable(Unknown
    Source)
            at loader.Loader.load(Loader.java:93)
            at loader.Loader.main(Loader.java:187)Please, help me, I don't get it, ehat could be wrong in this sample?

    Yes, I did.
    Below are the results of HelloWorldAppl loading to Java Card in JCOP Shell simulations process.
    -  /term "Remote|localhost:1175"
    --Opening terminal
    /card -a a000000003000000 -c com.ibm.jc.CardManagerresetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3B FA 13 00 00 81 31 FE 45 4A 43 4F 50 34 31 56    ;.....1.EJCOP41V
        32 32 31 96                                        221.
    ATR: T=1, FI=1/DI=3 (93clk/etu), N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V221"
    => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00          ..............
    (0 msec)
    <= 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65    o..............e
        01 FF 90 00                                        ....
    Status: No Error
    cm>  set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
    cm>  init-update 255
    => 80 50 00 00 08 E6 F0 56 27 06 B6 C6 42 00          .P.....V'...B.
    (0 msec)
    <= 00 00 57 F3 97 D9 7F 72 88 55 FF 02 00 00 3D 02    ..W....r.U....=.
        9C 31 C7 89 6E 2E 4E BD 56 FB A4 9A 90 00          .1..n.N.V.....
    Status: No Error
    cm>  ext-auth plain
    => 84 82 00 00 10 6B FC E2 0E 7D 91 7F 9E DD 09 6A    .....k...}.....j
        90 D0 2C D6 E9                                     ..,..
    (16 msec)
    <= 90 00                                              ..
    Status: No Error
    cm>  delete 48656c6c6f576f726c644170706c
    => 80 E4 00 00 10 4F 0E 48 65 6C 6C 6F 57 6F 72 6C    .....O.HelloWorl
        64 41 70 70 6C 00                                  dAppl.
    (0 msec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Ignoring expected error
    cm>  delete 48656c6c6f576f726c64
    => 80 E4 00 00 0C 4F 0A 48 65 6C 6C 6F 57 6F 72 6C    .....O.HelloWorl
        64 00                                              d.
    (0 msec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Ignoring expected error
    cm>  upload -b 250 "C:\Documents and Settings\Ieva\workspace\HelloWorld\bin\com\sun\javacard\samples\HelloWorld\javacard\HelloWorld.cap"
    => 80 E6 02 00 17 0A 48 65 6C 6C 6F 57 6F 72 6C 64    ......HelloWorld
        08 A0 00 00 00 03 00 00 00 00 00 00 00             .............
    (31 msec)
    <= 00 90 00                                           ...
    Status: No Error
    => 80 E8 00 00 FA C4 82 01 57 01 00 38 DE CA FF ED    ........W..8....
        02 02 04 00 01 0A 48 65 6C 6C 6F 57 6F 72 6C 64    ......HelloWorld
        23 63 6F 6D 2F 73 75 6E 2F 6A 61 76 61 63 61 72    #com/sun/javacar
        64 2F 73 61 6D 70 6C 65 73 2F 48 65 6C 6C 6F 57    d/samples/HelloW
        6F 72 6C 64 02 00 21 00 38 00 21 00 12 00 0B 00    orld..!.8.!.....
        36 00 0E 00 65 00 0A 00 13 00 00 00 6E 02 9A 00    6...e.......n...
        00 00 00 00 00 01 01 00 04 00 0B 01 02 01 07 A0    ................
        00 00 00 62 01 01 03 00 12 01 0E 48 65 6C 6C 6F    ...b.......Hello
        57 6F 72 6C 64 41 70 70 6C 00 14 06 00 0E 00 00    WorldAppl.......
        00 80 03 01 00 01 07 01 00 00 00 1D 07 00 65 00    ..............e.
        02 10 18 8C 00 07 18 11 01 00 90 0B 87 00 18 8B    ................
        00 05 7A 01 30 8F 00 03 8C 00 0A 7A 05 23 19 8B    ..z.0......z.#..
        00 08 2D 19 8B 00 02 32 03 29 04 70 19 1A 08 AD    ..-....2.).p....
        00 16 04 1F 8D 00 01 3B 16 04 1F 41 29 04 19 08    .......;...A)...
        8B 00 09 32 1F 64 E8 19 8B 00 06 3B 19 16 04 08    ...2.d.....;....
        41 8B 00 04 19 03 08 8B 00 0B 19 AD 00 03 16 00    A...............
    (16 msec)
    <= 00 90 00                                           ...
    Status: No Error
    => 80 E8 80 01 61 04 8B 00 0C 7A 08 00 0A 00 00 00    ....a....z......
        00 00 00 00 00 00 00 05 00 36 00 0D 02 00 02 00    .........6......
        06 80 10 02 03 80 0A 06 01 00 02 00 03 80 0A 09    ................
        03 80 03 01 03 80 0A 07 06 80 03 00 03 80 0A 01    ................
        03 80 0A 03 06 00 00 01 03 80 0A 04 03 80 0A 05    ................
        09 00 13 00 03 0E 23 2C 00 0C 05 0C 06 03 07 05    ......#,........
        10 0C 08 09 06 09 00                               .......
    (16 msec)
    <= 00 90 00                                           ...
    Status: No Error
    Load report:
      347 bytes loaded in 0.1 seconds
      effective code size on card:
          + package AID       10
          + applet AIDs       21
          + classes           17
          + methods           104
          + statics           0
          + exports           0
            overall           152  bytes
    cm>  install -i 48656c6c6f576f726c644170706c  -q C9#() 48656c6c6f576f726c64 48656c6c6f576f726c644170706c
    => 80 E6 0C 00 2F 0A 48 65 6C 6C 6F 57 6F 72 6C 64    ..../.HelloWorld
        0E 48 65 6C 6C 6F 57 6F 72 6C 64 41 70 70 6C 0E    .HelloWorldAppl.
        48 65 6C 6C 6F 57 6F 72 6C 64 41 70 70 6C 01 00    HelloWorldAppl..
        02 C9 00 00 00                                     .....
    (0 msec)
    <= 90 00                                              ..
    Status: No Error
    cm>  card-info
    => 80 F2 80 00 02 4F 00 00                            .....O..
    (0 msec)
    <= 08 A0 00 00 00 03 00 00 00 01 9E 90 00             .............
    Status: No Error
    => 80 F2 40 00 02 4F 00 00                            [email protected]..
    (0 msec)
    <= 0E 48 65 6C 6C 6F 57 6F 72 6C 64 41 70 70 6C 07    .HelloWorldAppl.
        00 90 00                                           ...
    Status: No Error
    => 80 F2 10 00 02 4F 00 00                            .....O..
    (0 msec)
    <= 07 A0 00 00 00 03 53 50 01 00 01 08 A0 00 00 00    ......SP........
        03 53 50 41 0A 48 65 6C 6C 6F 57 6F 72 6C 64 01    .SPA.HelloWorld.
        00 01 0E 48 65 6C 6C 6F 57 6F 72 6C 64 41 70 70    ...HelloWorldApp
        6C 90 00                                           l..
    Status: No Error
    Card Manager AID   :  A000000003000000
    Card Manager state :  OP_READY
        Application:  SELECTABLE (--------) "HelloWorldAppl"
        Load File  :      LOADED (--------) A0000000035350   (Security Domain)
         Module    :                        A000000003535041
        Load File  :      LOADED (--------) "HelloWorld"   
         Module    :                        "HelloWorldAppl"
    cm>  /select |HelloWorldAppl
    => 00 A4 04 00 0E 48 65 6C 6C 6F 57 6F 72 6C 64 41    .....HelloWorldA
        70 70 6C 00                                        ppl.
    (0 msec)
    <= 00 A4 04 00 0E 48 65 6C 6C 6F 57 6F 72 6C 64 41    .....HelloWorldA
        70 70 6C 90 00                                     ppl..
    Status: No ErrorEverything works fine. That's why, I don't get it, where mistake is made.
    The only logical consumption is, that there are maybe some mistakes in my OffCard API Java code?!
    May be anyone has well-working Java OffCard sample, that loads and installs applet (also makes it selectable)?
    Best regards,
    Eve

  • Problem While reading a file in text mode from Unix in ECC 5.0

    Hi Experts,
    I am working on Unicode Upgrade project of ECC5.0.
    Here i got a problem with reading a file format which it does successfully in 4.6 and not in ECC5.0
    My file format was as follows:
    *4 000001862004060300000010###/#######L##########G/##########G/########
    It was successfully converting corresponding field values in 4.6:
    *4
    00000186
    2004
    06
    03
    00000010
    25
    0
    4
    0
    54.75
    0
    54.75
    0.00
    While i am getting some problem in ECC5.0 during conversion of the above line:
    *4 000001862004060300000010###/#######L##########G/##########G/########
    it was consider in the same # values.
    I have used the following statement to open and read dataset.
    OPEN DATASET i_dsn IN LEGACY TEXT MODE FOR INPUT.
    READ DATASET i_dsn INTO pos_rec.
    Thanks for your help.
    Regards,
    Gopinath Addepalli.

    Hi
          You might be facing this problem because of uni code. So while opening or reading the file, there is a statement call ENCODING. Use that option and keep the code page which you want. Then the problem may be solved.
    Thanks & Regards.
    Harish.

  • Problem in Uploading a File by Applet

    Hi Members,
    * I have faced problem while uploading a file from client to server by ftp protocol using APPLET(No JSP) only
    * I am getting exception while running....
    * My source code is as follows,
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLConnection;
    public class UploadAndDownload extends Applet implements ActionListener {
         Button upload;
         Button browse;
         TextField filename;
         File source = null;
         Label name;
         StringBuffer sb;
         BufferedInputStream bis = null;
         BufferedOutputStream bos = null;
         public void init() {
              setLayout(new FlowLayout());
              upload = new Button("Upload");
              browse = new Button("Browse");
              name = new Label("Filename");
              filename = new TextField("", 45);
              add(name);
              add(filename);
              add(upload);
              add(browse);
              upload.addActionListener(this);
              browse.addActionListener(this);
         public void actionPerformed(ActionEvent evt) {
              // Code for browsing a file
              String input_file_name = "";
              if (evt.getSource() == browse)
                   Frame parent = new Frame();
                   FileDialog fd = new FileDialog(parent, "Select a file", FileDialog.LOAD);
                   fd.setVisible(true);
                   input_file_name = fd.getFile();
                   filename.setText(input_file_name);
                   // Gets the file from the file dialog and assign it to the source
                   source = new File(input_file_name);
                   repaint();
              // Code for Uploading a file to the server
              if (evt.getSource() == upload) {
                   // Appending the server pathname in string buffer
                   sb = new StringBuffer("ftp://");
                   sb.append("2847");
                   sb.append(':');
                   sb.append("Websphere25");
                   sb.append("@");
                   sb.append("172.16.1.111");
                   sb.append('/');
                   sb.append(input_file_name);
                   sb.append(";type=i");
                   try {
                        URL url = new URL(sb.toString());
                        URLConnection urlc = url.openConnection();
                        bos = new BufferedOutputStream(urlc.getOutputStream());
                        bis = new BufferedInputStream(new FileInputStream(source));
                        int i;
                        // Read from the inputstream and write it to the outputstream
                        while ((i = bis.read()) != -1) {
                             bos.write(i);
                   } catch (MalformedURLException e) {
                        e.printStackTrace();
                   } catch (IOException e) {
                        e.printStackTrace();
                   } finally {
                        if (bis != null)
                             try {
                                  bis.close();
                             } catch (IOException ioe) {
                                  ioe.printStackTrace();
                        if (bos != null)
                             try {
                                  bos.close();
                             } catch (IOException ioe) {
                                  ioe.printStackTrace();
    MY EXCEPTION IS,
    Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.net.SocketPermission 172.16.1.111:80 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source)
         at UploadAndDownload.actionPerformed(UploadAndDownload.java:68)
         at java.awt.Button.processActionEvent(Unknown Source)
         at java.awt.Button.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)* Please let me know what problem in my code....
    * Thanks in advance....

    * Thanks for your reply....
    * I have signed my policy file by giving AllPermission and mentioned in java.security file in bin folder....
    * My question is , by giving AllPermission , can we access and do all permissions like ( SecurityPermission, AWTPermission, SocketPermission, NetPermission, FilePermission, SecurityPermission etc )...
    * My policy file is looks like follow,
    /* AUTOMATICALLY GENERATED ON Tue Apr 16 17:20:59 EDT 2002*/
    /* DO NOT EDIT */
    grant {
      permission java.security.AllPermission;
    };* If i signed the policy like above, and when i run the applet file in InternetExplorer now , it thorws the following exception on my console,
    java.net.ProtocolException: cannot write to a URLConnection if doOutput=false - call setDoOutput(true)
         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
         at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source)
         at UploadAndDownload.actionPerformed(UploadAndDownload.java:68)
         at java.awt.Button.processActionEvent(Unknown Source)
         at java.awt.Button.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)* Please let me know , how to solve this and give me your suggestion on the above process...
    * Thanks in advance...
    Regards,
    JavaImran

  • Problem in sending a file

    Hello..
           i have a problem in sending a file with sender file adapter...
    In adapter monitor it gives error like...
    Last message processing started 15:58:36 2005-10-04, Error: Conversion of complete file content of 'fileinput.csv' to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 3 according to structure 'substr':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
    last retry interval started 15:58:36 2005-10-04
    length 60,000 secs.
    Let me know what might be the problem.
    Thanks,
    Padma

    thanks for the reply and answering my question..
             I'm getting the error in SXMB_moni...while i'm sending the file from FTP to lagacy system.
    The error is in call adapter...at says like ....
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="MESSAGE">NOT_AUTHORIZED_FOR_PROC</SAP:Code>
      <SAP:P1>XXXX</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>User XXXXXX has no authorization to process messages</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Can tell me what might be the wrong here..
    Thanks.

  • Problem with CALL TRANSFORMATION xml - abap

    Hello!
    I got the following problems using call transformation to read a xml-file to local abap datatype!
    Simple xml file for testing:
    <BMECAT>
    <HEADER>
    asdf
    </HEADER>
    </BMECAT>
    XSLT file:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:template match="/">
        <xsl:value-of select="./BMECAT/HEADER"/>
      </xsl:template>
    </xsl:transform>
    The xslt transformation works with xslt-tester!
    My Source:
    DATA: xmlupl TYPE string,
    outputx TYPE XSTRING,
    lv_string TYPE string.
    * in xmlupl my xml import is stored
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    EXPORTING
    text = xmlupl " variable type string
    IMPORTING
    buffer = outputx. " variable type xstring
    TRY .
         CALL TRANSFORMATION path_to_xslt_file
           SOURCE XML outputx
         RESULT HEADER = lv_string.
    CATCH cx_xslt_exception INTO xslt_error.
         data: xslt_message type string .
         xslt_message = xslt_error->get_text( ).
    ENDTRY.
    After debugging in xslt_message is stored the following text:
    "The element abap was expected for the XML-ABAP transformation"
    Can anyone help me with this problem?
    Regards,
    Daniel

    hi
    good
    try this code
    Just look at this piece of code, I think it should help you.
      DATA : ITAB   TYPE TABLE OF SPFLI,
             L_XML  TYPE REF TO CL_XML_DOCUMENT.
      SELECT * FROM SPFLI INTO TABLE ITAB.
    CREATE THE XML OBJECT
      CREATE OBJECT L_XML.
    CONVERT THE DATA TO XML
      CALL METHOD L_XML->CREATE_WITH_DATA( DATAOBJECT = ITAB[] ).
    DATA IS CONVERTED TO XML; DISPLAY THE XML-DOCUMENT
      CALL METHOD L_XML->DISPLAY.
    thanks
    mrutyun^

  • How to call external files from java?

    How to call external files in java. For example how to call a *.pdf file to open in its default editor(say Acrobat), or a *.html file to open in the default browser or a *.txt file in a notepad etc..,
    In my program i have *.chm (Compiled Windows HTML Help) help file. how to open it in its default editor it?

    Jayarathina_Madharasan wrote:
    no one answered my questionHi what wrong did i do...basically insulted all the volunteers here who took the time to consider your question and try to offer you help. Other than that, you did nothing wrong.
    From JavaRanch :
    And even if an answer doesn't solve your problem, even if it should totally miss the point - the best thing to do to motivate others to continue trying to help you is showing respect and gratitude for the investment of time that was put into dealing with your issue.
    Edited by: Encephalopathic on Apr 14, 2008 10:01 AM

  • Java class write file in Linux related to locale setting?

    Hi all,
    I have encoding problem, I need to write database data with UTF-8 into file in Linux, the data included Chinese characters and English, and send file to other machines.
    My question is does it affect the UTF-8 data if the Linux machine does not have character set for Chinese encoding and just use OutputStreamWriter to send the file to other machines?
    The Linux locale is "C"
    In other machines, I only read the Chinese character using putty.
    Can any one tell me how to solve it?

    My question is does it affect the UTF-8 data if the Linux machine does
    not have character set for Chinese encoding and just use
    OutputStreamWriter to send the file to other machines?Until data is displayed to the screen by the Linux computer, it does not matter whether it can display Chinese characters.
    Additionally, the mixed Chinese-English data sounds like a potential encoding problem - unless you have an encoding that matches the data.

  • GUI_UPLOAD - Problem in uploading xml file

    Hi,
    I have problem in uploading xml file into itab.
    Here is the code
    begin of GS_STRING,
            STR(72) type C,
          end of GS_STRING,
          GT_STRING like standard table of GS_STRING,
    call function 'GUI_UPLOAD'
          EXPORTING
            FILENAME                = FILE_NAME
            FILETYPE                = 'ASC'
          TABLES
            DATA_TAB                = GT_STRING
          EXCEPTIONS
            FILE_OPEN_ERROR         = 1
            FILE_READ_ERROR         = 2
            NO_BATCH                = 3
            GUI_REFUSE_FILETRANSFER = 4
            INVALID_TYPE            = 5
            NO_AUTHORITY            = 6
            UNKNOWN_ERROR           = 7
            BAD_DATA_FORMAT         = 8
            HEADER_NOT_ALLOWED      = 9
            SEPARATOR_NOT_ALLOWED   = 10
            HEADER_TOO_LONG         = 11
            UNKNOWN_DP_ERROR        = 12
            ACCESS_DENIED           = 13
            DP_OUT_OF_MEMORY        = 14
            DISK_FULL               = 15
            DP_TIMEOUT              = 16
            others                  = 17.
        if SY-SUBRC <> 0.
          message I499(SY) with 'File upload failed'.
          stop.
        endif.
      endif.
    In debuggin mode, i can see the itab uploaded with xml payload. But in that same place, the hexadecimal format has double zeros 00 after each character.
    XML message : <?xml
    Correct Hexadecimal : 3C3F786D6C
    Hexadecimal in itab  : 3C003F0078006D006C00
    This makes the resultant xml invalid.
    can anyone help me to solve this?
    Thanks,
    Uma
    Edited by: Uma Maheswari on May 30, 2008 4:15 PM

    what do you want to do with the uploaded XML?
    i use the following
    constants: line_size type i value 255.
    data: begin of xml_tab occurs 0,
               raw(line_size) type x,
            end   of xml_tab,
            file  type string,
            size  type i.
    call function 'GUI_UPLOAD'
        exporting
          filename            = filename
          filetype            = 'BIN'
          has_field_separator = ' '
          header_length       = 0
        importing
          filelength          = size
        tables
          data_tab            = xml_tab
        exceptions
          others              = 1.

  • Problems In Running Executable File

    I Have A LabView Program Where The Sub VI Is a VI Tempelate,(I Already Tried Using Reentrant Function Through A VI,But I Had Some Issues<Which Caused The Program To Not Work Correctly>, Hence The *VIT)
    The Problem Is While Creating An Executable File 
    It Just Does Not Call The SUB VI
    I Tried Changing The Path Name To Inside The Application.exe But Still No Luck
    I Use Labview 2012

    Hello,
    Everyone, I guessed we meet the same issue.
    During debug mode, the main program can load vit file by vit file path, the interface and function both are ok. as soon as I build all files to exe file, the program can work well but it just means function is ok, the interface invoved vit file all couldn't be showed normally.
    I copied the original vit file to build package, there isn't any problem in Runing Executable File.
    This is just one way to solve this problem. I don't think it's the best way, who can provide a better idea?  which way is only to include vit file as other vi during build exe package, and anyone don't easy change original vit file, thanks!
    Champion

Maybe you are looking for