Chaining in Protocol T = 1 in javacard for data_size > 256

Dear friends

I have a problem that confused me a couple of days. I want to send the data whose size is larger than 256. I found some code examples in the web. These codes like this:

Private Sub sendData (APDU apdu) {}

work on the number of bytes to send this time and how much will be left

BUF_IN_OFFSET [0] = 0;

short stay = (short) ((short) 372 - BUF_IN_OFFSET [0]);

stay String Boolean = > MAX_APDU;

sendLen short = string? MAX_APDU: stay;

Get ready to send

apdu.setOutgoing ();

apdu.setOutgoingLength ((short) sendLen);

apdu.sendBytesLong (data, BUF_IN_OFFSET [0], sendLen);

Check to see if there are more APDU send

If {(String)

BUF_IN_OFFSET [0] += sendLen; count the bytes sent

stay = sendLen;

ISOException.throwIt ((short)(ISO7816.SW_BYTES_REMAINING_00 + remain));

} else {}

BUF_IN_OFFSET [0] = 0; more no byte to send

}

}

When I run this code on netbeans Simulator, it works correctly and response status word 61xx. but when I run it on the real map (expert smartcafé 3.2) response 9000 and don't go back stay length of the data. My card is supported by the two protocol T = 0/1 and and I guess the employee Protocol related to this problem, or there may be another problem.

What is this code executed for T = 1 protocol properly?

can someone help me?

Thanks in advance.

Mohsen Mgh

Hello

Use a few other SW as 0 x 1122 or something another apart frm standard values.

Even I have faced a problem with standard warning on UICC cards codes when using mobile devices to connect with the applet. It was due to a bug in the SC API library used in the Android device.

BR,

PPT

Tags: Java

