GPShell: 0x80100008 (The data buffer to receive returned data... )

Hi all,
My test applet generate response of zero bytes of length based in Le field in APDU command. When I require up to 256 bytes, responses are OK.
Problem occurs when I expect e.g. 257B (Le = 0x000101), in this case I've got following error:
send_APDU() returns 0x80100008 (The data buffer to receive returned data is too small for the returned data.
Here is my script:
mode_211
establish_context
enable_trace
enable_timer
card_connect
select -AID 4269426F4170706C6574
send_apdu_nostop -sc 0 -APDU 80070000000101
card_disconnect
release_context
I note that when I run it via JCShell everything works fine.
Can somebody help me to solve my problem? Any ideas?

thank you for your hint.
smartcardio API is very comfortable tool. now I'm able to return up to 8190B otherwise error in my new thread :)
sun.security.smartcardio.PCSCException: Unknown error 0x1f
thanks again

Similar Messages

  • Receiving Return vs Receiving Correction

    Can someone explain to me the difference between a Receiving Return and a receiving Correction?
    Specifically, is doing a Receiving Return to Supplier the "same" financially, etc. as "Correcting" the complete Received quantity.
    WHen should a Return be used instead of a correction?
    Thanks
    Roger Clark
    GE Transportation

    A correction will actually correct any receiving transaction that was performed in error. We use this functionality when someone enters incorrect information. This is the intended use. You should use return to supplier when you are actually returning physical items. This gives you the correct history of the part, cost is updated properly, inventory on-hand is accurate and the purchase order shall reflect what is still on order and what is has been received.

  • Can't receive the data from my hardware device by LAN

    Hi!
    background:  For a testing task, I set up a hardware testing platform that including of a power supply device, a hardware to be tested(Device Under Test), a power Meter and a PC.   i build a program to control the hardwares, and they communicate with each other by LAN. at first, the program as a client can normally communicates with my hardware after initializing all hardwares. And then the program turns off the power of my device and turn on power again after delay 60 seconds. after initiantion, my hardware can execute the command which is received from the program, but the program can't receive the data from my hardware. Why my program cannot receive the data from my hardware, after the second time turn on the power of my hardware?  the program as client code as below:
    int CVICALLBACK ClientRRH (unsigned handle, int event, int error, void *callbackData)
      char temp[64]={0};
      int  ReceiveSize=0;
      char *Pos;
      switch(event)
       case TCP_DATAREADY:
        if( (ReceiveSize=ClientTCPRead (rrhHandle, readRRHBuffer, 4096, 2000))<0)
                     SetCtrlVal (panelHandle, PANEL_TEXTBOX_INFO,"Read RRH trace error!\n");  
                    return 0;
        else
         if (ReceiveSize>4096)
          readRRHBuffer[4096]= '\0';
           else
           readRRHBuffer[ReceiveSize] = '\0';
        if (Flag)
          Pos = strstr(readRRHBuffer,orderString);
          if(Pos)
           //strncpy(temp,(Pos+ strlen(orderString)),maxSize);
           _mbsnbcpy(temp,(Pos+ strlen(orderString)),maxSize); 
           sprintf(receData,temp);
           *temp=0;
           Flag=0;
           maxSize=0;
           *orderString=0;
        SetCtrlVal (panelHandle, PANEL_TEXTBOX_INFO,readRRHBuffer);
        *readRRHBuffer=0;
                break;
             case TCP_DISCONNECT:  
       rrhHandle =error;
                SetCtrlVal (panelHandle, PANEL_TEXTBOX_INFO,"TCP Clienterver has closed connection!\n");                 
                SetCtrlVal (panelHandle, PANEL_LED_RRH, 0);      
                break;
     return 0;
    int RRH_ini(char *RRH_address)
        ViChar Buffer[200];
        char temp[200];
        int status =0;
     if((ConnectToTCPServer (&rrhHandle, 7006, rrhAddr, ClientRRH, NULL, 1000)<0))
         SetCtrlVal(panelHandle,PANEL_LED_RRH,0);
        SetCtrlVal(panelHandle,PANEL_TEXTBOX_INFO,"Connection to RRH fail...\n");
         else
         SetCtrlVal(panelHandle,PANEL_LED_RRH,1);
         SetTCPDisconnectMode (rrhHandle, TCP_DISCONNECT_AUTO);
         sprintf(RRHCommand,"%s\n","asb");
         ClientTCPWrite (rrhHandle, RRHCommand, strlen(RRHCommand), 0);
         Delay(0.2);
         sprintf(RRHCommand,"%s\n","asb#1234");
         ClientTCPWrite(rrhHandle,RRHCommand,strlen(RRHCommand),0);
         Delay(0.2);
         SetCtrlVal(panelHandle,PANEL_TEXTBOX_INFO,"Connection to RRH successful!\n");
       return 0;

    Yes that's exactly my problem. The reader sends bytes but without a delimiter. So for example the greeting message I've mentioned earlier "iiAWID..." happens to be 32 bytes, therefore I made the following changes to the code:
    public void receive(int x){     // x = expected length of bytes being received
    boolean done = false ;
    int limit = x ;
    int counter = 0;
    try {           
    while (!done)
    if (in.ready())
    buffer.add(in.read()) ;
    counter = counter + 1 ;
    if (counter == limit)
    done = true ;
    }catch(IOException e) { // some code for handling}
    and this works fine, however, I'll probably have problems reusing this method later on, because some commands that I will send to the reader will result in responses of indefinite sizes. So I may have a response of length 12 one time and of length 8 the other. but between each response there's a maximum delay of 100ms... is there any way I can utilize that piece of information to improve my code?

  • The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.

     We developed a SSIS Package to pull the data From Oracle source to Sql Server 2012. Here we used ADO.Net source to pull the records from Source but getting the below error after pulling some 40K records.
      [ADO NET Source [2]] Error: The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.
    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. 
     The PrimeOutput method on ADO NET Source returned error code 0xC02090F5. 
     The component returned a failure code when the pipeline engine called PrimeOutput(). 
    The meaning of the failure code is defined by the component, 
    but the error is fatal and the pipeline stopped executing. 
     There may be error messages posted before this with more 
    information about the failure.
    Anything that we can do to fix this?

    Hi,
      Tried both....
      * Having schema type as Nvarchar(max). - Getting the same error.
      * Instead of ADO.Net Source used OLEDB Source with driver as " Oracle Provide for OLE DB" Getting error as below.
           [OLE DB Source [478]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
           [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC0202009.  The component returned a failure
    code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the
    failure.
    Additional Info:
       * Here the Source task is getting failed not the conversion or destination task.
    Thanks,
    Loganathan A.

  • ABAP proxy client sending to XI   and Receive the data back from the DB

    Hi
    I am new to XI need a clarification on the following scenario
    I have a scenarion where ABAP Proxy (Clinet) from ECC will be sending the data to Data base server via XI,  and needs to return the values back to ECC
    ECC -
    > XI/PI -
    > Remote server  (Database)
          <-- XI/PI <--
    Can anyone give idea how can I develop this scenario.
    I am sure I would be using the Proxy BADI to send the data from ECC to XI in Asyscrounous mode,
    Thanks
    PR

    Hi,
    As you said the data will be sent asynchronously from BAPI to XI which means you will have to split up the scenario into two.
    First One -
    Sender Proxy - XI - Receiver JDBC.
    Second -
    Sender JDBC - XI - Receiver Proxy.
    You can set a flag to"1" when you insert data into table. the run a query on the database which will fetch record whose flay is set to "1" and also simultaneously rest the flag to "0" to indicate that this record is already send to SAP.You can make use of stored procedures too.
    Please award points if the reply is useful.
    Regards,
    Pragati

  • Vista & Outlook 2007: Sync with second XP & Outlook 2003 - The passed buffer is too small for the reply data

    Dear Community,
    I'm synchronising my T3 with two PCs. One with Vista & Outlook 2007 and the other with XP & Outlook 2003. Both with the latest conduit & Hotsync Manager versions installed for each OS based on the availability on the Palm Website. 
    My problem is that when I synchronise the T3 with either PC and then try to sync it with the other I'm receiving the following error message for the Calendar:
    Outlook Calendar
    The passed buffer is too small for the reply data.
    OLERR:0D-0008
    OLERR:0D-0004
    OLERR:0D-0001
    - Slow Sync
    Outlook Calendar synchronization failed
     The second time the sync is successful but takes a long time and the actual problem is that it creates duplicates for records previously changed on either PC - but with a sync in between those changes, i.e. no conflict in the sense that the same record was changed in both environments since the last sync. I have configured the conflict handling to establish a hierarchy PC1-T3-PC2 but try to avoid them by synchronising as often as possible.
    Has anyone come across that problem or any ideas? Can you somehow adjust the buffer size for the sync? I have been using Lotus Organiser & then the various Outlook versions for a number of years.
    Thank you
    Rainer
    Post relates to: Tungsten T3
    Post relates to: Tungsten T3

    As they say on TV, "Doh"!!!
    I figured out the problem. I started the Sync tool, selected "Settings", then "Mcrosoft Outlook" tab and then "Select Folders" button. I browsed to the proper folders in Outlook (Calendar, Tasks, etc). Select OK enough times and retried the sync.
    It worked.

  • How to receive the datas?

    Look:
    the first I create socket sk:
    sk=socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
    and I fill data into Ip Head and Icmp Head,
    then I sendto the packet,but I don't receive
    any datas:
    lenrecv=recvfrom(sk,buf,100,0,(struct sockaddr*)&addr,&rlen);
    my codes run at the function recvfrom,but it
    couldn't return variable lenrecv,and it look like down,
    I want to know why?how to receive the data?
    (I couldn't creat socket like this:
    sk=socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
    I want to know when I creat socket like this
    sk=socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
    How to receive datas?)

    Last edited by joseperezc (2012-08-14 18:58:22)

  • In what order will select * return the data?

    hi guys,
    1) if we just do a select * from emp, will it return the data in the order of the data blocks in the extents. i.e. return all data blocks from extent 1, then from extent 2 and so forth?
    2) if we do a select * from emp, and say half the data blocks are already in the database buffer cache, how does Oracle know that the data blocks from emp are already in the database buffer cache? Does it keep some lookup table?
    thanks

    OracleGuy777 wrote:
    thanks guys,
    I will mark the question as closed, even though I am still a bit unsure as to why if we just start up a database so that the db cache is empty, and do a select * on a small table that is all on one disk, why the Oracle kernel would from a logical point of view choose different order to return the rows.
    but thanks anywayThe order in which rows are returned is a side effect of the execution plan chosen by the Query Optimizer (which is one reason why the ORDER BY clause exists), in plain relational theory both your underlying table and the results are relations (simply an unordered set of tuples) so consequently the optimizer is free to follow whatever method it likes to return the results. In the case of a Rule Based optimizer then there is simply a set of rules that determine the choice of execution plan, in the case of a cost based optimizer then the optimizer attempts to minimize the time taken to return the resultset by choosing an execution plan based on statistical information and algorithms. The existence of the buffer cache is in fact ignored for most practical purposes and certainly for the purposes you imagined.
    Now if your table is just that, a straight forward heap table with no indexes then you will likely get what you expect, that is rows returned in the order that the blocks in which they are held are located on disk; this isn't insert order necessarily by the way especially if ASSM is involved. This is only however because a full tablescan is the only available option for satisfying the query. Most tables however aren't like that, they have indexes, the query involves joins and filters and so on. Once you start allowing the possibility of other access paths then you allow the possibilty that rows or rather blocks will be visited in a different order to the simplistic one described above.
    Niall Litchfield

  • Returning the data from Time Capsule to the laptop

    Dear Sir,
    Kindly be informed that we have four Macbook laptops and a time capsule machine at our office in order to have back up o our data which are really important to us.
    Now we have some problem with returning one of laptops data after installing Mac OS.
    The software department has informed me that the data is available on the time capsule but they were unable to return it to the laptop. They tried it during the installment, after that and also with migration assistant.
    We would be thankful to receive your kind advise regarding our problem via my e-mail: [email protected]
    For further information, please do not hesitate to contact us.
    Thanks and best regards,
    Mahshid Darabi
    Commercial Manager
    Tooska Khorasan
    Trading & Engineering Group
    No.1005, Lufthansa Tower,
    Dr. Beheshti Ave.
    Tehran-Iran
    Tel: +9821 8874 9370-3
    +9821 8851 5706-13
    Mobile: +98912 633 9114
    e-mail: [email protected]
    website: www.tooskaco.com

    found this:
    "The process to restore backups is unbelievably easy, and takes few clicks to start. When booted from the OS X DVD, (put the install disk in the drive, and restart the computer - holding down the "c" key) click the Utilities menu, and choose “Restore from Time Machine backup”. Select the hard drive on which your backups are located, choose the destination drive, and choose which backup you wish to restore. Hit “Start”, and walk away. The restore process can take anywhere between 1 and 2 hours, so it’s best you walk away from your Mac for a bit. Your Mac will reboot, and depending on what backup you chose to restore, you’ll be right back where you left off."

  • Append the data in file at receiver side

    Hi All,
    I want dump the data frm SAP tables. the data is hughe so we are sending the data in slots from ECC like 50K recoerds at a time and after that to collect that i using the append parameter at file receiver side and records are getting appended in file only that is correct 
    but my one doubt is
    let say monday the records get append into file at receiver side and on tuesday again the records will get appended in same file....it will be problem for this i used create parameter with overrite my question if i am using create then we can not use append ........
    please suggest...........
    Regards

    Hi gangadhar,
                             Append will work like this..
    if there is no file ..create the file and if file already exists then appends the data to the existing file..
    in your case when you create the file with day i.e file_day ..first time when you send 50K records file will get created..
    if you send another 50k in the same then will get appended to the same...
    in case if you send the another 50K set another day..then a new file will get create as there is no file available with taht file name
    i.e filename_nextday...
    Hope this clears all your queries
    HTH
    Rajesh

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

  • I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of

    I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of order. The last version sorted fine.

    Welcome to Apple Support Communities
    When you install the new iWork version, the old iWork version is kept, so it looks like you are opening your old version.
    To fix this, open a Finder window, choose Applications in the sidebar and drag the new Numbers version to the Dock, so you can access to it quickly. Open all documents from this version. I don't recommend you to delete the old Numbers version in case you need it.
    Respecting to the second question, you will get better answers in the Numbers for OS X forum

  • Can I use more than one blue-tooth device at the same time on IPhone 4S? Like a wireless headsets and speed and cadence sensor for cycling computer, receive the data and listen music simultaneously

    Can I use more than one blue-tooth device at the same time on IPhone 4S? Like a wireless headsets and speed and cadence sensor for cycling computer, receive the data and listen music simultaneously

    As long as the profiles are different (ex. HID vs AD2P) you will not have any issues. But say if you try to use 2 keyboards at once, it won't work. Or 2 headsets at once. Your scenario seems fine.

  • How to make use of adjacent data elements within the same buffer

    Hi,
             Does anyone know how to make use of adjacent data elements within the same buffer? To make my question clearly, I would like to give you an example. In my application, I set "sample to read" as 10 which means at each loop 10 data samples will be taken into a buffer. Now, what I would like to do is to do some calculations on adjacent data samples in same buffer. I tried to use "shift register" for this, but it seemed to me that it only can deal with the calculation between data from adjacent loops. In other words, it skips 9 data elements and take the 10th one for the calculation.
             Here I also attach my VI showing what I did.
        Thank you very much in advance,
                            Suksun
    Attachments:
    wheel_encoder_1.vi ‏98 KB

    Hi Suksun,
          I hope you'll forgive me for distilling your code - mainly to understand it better.  I tried to duplicate your logic exactly - which required reversing the "derivatives"-array before concatination with the current samples array.  As in your code, the last velocity is being paired with the first position.  If first velocity is really supposed to be paired with first position, just remove the "Reverse 1D Array" node.
    cheers
    Message Edited by Dynamik on 01-07-2006 03:17 AM
    Message Edited by Dynamik on 01-07-2006 03:19 AM
    When they give imbeciles handicap-parking, I won't have so far to walk!
    Attachments:
    encoder2.GIF ‏14 KB
    encoder2.vi ‏102 KB

  • My Macbook pro was stolen 09/12, the police just returned it to me. I want to remove all the data and start over. Format the drive's etc. I have windows 7 on 1 partion and mountain lion OSX on the apple partition. How is the best way to do this?

    My Macbook pro was stolen 09/12, the police just returned it to me. I want to remove all the data and start over. Format the drive's etc. I have windows 7 on 1 partion and mountain lion OSX on the apple partition. How is the best way to do this?

    Have a look here...
    what-to-do-when-your-hard-drive-is-full.html

Maybe you are looking for

  • Appraisal template - Columns

    Hi all, I am trying to analyze the appraisal template. The columns which are defined in template show up in the document. we have columns for final appraisal, start date, end date and obviously they are visible in the document. Question is what happe

  • Revision (transaction) management. Am I doing OK?

    I need to track audit information about all tables within a data schema, which app users see via grants on the schema each app users maps to (no app user is supposed to connect directly on the data schema). To achieve this, I have a Revision table in

  • Outlook 2013 sync problem!!

    I use IMAP email on two computers. when i open outlook at home (computer2) i receive new emails, but after seeing them at work (computer2) or receiving new emails at work i can't see them on computer2 anymore. I need to keep emails on both computers.

  • Why won't Adobe Premiere Elements Editor load in Mavericks OS

    since updating to mavericks os i am unable to load or use adobe premiere elements 11 editor which i origanally purchased from the app store the program previously worked fine in mountain lion os.has anyone else experienced this problem.

  • Restriction of In house material gropu in PO

    Hello all, We can able to creat purchase order whose procurement type is external procurement but the material group is inhosue production. Can we restrict it at purchase order creation time. Thanks in advance