Exchanging APDU's with selected applet fails

Hi all,
1. I developed a cardlet( normal, sample one) using JCOP
2. Installed, selected and excanged APDU's with this applet ( on Nokia 6212,6131 and JCOP cards)
3. Now i tried it on a SE of SIM. In this case, installation and selection succeeds but exchanging APDU's with selected applet is partial. by 'partial' what i mean is:
i am using 0x90 as CLA byte for personalisation (now i am not checking the CLA byte from cardelt code)
private static final byte STORE=0x01;
private static final byte GET=0x02; , and these are INS values for getting and storing personalisation data.
if i send STORE command like */send 90010000084142434445464748* (8 data bytes ), only first 5 bytes are being transferred to applet (i tested this fact by returning the buffer(apdu.getBuffer()) length from process(APDU apdu) function ), not the actual data. ie, only CLA, INS, P1, P2, and LC fields are being transferred to applet. so, currently the actual personlisation data is not been transferred to selected applet.
Is there any specific data format that has to be send to a selected applet ?
or
In which point i am going wrong ?
This is the cardlet code i'm using
import javacard.framework.APDU;
import javacard.framework.ISO7816;
import javacard.framework.Applet;
import javacard.framework.ISOException;
import javacard.framework.Util;
public class TestCard extends Applet
    private static final byte STORE=0x01;
    private static final byte GET=0x02;
    private static byte personalized=0x00;
    private static byte[] value=null;
   // private static byte testByte;
    public static void install(byte[] bArray, short bOffset, byte bLength)
        // GP-compliant JavaCard applet registration
        new TestCard().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
    public void process(APDU apdu)
        // Good practice: Return 9000 on SELECT
        if (selectingApplet())
            return;
        byte[] buf = apdu.getBuffer();
        switch (buf[ISO7816.OFFSET_INS])
            case STORE:
                value=new byte[buf[ISO7816.OFFSET_LC]];
                //testByte=(byte)buf.length;
                Util.arrayCopy(buf, (short)(ISO7816.OFFSET_LC+1), value, (short)0, buf[ISO7816.OFFSET_LC]);
                personalized=(byte)0x01;
                break;
            case GET:
                if(personalized==0x00)
                    ISOException.throwIt((short)0x6999);
                    break;
                //value=new byte[]{testByte};
                apdu.setOutgoing();
                apdu.setOutgoingLength((short)value.length);
                apdu.sendBytesLong(value, (short)0, (short)value.length);
                break;
            default:
                // good practice: If you don't know the INStruction, say so:
                ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
}and this is the JCOP script i'm using
/echo Opening terminal
/terminal "winscard:4|OMNIKEY CardMan 5x21-CL 0"
/echo Resets card
/atr
/echo Selecting TestCard Applet
/select 11223344556600
/echo Sending 8-byte Personalisation data ABCDEFGH (4142434445464748)
/send 90010000084142434445464748
/echo Reading personalised data
/send 90020000and the output trace is
/echo Opening terminal
Opening terminal
/terminal "winscard:4|OMNIKEY CardMan 5x21-CL 0"
--Opening terminal
/echo Resets card
Resets card
/atr
--Waiting for card...
ATR=3B 88 80 01 01 02 03 04 00 81 C0 00 4C             ;...........L
/echo Selecting TestCard Applet
Selecting TestCard Applet
/select 11223344556600
=> 00 A4 04 00 07 11 22 33 44 55 66 00 00             ......"3DUf..
(84234 usec)
<= 90 00                                              ..
Status: No Error
/echo Sending 8-byte Personalisation data ABCDEFGH (4142434445464748)
Sending 8-byte Personalisation data ABCDEFGH (4142434445464748)
/send 90010000084142434445464748
=> 90 01 00 00 08 41 42 43 44 45 46 47 48             .....ABCDEFGH
(168449 usec)
<= 90 00                                              ..
Status: No Error
/echo Reading personalised data
Reading personalised data
/send 90020000
=> 90 02 00 00                                        ....
(22838 usec)
<= 00 00 00 00 00 00 00 00 90 00                      ."3DUf.... // here not getting the actual needed data.
Status: No ErrorThanks and regards
Sunil

Hi all,
after lot of trial and error and research, i found that in the above code, i am not using
apdu.setIncomingAndReceive();this is where the problem lies. i set incoming mode after reading the apdu buffer and the problem solved.
thanks and regards
sunil