Similar Questions

  • How can I download Internet Protocol Version 6 (TCP/IPv6) for windows 7

    I am not really satisfied with windows 7 home Priemium 64-bit, I don't know and I don't know how I can download Internet Protocol Version 6 (TCP/IPv6) for windows 7, besides that IE 9, cannot download and run Adobe Flash 10.6, Microsoft and Windows begins to find quick solutions or we also have the right in our country to take Microsoft and justice exactly the same If someone used a not registered copy.

    Concerning

    Angry Sam

    Follow these steps:

    Click Start, type: network connections.

    Press enter on your keyboard

    Right click on your network connection and then click Properties.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    Select the check box next to the Internet Protocol Version 6 (TCP/IPv6).

    ----

    Please note that if you use a 64 bit version of Windows 7, you must use the 32-bit version of Internet Explorer that is included with the operating system. Adobe Flash Player is not commercially supported by the 64-bit version of Internet Explorer still under Windows 7 currently.

    Click Start > all programs > click Internet Explorer (one who is not listed as 64-bit)

    Adobe Flash Player not is not supported for playback in a 64-bit browser
    http://kb2.Adobe.com/CPS/000/6b3af6c9.html

    I have Windows 7 64 bit and you need to use Internet Explorer 32-bit

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/babaa5f8-FF06-4EA2-aef6-a9416d65f981

  • EAP chaining with the PEAP Protocol

    I was wondering if we manage EAP chaining with PEAP (not EAP-FAST). For some reason, it does not work for me.

    DS

    I think the answer is 'No', but it is a little more complex than that, because you will use EAP-FAST, EAP-MS-CHAPv2 n EAP - TLS. I have not myself deployed, but here is a link to a good document that describes the process of chaining EAP and requirements:

    http://www.Cisco.com/en/us/solutions/collateral/ns340/ns414/ns742/ns744/docs/howto_80_eapchaining_deployment.PDF

    Thanks for the note!

  • Oracle SOA Suite - mediator for Protocol switching and limitation of

    Hello


    I tried to get the exact answer on the internet and also in the Oracle Doc, but in the oracle doc also what is written "Compatible transport protocols, including e-mail, FTP, HTTP (S), file and JMS" but the full list of supporting the Protocol do not receive even for Ombudsman in SOA Suite also.


    can someone please respond to these requests.


    Q1. Mediator dose provide Message even as OSB dose limitation?

    Q2. Mediator dose allow protocol for example SOAP at the REST or JMS with MQ etc even as OSB?

    or mediator provide switching protocol but have limited options for Protocol against the OSB (OSB stand verity of the Protocol)


    Q3. Please tell me what protocol are supported by the Ombudsman and which are supported by OSB

    Thank you

    Customer reviews...


    Q1. Ombudsman dose provide Message even as the OSB dose limitation?

    -No, the mediator has Message limiting feature compared to the OSB.

    Q2. Ombudsman dose allow protocol for example SOAP at the REST or JMS with MQ etc even as the BSO?

    or mediator provide switching protocol but have limited options for Protocol against the OSB (OSB stand verity of the Protocol)

    -The mediator is a component on SOA. Here you are talking about the whole flow which allows to convert, say, a SOAP for a REST request. This can be achieved through "Service SOAP-> mediator-> REST reference" in a composite on SOA. Ombudsman is not necessary to have this ability, because this functionality is provided as part of basic infrastructure in the suite of SOA.

    Q3. Please tell me what protocol are supported by the Ombudsman and which are supported by OSB

    -Again, it is more SOA infrastructure that provides the Protocol for inbound and outbound scenarios support. More SOA supports bindings of SOAP, REST, FTP, LDAP etc. If you can say to your specific requirement then I can provide more detailed information.

    Kind regards

    Sandeep

  • Encoder protocols

    I never realized there are so many serial encoder protocols until I was responsible for investigating making some encoder testbeds. Open protocols should not be a problem, but to service, repair and test encoders with closed protocols will take some work, if it can be done at all. Any suggestions? They do a 'universal Protocol Analyzer' for encoders?

    You will need to try to get the protocols tailored to each manufacturer. I know that Yaskawa publishes information on their protocol, even if it isn't a standard protocol

  • Is a UPC (Unified Port Controller) of the FI 6200 supports multi protocol port simultaneously?

    Hello a good person.

    Is a UPC (Unified Port Controller) of the FI 6200 supports multi protocol ports simultaneously?

    For example, the second UPC has 1/9-16. Configure the ports like these? 1/9-10 for the server ports, 1/11-12 for the uplink ports, 1/13-14 for FCoE Uplink ports, 1/15 and 16 for the Uplink FC ports and so on. I know that Cisco Documents describe a port can be configured as server port, FC, FCoE... I "don't not interesting in these gross comments."

    Thanks in advance.

    Paul

    In UCS unified configuration of ports is controlled by a scroll bar, as shown here.

    There is a fixed configuration for FI ports, then another to the expansion Module. FCoE and Ethernet ports are both type Ethernet from a unified point of view port, CF requires that you select the ports you want to be FC ports.

    All ports to the left of the slider bar will be Ethernet, which can also be configured for FCoE, and everything to the right will be CF.  So to answer your specific scenario above Yes. BUT with a caveat.

    If you have moved the cursor between port 14 and 15 then left would be Ethernet can be configured as a Server Port, Port Uplink or FCoE port and ports 15 and 16 could be configured as FC ports.  BUT the downside would be that ports 17-32 would also be FC ports and you couldn't get to the Ethernet ports later.  If the port configuration is adjacent to ports on fixed ports, as well as on the extension module.

    Best practice is to determine how many FC ports you need and configure each component accordingly.

    Here are some details on the guidelines for the unified configuration of Ports.

    http://www.Cisco.com/en/us/docs/unified_computing/UCS/SW/GUI/config/Guide/2.0/b_UCSM_GUI_Configuration_Guide_2_0_chapter_0101.html#concept_0249934662D1439AA5E926A503AC8B4B

    Hope this helps,

    Steve McQuerry

    UCS - Technical Marketing

  • How Pix manages the rare IP protocol packets

    Does anyone know of a document explaining how the Pix handles, regarding the State, rare IP protocol packages such as ESP, AH, OSPF, GRE, etc. ? I'm concred with traffic flowing through the pix is not intended.

    I understand how TCP, UDP, and ICMP packets are handled, but I can't find anything on all others.

    Thank you.

    In General, the Pix must inspect any protocol passes through it accepts for TCP and UDP. The exception is a protocol which is managed by a '' correction '' like PPTP which has a correction to allow GRE (Protocol 47) traffic that results.

    If you want a different protocol than UDP/TCP to be allowed to get THROUGH, you almost create an ACL entry for her.

    The other exception is the traffic to the Pix itself as host. ACL have absolutely no effect on the traffic to the Pix as the host. For example, the packets OSPF intended for the Pix when running OSPF. Or packages ESP for the Pix for a VPN tunnel, it stops. Or ICMP traffic to the Pix itself (controlled using the command [icmp]). ACL don't apply to transit traffic.

  • CDs to the same Standard for 2003 Premium 2003?

    I have a client who decided to do the Green thing and pay for a green business correctly come and dispose of all its old printers, keyboards, monitors and old machines.  They knew what they were doing.  They him cleaned up.  They all unwanted software behind to the left and each piece of current software they had.  I did ASRs to compensate for missing system restore disks.  Dell has helped me huge in this substitute other media.  Reference Dell would give me media for OS too it they had, but they only have R2.  R2 do me no good because OEM R2 will not update R1.  I'm on Microsoft distribution lists, so I have all of their software, but my discs do not work like the scans.  The originals were .cab files and directories.  Not mine huge .exe chained.  I rearrange Microsoft and paid for the replacement of media, but it has been weeks.  The problem is SP2 for SharePoint is what he always does, destroyed SharePoint.  In fact, this is how we found out what happened.  I arrived for the container where all the discs have been, and the container had papers without value in it and all software had disappeared.  Now, I need to re - install SharePoint.  I have clients with SBS Standard and Premium of SBS R2.  I don't have another regular customer with SBS Premium.  The question is, are the Standard and Premium, the same as the key discs?  If they are, I'm good.  If they are not... I'll need to come up with a Plan B, or wait forever.  The urgency is because this company uses SharePoint widely, and it is to kill her.

    Message edited by JackT on 16/09/2008 20:28

  • Compaq Presario CQ60: hard disk for presario cq60

    Hello!

    I hope someone can help me because I have searched everywhere for the answer and just can't find it...

    In any case, anyone know which hard drive comes with the Compaq Presario CQ60?  Which means, I've had the computer for a while and I'm back from the service (not HP) and was missing a memory card, so I checked the HARD drive and noticed that it is a Toshiba.  Anyone know if this is what usually comes with this model?

    I appreciate the help.

    The laptop will come with one of several brands of hard drive.

    It all depends on what HP had available in the supply chain at the time to the needs for specific laptop when the laptop is being manufactured.

  • No service defined for COLLECTION_GET_ADMIN_MARKED_CONFIG.

    I made the link between the Webcenter and Webcenter Portal happy and I got error like this


    oracle.stellent.ridc.protocol.ServiceException: no service defined for COLLECTION_GET_ADMIN_MARKED_CONFIG.


    How do I solve this problem

    Connect to the Complutense University of MADRID with a user admin and select Admin Server in the administration section:

    Select Manager components on the left side and click on advanced for more control components Manager. The folders_g component does not appear in the component database manager, then go to the advanced Manager

    In the components list is activated, select FrameworkFolders and disable it. In the disabled list, select folders_g and activate it.

    Now, restart server of the University Complutense of MADRID.

  • Dealing with purge of one voice channel to another Podcast. Chaining aside?

    I recorded a podcast with a new audio kit episode. 2 dynamic microphones in a blender, recorded on hearing CC via USB with a microphone on each channel.

    Now I'm editing it I found that a speaker, Mark, is quite much stronger than the other, Ben, and Mark can be "heard" by Ben's mic.

    CH 1 - Mark speaking loud and clear the voices.

    CH 2 - voice gentler Ben. Crosstalk between Ch 1 is quite noticeable.

    As a result, purge of Mark in Ch 2 creates an embarrassing mixture echo when he speaks, and Ben is not. If I solo Ch 1/Mark, her voice is nice and crisp with no echo. When Ben talks to himself, the mixture is also nice and crispy because it is not strong enough in the room to mic effect mark.

    What is a good way to deal with this? I played a bit with chaining aside some dynamics processing (I'm totally new to side-chaining). It is 'ok', but it's a bit hit and Miss, in some cases when Mark and Ben call string active side Marc Ben DP, cut him too.

    That explained everything well? Hard to explain something when I don't know the terminology to explain it is!

    I guess every studio with 2 people or more on pickups in the same room must have this problem of "purge". How he usually treats? Next time I record, I think I'm going to try and move the microphones away from each other at first.

    Post edited by: Ben Hutchings to add more details and correct a misleading title.

    Well, chaining front side I think I might try a simple noise gate.  Carefully put in place on the channel which is picking up 'the other guy' it might work for you.

    However, if an "automatic" solution (door chain or noise side) does not work for you, and it could never be perfect - be prepared to go through and manually adjust levels manually.  You will be surprised how quickly you can get with a little practice.

    Long term, you're always better off trying to avoid this kind of problem at the time of registration.  Simple things like choice of microphone and positioning can make a big difference, as can moving your speakers a little further out.  Assuming the use of directional microphones, putting the microphones back to back to use dead spot in picking model... and mobile people a little father goes to use the "inverse square law' might well give you what you need without a lot of treatment.

  • Unable to get the search using query RIDC idc on Protocol

    Hi all

    I'm having a strange problem when querying ucm using CRMI.

    When I use the connection of client for the idc as protocol below

    IdcClient idcClient = manager.createClient ("idc://abc.xyz.com: < port >");

    result is null.

    but when I use the connection of client for HTTP as below

    IdcClient idcClient = manager.createClient ("http://abc.xyz.com:16200/cs/idcplg"); ")
    game is not null. I get the content

    I use the weblogic user to create the connection that my code is as below

    IdcClientManager Manager = new IdcClientManager ();
    try {}

    Create a new connection to IdcClient idc on Protocol (i.e. connection socket for content server)
    IdcClient idcClient = manager.createClient ("idc://hostname:intradocserverport"); It does not work

    to use the connection through the web - start
    IdcClient idcClient = manager.createClient ("http://abc.xyz.com:16200/cs/idcplg"); ")
    UserContext IdcContext = new IdcContext ("weblogic", "weblogic1");
    DataBinder dataBinder = idcClient.createBinder ();
    dataBinder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
    dataBinder.putLocal ("QueryText", "xRegionDefinition < match > 'NEWS_RD' < AND > xWebsiteObjectType < match >"Data file"");
    ServiceResponse response =
    idcClient.sendRequest (dataBinder, userContext);
    DataBinder responsed = response.getResponseAsBinder ();
    DataResultSet = myDataResultSet
    responsed.getResultSet ("SearchResults");
    int i = myDataResultSet.getRows () .size ();
    If (i == 0) {}

    System.out.println ("found content no.");
    } else {}
    System.out.println ("content is present");
    }

    } catch (IdcClientException e) {}
    System.out.println ("inside the exception" + e.getStackTrace ());
    }
    }

    I cannot understand why its happening.
    I spent we I could search using idc also, but then many use same AAU so someone might have changed some configurations that I can't understand

    Is your WLS server running and available to the managed server admin? Or you run the server managed mode the independence? If the server administrator is not available, applications via the Protocol of idc using "external" (like weblogic) users will fail. However the http requests will continue to work.

    One way to test this is to use "sysadmin" as the user when it connects using the Protocol of the idc. If it works, then this probably means that WLS server admin is unavailable.

  • Problem with JMS via the SSL protocol in clustered environment

    Hello

    We run Weblogic 11 g Cluster (area) which consists of admin server and two managed server MS1, MS2.
    LIKE and run it on the computer 1, MS1 MS2 runs on machine 2. Both machines have two network interfaces, a public used for client connections and an intern for cluster communication, monitoring etc. The default channel of each Weblogic Server is listening on the internal network interface, and Moreover we have two channels (for http and t3 Protocol) configured to the public interface.
    The two managed servers are JMS provider and there is a JMS Module myModule in the field with the following JMS resources: custom connection factory myConnFactory (Load Balancing active = true = false server affinity, target: entire cluster JMS) and myQueue, which is a uniform distributed queue (targets: MS1, MS2). The queue is accessed by its logical JNDI name, but she is stuck on each managed server.

    JMS communication flows normally through t3 dedicated listening on the public interface. However, a new external client will send messages to myQueue and communication must be encrypted for security reasons. For this reason, we have implemented SSL. Instead activate a DefaultSecure channel, we left 'SSL listen Port active' = false (as the default channel would be linked to the internal network interface) and created a new channel T3SChannel t3s Protocol on the public interface for incoming client connections.

    The customer creates a t3s connection to the cluster (through T3SChannel) and gets the factory connections and the queue, use the JNDI ( source) search. The JMS connection is in real-time with MS1. If we want to create two consumers for this queue, the consumer of fist is created the MS1 and the second will be created on MS2 (thanks to active balancing). However, the creation of the second consumer fails with an exception (it is thrown on the client):

    java.rmi.ConnectException: no valid port known for: "DefaultSecure [t3s]: t3s (t3s): mserver1 - internal .company .com: 56213:null:-1 ';" No router available at destination
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:396)
    at weblogic.rjvm.RJVMImpl.ensureConnectionEstablished(RJVMImpl.java:303)
    at weblogic.rjvm.RJVMImpl.getOutputStream(RJVMImpl.java:347)
    at weblogic.rjvm.RJVMImpl.getRequestStreamInternal(RJVMImpl.java:610)
    ... 18 more

    We were told that the exception can be avoided with t3s < default protocol > - < / default protocol > element (default is t3) added to the config.XML in the Weblogic domain. If we configure t3s as default protocol, we also need to activate the DefaultSecure channel on each server and then everything works and the customer is able to correctly create consumers.

    However, as a side effect, the entire cluster on weblogic.rjvm communication layer and then by t3s. We do not want that because internal cluster communications are set enough with other methods and it will have impact on the notable performance in the production environment. In principle, it should be possible to enable the external client to connect to the JMS provider via the channel new, safe, without affecting the existing internal communication in the cluster (which should be a black box for the customer).

    My question: is it possible to run the example described without defining the default protocol to t3s?

    Thanks for the reply.

    My question: is it possible to run the example described without defining the default protocol to t3s?

    Thanks for the very clear problem description. I checked with our customer support guru and I'm sure that the answer to your question is no, I think you have encountered a known problem and have already struck with the recommended workaround.

    That said, you can be able to avoid at least partially the problem by setting "server-affinity = true" on your CF. as you probably well know, affinity = false encourages consumer and producer traffic to route customer, on its server host connection, then possibly on a "second leap" to another server in the cluster. It looks like the attempt of an implicit downgrade of a secure request origin SSL in the first bond on a channel not secure in this second jump is to throw the exception.

    HTH,

    Tom

  • NetApp:SNAPDrive and SNAPManager for Exchange on an RDM

    I found an archived discussion that was about two years old, so I thought I have this back. I want to use Netapp SnapDrive one and SNAPManager for Exchange on a physical RDM. All points of the documentation using the initiator iSCSI from inside the virtual machine, but I have iSCSI HBA and so is not an option. Any suggestions?

    Hello

    It is Abhinav Joshi, one of the reference architects at NetApp virtualization. The latest version of SnapDrive one which is version 6.2 now supports physical RDMs in addition to iSCSI initiator of s/w inside comments. It is available for download on the moment of NetApp Site. http://now.NetApp.com/now/download/software/snapdrive_win/6.2/

    We recently published a reference Architecture that highlights best practices for execution of MS Apps (SQL Server, Exchange and Sharepoint) across all the protocols - FC, iSCSI, NFS. For iSCSI, this version showcases initiator iSCSI inside comments.

    More details can be found here: http://blogs.netapp.com/virtualization/2009/11/updated-solution-guide-virtualize-microsoft-apps-mixed-workload-exchange-sql-server-and-sharepoint-o.html#more

    The updated version of the Ref arch with RDM iSCSI option should be available soon.

    Kind regards

    Afonso Joshi

    http://blogs.NetApp.com/virtualization/

  • Thinking and method of chaining

    Hello

    I'm doing some work with reflection and uses the java.lang.reflect.Method class to call methods (using the, uh, "call" method).

    One aspect of the work I do involves the chaining method, for example myObject.aMethod () .anotherMethod () .yetAnotherMethod ();

    Looking at the API documentation, the invoke() method only seems to accept a single method call and its associated parameters. Can method of chaining be modeled using reflection?

    Thanks for any thoughts.

    811678 wrote:
    Thank you for your quick and helpful response. I mean the first case, unfortunately. I'll have to rethink my approach.

    Yes, if you stop and think about it, given that invoke() is a method of the class method, it only works if invoke() returns an object method as well.

Maybe you are looking for

  • Can I install the exe of Firefox on a Flash DRIVE and install from there on another computer?

    Old IE on win XP do not allow me to install although Mozilla supports still XP. Thank you

  • What would prevent Thunderbird to recreate the deleted files *.msf?

    Which would prevent TB to re-create *.msf files after they have been deleted, to get the old mail appears in TB (mail still physically in the Mail folder)? Had to create a new profile & copy in a bunch of accounts. Everything worked OK except one. 1,

  • construction of a simple blinking light

    Hello I'm new to multisim and just installed the Multisim on my lap. To get started, I started with the light flashing, which will be part of my scheme. But I am unable to view his response on Osciloscope.Can someone please help me with this. I used

  • Pavilion Slimline 400: Installation problem

    I tried in vain to install my old Bejeweled game on my brand new HP Pavilion Slimline 400 office.  No matter how many times I clicked on the Install of the game on my screen button, nothing happened.  Oddly, I had no problem installing the same game

  • Fix error 40

    They sent me the patch for 64 bit vista computer http://hotfixv4.Microsoft.com/Windows%20Vista/SP3/Fix252091/6000/Free/379780_intl_i386_zip.exe I entered the password after you download the fix and I get a window ' year error occurred while uncompres