[Javacard] Deploy code to a javacard of type gp211

Hey i have probleme to debloy to real java card, the code works in the emulator i have instal in netbeans but not in a real card, when i try it returns 6e00
My card is of type gp211, card reader is acs acr38 and iam using Netbeans IDE 7.4 and GPshell 1.4.4
My Script for gpshell is :
mode_211
enable_trace
establish_context
card_connect
select -AID a000000003000000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
delete -AID a00000006203010c0101
delete -AID a00000006203010c01
install -file Wallscript.cap -nvDataLimit 2000 -instParam 00 -priv 2
card_disconnect
release_context
And my code is :
package classicapplet1;
import javacard.framework.APDU;
import javacard.framework.Applet;
import javacard.framework.ISO7816;
import javacard.framework.ISOException;
import javacard.framework.OwnerPIN;
public class WallScript extends Applet {
    /* constants declaration */
    // code of CLA byte in the command APDU header
    final static byte Wallet_CLA = (byte) 0x80;
    final static byte staticpin[]={0x01,0x02,0x03,0x04,0x05};
    // codes of INS byte in the command APDU header
    final static byte VERIFY = (byte) 0x20;
    final static byte CREDIT = (byte) 0x30;
    final static byte DEBIT = (byte) 0x40;
    final static byte GET_BALANCE = (byte) 0x50;
    // maximum balance
    final static short MAX_BALANCE = 0x7FFF;
    // maximum transaction amount
    final static byte MAX_TRANSACTION_AMOUNT = 127;
    // maximum number of incorrect tries before the
    // PIN is blocked
    final static byte PIN_TRY_LIMIT = (byte) 0x03;
    // maximum size PIN
    final static byte MAX_PIN_SIZE = (byte) 0x08;
    // signal that the PIN verification failed
    final static short SW_VERIFICATION_FAILED = 0x6300;
    // signal the the PIN validation is required
    // for a credit or a debit transaction
    final static short SW_PIN_VERIFICATION_REQUIRED = 0x6301;
    // signal invalid transaction amount
    // amount > MAX_TRANSACTION_AMOUNT or amount < 0
    final static short SW_INVALID_TRANSACTION_AMOUNT = 0x6A83;
    // signal that the balance exceed the maximum
    final static short SW_EXCEED_MAXIMUM_BALANCE = 0x6A84;
    // signal the the balance becomes negative
    final static short SW_NEGATIVE_BALANCE = 0x6A85;
    OwnerPIN pin;
    short balance;
    private WallScript(byte[] bArray, short bOffset, byte bLength) {
        pin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);
        byte iLen = bArray[bOffset]; // aid length
        bOffset = (short) (bOffset + iLen + 1);
        byte cLen = bArray[bOffset]; // info length
        bOffset = (short) (bOffset + cLen + 1);
        byte aLen = bArray[bOffset]; // applet data length
        pin.update(staticpin,(short)0,(byte)5);
        register();
    } // end of the constructor
    public static void install(byte[] bArray, short bOffset, byte bLength) {
        new WallScript(bArray, bOffset, bLength);
    public boolean select() {
        if (pin.getTriesRemaining() == 0) {
            return false;
        return true;
    public void deselect() {
        // reset the pin value
        pin.reset();
    public void process(APDU apdu) {
        byte[] buffer = apdu.getBuffer();
        if (apdu.isISOInterindustryCLA()) {
            if (buffer[ISO7816.OFFSET_INS] == (byte) (0xA4)) {
                return;
            ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
        if (buffer[ISO7816.OFFSET_CLA] != Wallet_CLA) {
            ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
        switch (buffer[ISO7816.OFFSET_INS]) {
            case GET_BALANCE:
                getBalance(apdu);
                return;
            case DEBIT:
                debit(apdu);
                return;
            case CREDIT:
                credit(apdu);
                return;
            case VERIFY:
                verify(apdu);
                return;
            default:
                ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
    private void credit(APDU apdu) {
        if (!pin.isValidated()) {
            ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
        byte[] buffer = apdu.getBuffer();
U
        byte numBytes = buffer[ISO7816.OFFSET_LC];
        byte byteRead = (byte) (apdu.setIncomingAndReceive());
        if ((numBytes != 1) || (byteRead != 1)) {
            ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
        byte creditAmount = buffer[ISO7816.OFFSET_CDATA];
        // check the credit amount
        if ((creditAmount > MAX_TRANSACTION_AMOUNT) || (creditAmount < 0)) {
            ISOException.throwIt(SW_INVALID_TRANSACTION_AMOUNT);
        if ((short) (balance + creditAmount) > MAX_BALANCE) {
            ISOException.throwIt(SW_EXCEED_MAXIMUM_BALANCE);
        balance = (short) (balance + creditAmount);
    private void debit(APDU apdu) {
        if (!pin.isValidated()) {
            ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
        byte[] buffer = apdu.getBuffer();
        byte numBytes = (buffer[ISO7816.OFFSET_LC]);
        byte byteRead = (byte) (apdu.setIncomingAndReceive());
        if ((numBytes != 1) || (byteRead != 1)) {
            ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
        byte debitAmount = buffer[ISO7816.OFFSET_CDATA];
        if ((debitAmount > MAX_TRANSACTION_AMOUNT) || (debitAmount < 0)) {
            ISOException.throwIt(SW_INVALID_TRANSACTION_AMOUNT);
        if ((short) (balance - debitAmount) < (short) 0) {
            ISOException.throwIt(SW_NEGATIVE_BALANCE);
        balance = (short) (balance - debitAmount);
    private void getBalance(APDU apdu) {
        if (!pin.isValidated()) {
            ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
        byte[] buffer = apdu.getBuffer();
        short le = apdu.setOutgoing();
        if (le < 2) {
            ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
        apdu.setOutgoingLength((byte) 2);
        buffer[0] = (byte) (balance >> 8);
        buffer[1] = (byte) (balance & 0xFF);
        apdu.sendBytes((short) 0, (short) 2);
    } // end of getBalance method
    private void verify(APDU apdu) {
        byte[] buffer = apdu.getBuffer();
        byte byteRead = (byte) (apdu.setIncomingAndReceive());
        if (pin.check(buffer, ISO7816.OFFSET_CDATA, byteRead) == false) {
            ISOException.throwIt(SW_VERIFICATION_FAILED);
Need help pls

Hello, we need apdu traces. "It doesn't work" is not enough. Thanks.

Similar Messages

  • Deploying Code Through using OLEDB

    I'm currently writting an application for my company that is a code repository for the multiple PL/SQL packages that we get for our systems. I was thinking that it would be rather great if I could deploy code from this application into any of the systems that need the code. However, I wasn't sure if I was capable of doing this through ADO. The main reason being that most of the PL/SQL Packages that we get have &Variable information that needs to be Addressed.
    I know that the COMMAND object is pretty powerful when using the adCmdText so that you can run PL/SQL blocks, but wasn't sure how it handles variables. Also didn't know if I needed to go throught the hassle of generating a window to input all variable information before I run it through the COMMAND object. However I was hoping for something like SQL*Plus where you get prompted for all the variables before it compiles. Didn't think that type of thing existed, but figured it wouldn't hurt to ask.
    Just wondering if people out there had any experience with this and may offer suggestions. Any help at all would be great.
    -- Enoch

    Hi Vinod,
    We can specify the settings for migrating the users and policy in ear deployment profile. And weblogic-applicaiton.xml code after unzipping ear is here. I think it has the required settings mentioned in link given. Still when we depploy ear through console ... users are not migrated.
    +<?xml version = '1.0' encoding = 'windows-1252'?>+
    +<weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.1/weblogic-application.xsd" xmlns="http://xmlns.oracle.com/weblogic/weblogic-application">+
    +<xml>+
    +<parser-factory>+
    +<saxparser-factory>oracle.xml.jaxp.JXSAXParserFactory</saxparser-factory>+
    +<document-builder-factory>oracle.xml.jaxp.JXDocumentBuilderFactory</document-builder-factory>+
    +<transformer-factory>oracle.xml.jaxp.JXSAXTransformerFactory</transformer-factory>+
    +</parser-factory>+
    +</xml>+
    +<application-param>+
    +<param-name>jps.credstore.migration</param-name>+
    +<param-value>OVERWRITE</param-value>+
    +</application-param>+
    +<application-param>+
    +<param-name>jps.policystore.migration</param-name>+
    +<param-value>OVERWRITE</param-value>+
    +</application-param>+
    +<listener>+
    +<listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>+
    +</listener>+
    +<listener>+
    +<listener-class>oracle.mds.lcm.weblogic.WLLifecycleListener</listener-class>+
    +</listener>+
    +<listener>+
    +<listener-class>oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener</listener-class>+
    +</listener>+
    +<library-ref>+
    +<library-name>adf.oracle.domain</library-name>+
    +</library-ref>+
    +<library-ref>+
    +<library-name>oracle.jsp.next</library-name>+
    +</library-ref>+
    +</weblogic-application>+
    Thanks,
    Rajdeep

  • Ejb 2.0 deployment code error with WAS 6.1

    Hi we have recently migrated to WAS 6.1 from 5.1.
    Since then we are facing the below problem.We use ant task to call ejbDeploy.sh to generate deployment code for one of our ejb module.All i did in the ant script was changing the path to ejbdeploy tool from WAS 6.1.However the application is built finally but showing this error in the middle of running the tool.
    If i replace the ejb-jar.xml to version 2.1 it is working fine with no error but as originally the application is coded on ejb 2.0 and here it is showing error.
    I am afraid of changing the dtd version just to avoid this error,also running with the error in the older version would cause any problem in the production later?
    Your help is needed
    Exception:
    {color:#0000ff}o0825.02EJB Deploy configuration directory: /users/users-2/t504625/.eclipse/configurationframework search path: /auto/prod/ver/WAS/610_21/deploytool/itp/plugins
    [exec] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/ejb-jar.xml" in archive "/vobs/glbtrs01/gmm/build/src/java/temp/AppMessaging.jar"
    [exec] Stack trace of nested exception:
    [exec] org.eclipse.emf.common.util.WrappedException: java.net.ConnectException: Connection timed out
    [exec] at org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doLoad(EMF2SAXRenderer.java:97)
    [exec] at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.basicDoLoad(TranslatorResourceImpl.java:142)
    [exec] at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
    [exec] at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
    [exec] at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.load(TranslatorResourceImpl.java:388)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:249)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:390)
    [exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.getMofResource(LoadStrategyImpl.java:347)
    [exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.getMofResource(ArchiveImpl.java:731)
    [exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileImpl.getDeploymentDescriptorResource(ModuleFileImpl.java:61)
    [exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.preprocessArchives(BatchExtension.java:3681)
    [exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:340)
    [exec] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    [exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    [exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    [exec] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [exec] at java.lang.reflect.Method.invoke(Method.java:585)
    [exec] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:476)
    [exec] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:101)
    [exec] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:106)
    [exec] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:336)
    [exec] Caused by: java.net.ConnectException: Connection timed out
    [exec] at java.net.PlainSocketImpl.socketConnect(Native Method)
    [exec] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    [exec] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    [exec] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    [exec] at java.net.Socket.connect(Socket.java:507)
    [exec] at java.net.Socket.connect(Socket.java:457)
    [exec] at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    [exec] at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
    [exec] at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
    [exec] at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
    [exec] at sun.net.www.http.HttpClient.New(HttpClient.java:287)
    [exec] at sun.net.www.http.HttpClient.New(HttpClient.java:299)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
    [exec] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    [exec] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    [exec] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    [exec] at org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doLoad(EMF2SAXRenderer.java:93)
    [exec] ... 26 more {color}

    I am sure all the setup is coorect.
    i even tried the same script with WAS 5.1 ejbDeploy.sh tool and did not face this problem.
    This is what i tried again in WAS 6.1 but with the same result.
    We had two ejb module.
    I replaced dtd to version 2.1 in one module and left the other one with the 2.0
    Then when the ant scripts execute the task ejbDeploy.sh
    for module 1 with dtd 2.1 it shows WAS/deploytool/ipt/ejbdeploy.options not found error and stays for a second and then started building tha module 1 no exception is thrown and then shows the same not found error for module 2 with dtd 2.0 and stays forever until the connection timeout exception is thrown and then started building the module.
    I don't know the cause for the timeout exception when only DTD 2.0 is used.
    Please help.

  • Required Outbound Process Code for MessageType LOIPRO (Basic type-LOIPRO01)

    Hi EDI Gurus,
    I need to know the outbound Process Code for MessageType LOIPRO (Basic type-LOIPRO01).

    Hi,
    there is no process code for MessageType LOIPRO .
    check the below link u will get the clear idea.
    Re: Process Code for Outbound Production Order??
    Reward if helpful.
    Regards,
    Nagaraj

  • Specific process code for Production order message type LOIPRO

    Hello,
    Is there any specific process code for Production order message type LOIPRO.
    Request you to reply.
    Thanks
    Prashanth

    Hi Prashanth,
    sorry for last thread ... that not contain full information ...
    For message type LOIPRO you can use process code APLI.
    In IDOC PARTNER definition, the partner is linked with an IDOC TYPE and PROCESS CODE for inbound processing. This process code is in turn linked with a FUNCTION MODULE to process the IDoc such as IDOC_INPUT_INVOIC_MRM (Reff..  http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_cid519558,00.html)
    Regards,
    Amit

  • Which Code and ZIP code do I need to type in when creating my Account?

    I am creating my account in app store and it asks information as VISA and adress...
    I am typing NONE to VISA and when I am typing code it says "incorrect"! Which code do i need to type?
    I am in russia, does it mean that this code has to be the code of the city where I am?

    You can only purchase from the itunes store of the country of your residence and you must physically be in that country to purchase.
    From the itunes store terms of service:
    "The Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the Service from outside these locations. Apple may use technologies to verify your compliance."
    http://www.apple.com/legal/itunes/us/terms.html#SERVICE

  • OMB05602: An unknown Deployment error has occured for Object Type Deploymen

    I was deploying a process_flow package here in named "PF_LOAD", then the following error occured.
    OMB05602: An unknown Deployment error has occured for Object Type DeploymentContextImpl.generate WBGeneratedObject[] is null or length 0 for PF_LOAD.
    Does anyone know what this error means or what possibly caused it?
    So

    Hi David
    OWB version 10.2.0.3.0
    This is what I cought from the log when tried to deploy the process flow via OMB+
    OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN_PROCESS_FLOWS'
    Action plan DEPLOY_PLAN_PROCESS_FLOWS created.
    OMBALTER DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN_PROCESS_FLOWS' ADD ACTION 'PF_LOAD_PROCESS_FLOW_PACKAGE_DEPLOY' SET PROPERTIES (OPERATION) VALUES ('REPLACE') SET REFERENCE PROCESS_FLOW_PACKAGE 'PF_LOAD'
    Action plan DEPLOY_PLAN_PROCESS_FLOWS altered.
    OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN_PROCESS_FLOWS'
    OMB05602: An unknown Deployment error has occured for Object Type DeploymentContextImpl.generate WBGeneratedObject[] is null or length 0 for PF_LOAD.
    When I viewed via the control center jobs detail window, it is not even logged there.
    Cheers
    So

  • Profit center and company code field in Internal order type (KOT2)

    Dear Experts,
    I want to bydefault profit center and company code in ordertype customization.
    Profit center and company code field in Internal order type (KOT2)
    regards
    RR

    Hi
    1. Create a Model Order in KOM1
    Enter the Comp Code and PC and other fields you want and save it
    2. Enter this Model order in your Internal Order Type in KOT2... Transport this change to production client
    3. Next time when you create an IO, PC and CC will be populated by default
    br, Ajay M

  • Is this way of deploying code to customers governerd by SAP liscense?

    SAP Transport System: Using Transports to store our code in a transport. When this transport is released, two files are generated in DIR_TRANS in DATA directory and COFILES directory, where the name contains the number-part of the transport request. As these Files can be imported to any other SAP system of the same release,  so my question is deploying code by providing those transports requests to customers/clients, is this practice considered ok or is it governed by any SAP licenses?
    These transports contain our Custom RFCs and Custom Reports
    Please advice

    I have seen this being done. Not sure about Legality. there are some technicle issues if you want to edit those objects in the target system.
    If you get your product certified by SAP, then you can use ABAP Add on Kit & create ABAP Add ON which can be installed on any SAP system.
    insted of Co & Data files you get one SAR file.

  • Can we maintain diff tax codes for one tax condition type in creating CRs

    Hi Gurus,
    Can we maintain diff tax codes for one tax condition type during maintaining of Condition Records. (Taxes)
    For example in VK11 screen for different combination of tax classification for customer and tax classification for material and
    tax codes like P0, P1, P2 etc. If so which tax code will be picked during creation of sales order? Pls help me........
    Regards.......Divakaran

    Hi Karan,
    Yes we can.
    For example you have three tax code
    P0 -- 0% (Fully exempt)
    P1-- 5% (Half tax)
    P2 -- 10% (Full tax)
    Now when you create the condition record then you have to create the three condition record for one condition type
    MWST
    Country -- tax classification of customer -- tax classification of material -- Tax % -- Tax code
    IN  -
    >  0 (Tax exempt) -
    > 1 (Full tax) -
    > 0 -
    >  P0
    IN  -
    > 1 (half Tax ) -
    >1  (Full tax) -
    > 5% -
    >  P1
    IN  -
    > 2 (Full Tax ) -
    > 1 (Full tax) -
    > 10% -
    >  P2
    Hope it helps,
    Regards,
    MT
    Edited by: M T on Mar 23, 2010 4:19 PM
    Edited by: M T on Mar 23, 2010 7:27 PM

  • Error while deploying a web service whose return type is java.util.Date

    Hi
    I have written a simple web service which takes in a date input (java.util.Date) and returns the same date back to the client.
    public interface Ping extends Remote
    * A simple method that pings the server to test the webservice.
    * It sends a datetime to the server which returns the datetime.
    * @param pingDateRequest A datetime sent to the server
    * @returns The original datetime
    public Date ping(Date pingDateRequest) throws RemoteException;
    The generation of the Web service related files goes smoothly in JDeveloper 10g. The problem arises when I try to deploy this web service on the Oracle 10g (10.0.3) OC4J standalone. it gives me the following error on the OC4J console :
    E:\Oracle\oc4j1003\j2ee\home\application-deployments\Sachin-TradingEngineWS-WS\
    WebServices\com\sachin\tradeengine\ws\Ping_Tie.java:57: ping(java.util.Date) in com.sachin.tradeengine.ws.Ping cannot be applied to (java.util.Calendar) _result  = ((com.sachin.tradeengine.ws.Ping) getTarget()).ping
    (myPing_Type.getDate_1());
    ^
    1 error
    04/03/23 17:17:35 Notification ==&gt; Application Deployer for Sachin-TradingEngineWS-WS FAILED: java.lang.InstantiationException: Error compiling :E:\Oracle\oc4j1003\j2ee\home\applications\Sachin-TradingEngineWS-WS\WebServices: Syntax error in source [ 2004-03-23T17:17:35.937GMT+05:30 ]
    I read somewhere that the conversion between java to xml datatype and vice versa fails for java.util.Date, so it is better to use java.util.Calendar. When I change the code to return a java.util.Calendar then the JDeveloper prompts me the following failure:
    Method Ping: the following parameter types do not have an XML Schema mapping and/or serializer specified : java.util.Calendar.
    This forces me to return a String data.
    I would appreciate if someone can help me out.
    Thanks
    Sachin Mathias
    Datamatics Ltd.

    Hi
    I got the web service working with some work around. But I am not sure it this approach would be right and good.
    I started altogether afresh. I did the following step :
    1. Created an Interface (Ping.java) for use in web Service as follows :
    public interface Ping extends Remote{
    public java.util.Date ping(java.util.Date pingDateRequest)
    throws RemoteException;
    2. Implemented the above interface in PingImpl.java as follows :
    public class PingImpl implements Ping
    public java.util.Date ping(java.util.Date pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    3. Compiled the above 2 java files.
    4. Generated a Stateless Java Web Service with the help of JDeveloper. This time the generation was sucessful.(If I had "java.util.Calendar" in place of "java.util.Date" in the java code of the above mentioned files the web service generation would prompt me for error)
    5. After the generation of Web Service, I made modification to the Ping interface and its implementing class. In both the files I replaced "java.util.Date" with "java.util.Calendar". The modified java will look as follows :
    Ping.Java
    =========
    public interface Ping extends Remote{
    public java.util.Calendar ping(java.util.Calendar pingDateRequest)
    throws RemoteException;
    PingImpl.Java
    ================
    public class PingImpl implements Ping
    public java.util.Calendar ping(java.util.Calendar pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    6. Now I recompile both the java files.
    7. Withour regenerating the Web Service I deploy the Web Service on OC4j 10.0.3 from JDeveloper. This time the deployment was sucessful.(The Deployment fails if I don't follow the step 5.)
    8. Now I generated a Stub from JDeveloper and accessed the stub from a client. It works fine. Here if you see the Stub code it takes java.util.Date as a parameter and returns a java.util.Date. (Mind you I am accepting a java.util.Calendar and returning the same in my Web Service interface. Step 5)
    The confusing thing is the Serialization and Deserialization of Data from Client java data to Soap message and Soap message to Server java data.
    From Client to SOAP :
    java.util.Date to datetime
    From SOAP to Server :
    datetime to java.util.Calendar
    From Server to SOAP :
    java.util.Calendar to datetime
    From SOAP to Client :
    datetime to java.util.Date (I am not able to understand this part of the conversion)
    Any help or inputs would be appreciated.
    Thanks
    Sachin Mathias

  • Fonts changing size in deployed code

    I'm stuck here.  We have  2 identical deployed .exe progs on what should be identical laptops (ordered together, same product, fairly untouched) running windows 7.  Somehow the fonts on one laptop are off (changed sizes, look like they might also have turned to bf, probably a different font) while on the other "identical" labtop things look ok.  A quick check of the obvious possible suspects: same number and type of fonts appear to be installed, fonts setting appear the same, can't find anything different installed on the laptops that might explain the discrepancy like MS word or adobe software that might contain other fonts (but as I mentioned seems that the installed fonts are the same). Only difference in installed programs seem to be Matlab and Firefox installed on the laptop with the font problems. Would uninstalling these programs even make a difference?
    Anyone have an idea what is going on here, and for things I might try?
    Edit: uninstalling Matlab and Firefox in fact did not make any difference, FYI.

    Did you develop the application yourself or is it from elsewhere?
    A LabVIEW developer should never use default fonts on the front panel. Always use defined fonts.
    (I wonder if it would help to add the current font entries to the application.ini file. I have not tried. Anyone?)
    Font handing is currently one of the real weak points of LabVIEW, and there are plenty of ideas to make it better ( e.g. here)
    LabVIEW Champion . Do more with less code and in less time .

  • Issue while deploying code that uses OIM api: OIMClient

    We are trying to deploy a war file with some java code that interfaces with OIM by using the OIMClient api. Note that we have all the spring jars needed and it works fine on Tomcat. Our production env is on weblogic, and when we deploy the war file on weblogic it deploys fine. But when we test some of the web pages, we get the following error:
    ]] Root cause of ServletException.
    java.lang.NoClassDefFoundError: org/springframework/jndi/JndiTemplate
    at oracle.iam.platform.OIMClient.<init>(OIMClient.java:83)
    Truncated. see log file for complete stacktrace
    >
    The class file is available in a jar called spring-context with the same package structure: org.springframework.jndi.jnditemplate. I wonder why it cannot find the definition for that class. I also tried removing these jars from the war file and adding them to the domain's lib dir. I still end up with the same exception.
    Appreciate all the help I can get.
    Edited by: 958829 on Sep 12, 2012 11:01 PM

    Good one. I just threw every single spring jar the webapp needed into the domain's lib. I did not declare them as "provided" though. and it worked. I bet going into console/deployment and adding the jars individually would've worked too. Thanks mate. Cheers !

  • New Tax code Creation for CST(Condition type

    Hi Friends,
    I am facing an issue during creation of new Tax-code for CST; condition type JIN1. After defining the tax percentage; system is picking an automatic G/L account, which is a grey field and can't be editable. We need to change G/L account and need to assign a new one.
    Can you please tell us how can we remove the default assigned and non-editable G/L account.
    Your support is appreciable.
    Rgds, Krishan Raheja.

    Hi Krishnan,
    Use transaction OB40, here double click on the Account Key (you can check this account key assigned to condition type in OBQ3 and also in FTXP screen) that is mapped to condition type JIN1 and enter your chart of accounts. Now change the G/L account you want.
    Regards,
    Chintan Joshi.

  • Create custom code colouring for additional file types

    Hi All,
    I spend a lot of time editing .ini files in Dreamweaver (in my case langague files for custom Joomla extensions). Although the file format is extremely  simple, particularly in the way that they re used in this context, I would like to improve the readability by adding code coloring  for strins, standard text and comments.
    I haven't been able to find any really useful information on the web about how to go about doing this.
    From what i can gather, the steps are
    Get Dreamweaver to recognise the file type (editing Extensions.txt and MMDocumentTypes.xml?)
    Add the code coloringxml file.
    So far I've had no success with the first step, so haven't tried the second.
    It would be great if I caould also add it as an option in the New File dialog.
    If some kind and clever person could point me in the right direction, it would be much appreciated.
    I'm in Dreamwaever CC on Windows 7, if that's relevant
    Cheers
    Keith

    From what i can gather, the steps are
    Get Dreamweaver to recognise the file type (editing Extensions.txt and MMDocumentTypes.xml?)
    Add the code coloringxml file.
    So far I've had no success with the first step, so haven't tried the second.
    It would be great if I caould also add it as an option in the New File dialog.
    What have you tried so far that made you think that you were not successful?  To add new file extensions to be recognized in DW, you need to go to:
    Edit >> Preferences and then look for something like in this picture:
    Now this is in CS6 and I suspect the steps should be similar in CC.  If not then CC is a step backwards in terms of progress in current technology IMO.  I don't use CC so can't comment any further here.
    Good luck.

Maybe you are looking for

  • SSL VPN on Cisco 1941 with Firewall woes

    Hi Folks, Been trying to setup SSL VPN on a 1941 with limited sucess. I can get the VPN configured and working but as soon as enable the firewall it blocks the VPN The VPN connects and I can ping the internal gateway address from a remote client  but

  • ORA-00604:error occurred at recursive SQL level1 ORA-01000:maximum open cur

    Dear Experts, I got Error During WebLoad Testing. Please give me solution. java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-01000: maximum open cursors exceeded

  • Elements 10 on Win 8.1

    Cant open my raw files, installing the program stuck at 94% ... will it help to download straight from website? Will appreciate help, as my "guided / quick" is also greyed out?

  • How to display the link dynamically on placing the cursor on a field?

    Hello Experts, I have a requirement like, if i place the cursor on the prospect name in the details window of opportunity, prospects' email id should appear as a link. (Example: as tool tip appears when we place cursor on a field). I should be able t

  • Colors are wrong

    I just got the new Mac Mini, and hooking it up to either my TV with a DVI-HDMI adapter, or my samsung 220 monitor, the colors are ok, but specifically the blues look purple. I have tried all the profiles in the color system preference to no avail. I