Confusion on sending long data out

Hi all,
If I have an array of 500 bytes, and my off-card program sends the card a command asking for the array, will it work if my card just do the following in the method that responds to the command?
..... (send outgoing...)
apdu.sendBytesLong(dataBuffer, (short)0, (short)250);
apdu.sendBytesLong(dataBuffer, (short)250, (short)250);
Or is this not allowed (since I'm sending data more than 256 in total), and I have to let the off-card program sends the command twice, each time with a different offset to get the different part of the array?
If it's the second case, then I don't understand why there will ever be a situation where the return status would be 61XX. I mean, if we can only send out data less than 256 bytes, then the off-card program should always be able to get the entire data from an APDU response every time. Then why would there ever be a 61XX response?
I must be missing some simple concept. Please help. Thanks!

You're host application should check for 61xx because the card could be T=0. T=1 will return the Le and the data. T=0 return Le=2 and 61xx. This doesn't require anything additional for your applet.
Take a look at the javacard.framework.APDU.getProtocol(),the T=0 notes for javacard.framework.APDU.sendBytesLong() and the JCRE spec chapter 8. Pay attention to 8.4.1.3 !
The beauty of JC is you shouldn't have to worry about the T=0/T=1 protocol.
Why don't you try it! What happens when you:
apdu.sendBytesLong(dataBuffer, (short)0, (short)250);
apdu.sendBytesLong(dataBuffer, (short)250, (short)250);

Similar Messages

  • Problem with send long response out.

    Dear All.
    I am trying to send a long response out with Java Card but It doesn't work properly.
    This is my code:
         public void cmdSync(APDU apdu)
              apdu.setOutgoing();
              apdu.setOutgoingLength(TOTAL_LOG_LENGTH);//TOTAL_LOG_LENGTH = 400
              apdu.sendBytesLong(log, (short)0, TOTAL_LOG_LENGTH);
    I followed this guide: http://www.cardwerk.com/smartcards/smartcard_standard_ISO7816-4_annex-a.aspx#AnnexA_2E_2
    Section A.5, Case 2E.2 - Le>256, B1='00', B2B3=either '0000' or from '0101' to 'FFFF'.
    The response APDU I received is "67 00" that means it refuse C-ADPU because of Wrong length. I follow that document and send an C-APRU like this:
    CLA INS P1 P2      B1='00' B2B3=Le. I try with 00 03 00 00 00 01 90 ( 03 is my defined INS) but it didn't occur the same with cases they give. Is there any one can help me figure this out. I appreciate your help.

    It seems you have not taken my advice from your last thread on the same topic. You need to research response APDU chaining. Extended length APDU's will not help you as your card does not seem to support it.
    HINT: You need to send 256 bytes at a time and return control to the host after each response (don't try and call send multiple times without handing control back to the host). The host then sends a GET RESPONSE APDU for the next block of data and you continue until all data is returned. Your applet needs to handle the GET RESPONSE APDU as well.
    As was said in the last thread, search the forum. I have posted example code recently for this.
    Cheers,
    Shane

  • Help needed with sending XML data out of Dashboard design/ Xcelsius

    Hi All,
    I did this a year back and got it right, but now am not able to get it, probably Ive made a small mistake which I have been overlooking.
    I selcted Enable XML send in my XML data connection and dfined the connection name as "Range_1" and Range name also as "Range_1"
    Now I worte this servlet in Java:
    public class PostTestServlet extends HttpServlet{
         protected void doPost(HttpServletRequest request, HttpServletResponse response){
         String param1=request.getParameter("Range_1");
         System.out.println(param1);
         protected void doGet(HttpServletRequest request, HttpServletResponse response){
         System.out.println("Get Called");
         doPost(request,response);
         System.out.println("abcd");
    Deployed it to Apache Tomcat 6.
    Also selected the required usage options in Xcelsius for sending data every 10 seconds.
    Now the servlet gets called, I see it in the console.
    But the request.getParameter("Range_1") is returning null.
    Tried many things, not able to figure it out. Any help?
    Thanks
    Nikhil

    Hi,
    Xcelsius/Dashboards will convert the range of values that you want to send into XML.
    It then will POST the XML when it calls the web page.
    For example, if you had created three ranges to send to your web page:
    A (a single cell)
    B (a single cell)
    C (a row of three cells)
    The data in the POST input stream for the web page will look something like this:
    <data>
      <variable name="A">
        <row>
          <column>10</column>
        </row>
      </variable>
      <variable name="B">
        <row>
          <column>15</column>
        </row>
      </variable>
      <variable name="C">
        <row>
          <column>1</column>
          <column>2</column>
          <column>3</column>
        </row>
      </variable>
    </data>
    I don't have an example for ASP, but I do for a JSP (attached).
    Regards
    Matt

  • I can record midi data from my Mason & Hamlin Piano Disc Pro Record through my MOTU Traveller into Logic but Logic won't send midi data out to the MOTU Traveller to the Piano Disc player

    Hello All,
    I can record midi data from my Mason & Hamlin Piano Disc Pro Record through my MOTU Traveller into Logic Pro 9.1.8  but Logic won't send the midi data back out to the MOTU Traveller and thus to the Piano Disc player. I got it to playback one time but have no idea how and when it did it was looping or something because the velocity was way high coming back in and the damper pedal was slamming down. When I play a key on the piano the midi "in" light on the Traveller lights up. When I play the track back on my computer no lights blink on the Traveller and when I did the apple midi studio test in utilities when I play a key I get the confirmation signal noise and the Traveller blinks when I click on the down arrow of the Traveller in the Apple midi studio test the midi out light on the traveller never lights and the signal light on the piano does not blink either. No outbound signal at all...
    I have messed with every possible parameter I can find and and have had help from one of Piano Disc's premier editors but no luck. The piano was prepped for me on Logic so it would work with my studio.  I'm positive it's my fault and I'm overlooking something really simple and stupid but what!??!
    Somebody please help.  Thank you all in advance for ANY ideas you might have!

    Blues Piano,
    I'm not sure if this will be a help or not.  I'm so Logic Pro wet behind the ears that I make newbies look experienced.  However, I'm not expecting many on the Apple support forums have a PianoDisc system, much less one with the new optical record strip.  While I don't have any record strip on my PianoDisc, I do have a PianoDisc iQ that's only a month old.  I've been playing converted paper scrolls from hundred year old player pianos through it via the MIDI in port of the PianoDisc CPU.  I've found I have to open the MIDI file in Logic Pro (10.0.4) then go to <Track><New External MIDI Track> then copy the existing track to that new external track.  Only then can I see in the Track inspector (defaults left side of screen with the Icon for the instrument) the "Port" parameter.  Then I can select my external MIDI device in that Port selector. 
    I've also encountered problems with the PianoDisc not using enough force on the notes or using too much force.  To get around this problem, until I understand Logic better, I've been setting minimum and maximum volicities.  To do that I right click on the track and select "Select All."  Then I right click again and select "MIDI" then "MIDI Transform"  then "Velocity Limiter."  In the resulting pop up window in the center is a drop down and you can play with the velocity from "MIN" to "MAX" along with "ADD" "SUBTRACT" etc. 
    I hope this helps.  I envy you your Mason & Hamlin.  If you need more help on this just email me at pfleischmann at mac dot com.

  • Transfer data out of SRM

    Dear Gurus,
    May I kindly ask you advice on the following?
    SC, PO and GR data is listed in several reports.  Data can be packed and stored in folders( transaction AL11).
    These data needs to be sent out of SRM into another server. Which is the best way to send the data out of SRM in a regular basis?
    Thanks in advance for your support,
    Ab.

    you can also write a report in the backend which retrieves the PO and GR data together with the SRM data .
    define a function in srm with input and output parameters which also exist in the backend (or either create them)
    and call the function with the po number (which checks in srm the bbp_pdbei table which shoppingcart is related)
    kind regards
    arthur

  • Long data: Use of SQL_LEN_DATA_AT_EXEC(0) and SQL_DATA_AT_EXEC

    Hello,
    What is the use of SQL_LEN_DATA_AT_EXEC(0) and what does it mean ?
    I know that when StrLen_or_IndPtr buffer
    pointer of SQLBindParameter is set to SQL_LEN_DATA_AT_EXEC  or SQL_DATA_AT_EXEC
    it means that the data for the parameter will be sent with SQLPutData.  Also SQL_LEN_DATA_AT_EXEC(length)
    is used when sending long data to a data source that needs to know how many bytes of long data will be sent so that it can preallocate space
    But what should be the expected  behavior when we set StrLen_or_IndPtr buffer
    to:
         1)  SQL_LEN_DATA_AT_EXEC(0)
    or  2)  SQL_DATA_AT_EXEC
    Thanks
    Mukesh

    Hi Elvis,
    Thanks for reply!
    But my question is what should be the expected  behavior when we set StrLen_or_IndPtr buffer
    to:
         1)  SQL_LEN_DATA_AT_EXEC(0)
    or  2)  SQL_DATA_AT_EXEC
    I think it should insert all data using SQLPutaData limited by the length of columns size.
    MSDN is silent in the case of SQL_LEN_DATA_AT_EXEC(0)
    Thanks,
    Mukesh

  • Sending ASCII char out to serial

    hello there, i like to communicate with my motorola HC11 with a Java applet i created thru the pc serial port. i understand applet can't take control of the serial, so i need to use RMI. or should i use javax.comm package?? which is easier to deal with ??? is there a java program out there that will send ASCII data out to the serial port? i don't want to reinvent the wheel again. Thanx guys

    Ah. That's quite different than what I thought. You will need to have your applet communicate with something running in your web server, which would use the serial port. That would be relatively easy to implement using the javax.comm package.
    The "something" running in your web server could be a servlet, or it could be something you could connect to via RMI or a socket. In any case it would be your server application that uses javax.comm.

  • I need to find out how much wifi data my apps are using. I have a very limited amount of wifi data, and I am exceeding my monthly allowance. Apparently, even apps I think are not open are sending/receiving data through the wifi and using up my allowance.

    I need to find out how much wifi data my apps are using. I am on a very limited amount of WiFi data each month, which I am regularly exceeding. I have been told to work out which of my apps is using the data. Also, I think I have closed an app by double clicking the home button, then swiping the app up - is this the way to close it, or will it still be sending/receiving data?

    Go into your Settings : General : and turn off background refresh for your apps.  In Settings : Mail  turn Fetch new data to OFF and Load Remote Images to OFF.  This will mean that Mail will only check for messages when you actually use it, and all your advertising junk mail won't have all the images in it.
    Turn off push notifications every chance you get.
    Make sure you are actually quitting apps:  to quit apps press the Home button twice and you should see a bunch of smaller screen images for every open app.  To quit the app swipe from the screen image (not the icon) upward off the top of the iPad.  You can swipe left and right to see more open apps, but there must be no left-right movement on the screen when you swipe upward to close the app.
    Turn off your internet connection when you do not need it.  The easiest way to do this is to swipe up from the bottom of you screen to get the control centre, and then touch the airplane to turn on airplane mode.  You can repeat this sequence to turn it back on again when you need it.  Most especially turn airplane mode on whenever you are sleeping your iPad for long periods.  This will save battery life too.  OR actually turn your iPad off - which means holding the power key down for several seconds until the red swipe bar appears, and then swipe to turn it off.  If you go this route, note that it will take longer to turn on then it takes to wake from sleep.

  • How to Send realtime MIDI CC data out of VI's (IAC bus?)

    Hello everyone!
    Im in need of some help/advice.. (Tried posting this in another help forum with no luck so trying here)
    Does  anybody know if it is possible to send 'Realtime' Midi CC data out of a Virtual Instrument used in Logic X and out of my MIDI port?
    EG: Turning the Cutoff knob in EXS24 and sending the cc data out of my Midi interface's OUT port?
    Im  hoping there is a way to somehow achieve this using the IAC Bus and  virtual cabling somehow to my Unitor 8 midi interface located in the  Audio Midi Setup section in OSX.. Or am i dreaming?
    (There is no way to assign a Midi OUT destination with a VI from what i can see. Or is there?)
    Really appreciate any help at all.
    Thanks

    Smoke wrote: You see, i would love to do what you said (above) and plug the Midi controller straight into the MPC and do it that way, but there is a simple problem.. The Midi Controller i want to buy, only sends MIDI out of a USB connection (no physical midi output port) which my MPC will not accept, only Midi cables.
    Strange. You intend to use your MPC as your sequencer yet you want buy a MIDI controller that only has a USB port? In your situation I would buy something with both 5pin DIN connectors and USB. It only makes sense.
    Smoke wrote: So! Correct me if i am wrong but the simple solution to this would be to:
    1) Plug this midi controller into my mac via USB and "Learn" Logic's VI's with the Controller's assignments
    2) Somehow, assign the Midi Controller to send to one of my Unitor 8's Midi Out port which will be connected to my MPC.. (This way, all those CC's i transmit will ALSO be sent out to my MPC )
    3) When i play back my MPC, its going to play the VI's just how i tweaked the knobs on that Midi controller.
    Do you see any problem with me achieving # 2?? (it should be possible to do that in the Environment right?)
    If this is all possible, then my question/objective is all solved thanks to you
    No, that won't work. Once you make the assignments with the Launch Control, the VI's will only respond to messages coming from the Launch Control.
    A workaround would be to hijack the Launch Control's port using Midipipe (freeware) so that Logic doesn't even see it, then route the Launch Control's data out of Midipipe via one of Unitor's output ports so that it reaches the MPC. The data would then go through the MPC and back to Logic via one of the Unitor's input ports. You would make the assignments with this data (data coming in from that Unitor port).
    J.

  • Mail running under LIon no longer grays out the name of the sender of an email that has been read.  How can I get that to happen?

    Under the old version of Mail, when an e-mail was read, the name of the sender was greted out so that I knew I had read that email.  This does not seem to happen under the new Mail thaqt came with Lion.  Help!?
    Chuck Humphrey
    [email protected]
    303-997-2755

    Kirk,
    Thanks again for your suggestions. No, I don't get an
    error message. In fact nothing happens. My name and
    key are typed in and from what I understand, once you
    do that with a real key it directs you to the
    registration page. When I get done entering the
    information the window just sits there without any
    button or option to continue.
    QT Pro is already in the QT (non-pro) you installed and the key (which is a hash of your name in part) allows the Pro features to work.
    No redirect, internet, nothing like that. As such many people have activated and think they haven't. Just look at the menu items and see if the "Pro" logo is shown next to a few (which are greyed out and not available without Pro). If not you are done.

  • How the client can send video data of it's camera out without using JMF?

    The client A and B don't install the JMF software.How the client A can send video data of it's camera to another client B,when the client A and B login in a web server on which the JMF software has been installed?Off course,all of them have the JRE.
    This is my a video exchang software in doing now using JMF technology.I hope every client using the video exchange function need not install the JMF software when the web server have installed the JMF software.

    doudouhaha wrote:
    The client A and B don't install the JMF software.How the client A can send video data of it's camera to another client B,when the client A and B login in a web server on which the JMF software has been installed?Off course,all of them have the JRE.They can't.
    This is my a video exchang software in doing now using JMF technology.I hope every client using the video exchange function need not install the JMF software when the web server have installed the JMF software.Sorry.
    For playing back, may be it is possible to "jar" the jmf along with the application and the upload on the server, then it may recognize all the classes but there can still be problem because JMF depends on many ".dll" files which are stored in System folders, as I have seen. So,........This is correct, mostly. Here goes a captfoss inforant...
    JMF is a collection of Java files (jmf.jar) that perform a certain set of functions, and it's also a set of native library files. You can use the Java JMF stuff with web-start, so the clients wouldn't have to have JMF installed to use the Java JMF stuff. The problem with doing this approach, you always have to ask yourself "Can I do what I want to do without the native library stuff?"
    To answer this question, it's important to take a look at the JMF supported formats page.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html]
    If you look in the column "JMF 2.1.1 Cross Platform Version", it'll tell you what you can do in pure JMF, without any of the native libraries. In the case of capturing data, the only thing you can capture without native code is audio through the JavaSound system.
    If you take a look at the RTP formats listed, you'll see a problem...the cross-platform version can't send any kind of video data to itself, which means you'd have to send MPEG1 to a transcoding server to bounce it back to the second client as a JPEG image...and that's if you somehow had the video data you want to transmit, which you cannot get from the cross-platform pack anyway.

  • How to send joystick data over TCP connection

    Hi all,
    I am a long time Labview discussion forum user for learning, but this is my first time posting a question, I hope somebody can help me!
    In the attached VI I am trying to send data from a joystick over a TCP connection. I can send data fine using the TCP examples (in fact the majority of my VI is just a copy of the example). However I am to the point where I do not know how to send all the data necessary (3 axis data, 12 buttons, and the POV data) over TCP. Strings, clusters, and arrays were never my strong suite and converting between them is a nightmare for me.
    Basically I am trying to send each axis data (X,Y, and Z), button data (12 buttons), and POV data (the POV data will be calculated to adjust the position of a camera, so the immediate data is not important, I will add functions to add the change in the button movements to write a standing position for two servos [pan and tilt], for which that I will need to send over the TCP connection) over the TCP connection to control various cameras and motors. I don't know if it is posible to send that much data over a TCP connection in one write VI through a string, and also how to separate the string on the other side in order to control the client VI.
    Again, the actual TCP communication I get, and can operate fine, just formatting all the data into a string (or whatever is required) so that I can unpack on the other side is the issue here.
    Another question I have (not impotant to get the program running just might make it easier on me) is can a TCP server (which sends the data to the client) also recieve data back from the client on the same port ( for example sensor data and digital positions [on,off])? Or do I need to set up two TCP communication loops with the first client acting as the server on a different port than the first, which then sends the data to the original server, which also has a client TCP configuration in another loop? I hope this makes sense...
    One final question.....I already have a solution to this but using labview for the entirety of this project would be nice. I use skype to stream 1080p video from a webcam to my computer so I can view live feed. Can labview do this? This would be awesome if so, I am just not sure if the communication protocols in use could support real time (or as close as possible to streaming) for 1080p video.
    Thanks all in advance for your help,
    Physicsnole
    Attachments:
    cameraserver.vi ‏24 KB
    cameraclient.vi ‏18 KB

    Physicsnole wrote:
    In the attached VI I am trying to send data from a joystick over a TCP connection. I can send data fine using the TCP examples (in fact the majority of my VI is just a copy of the example). However I am to the point where I do not know how to send all the data necessary (3 axis data, 12 buttons, and the POV data) over TCP. Strings, clusters, and arrays were never my strong suite and converting between them is a nightmare for me.
    Well, you cast the axis info cluster to a string, but then you cast it back to an array of DBL. Thatr's not compatible. You should probably cast it back to an "axis info" cluster of exactly the same type. Go the the other VI and right-click the cluster wire to create a constant. Now move that diagram cluster constant to the other VI and use it as type.
    Your default ports don't seem to match. You seem to have client and server roles confused. In the sever you create a listener, but then you start sending packets, even though no connection is established. The connection needs to be initiated by the client.
    Your client stops the loop the first time a timeout is encountered. Shouldn't that be more permanent? Also, please retain code clarity and avoid unecessary complexities. For example, replace the "not or" with a plain "or" and change the loop to "stop if true"
    Physicsnole wrote:
    Basically I am trying to send each axis data (X,Y, and Z), button data (12 buttons), and POV data (the POV data will be calculated to adjust the position of a camera, so the immediate data is not important, I will add functions to add the change in the button movements to write a standing position for two servos [pan and tilt], for which that I will need to send over the TCP connection) over the TCP connection to control various cameras and motors. I don't know if it is posible to send that much data over a TCP connection in one write VI through a string, and also how to separate the string on the other side in order to control the client VI.
    You can send as much as you want. The casting to/from string is the same as described above.
    Physicsnole wrote:
    Another question I have (not impotant to get the program running just might make it easier on me) is can a TCP server (which sends the data to the client) also recieve data back from the client on the same port ( for example sensor data and digital positions [on,off])? Or do I need to set up two TCP communication loops with the first client acting as the server on a different port than the first, which then sends the data to the original server, which also has a client TCP configuration in another loop? I hope this makes sense..
    The primary function of a "server" is to wait for a connection and then communicate with the client once a conenction is established. An established TCP/IP connection is fully two-way and both sides can send and receive.
    LabVIEW Champion . Do more with less code and in less time .

  • Executing same VI multiple times, sending/retrieving data

    I know how to
    execute a single vi multiple times using the invoke node/reentrant method.  But
    I am not sure how to send/get data the running vi's.
    A little background
    on my project.  I have to test up to 64 units for a long period of time.  When
    one of the 64 units is found, I want the test to execute the test.vi then come
    back to my main.vi and wait for the next unit to test to be
    found.
    The test.vi will
    require some information to run so I need to get that data into the test.vi
    along with a way to stop the tests while they are running.  I also want to
    report running data back to the user, so I need to get data from
    test.vi.
    I am using a
    producer/consumer/display loop(s) and I would like to be able to use my display
    queue to collect and sort data from my running test.vi's.
    I may be going about
    this wrong executing test.vi using the invoke node, but I am trying to find away
    that the test vi's will independently execute and run.
    Please let me know
    if I need to clarify my situation.  I have been trying to figure this out for a
    while, so it may make sense in my head, but not on paper.
    Thanks,
    Zac

    If I understand you correctly, you are invoking a reentrant VI to run in up to 64 different instances?  And you need to set up a communications mechanism between each instance and the main VI.
    I would look at a functional global variable or action engine.  (Search on either of those terms and  you will come up with numerous examples).
    Let the FGV store data in its uninitialized shift registers.  If you need a separate queue from each VI instance to the main, then have one shift register be an array of queue references.  Let's say you are ready to invoke the first instance of your VI.  Pass to it and ID value of 0 in its connector pane.  Obtain a queue and store the reference to that in index 0 of the queue array in the FGV.  Every time you need to enqueue or dequeue from queue 0, you use index array to retrieve the reference stored in queue 0.  You would do that whenever you need to work inside the instance of the VI (have it remember that its ID was 0) or in the main VI.
    Next instance of the reentrant VI, you pass it a 1 as its ID.  Let the FGV obtain a queue and store its reference in index 1 of the array.  You could have other values stored in the FGV or other arrays such as an array of booleans that serve as flags to tell the instance of the reentrant VI to stop running.
    Basically the FGV or action engine becomes a storehouse of information for each instance of the reentrant VI.  It will be scalable.  Each time you need to add a new instance of your VI, you store the info in another element of the array stored in the FGV that is based on a ID number you assign as you create each instance.

  • Send same data to two systems

    I tried several ways but failed. And I'm very confused, Is somebody tell me the correct way?
    send the same message to two receivers.
    So there is one Receiver determination, what about interface determination?
    Shoud I use different message interfaces and mapping for two receivers?
    Thanks very much.

    if you want to send same data to two systems this is how it will be
    1 outbound interface
    2 inbound interface (this is for more clarity. The interfaces will use the same message type)
    1 Message mapping
    2 interface mapping
    1 Receiver determination
    2 interface determination
    1 sender agreement
    2 receiver agreement
    This is just 1 design out of the many But i guess the above sud be clear enough.

  • How to get data out of Vector of vector ???

    All,
    I have a vector v1 which is getting populated by the resultset of the database. This vector has another two vectors vrow & vcol .
    Code as follows ---
    v1 = new Vector();
    while(rs1.next()) {
         Vector vrow = new Vector();
         for (int i=intstartday ; i <= intendday ; i++)
         {     // here I am getting the new result set for each i //
              ResultSet rs2 = getResultSet();
              while(rs2.next()) {
                   Vector vcol = new Vector();
                   vcol.addElement(rs2.getString("day"));
                   vcol.addElement(rs2.getString("reg_hr"));
                   vcol.addElement(rs2.getString("dateday"));
                   vrow.addElement(vcol);
              rs2.close();                              
         } // for loop end
         vrow.addElement(strChargeNmbr);
         v1.addElement(vrow);                    
    } // end of rs1 resultset while loop
    I need to get the data out of this vector v1. If anyone has any insight on this - how to get the data from vectors which has differnt type of objects in it , please send me the code example asap.
    thanx

    Thanks for your suggestion. It is working now except that I am having problems in getting the charge NUmber out....Charge NUmber is nothing but a String.
    So my row Vector has two values
    1. Check the code where I am populating the Vectors
    while(rs1.next()) {
    strsubmittime = rs1.getString("SUBMIT_TS");
    strapprovetime = rs1.getString("APP_DIS_TS");
    strapprempid = rs1.getString("APP_DIS_EMP_ID");
    strChargeNmbr = rs1.getString("entered_cn");               
    Vector vLaborrow = new Vector();
    for (int i=intstartday ; i <= intendday ; i++)
    // here execute the query and get the result set for every i //                         ResultSet rs2 = getResultSet();
         while(rs2.next()) {
         Vector vLaborcol = new Vector();
         vLaborcol.addElement(rs2.getString("day"));
         vLaborcol.addElement(rs2.getString("reg_hr"));
         vLaborcol.addElement(rs2.getString("dateday"));
         vLaborrow.addElement(vLaborcol);
    } // for loop end
    vLaborrow.addElement(strChargeNmbr);
    vLabor.addElement(vLaborrow);
    } // end of rs1 resultset while loop
    2. check out the following code where I am trying to get the Charge NUmber values out.--
    for(int i=0;i<vLabor.size() ;i++)
    Vector rowVec = (Vector)vLabor.elementAt(i);
    for(int j=0; j< rowVec.size() -1 ; j++)
    try
         if (j==0) {
    String strChargeNmbr = (String)rowVec.elementAt(j) ;
    Vector laborcol = (Vector)rowVec.elementAt(j);
    String day = (String)laborcol.elementAt(0);
    String reg_hr = (String)laborcol.elementAt(1);
    String dateday = (String)laborcol.elementAt(2);
    strChargeNmbr = strChargeNmbr + " " + reg_hr ;
    }catch(ClassCastException e){
         System.out.println("Reading in vector2");
    } // end of j for loop
    System.out.println(strChargeNmbr);
    } // end of i for loop
    I am getting the following Exception --
    "Reading in vector2"
    Please send me the code -- how to get the Charge NUmber out. I am confused where to get the value - is it in the first for loop or second for loop ??