Similar Messages

  • Problem with select APDU

    Hi all
    I have a problem when trying to test an applet created by me like Sebastian Lorquet proposed in this post:
    Re: Ask Global Platform SecureChannel
    I managed to install my applet on the card, and when I check the applets it contains I can see that the AID of mine appears.
    But when I use it and send APDUs through it, the SELECT command fails me.
    The SELECT APDU instruction is:
    Command -> 00A404000B0102030405060708090000
    where 01 02 03 04 05 06 07 08 09 00 00 is the AID of my applet
    The response is as follows:
    Response <- 6D00 (Invalid instruction byte / Command not supported or invalid)
    Do not understand why I get that answer.
    I am using gpshell, and the command used is:
    select -AID 0102030405060708090000
    Thanks in advance
    Edited by: bra_racing on 05-jul-2012 15:28

    ah ok. Just answer me one thing, are you using below code ?
    package test;
    import javacard.framework.APDU;
    import javacard.framework.Applet;
    import javacard.framework.ISO7816;
    import javacard.framework.ISOException;
    import org.globalplatform.GPSystem;
    import org.globalplatform.SecureChannel;
    * @author shane
    public class TestSecureChannel extends Applet {
        private final static byte INS_INIT_UPDATE = 0x50;
        private final static byte INS_EXT_AUTH = (byte) 0x82;
        private TestSecureChannel() {
            // empty
        public static void install(byte bArray[], short bOffset, byte bLength) throws ISOException {
            new TestSecureChannel().register();
        public void process(APDU apdu) throws ISOException {
            if (selectingApplet()) {
                return;
            byte[] buffer = apdu.getBuffer();
            byte cla = buffer[ISO7816.OFFSET_CLA];
            byte ins = buffer[ISO7816.OFFSET_INS];
            SecureChannel sc = GPSystem.getSecureChannel();
            if ((byte) (cla & 0x80) == 0x80) {
                switch (ins) {
                    case INS_INIT_UPDATE:
                    case INS_EXT_AUTH:
                        apdu.setOutgoingAndSend(ISO7816.OFFSET_CDATA, sc.processSecurity(apdu));
                        return;
                    default:
                        // fall through
            switch (ins) {
                case (byte) 0x01:
                    buffer[0] = sc.getSecurityLevel();
                    apdu.setOutgoingAndSend((short) 0, (short) 1);
                    break;
                default:
                    ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
    }If not above one then copy past your code here. For time being for what I understand it that to send get data command your currently selected application should be card manager.
    Edited by: Umer on Jul 10, 2012 4:34 PM

  • Migration from Exchange 2007 to 2013 gives error "Failed to communicate with the mailbox database'

    I have been trying to migrate several databases from Exchange 2007 to Exchange 2013. The migration started successfully, and many of the mailboxes moved successfully (about 70). The remaining mailboxes, failed. Looking deeper, we found a few issues; The
    two 2013 Mailbox servers were on different versions. The Server had run out of disk space, and the NIC drivers needed to be updated.
    Now when we try to migrate a mailbox that had failed in the earlier batch, we get the following error:
    Data migrated:                        
    Migration rate:                        
    Error:                        
    MigrationTransientException: Failed to communicate with the mailbox database. --> Failed to communicate with the mailbox database. --> MapiExceptionNetworkError: Unable to make connection to the server. ‎(hr=0x80040115, ec=-2147221227)‎ Diagnostic
    context:    ......    Lid: 9624    dwParam: 0x0 Msg: EEInfo: Detection location: 501    Lid: 13720   dwParam: 0x0 Msg: EEInfo: Flags: 0    Lid: 11672   dwParam:
    0x0 Msg: EEInfo: NumberOfParameters: 4    Lid: 8856    dwParam: 0x0 Msg: EEInfo: prm[0]: Unicode  string: ncacn_ip_tcp    Lid: 8856    dwParam: 0x0 Msg: EEInfo: prm[1]: Unicode  string: <Server
    FQDN>    Lid: 12952   dwParam: 0x0 Msg: EEInfo: prm[2]: Long val: 3749909585    Lid: 12952   dwParam: 0x0 Msg: EEInfo: prm[3]: Long val: 382312662    Lid: 45169   StoreEc: 0x824        
    Lid: 50544   ClientVersion: 15.0.847.32    Lid: 52080   StoreEc: 0x824         Lid: 44273      Lid: 49064   dwParam: 0x1    Lid: 37288  
    StoreEc: 0x6AB         Lid: 49064   dwParam: 0x2    Lid: 59431   EMSMDB.EcDoConnectEx called [length=203]    Lid: 51239   EMSMDB.EcDoConnectEx exception [rpc_status=0x6D9][latency=0]   
    Lid: 62184      Lid: 16280   dwParam: 0x0 Msg: EEInfo: ComputerName: n/a    Lid: 8600    dwParam: 0x0 Msg: EEInfo: ProcessID: 3460    Lid: 12696   dwParam: 0x0 Msg: EEInfo:
    Generation Time: 0414-04-07T16:32:03.2100000Z    Lid: 10648   dwParam: 0x0 Msg: EEInfo: Generating component: 2    Lid: 14744   dwParam: 0x0 Msg: EEInfo: Status: 1753    Lid: 9624   
    dwParam: 0x0 Msg: EEInfo: Detection location: 501    Lid: 13720   dwParam: 0x0 Msg: EEInfo: Flags: 0    Lid: 11672   dwParam: 0x0 Msg: EEInfo: NumberOfParameters: 4    Lid: 8856   
    dwParam: 0x0 Msg: EEInfo: prm[0]: Unicode  string: ncacn_ip_tcp    Lid: 8856    dwParam: 0x0 Msg: EEInfo: prm[1]: Unicode  string: <Server FQDN>    Lid: 12952   dwParam: 0x0 Msg: EEInfo:
    prm[2]: Long val: 2767313664    Lid: 12952   dwParam: 0x0 Msg: EEInfo: prm[3]: Long val: 382312662    Lid: 59505   StoreEc: 0x824         Lid: 50544   ClientVersion:
    15.0.847.32    Lid: 52080   StoreEc: 0x824         Lid: 36081      Lid: 51152      Lid: 52465   StoreEc: 0x80040115   
    Lid: 60065      Lid: 33777   StoreEc: 0x80040115    Lid: 59805      Lid: 52487   StoreEc: 0x80040115    Lid: 19778      Lid: 27970  
    StoreEc: 0x80040115    Lid: 17730      Lid: 25922   StoreEc: 0x80040115
    All of the issues listed above have been corrected, and all of the databases are mounted. Users are able to send and receive mail, but I can not migrate mail using the Migration Batch utility.
    The destination server is a Hyper-V Guest running Server 2012, SP1, and Exchange 2013
    The Source Server is Running Exchange 2007.
    I have tried doing a test move to another destination server that is also Server 2012, and Exchange 2013, and the migration also failed.
    I would appreciate any help you can give me!
    Thanks,
    Jon

    Any update if you have resolved the issue.
    Not similar, but this thread can be helpful while you migrate the mailboxes from exchange 2007 to 2013. Please check :http://social.technet.microsoft.com/Forums/exchange/en-US/721f0ae4-623a-4b02-adaf-f561d86c0426/move-mailboxes-and-public-folders-from-exchange-2007-to-exchange-2013?forum=exchangesvrdeploy&prof=required

  • URG:11i to R12.1.3: Invoice print Selected Invoices fails with REP-1419

    Hi,
    Invoice print Selected Invoices fails with the following error: Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    REP-1419: 'beforereport': PL/SQL program aborted.
    Checked the setups based on 557171.1, 375693.1,1101855.1.
    Still the issue is existing.
    May i know the cause of the issue or is it a bug?
    Thanks
    Nancy

    Hi ,
    The cause of the issue is the standard rdf is set to run for single operating unit. But R12 is a moac setup enable application. Hence The operating unit mode is changed to Single from null in system administration concurrent program setting for the XML report concurrent program.
    This fixed the issue.
    Thanks
    Nancy

  • Applet failed to load when visited using HTTPs protocol with Java 7

    We have a java applet on our website which worked for ages. Then Java 7 came out, people installed it. When people with Java 7 visiting our website using HTTPS, the applet failed to load (ClassNotFoundException). The same site and the same applet, when visit using regular HTTP, it works fine.
    People with previous version of Java (1.6.x) can see the applet using either HTTP or HTTPs with no problem.
    Anything we can do on our side to resolve this problem for people with Java 7 and like to stay with HTTPS?
    Googled and didn't see any relevant result. Any pointer would be much appreciated.

    Thanks for the quick response.
    Not much on the stack trace, did a tread dump below.
    It is an application requires login, please sent and email to [email protected] and I will sent you the url and login info by email.
    Thanks
    plugin2manager.parentwindowDispose
    Java Plug-in 10.4.0.22
    Using JRE version 1.7.0_04-b22 Java HotSpot(TM) Client VM
    User home directory = C:\Users\dchen
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Dump thread stack ...
    2012-05-10 17:17:59
    Full thread dump Java HotSpot(TM) Client VM (23.0-b21 mixed mode, sharing):
    "D3D Screen Updater" daemon prio=8 tid=0x04fa1800 nid=0x530 in Object.wait() [0x0a0df000]
    java.lang.Thread.State: TIMED_WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at sun.java2d.d3d.D3DScreenUpdateManager.run(Unknown Source)
         - locked <0x296c0248> (a java.lang.Object)
         at java.lang.Thread.run(Unknown Source)
    "ConsoleTraceListener" daemon prio=4 tid=0x04fa0000 nid=0x269c in Object.wait() [0x09c8f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:503)
         at com.sun.deploy.uitoolkit.ui.ConsoleTraceListener$ConsoleWriterThread.run(Unknown Source)
         - locked <0x296c0c90> (a com.sun.deploy.uitoolkit.ui.ConsoleTraceListener$BoundedStringBuffer)
    "AWT-EventQueue-1" prio=6 tid=0x04fa2000 nid=0x1730 waiting on condition [0x0a6ce000]
    java.lang.Thread.State: RUNNABLE
         at com.sun.deploy.uitoolkit.ui.ConsoleHelper.dumpAllStacksImpl(Native Method)
         at com.sun.deploy.uitoolkit.ui.ConsoleHelper.dumpAllStacks(Unknown Source)
         at com.sun.deploy.uitoolkit.impl.awt.ui.SwingConsoleWindow$2.actionPerformed(Unknown Source)
         at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
         at javax.swing.SwingUtilities.notifyAction(Unknown Source)
         at javax.swing.JComponent.processKeyBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
         at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
         at javax.swing.JComponent.processKeyBindings(Unknown Source)
         at javax.swing.JComponent.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
         at java.awt.EventQueue.access$000(Unknown Source)
         at java.awt.EventQueue$3.run(Unknown Source)
         at java.awt.EventQueue$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue$4.run(Unknown Source)
         at java.awt.EventQueue$4.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "TimerQueue" daemon prio=4 tid=0x04f9e000 nid=0x3e0c waiting on condition [0x09f3f000]
    java.lang.Thread.State: WAITING (parking)
         at sun.misc.Unsafe.park(Native Method)
         - parking to wait for <0x24620900> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
         at java.util.concurrent.locks.LockSupport.park(Unknown Source)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
         at java.util.concurrent.DelayQueue.take(Unknown Source)
         at javax.swing.TimerQueue.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "AWT-EventQueue-4" prio=4 tid=0x04fa1400 nid=0x255c waiting on condition [0x0945f000]
    java.lang.Thread.State: WAITING (parking)
         at sun.misc.Unsafe.park(Native Method)
         - parking to wait for <0x246209e8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
         at java.util.concurrent.locks.LockSupport.park(Unknown Source)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
         at java.awt.EventQueue.getNextEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "Applet 5 LiveConnect Worker Thread" prio=4 tid=0x04f9f400 nid=0x3994 in Object.wait() [0x05d9f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:503)
         at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$LiveConnectWorker.run(Unknown Source)
         - locked <0x24620ac8> (a java.lang.Object)
         at java.lang.Thread.run(Unknown Source)
    "AWT-EventQueue-0" prio=6 tid=0x04f9fc00 nid=0x3b2c waiting on condition [0x0608f000]
    java.lang.Thread.State: WAITING (parking)
         at sun.misc.Unsafe.park(Native Method)
         - parking to wait for <0x2979ab70> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
         at java.util.concurrent.locks.LockSupport.park(Unknown Source)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
         at java.awt.EventQueue.getNextEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "AWT-Shutdown" prio=6 tid=0x04f9e800 nid=0x244c in Object.wait() [0x0669f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:503)
         at sun.awt.AWTAutoShutdown.run(Unknown Source)
         - locked <0x2979acd8> (a java.lang.Object)
         at java.lang.Thread.run(Unknown Source)
    "TimerQueue" daemon prio=6 tid=0x04fa0c00 nid=0x3914 waiting on condition [0x0a65f000]
    java.lang.Thread.State: WAITING (parking)
         at sun.misc.Unsafe.park(Native Method)
         - parking to wait for <0x29c27340> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
         at java.util.concurrent.locks.LockSupport.park(Unknown Source)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
         at java.util.concurrent.DelayQueue.take(Unknown Source)
         at javax.swing.TimerQueue.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "JVM[id=2]-Heartbeat" daemon prio=6 tid=0x04f9ec00 nid=0x3c98 in Object.wait() [0x0687f000]
    java.lang.Thread.State: TIMED_WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at sun.plugin2.main.server.HeartbeatThread.run(Unknown Source)
         - locked <0x2979a7a0> (a sun.plugin2.main.client.PluginMain$Heartbeat)
    "Browser Side Object Cleanup Thread" prio=6 tid=0x04f9d000 nid=0x3ce4 in Object.wait() [0x0710f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         - waiting on <0x2979a958> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x2979a958> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at sun.plugin2.main.client.LiveConnectSupport$BrowserSideObjectCleanupThread.run(Unknown Source)
    "CacheCleanUpThread" daemon prio=6 tid=0x04f9dc00 nid=0x2500 in Object.wait() [0x0655f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         - waiting on <0x2979a978> (a com.sun.deploy.cache.CleanupThread)
         at java.lang.Object.wait(Object.java:503)
         at com.sun.deploy.cache.CleanupThread.run(Unknown Source)
         - locked <0x2979a978> (a com.sun.deploy.cache.CleanupThread)
    "CacheMemoryCleanUpThread" daemon prio=6 tid=0x04f9d400 nid=0x1ac4 in Object.wait() [0x0611f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         - waiting on <0x2979aa68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x2979aa68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at com.sun.deploy.cache.MemoryCache$LoadedResourceCleanupThread.run(Unknown Source)
    "SysExecutionTheadCreator" daemon prio=6 tid=0x04f9c800 nid=0x3ff4 in Object.wait() [0x0660f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:503)
         at sun.plugin.util.PluginSysUtil$SysExecutionThreadCreator.run(Unknown Source)
         - locked <0x2979aa88> (a sun.plugin.util.PluginSysUtil$SysExecutionThreadCreator)
    "AWT-Windows" daemon prio=6 tid=0x04f8f000 nid=0x3480 runnable [0x026af000]
    java.lang.Thread.State: RUNNABLE
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(Unknown Source)
    "Java2D Disposer" daemon prio=10 tid=0x04f8d000 nid=0x1920 in Object.wait() [0x064ff000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x2979ad68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at sun.java2d.Disposer.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Java Plug-In Pipe Worker Thread (Client-Side)" daemon prio=6 tid=0x04f8a000 nid=0x580 runnable [0x0617f000]
    java.lang.Thread.State: RUNNABLE
         at sun.plugin2.os.windows.Windows.ReadFile0(Native Method)
         at sun.plugin2.os.windows.Windows.ReadFile(Unknown Source)
         at sun.plugin2.ipc.windows.WindowsNamedPipe.read(Unknown Source)
         at sun.plugin2.message.transport.NamedPipeTransport$SerializerImpl.read(Unknown Source)
         at sun.plugin2.message.transport.NamedPipeTransport$SerializerImpl.readByte(Unknown Source)
         at sun.plugin2.message.AbstractSerializer.readInt(Unknown Source)
         at sun.plugin2.message.transport.SerializingTransport.read(Unknown Source)
         at sun.plugin2.message.Pipe$WorkerThread.run(Unknown Source)
    "Timer-0" prio=6 tid=0x04f3d800 nid=0x2c38 in Object.wait() [0x0521f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         - waiting on <0x2979b0a8> (a java.util.TaskQueue)
         at java.lang.Object.wait(Object.java:503)
         at java.util.TimerThread.mainLoop(Unknown Source)
         - locked <0x2979b0a8> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Unknown Source)
    "traceMsgQueueThread" daemon prio=6 tid=0x04f19c00 nid=0x3b50 in Object.wait() [0x054cf000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:503)
         at com.sun.deploy.trace.Trace$TraceMsgQueueChecker.run(Unknown Source)
         - locked <0x298209e0> (a java.util.ArrayList)
         at java.lang.Thread.run(Unknown Source)
    "Service Thread" daemon prio=6 tid=0x04e80c00 nid=0x2930 runnable [0x00000000]
    java.lang.Thread.State: RUNNABLE
    "C1 CompilerThread0" daemon prio=10 tid=0x04e7c400 nid=0x2648 waiting on condition [0x00000000]
    java.lang.Thread.State: RUNNABLE
    "Attach Listener" daemon prio=10 tid=0x04e7b000 nid=0x1b5c runnable [0x00000000]
    java.lang.Thread.State: RUNNABLE
    "Signal Dispatcher" daemon prio=10 tid=0x04e77c00 nid=0x1bd0 runnable [0x00000000]
    java.lang.Thread.State: RUNNABLE
    "Finalizer" daemon prio=8 tid=0x022e1000 nid=0x3d00 in Object.wait() [0x04c5f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x2979b330> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    "Reference Handler" daemon prio=10 tid=0x022df800 nid=0x3644 in Object.wait() [0x04bdf000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:503)
         at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
         - locked <0x2979a0c8> (a java.lang.ref.Reference$Lock)
    "main" prio=6 tid=0x0036d800 nid=0x2f40 in Object.wait() [0x00a2f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
         - locked <0x2979b3b8> (a sun.plugin2.message.Queue)
         at sun.plugin2.message.Pipe$1.run(Unknown Source)
         at com.sun.deploy.util.Waiter$1.wait(Unknown Source)
         at com.sun.deploy.util.Waiter.runAndWait(Unknown Source)
         at sun.plugin2.message.Pipe.receive(Unknown Source)
         at sun.plugin2.main.client.PluginMain.mainLoop(Unknown Source)
         at sun.plugin2.main.client.PluginMain.run(Unknown Source)
         at sun.plugin2.main.client.PluginMain.main(Unknown Source)
    "VM Thread" prio=10 tid=0x022de400 nid=0x3cc0 runnable
    "VM Periodic Task Thread" prio=10 tid=0x04ea9000 nid=0x3fd4 waiting on condition
    .main.client.PluginMain.run(Unknown Source)
         at sun.plugin2.main.client.PluginMain.main(Unknown Source)
    "VM Thread" prio=10 tid=0x022de400 nid=0x3cc0 runnable
    "VM Periodic Task Thread" prio=10 tid=0x04ea9000 nid=0x3fd4 waiting on condition
    Done.

  • The applet fails to load. with 'red cross' screen JVM 1.6.19 and above

    After updating the JVM to one of the latest version 1.6 builds, our users started to experience a problem with opening java applets.
    All the users have JVM versions 1.6.0_19 – 1.6.0_26 on Windows 7/2008. The browser is IE8. On the server usually there is IIS7, with ‘Integrated Windows authentication’
    on applet’s virtual folder. Applet’s classes are packaged into a signed JAR file. Both the client and the server are located in the same local area network with no proxy or firewall between them.
    The applet’s website usually belongs to the trusted security zone. When loaded, the applet establishes HTTP connection to the server to get the necessary data.
    When the user tries to open an HTML page containing the applet, there can be the following scenarios:
    1.     The applet fails to load. We’re getting a ‘red cross’ screen. All the HTML elements except of the applet are loaded OK.
    From the IIS log we can see that the loading of the JAR file failed with the error code 401, the user name field in the log for the JAR is empty.
    2.     The java asks for the user name and password showing a popup ‘Authentication required’. At this moment we can see the following message in the Java console:
    network: Firewall authentication: site=/XX.XX.XX.XX:XX, protocol=http, prompt=, scheme=ntlm
    If the user enters the correct credentials, the applet loads OK. Even if the user checks the ‘Save the password in your password list’ checkbox, Java continues to ask for credentials
    on every page reload. It’s worth to note that the company’s external firewall doesn’t get any requests from the applet.
    The problems happen even when the client and the server are located on the same machine, but never happens when we use localhost as the server name in the page URL.
    During investigations we found out the following workarounds:
    1.     Enabling anonymous authentication on the virtual folder always solves the problem.
    2.     Sometimes, changing security zone from ‘Trusted’ to ‘Local intranet’ solves the scenario 2 (‘Authentication required’ popup) problem.
    It’s worth to note that changing the security zone never helps if the page URL contains dots (for example, uses IP address instead the server name).
    3.     Upgrading to IE9 solves the scenario 2 problem partly: Java asks for the credentials only once.

    I have the same issue. I use single sign-on with IIS 7 and Integrated Window authentication on the tomcat virtual folder. The applet jar file is on the root directory of the web application (the same level of index.html). So I use '.' as the code_base to call the applet from javascript.
    So when I launch my web application into a browser, the auto-connection is successfully performed (single sign-on through Upstream, kerberos, remote_user, ...). But when I want to launch the applet in the web application, a new authentication panel (red panel with "authentication required") occurs in order to set credentials (login, password, domain) with the message in the java applet console:
    "network: Firewall authentication: site=myApplicationUrl, protocol=http, prompt=, scheme=ntlm"
    So why the applet doesn't inherit previous credentials in this case ??
    Have you solved this problem ?
    Thanks
    Edited by: 886341 on 20 sept. 2011 08:56

  • ""selected font failed during last operation." and " there is a problem with generator" application error

    For PSDs I have created in older versions of Photoshop CC 2014 I am getting errors when opening / trying to save. They seem to be either Generator or font related. Interestingly, PSDs created in newer versions of PS CC 2014 have no issues, even when using same fonts.
    I am getting the error messages:
    When I open the older PSD files, (again created or saved in older versions of PS CC 2014) I am asked to update fonts. If I do I get the error.
    'Selected font failed during last operation'
    When I try to don't try to update fonts and then I try to play with the file I get the following error.
    'There is a problem with Generator. Please quit Photoshop and try again. If the problem persists, remove any third-party plugins or try re-installing photoshop.
    I don't have any third party plugins that I can see.
    I have re-installed multiple times.
    I need to use this program and I am paying for your services. I am actually on the phone now with 'help desk' and have been on hold for 22 minutes.
    Please Help

    When I installed the Apple programs, mobile device application did not uninstall by itself. I had to go to c://program files/common files/apple/mobile device application (or something like that) and manually delete the contents and the folders. I have a 64 bit version so I also had to visit c://program files (x86)/common files/apple/mobile application device (or similar) and also manually delete the files and folders. I had to delete the files before I could delete the folders. This manual part is probably tripping everyone up, because it's not as easy as simply hitting uninstall in the control panel. But the instructions are there. I hope this helps you.

  • Exchange Management Console couldn't start with Kerberos authentication failed

    When I was making changes to Client Access\owa settings, chaning from Basic authentication to Form authentication (upn name) then changed to Basic again. It was ok after changing to Form authentication but moment after changing back to Basic, I couldn't
    no longer access owa (blank page when one vertical line) and in Exchange Management Console, I got "Initialization failed" - The following error occured while attempting to connect to the specified Exchange server 'sgp-ex1.mydomain.com':
    The attempt to connect to http://sgp-ex1.mydomain.com/powershell using "Kerberos" authentication failed: Connecting to the remote server failed with the following error message: The WinRM client cannto process
    the request. It cannot determine the content type of the HTTP response from the destination computer. The content type is absent or invalid. For more information, see the about_Remote_Troubleshooting Help topic.
    I tried the troubleshooting tool from Exchange team blog:
    http://blogs.technet.com/b/exchange/archive/2010/12/07/3411644.aspx. It give 3 possible causes for this error: 1. WSMan module entry is missing from global module section of c:\Windows\System32\InetSrv\Config\ApplicationHost.config; 2. Kerbauth module shows
    up as Managed module or has been loaded in the Default Web Site Level; 3. The Path of the Powershell virtual directory has been modified.
    I checked carefully, all the 3 causes do not apply to my situation as WSman entry is in order, the Kerbauth is native and local and the path of Powershell virtual directory is correct.
    I find that in Application log, there are Event 2297 and 2307 dumped at the time of failure:
    The worker process for application pool 'MSExchangeSyncAppPool' encountered an error 'Confiugration file in not well-formed XML' trying to read configuration data from file '\\?\C:\inetpubl\temp\apppools\MSExchangeSyncAppPool\MSExchangeSyncAppPool.config',
    line number '2'. The data field contains the error code.
    Help is very much appreciated.
    Valuable skills are not learned, learned skills aren't valuable.

    Unfortunately, all the links you provided didn't help.
    The first link contains 3 methods:1 Removing WinRM feature and reinstalling. 2 Rename the web.config file in location C:\inetpub\wwwroot 3 Have you installed Microsoft Dynamics CRM 4. I?
    As my server is Windows 2008 R2, the first method does not apply. I couldn't find any web.config in c:\Inetpub\wwwroot. The web.config however is found in many times in .netframework and winsxs directories. The 3rd method doesn't apply as I don't have CRM.
    The 2nd link contains 3 possible causes. The first 2 are the same as the ones I mentioned in my initial post. I couldn't verify the last cause because when open Exchange Management Shell, I got this error: [sgp.ex1.mydomain.com] connecting to remote server
    failed with the following server failed with the following error message: The WinRM client cannot process the request, it cannot determine the content type of the HTTP response from the destination computer. The content type is absent or invalide. For more
    information, see the about_Remote_Troubleshooting Help topic.
    I do not think the user is not remote powershell enabled because the problem happened suddenly, while I was making changes to Authentication settings of OWA(default) in Client Access in Exchange Management Console. If the user account is not remote powershell
    enabled, then I couldn't event connect to EMC in the first place.
    The last link didn't help because I could open up modules under PowerShell virtual directory in IIS.
    I think since the event log is saying MSExchangeSyncAppPool.config and DefaultAppPool.config not well-formed XML, that might be a clue.
    In the event id 2307 this is the message:
    The worker process for application pool 'DefaultAppPool' encountered an error 'Configuration file is not well-formed XML
    ' trying to read configuration data from file '\\?\C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config', line number '2'.  The data field contains the error code.
    Valuable skills are not learned, learned skills aren't valuable.

  • Exchange 2010 Sp2 update rollup 7 fails with error code 80070643 on Sbs 2011

    Hello Everyone,
    When i trie to install rollup 7 voor exchange 2010 sp2 (sbs 2011) it gives me error code 80070643. I cannot find much to solve this problem. Update rollup 8 installs fine. I've read on internet that every rollup must be installed to succesfully install exchange
    2010 sp3. Can anyone help me with this error?

    I just installed exchange 2010 sp3, but it does not finish. It stops at 'client access role'
    This is in the log;
    [10-08-2014 21:55:24.0121] [2] Active Directory session settings for 'Start-SetupProcess' are: View Entire Forest: 'True', Configuration Domain Controller: 'server.company.com', Preferred Global Catalog: 'server.company.com', Preferred Domain Controllers:
    '{ server.company.com }'
    [10-08-2014 21:55:24.0121] [2] Beginning processing Start-SetupProcess -Name:'iisreset' -Args:'/noforce /timeout:120'
    [10-08-2014 21:55:24.0137] [2] Starting: iisreset with arguments: /noforce /timeout:120
    [10-08-2014 21:55:31.0640] [2] Process standard output: Attempting stop...
    Internet services successfully stopped
    Attempting start...
    Restart attempt failed.
    The IIS Admin Service or the World Wide Web Publishing Service, or a service dependent on them failed to start.  The service, or dependent services, may had an error during its startup or may be disabled.
    Process standard error:
    [10-08-2014 21:55:31.0640] [2] [ERROR] Unexpected Error
    [10-08-2014 21:55:31.0640] [2] [ERROR] Process execution failed with exit code 1062.
    [10-08-2014 21:55:31.0640] [2] Ending processing Start-SetupProcess
    [10-08-2014 21:55:31.0640] [1] The following 1 error(s) occurred during task execution:
    [10-08-2014 21:55:31.0640] [1] 0.  ErrorRecord: Process execution failed with exit code 1062.
    [10-08-2014 21:55:31.0640] [1] 0.  ErrorRecord: Microsoft.Exchange.Configuration.Tasks.TaskException: Process execution failed with exit code 1062.
    [10-08-2014 21:55:31.0640] [1] [ERROR] The following error was generated when "$error.Clear();
        Start-SetupProcess -Name "iisreset" -Args "/noforce /timeout:120"
    " was run: "Process execution failed with exit code 1062.".
    [10-08-2014 21:55:31.0640] [1] [ERROR] Process execution failed with exit code 1062.
    [10-08-2014 21:55:31.0640] [1] [ERROR-REFERENCE] Id=ClientAccessServiceControl___ef7fa14362774cd9af8882d6287b640a Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup
    [10-08-2014 21:55:31.0640] [1] Setup is stopping now because of one or more critical errors.
    [10-08-2014 21:55:31.0640] [1] Finished executing component tasks.
    [10-08-2014 21:55:31.0672] [1] Ending processing Install-ClientAccessRole
    Anyone has any ideas?

  • Trying to Imitate the html POST  method with an applet

    I am trying to imitate the POST method with an applet, so that I can eventually send sound from a microphone to a PHP script which will store it in a file on a server. I am starting out by trying to post a simple line of text by making the PHP script think that it is receiving the text within a POST-ed file. The reason I am doing things this way is in part because I am, for the time being, limited to a shared server without any support for servlets or any other server side java.
    The code I am trying is based in part on an old thread found elsewhere in this forum, concerning sending data to a PHP file by imitating the POST method:
    link:
    http://forum.java.sun.com/thread.jspa?threadID=530399&messageID=2603608
    someone named "harmmeijer" provided most of the answers on that thread. If that person is still around hope they take a look at this,also I have some questions to clarify what they said on the other thread..
    My first attempt at code is below. The applet is in a signed jar file and is trying to pass a text line to the PHP script in the same directory and on the same server that the applet came from. It is doing this by sending header information that is supposed to be identical to what an html form would send if it was uploading a .txt file with the line of text within it. The applet displays one button. When you press it, it sucessfully starts up the postsim method (defined at the end), which is supposed to send the info to the PHP script at the server.
    I have two questions:
    1) I know that the PHP script is starting up, because it prints out a few messages depending on what happens. However, the script does not recognize any file coming down the line, so it does not save anyting on the server, and prints out a message saying the no file was uploaded.
    Any idea what might be going wrong? I'm not getting any error messages from the applet. I've tried a few different variations of the 'header' information contained in the line:
    osToServer.writeBytes("--****4353\r\nContent-Disposition: form-data; name=\"testfile\"; filename=\"C:testfile.txt\"\r\nContent-Type: text/plain\r\n");
    The commented out line below it shows one variation (which was given in the thread mentioned above).
    2) You'll notice that I've commented out the two lines having to do with the input line:
    //InputStream isFromServer;
    and
    //isFromServer = uc.getInputStream();
    The reason is that the program crahes whenever I put the latter line in - to the extent that Opera closes down the JVM and then crashes when I tried to exit it.. I must be doing something horribly wrong there! I first tried using isFromServer = new DataInputStream(uc.getInputStream());
    becuase it was consistent with the output stream, but that caused the same problem.
    Here's the code:
    public class AudioUptest1 extends Applet{
    //There are a few spurious things defined in this section, having to do with the fact the microphone data is evenuatly going to be sent. haven't yet insterted code to get input from a microphone.
    AudioFormat audioFormat;
    TargetDataLine targetDataLine;
    SourceDataLine sourceDataLine;
    DataOutputStream osToServer;
    //InputStream isFromServer;
    URLConnection uc;
    final JButton captureBtn = new JButton("Capture");
    final JPanel btnPanel = new JPanel();
    public void init(){
    System.out.println("Started the applet");
    try
    URL url = new URL( "http://www.mywebsite.com/handleapplet.php" );
    uc = url.openConnection();
    //Post multipart data
    uc.setDoOutput(true);
    uc.setDoInput(true);
    uc.setUseCaches(false);
    //set request headers
    uc.setRequestProperty("Connection", "Keep-Alive");
    uc.setRequestProperty("HTTP_REFERER", "http://applet.getcodebase");
    uc.setRequestProperty("Content-Type","multipart/form-data; boundary=****4353");
    osToServer = new DataOutputStream(uc.getOutputStream());
    //isFromServer = uc.getInputStream();
    catch(IOException e)
    System.out.println ("Error etc. etc.");
    return;
    //Start of GUI stuff
    captureBtn.setEnabled(true);
    //Register listeners
    captureBtn.addActionListener(
    new ActionListener(){
    public void actionPerformed(
    ActionEvent e){
    captureBtn.setEnabled(false);
    //Postsim method will send simulated POST to PHP script on server.
    postsim();
    }//end actionPerformed
    }//end ActionListener
    );//end addActionListener()
    add(captureBtn);
    add(btnPanel);
    // getContentPane().setLayout(new FlowLayout());
    // setDefaultCloseOperation(EXIT_ON_CLOSE);
    setSize(250,70);
    setVisible(true);
    }//end of GUI stuff, constructor.
    //These buffers might be made larger.
    byte tempOutBuffer[] = new byte[100];
    byte tempInBuffer[] = new byte[100];
    private void postsim(){
    System.out.println("Got to the postsim method");
    try{
    //******The next four lines are supposed to imitate a POST upload from a form******
    osToServer.writeBytes("--****4353\r\nContent-Disposition: form-data; name=\"testfile\"; filename=\"C:testfile.txt\"\r\nContent-Type: text/plain\r\n");
    //osToServer.writeBytes("Content-Disposition: form-data; name=\"testfile\"; filename=\"C:testfile.txt\"\r\nContent-Type: text/plain\r\n");
    //This is the text that's cupposed to be written into the file.
    osToServer.writeBytes("This is a test file");
    osToServer.writeBytes("--****4353--\r\n\r\n");
    osToServer.flush();
    osToServer.close();
    catch (Exception e) {
    System.out.println(e);
    System.out.println("did not sucessfully connect or write to server");
    System.exit(0);
    }//end catch
    }//end method postsim
    }//end AudioUp.java

    Hi All,
    I was trying to write a signed applet that helps the
    user of the applet to browse the local hard disk and
    select a file from the same. The JFileChooser class
    from Swing is what I used in my applet. The problem
    is with the policy file. I am not able to trace the
    exact way to write a policy file which gives a total
    access to read,write,delete,execute on all the drives
    of the local hard disk.
    I am successful in signing the applets and performing
    operations : read,write,delete & execute on a single
    file but failing to grant permission for the entire
    file.
    Any help would be highly appreciated.Which policy file are you using? there might be more than one policy file.
    also, u have to specify the alias of the signed certificate in the policy file to grant the necessary priviledges to the signed applet.

  • ......Trusted Recon With Oracle 11g Fail. All details explained

    Ok...... How can I delete this post? ---- > I resolve the issues......
    Hi, When I create the trusted Recon, connector sendme:
    ERROR [ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' org.apache.struts.actions.DispatchAction - Request[CreateConnector] does not contain handler parameter named method
    follow by
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.SERVER - Class/Method: tcTableDataObj/setTimestamp encounter some problems: {1}
    java.lang.NullPointerException
         at com.thortech.xl.dataobj.tcDataSet.setTimestamp(Unknown Source)
         at com.thortech.xl.dataaccess.tcDataSet.setTimestamp(Unknown Source)
         at com.thortech.xl.dataobj.tcTableDataObj.setTimestamp(Unknown Source)
         at com.thortech.xl.ddm.instance.visitor.ImportVisitor.visitStarted(Unknown Source)
    ===================================================================
    Hi, I think I need to re install the GTC or OIM because all works fine (Recon with AD, Exchange... DataBase Provisioning) But when Im try to Recon with Oracle Databse11g Fails.
    I read the manuals but nothing..... ok I do the next configs:
    - Generic Technology Connector
    - Create
    =========================*Step 1*=================
    Name                              ReconCity                         
    Transport Provider (Reconciliation)................Database Application Tables Reconciliation      
    Format Provider (Reconciliation).....................Database Application Tables Reconciliation      
    Trusted Source Reconciliation.........................Selected
    ========================*Step 2*==================
    Database Drive : oracle.jdbc.driver.OracleDriver
    Database URL : jdbc:oracle:thin:@192.168.1.101:1521:DFGOB
    Database User ID : system
    Database Pass......: my_pass
    parent Table/View
    Name.......................: Recon_Users
    Batch Size...............: All
    Stop Reconciliat
    ion Threshold..........: None
    Stop Threshold........: None
    Sourcedate Format: yyyy/MM/dd hh:mm:ss z
    Reconcile Deletion
    of Multival.................: "Selected"
    Reconciliation
    Type..........................: Full
    ========================*Step 3 (try 1)*===========
    SOURCE.................*RECON STAGING*.......................*OIM*
    USER_ID--------------> USER_ID -------------> User ID
    FIRTS_NAME--------> FIRST_NAME ----------> FIRST_NAME
    LAST_NAME---------> LAST_NAME ----------> . --> Yes, I map all fields to OIM
    PASSWORD----------> PASSWORD ---------> .
    EMAIL------------------> EMAIL ----------------> .
    STATUS---------------> STATUS --------------> .
    ..........|Xellerate |--> ORGANIZATION ------------> .
    ..........|End-User |------> EMPLOYEE TYPE -----> .
    ..........|Full-Time |-------> USER TYPE ------------> .
    - (STATUS values from my database table is: Active or Disabled)
    - ( I try (Enabled/Disabled) )
    For Fields USER_ID to STATUS
    (Edit option)
    Dataset.......................: Reconciliation Staging
    Child Dataset Name :           
    Field Name.................: USER_ID
    Mapping Action..........: Create mapping Without Transformation     
    Matching Only............: Not Applicable
    Case-Insensitive........: Not Applicable
    Data Type      *.............: String
    Required.....................: Selected
    For Fields ORGANIZATION to USER TYPE
    (Add option)
    Dataset........................: Reconciliation Staging
    Child Dataset Name :           
    Field Name.................: ORGANIZATION
    Mapping Action..........: Create mapping Without Transformation     
    Matching Only.............: Not Applicable
    Case-Insensitive........: Not Applicable
    Data Type      *.............: String
    Required.....................: Selected
    Input
    Literal: Xellerate      
    ===After save on step 4 I go to Resource Manager-->Manage Scheduled task--> RUN NOW and the log send me
    DEBUG QuartzWorkerThread-4 XELLERATE.ADAPTERS - Class/Method: tcStructureUtil/getUserDefinedCols entered.
    ERROR QuartzWorkerThread-4 XELLERATE.APIS - Class/Method: tcReconciliationOperationsBean/ignoreEventData encounter some problems: {1}
    java.lang.NullPointerException
         at com.thortech.xl.dataobj.util.tcAttributeSource.getAttrColumnName(Unknown Source)
         at com.thortech.xl.dataobj.util.tcReconciliationUtil.getRuleElementWhere(Unknown Source)
         at com.thortech.xl.dataobj.util.tcReconciliationUtil.getRuleWhere(Unknown Source)
         at com.thortech.xl.dataobj.util.tcReconciliationUtil.getMatchedUserList(Unknown Source)
         at com.thortech.xl.dataobj.util.tcReconciliationUtil.getMatchedUserList(Unknown Source)
         at com.thortech.xl.dataobj.util.tcReconciliationUtil.ignoreEvent(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.ignoreEventData(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.ignoreEvent(Unknown Source)
         at com.thortech.xl.ejb.beans.tcReconciliationOperationsSession.ignoreEvent(Unknown Source)
         at com.thortech.xl.ejb.beans.tcReconciliationOperations_gmh3ba_EOImpl.ignoreEvent(tcReconciliationOperations_gmh3ba_EOImpl.java:692)
         at Thor.API.Operations.tcReconciliationOperationsClient.ignoreEvent(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.security.Security.runAs(Security.java:41)
         at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy62.ignoreEvent(Unknown Source)
         at com.thortech.xl.gc.runtime.GCScheduleTask.execute(Unknown Source)
         at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.security.Security.runAs(Security.java:41)
         at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:178)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:477)
    ERROR QuartzWorkerThread-4 XELLERATE.GC.FRAMEWORKRECONCILIATION - Reconciliation Encountered error:
    Thor.API.Exceptions.tcAPIException: java.lang.NullPointerException
         at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.ignoreEventData(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.ignoreEvent(Unknown Source)
         at com.thortech.xl.ejb.beans.tcReconciliationOperationsSession.ignoreEvent(Unknown Source)
         at com.thortech.xl.ejb.beans.tcReconciliationOperations_gmh3ba_EOImpl.ignoreEvent(tcReconciliationOperations_gmh3ba_EOImpl.java:692)
         at Thor.API.Operations.tcReconciliationOperationsClient.ignoreEvent(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.security.Security.runAs(Security.java:41)
         at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy62.ignoreEvent(Unknown Source)
         at com.thortech.xl.gc.runtime.GCScheduleTask.execute(Unknown Source)
         at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.security.Security.runAs(Security.java:41)
         at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:178)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:477)
    WARN QuartzWorkerThread-4 XELLERATE.GC.FRAMEWORKRECONCILIATION - Though Reconciliation Scheduled task has encountered an error, Reconciliation Transport providers have been "ended" smoothly. Any provider operation that occurs during that "end" or "clean-up" phase would have been executed e.g. Data archival. In case you want that data to be a part of next Reconciliation execution, restore it from Staging. Provider logs must be containing details about storage entities that would have been archived
    ==========================================
    ========================*Step 3 (try 2)*==============
    SOURCE..................*RECON STAGING*....................*OIM*
    USER_ID--------------> USER_ID -------------> User ID
    FIRTS_NAME--------> FIRST_NAME ----------> FIRST_NAME
    LAST_NAME---------> LAST_NAME ----------> .
    PASSWORD----------> PASSWORD ----------> .
    EMAIL------------------> EMAIL -----------------> .
    ........|Xellerate |--> ORGANIZATION -------------> .
    ........|End-User |------> EMPLOYEE TYPE ------> .
    ........|Full-Time|-------> USER TYPE --------------> .
    ........|Active |------> SATUS -----------------> .
    - (On STATUS I try (*Active/Enabled/Disabled*) )
    For Fields USER_ID to EMAIL
    (Edit option)
    Dataset.......................: Reconciliation Staging
    Child Dataset Name :           
    Field Name.................: USER_ID
    Mapping Action.........: Create mapping Without Transformation     
    Matching Only.............: Not Applicable
    Case-Insensitive.........: Not Applicable
    Data Type      *..............: String
    Required.......................: Selected
    For Fields ORGANIZATION to STATUS
    (Add option)
    Dataset.......................: Reconciliation Staging
    Child Dataset Name :           
    Field Name................: STATUS
    Mapping Action..........: Create mapping Without Transformation     
    Matching Only............: Not Applicable
    Case-Insensitive........: Not Applicable
    Data Type      *.............: String
    Required......................: Selected
    Input
    Literal: Active      
    ===After save on step 4 I go to Resource Manager-->Manage Scheduled task--> RUN NOW and the log sende me the same ERRROR posted up.
    ===============Step 3 (try 3)=======================
    SOURCE...................*RECON STAGING*...................... OIM
    USER_ID--------------> USER_ID -----------> User ID
    FIRTS_NAME--------> FIRST_NAME ----------> FIRST_NAME
    LAST_NAME---------> LAST_NAME ----------> .
    PASSWORD----------> PASSWORD ----------> .
    EMAIL------------------> EMAIL ------------> .
    USER_STATUS----| T |--> USER_STATUS ---> .
    .....................................|
    .........................|Lookup.M4..|
    ............|Xellerate |--> ORGANIZATION ------------> .
    ............|End-User |------> EMPLOYEE TYPE ------> .
    ............|Full-Time |-------> USER TYPE -------------> .
    - (USER_STATUS have the next Values: True/False)
    For Fields USER_ID to EMAIL
    (Edit option)
    Dataset.......................: Reconciliation Staging
    Child Dataset Name :           
    Field Name.................: USER_ID
    Mapping Action..........: Create mapping Without Transformation     
    Matching Only.............: Not Applicable
    Case-Insensitive.........: Not Applicable
    Data Type      *..............: String
    Required......................: Selected
    For Fields ORGANIZATION to USER_TYPE
    (Add option)
    Dataset........................: Reconciliation Staging
    Child Dataset Name :           
    Field Name................: ORGANIZATION
    Mapping Action..........: Create mapping Without Transformation     
    Matching Only............: Not Applicable
    Case-Insensitive........: Not Applicable
    Data Type      *.............: String
    Required.....................: Selected
    Input
    Literal: Xellerate
    Dataset.......................: Reconciliation Staging
    Child Dataset Name:           
    Field Name................: USER_STATUS
    Mapping Action.........: Create Mapping with Translation     
    Matching Only...........: Not Applicable
    Case-Insensitive.......: Not Applicable
    Data Type      *............: String
    Required....................: Selected
    Field Name USER_STATUS
    Input
    Dataset........:Source      
    Field Name :USER_STATUS
    Lookup Code Name
    Literal...........: Lookup.M4.Recon      
    ===============
    Lookup Definition
    Code : Lookup.M4Recon
    Field:
    Lookup Type(Selected)
    Required (Not Selected)
    Group: Object
    Lookup Code Info
    | Code Key | Decode |
    1 | True/False | Active/Disabled|
    ===After save on step 4 I go to Resource Manager-->Manage Scheduled task--> RUN NOW and the log sende me the same ERROR posted up.=============
    I hope you can help me, Thanks.....
    Edited by: user11296330 on Oct 18, 2009 8:55 PM
    Edited by: user11296330 on Oct 18, 2009 10:10 PM
    Edited by: user11296330 on Oct 19, 2009 3:33 PM
    Edited by: user11296330 on Oct 20, 2009 1:52 AM
    Edited by: user11296330 on Oct 21, 2009 9:08 AM
    Edited by: user11296330 on Nov 8, 2009 10:16 PM
    Edited by: user11296330 on Nov 8, 2009 10:20 PM

    Hi amigo I solve my problem with the next:
    OK, all above is good but in the manual they mistake something.... one step.
    (All succesful with --> ========================*Step 3 (try 2)*==============)
    1.- Ok, if you got every thing like above the last thing you need is follow the next link:
    http://www.oracle.com/technology/obe/fusion_middleware/im1014/oim/obe12_using_gtc_for_reconciliation/using_the_gtc.htm
    Go to: "Modifying the GTC" ( just do this part)
    Restart the OIM and Enjoy it.
    Good day Amigo.
    And don't forget on step three:
    Click the Edit icon of the User ID field of the OIM - User data set.
    b. On the Step 1: Provide Field Information page:
    - From the Mapping Action list, select Create Mapping Without Transformation.
    - Select Matching Only.
    - Click Continue.
    Mapping Information page, select Reconciliation
    Staging from the Dataset list, select EMPLOYEE_ID (your ID Field) from the Field Name
    list, and then click Continue.
    If something go bad, tell me the steps like I did with the log.... see ya
    Edited by: user11296330 on Nov 8, 2009 9:57 PM
    Edited by: user11296330 on Nov 8, 2009 10:21 PM

  • Access Terminal and select applet

    Hi people,
    I have a question about to run the aplet in a javacard. Is there any code or other useful material about getting terminal and select applet and run the methods of the apllet in a programmable manner? Thanks for your interest...
    Edited by: POLAT on Mar 16, 2009 7:41 PM

    Honestly I haven't figured out how to pass a pin when selecting the applet, however at the minute I have a way around it:
    you will see in teh code below, I have hardcoded a default pin and I have a pin update method that can be called via a apdu,
    NOTE this example works with the code above:
    *Applet ID 41 63 63 6F 75 6E 74 41 70 70 6C
    public class AccountApplet extends Applet {
         final static byte ACCOUNT_CLA = (byte)0xB0;
         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;
         final static byte UPDATE_PIN = (byte) 0x60;
         final static short MAX_BALANCE = 10000;
         final static byte MAX_TRANSACTION_AMOUNT = 100;
         final static byte PIN_TRY_LIMIT =(byte)0x03;
         final static byte MAX_PIN_SIZE =(byte)0x08;
         // Applet-specific status words:
         OwnerPIN pin;
         short balance = 109; // Starting balance of decimal 109 is 6D in hex
         public static void install(byte[] bArray, short bOffset, byte bLength) {
                        new AccountApplet(bArray, (short) (bOffset + 1), bArray[bOffset]);
         private AccountApplet(byte[] bArray, short bOffset, byte bLength){
              pin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);
              // bArray contains the default PIN initialization value (12345)
              bArray[0] = 01;
              bArray[1] = 02;
              bArray[2] = 03;
              bArray[3] = 04;
              bArray[4] = 05;
              bOffset = 0;
              bLength = 5;
              pin.update(bArray, bOffset, bLength);
              register();
         public boolean select() {
         if (pin.getTriesRemaining() == 0)
                   return false;
              return true;
    public void deselect() {
         pin.reset();
         public void process(APDU apdu) {
    byte[] buffer = apdu.getBuffer();
              if (selectingApplet())
                   return;
              if (buffer[ISO7816.OFFSET_CLA] != ACCOUNT_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;
              case UPDATE_PIN:          updatePin(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();
         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];
              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);
              return;
         private void updatePin(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 (byteRead != numBytes) {
                   ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
                   if ( numBytes > 8 )
                   ISOException.throwIt(SW_PIN_TO_LONG);
              if ( numBytes < 4 )
                   ISOException.throwIt(SW_PIN_TO_SHORT);     
              short offset_cdata = 05;          
              pin.update(buffer, offset_cdata, numBytes);
              pin.resetAndUnblock();
         private void debit(APDU apdu) {
              if (! pin.isValidated())
                   ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
              byte[] buffer = apdu.getBuffer();
              byte numBytes = (byte)(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) {
              byte[] buffer = apdu.getBuffer();
              short le = apdu.setOutgoing();
              apdu.setOutgoingLength((byte)2);
         Util.setShort(buffer, (short)0, balance);
              apdu.sendBytes((short)0, (short)2);
          * verification method to verify the PIN
         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);
         } // end of verify method
    } // end of class Account

  • How to Add a parameter of currency exchange rate in the selection screen

    Dear Friends,
    How to Add a parameter of currency exchange rate in the selection screen with format (9999.99999). wich field i need to take.
    Thanks,
    Sridhar

    TCURR-UKURS.
    ~Suresh

  • I will pay for who can help me with this applet

    Hi!, sorry for my english, im spanish.
    I have a big problem with an applet:
    I�ve make an applet that sends files to a FTP Server with a progress bar.
    Its works fine on my IDE (JBuilder 9), but when I load into Internet Explorer (signed applet) it crash. The applet seems like blocked: it show the screen of java loading and dont show the progress bar, but it send the archives to the FTP server while shows the java loading screen.
    I will pay with a domain or with paypal to anyone who can help me with this problematic applet. I will give my code and the goal is only repair the applet. Only that.
    My email: [email protected]
    thanks in advance.
    adios!

    thaks for yours anwswers..
    harmmeijer: the applet is signed ok, I dont think that is the problem...
    itchyscratchy: the server calls are made from start() method. The applet is crashed during its sending files to FTP server, when finish, the applet look ok.
    The class I use is FtpBean: http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/
    (I test too with apache commons-net, and the same effect...)
    The ftp is Filezilla in localhost.
    This is the code, I explain a little:
    The start() method calls iniciar() method where its is defined the array of files to upload, and connect to ftp server. The for loop on every element of array and uploads a file on subirFichero() method.
    Basicaly its this.
    The HTML code is:
    <applet
           codebase = "."
           code     = "revelado.Upload.class"
           archive  = "revelado.jar"
           name     = "Revelado"
           width    = "750"
           height   = "415"
           hspace   = "0"
           vspace   = "0"
           align    = "middle"
         >
         <PARAM NAME="usern" VALUE="username">
         </applet>
    package revelado;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.io.*;
    import javax.swing.border.*;
    import java.net.*;
    import ftp.*;
    public class Upload
        extends Applet {
      private boolean isStandalone = false;
      JPanel jPanel1 = new JPanel();
      JLabel jLabel1 = new JLabel();
      JLabel jlmensaje = new JLabel();
      JLabel jlarchivo = new JLabel();
      TitledBorder titledBorder1;
      TitledBorder titledBorder2;
      //mis variables
      String DIRECTORIOHOME = System.getProperty("user.home");
      String[] fotos_sel = new String[1000]; //array of selected images
      int[] indice_tamano = new int[1000]; //array of sizes
      int[] indice_cantidad = new int[1000]; //array of quantitys
      int num_fotos_sel = 0; //number of selected images
      double importe = 0; //total prize
      double[] precios_tam = {
          0.12, 0.39, 0.60, 1.50};
      //prizes
      String server = "localhost";
      String username = "pepe";
      String password = "pepe01";
      String nombreusuario = null;
      JProgressBar jProgreso = new JProgressBar();
      //Obtener el valor de un par�metro
      public String getParameter(String key, String def) {
        return isStandalone ? System.getProperty(key, def) :
            (getParameter(key) != null ? getParameter(key) : def);
      //Construir el applet
      public Upload() {
      //Inicializar el applet
      public void init() {
        try {
          jbInit();
        catch (Exception e) {
          e.printStackTrace();
      //Inicializaci�n de componentes
      private void jbInit() throws Exception {
        titledBorder1 = new TitledBorder("");
        titledBorder2 = new TitledBorder("");
        this.setLayout(null);
        jPanel1.setBackground(Color.lightGray);
        jPanel1.setBorder(BorderFactory.createEtchedBorder());
        jPanel1.setBounds(new Rectangle(113, 70, 541, 151));
        jPanel1.setLayout(null);
        jLabel1.setFont(new java.awt.Font("Dialog", 1, 16));
        jLabel1.setText("Subiendo archivos al servidor");
        jLabel1.setBounds(new Rectangle(150, 26, 242, 15));
        jlmensaje.setFont(new java.awt.Font("Dialog", 0, 10));
        jlmensaje.setForeground(Color.red);
        jlmensaje.setHorizontalAlignment(SwingConstants.CENTER);
        jlmensaje.setText(
            "Por favor, no cierre esta ventana hasta que termine de subir todas " +
            "las fotos");
        jlmensaje.setBounds(new Rectangle(59, 49, 422, 30));
        jlarchivo.setBackground(Color.white);
        jlarchivo.setBorder(titledBorder2);
        jlarchivo.setHorizontalAlignment(SwingConstants.CENTER);
        jlarchivo.setBounds(new Rectangle(16, 85, 508, 24));
        jProgreso.setForeground(new Color(49, 226, 197));
        jProgreso.setBounds(new Rectangle(130, 121, 281, 18));
        jPanel1.add(jlmensaje, null);
        jPanel1.add(jlarchivo, null);
        jPanel1.add(jProgreso, null);
        jPanel1.add(jLabel1, null);
        this.add(jPanel1, null);
        nombreusuario = getParameter("usern");
      //Iniciar el applet
      public void start() {
        jlarchivo.setText("Start() method...");
        iniciar();
      public void iniciar() {
        //init images selected array
        fotos_sel[0] = "C:/fotos/05160009.JPG";
        fotos_sel[1] = "C:/fotos/05160010.JPG";
        fotos_sel[2] = "C:/fotos/05160011.JPG";
         // etc...
         num_fotos_sel=3; //number of selected images
        //conectar al ftp (instanciar clase FtpExample)
        FtpExample miftp = new FtpExample();
        miftp.connect();
        //make the directory
         subirpedido(miftp); 
        jProgreso.setMinimum(0);
        jProgreso.setMaximum(num_fotos_sel);
        for (int i = 0; i < num_fotos_sel; i++) {
          jlarchivo.setText(fotos_sel);
    jProgreso.setValue(i);
    subirFichero(miftp, fotos_sel[i]);
    try {
    Thread.sleep(1000);
    catch (InterruptedException ex) {
    //salida(ex.toString());
    jlarchivo.setText("Proceso finalizado correctamente");
    jProgreso.setValue(num_fotos_sel);
    miftp.close();
    //Detener el applet
    public void stop() {
    //Destruir el applet
    public void destroy() {
    //Obtener informaci�n del applet
    public String getAppletInfo() {
    return "Subir ficheros al server";
    //Obtener informaci�n del par�metro
    public String[][] getParameterInfo() {
    return null;
    //sube al ftp (a la carpeta del usuario) el archivo
    //pedido.txt que tiene las lineas del pedido
    public void subirpedido(FtpExample miftp) {
    jlarchivo.setText("Iniciando la conexi�n...");
    //make folder of user
    miftp.directorio("www/usuarios/" + nombreusuario);
    //uploads a file
    public void subirFichero(FtpExample miftp, String nombre) {
    //remote name:
    String nremoto = "";
    int lr = nombre.lastIndexOf("\\");
    if (lr<0){
    lr = nombre.lastIndexOf("/");
    nremoto = nombre.substring(lr + 1);
    String archivoremoto = "www/usuarios/" + nombreusuario + "/" + nremoto;
    //upload file
    miftp.subir(nombre, archivoremoto);
    class FtpExample
    implements FtpObserver {
    FtpBean ftp;
    long num_of_bytes = 0;
    public FtpExample() {
    // Create a new FtpBean object.
    ftp = new FtpBean();
    // Connect to a ftp server.
    public void connect() {
    try {
    ftp.ftpConnect("localhost", "pepe", "pepe01");
    catch (Exception e) {
    System.out.println(e);
    // Close connection
    public void close() {
    try {
    ftp.close();
    catch (Exception e) {
    System.out.println(e);
    // Go to directory pub and list its content.
    public void listDirectory() {
    FtpListResult ftplrs = null;
    try {
    // Go to directory
    ftp.setDirectory("/");
    // Get its directory content.
    ftplrs = ftp.getDirectoryContent();
    catch (Exception e) {
    System.out.println(e);
    // Print out the type and file name of each row.
    while (ftplrs.next()) {
    int type = ftplrs.getType();
    if (type == FtpListResult.DIRECTORY) {
    System.out.print("DIR\t");
    else if (type == FtpListResult.FILE) {
    System.out.print("FILE\t");
    else if (type == FtpListResult.LINK) {
    System.out.print("LINK\t");
    else if (type == FtpListResult.OTHERS) {
    System.out.print("OTHER\t");
    System.out.println(ftplrs.getName());
    // Implemented for FtpObserver interface.
    // To monitor download progress.
    public void byteRead(int bytes) {
    num_of_bytes += bytes;
    System.out.println(num_of_bytes + " of bytes read already.");
    // Needed to implements by FtpObserver interface.
    public void byteWrite(int bytes) {
    //crea un directorio
    public void directorio(String nombre) {
    try {
    ftp.makeDirectory(nombre);
    catch (Exception e) {
    System.out.println(e);
    public void subir(String local, String remoto) {
    try {
    ftp.putBinaryFile(local, remoto);
    catch (Exception e) {
    System.out.println(e);
    // Main
    public static void main(String[] args) {
    FtpExample example = new FtpExample();
    example.connect();
    example.directorio("raul");
    example.listDirectory();
    example.subir("C:/fotos/05160009.JPG", "/raul/foto1.jpg");
    //example.getFile();
    example.close();

  • Exchange 2007 EXCDO 8206 error in Exchange 2007 SP2 with Rollup 4

    Dear sir,
        We have a problem on Exchange 2007 Server. When user use OWA to access web mail calendar, server event log will show EXCDO error 8206:
    Calendaring agent failed with error code 0x8000ffff while saving appointment
    Type: Error
    Event ID: 8207
    Category: General.
         Moreover server becomes working in very slow web mail response during any user click web mail calendar.   Server performance return back after error message appeared  in event log.
    It doesn't has problem if using Outlook to access mailbox calendar.
    Any suggestion to fix it ?
    Joe

    Hi Joe,
    We are also finding the same issue with getting that EXCDO error. The problem stemmed when users noticed some previously accepted appointments disappeared (As I suspect you discovered with your users). 
    The workaround has been to get the user to accept the appointment again by going into deleted items, this seems to add the appointment as it should have the first time.
    We have done the following but it didn't fix the problem:
    Disabled extra SEP features on the clients - No Change
    Disabled non-essential Outlook add-ons - No Change 
    Removed BES Express and CDO MAPI From Exchange server - No Change
    Disabled MS Defender on Exchange - No Change
    Fixed any Public folder errors - No Change
    Disable Window services WSS and UNC sharing feature in Active Sync - No Change
    Also ensured Autoupdate and auto process was enabled for affected users - No Change
    I'm going to try the reg change mentioned in this thread but other than the built in MS Defender we don't have anti-virus on our mail server. 
    At first we thought it was Active Sync as it only seem to impact those with a A/S device, but now it's intermittent for other users using Outlook.  We are currently using Exchange 2007 SP3 with RU13. We are looking at trying an update
    to RU14 but I am doubtful it will fix the problem. Did you have any luck finding a solution?
    Thank you in Advance.

Maybe you are looking for

  • ITunes 11.0.2.26 will not start in Windows 7

    I keep getting the following error.      The item referred to by this shortcut cannot be accessed. You may not have the appropriate permissions. If I go to the folder and click on the exe I get the same thing (without the shortcut part) I am the only

  • Cannot reinstall Adobe Photoshop Elements 7

    Adobe Photoshop Elements 7 has been working fine up until I had to uninstall it last week. I am using Windows XP. I inserted the CD for reinstall. It works fine at validating, copying files and then asks for the CD to be re-inserted. I re-insert the

  • How to get the spool information for a job

    Hi, After a job is run, how to get the spool inforamtion. which API can be used.? Thanks in advance. Johnney.

  • Error with Constant Selection on Multiprovider

    Hi All, I have a MP, based on 1 IC and 2 DSOs. I have created a report like: KPI NO, KPI Decription on rows pane and KPI value in KF pane. KPI NO is available in all 3 infopro mentioned above.  KPI description is available only in one DSO. I have res

  • Emailing photos in PE11

    When using PE11 for emailing photos I find that I can't edit the text part of the message.  Everything else works fine.  I never had this problem with PE5.