Maybe you are looking for

  • Installation failed. Error Code: U44M1P7

    I am seeing an error code every time I attempt to upgrade Adobe CSXS Infrastructure 4: CSXS Infrastructure 4.0.2 update. After reviewing the FAQ: https://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html I uninstalled Photos

  • Add column to "Customer Receivables Ageing" report

    Hi all! I would need to add a new column via SDK to the matrix in the SAP report "Reports Business Partner -> Ageing -> Customer Receivables Aging". I also want to populate this column with SDK after the report was loaded. Does anyone have any sugges

  • Dashboard ISSUE,  blank or white widgets

    I've recently upgraded to snow leopard 10.6.1 but dashboard widgets go wrong since then. Some widgets are blank and some are partially white. Calendar shows only a table without dates. Clock shows arms without the name of the city. It's quite strange

  • What pegging logic is used in ASCP 12.1 DRP plans?

    Hi, could you help me to understand the folowing issue. We are implementing ASCP 12.1 DRP planning and have issue with pegging - it's seemd to be done in random order. We need supplies are pegged to demands on day-by-day basis or "standard pegging" (

  • LR 4...Edit In...Elements 11 does not pass photo.

    Using Mac OS X 10.7.5; LR 4.3; Elements 11; Camera Raw 7.3 Had to set up Elements 11 as an external editor.  When selecting the Edit In choice in the Photo menu, the Elements 11 application opens but only a blank panel in the center - no photo appear