Blocks Problem -- Urgent

How we can dynamically attach different database tables to the same forms-block.
Actually I have added a data block in my forms application based on table named 'NFC'. Now I want to change the data-sourc to a database table 'NFC_Others' (as NFC and NFC_Others are having the same fields).
Thanx a Lot

Although you can get it to work with many complications, I will never suggest it. Why don't you try creating two blocks and depending upon the need hide one and show the other. No one will notice these are two block if they are identical.
Best of luck!

Similar Messages

  • J2EE StartUp Problem, URGENT.

    Hi all!
    I'm having a problem since friday with the J2EE Engine Startup. The problem is that MMC says me that the server is running but i can access to the server by anyway. The developer trace of the jcontrol process is:
    [Thr 2968] Tue Aug 09 13:59:50 2005
    [Thr 2968] JControlICheckProcessList: process server0 started (PID:1544)
    JStartupStartJLaunch: program = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
    -> arg[00] = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
    -> arg[01] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_toshiba-user
    -> arg[02] = -DSAPINFO=J2E_00_sdm
    -> arg[03] = -file=C:\usr\sap\J2E\JC00\SDM\program\config\sdm_jstartup.properties
    -> arg[04] = -nodeName=sdm
    -> arg[05] = -nodeId=2
    -> arg[06] = -syncSem=JSTARTUP_WAIT_ON_2964
    -> arg[07] = -jvmOutFile=C:\usr\sap\J2E\JC00\work\jvm_sdm.out
    -> arg[08] = -stdOutFile=C:\usr\sap\J2E\JC00\work\std_sdm.out
    -> arg[09] = -locOutFile=C:\usr\sap\J2E\JC00\work\dev_sdm
    -> arg[10] = -mode=JCONTROL
    -> arg[11] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_toshiba-user
    -> lib path = PATH=C:\j2sdk1.4.2_08\jre\bin\server;C:\j2sdk1.4.2_08\jre\bin;C:\oracle\WAS\92\bin;C:\oracle\WAS\92\jre\1.4.2\bin\client;C:\oracle\WAS\92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\oracle\WAS\92\Appache\perl\5.00503\bin\MSWin32-x86;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    -> exe path = PATH=C:\j2sdk1.4.2_08\bin;C:\usr\sap\J2E\JC00\j2ee\os_libs;C:\oracle\WAS\92\bin;C:\oracle\WAS\92\jre\1.4.2\bin\client;C:\oracle\WAS\92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\oracle\WAS\92\Appache\perl\5.00503\bin\MSWin32-x86;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    [Thr 2968] Tue Aug 09 13:59:51 2005
    [Thr 2968] JControlICheckProcessList: process SDM started (PID:1556)
    [Thr 1188] Tue Aug 09 14:01:01 2005
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] Tue Aug 09 14:01:58 2005
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] Tue Aug 09 14:10:25 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:15:45 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:20:46 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:26:06 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:31:07 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:36:27 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:41:28 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    Then i try to login the visual admin gives me a windows error and the msg_server process shuts down alone. Then i restart that node and agregate the following lines to the trace:
    Thr 1188] Tue Aug 09 14:42:25 2005
    [Thr 1188] *** ERROR => MsINiRead: NiBufReceive failed (NIECONN_BROKEN) [msxxi.c      2488]
    [Thr 1188] *** ERROR => MsIReadFromHdl: NiRead (rc=NIECONN_BROKEN) [msxxi.c      1652]
    [Thr 1188] Tue Aug 09 14:42:27 2005
    [Thr 1188] ***LOG Q0I=> NiPConnect2: SiPeekPendConn (10061: WSAECONNREFUSED: Connection refused) [nixxi_r.cpp 8588]
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:32 2005
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:38 2005
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:44 2005
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:49 2005
    [Thr 1188] JControlMSConnect: reconnected to message server (toshiba-user/3601)
    [Thr 1188] Tue Aug 09 14:48:11 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:53:12 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:58:32 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    I try to login the visual admin again and gives me the following error: "Cannot open connection on host: 191.9.6.22 and port: 50004"
    Looking the log and trace files i see the following errors:
    - SAPEngine_System_Thread[impl:5]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to toshiba-user/3201(Connection refused: connect)#
    - java.net.SocketException: socket closed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
         at java.net.ServerSocket.implAccept(ServerSocket.java:448)
         at java.net.ServerSocket.accept(ServerSocket.java:419)
         at com.sap.engine.core.port.impl0.ServerSocketListener.run(ServerSocketListener.java:87)
    - erver socket listener opened by service on socket encountered error. The listener will be stopped.#2#p4#ServerSocket[addr=/0.0.0.0,port=0,localport=50004]
    I dont know whats happening, if somebody knows i hope that helps me. Please is urgent.
    Thx and Rgds.
    Gregory

    Hi, thx a lot both.
    Respect the link
    http://<hostname>:50<instanceno>00/sap/monitoring/SystemInfo , i cant access it. I cant access by telnet, by visual admin.
    In the work folder under \usr\sap\<sid>\JC00 i found that the last updated files are:
    - available.txt that contains the following data:
        Unavailable 08.08.2005 10:46:53 - 08.08.2005 10:58:54
        Available   08.08.2005 10:59:54 - 08.08.2005 13:52:54
        Unavailable 08.08.2005 13:53:54 - 08.08.2005 13:53:54
        Available   08.08.2005 13:54:54 - 08.08.2005 14:03:54
        Unavailable 08.08.2005 14:04:54 - 08.08.2005 14:04:54
        Available   08.08.2005 14:05:54 - 08.08.2005 14:34:54
        Unavailable 08.08.2005 14:35:54 - 08.08.2005 14:39:44
        Unavailable 08.08.2005 14:56:17 - 08.08.2005 16:24:13
        Unavailable 08.08.2005 16:28:07 - 08.08.2005 16:29:07
        Unavailable 08.08.2005 16:34:36 - 08.08.2005 17:17:58
        Unavailable 09.08.2005 08:13:36 - 09.08.2005 08:54:33
        Unavailable 09.08.2005 08:57:04 - 09.08.2005 12:46:25
        Available   09.08.2005 12:47:25 - 09.08.2005 13:26:25
        Available   09.08.2005 13:43:56 - 09.08.2005 13:55:56
        Unavailable 09.08.2005 13:56:40 - 09.08.2005 14:04:57
        Available   09.08.2005 14:05:57 - 09.08.2005 16:16:57
        Unavailable 09.08.2005 16:17:57 - 09.08.2005 17:27:12
        Unavailable 10.08.2005 08:10:30 - 10.08.2005 08:35:39
        Available   10.08.2005 08:36:39 - 10.08.2005 09:16:39
        Available   10.08.2005 12:33:51 - 10.08.2005 14:01:51
    - dev_jcontrol that contains the information displayed in the developer trace of jcontrol process(and y mentioned above)
    - dev_dispatcher that contains the following info:
        [Thr 2664] Wed Aug 10 08:33:04 2005
        [Thr 2664] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
        [Thr 2664] JLaunchISetClusterId: set cluster id 5761000
        [Thr 2664] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
        [Thr 2664] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
        [Thr 3320] Wed Aug 10 08:33:21 2005
        [Thr 3320] JLaunchISetP4Port: set p4 port 50004
        [Thr 3528] Wed Aug 10 08:33:26 2005
        [Thr 3528] JLaunchISetTelnetPort: set telnet port 50008
        [Thr 3528] JLaunchISetTelnetPort: set telnet port 50008
        [Thr 3584] Wed Aug 10 08:33:55 2005
        [Thr 3584] JLaunchISetHttpPort: set http port 50000
        [Thr 2664] Wed Aug 10 08:34:02 2005
        [Thr 2664] JLaunchISetState: change state from [Starting (2)] to [Running (3)]
        [Thr 2568] Wed Aug 10 08:34:08 2005
        [Thr 2568] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
        [Thr 3660] Wed Aug 10 08:35:07 2005
        [Thr 3660] JLaunchISetP4Port: set p4 port 50004
        [Thr 3600] Wed Aug 10 08:36:34 2005
        [Thr 3600] JLaunchISetHttpPort: set http port 50000
        [Thr 3612] Wed Aug 10 12:43:40 2005
        [Thr 3612] JLaunchISetHttpPort: set http port 50000
        [Thr 3612] JLaunchISetP4Port: set p4 port 50004
        [Thr 3612] JLaunchISetTelnetPort: set telnet port 50008
    - dev_server0 that contains:
        [Thr 2676] Wed Aug 10 08:33:06 2005
        [Thr 2676] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
        [Thr 2676] JLaunchISetClusterId: set cluster id 5761050
        [Thr 2676] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
        [Thr 2676] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
        [Thr 4296] Wed Aug 10 08:34:58 2005
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
        [Thr 4296] Wed Aug 10 08:35:00 2005
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPConverters
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPCharToNUCByteConverter
        [Thr 4296] Wed Aug 10 08:35:01 2005
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPNUCByteToCharConverter
        [Thr 2676] Wed Aug 10 08:35:07 2005
        [Thr 2676] JLaunchISetState: change state from [Starting (2)] to [Starting applications (10)]
        [Thr 208] Wed Aug 10 08:36:34 2005
        [Thr 208] JLaunchISetState: change state from [Starting applications (10)] to [Running (3)]
    I still dont know whats happening. And i need to solve the problem urgent. I hope u can help me.
    Thx and Rgds.
    Gregory.

  • DATE FIELD PROBLEMS - URGENT

    I´m having trouble with FormsCentral.
    My form is running about 8 months with no problems.
    Yesterday people started to complain that the system doesn´t accept any date.
    That means the date field restricts date entries, from date dd/mm/aaaa (brazilian format) to another dd/mm/aaaa, but every date that users input in, is considered by the system as invalid, even it´s a correct and valid date right between the interval specified!
    I need Help Urgent!!!
    I depend on these forms to finish the payrol service from here.
    Thanks
    I´ll be waiting.
    Maurício Galletti
    Message was edited by: SNOWMAUSS
    It look like the system accepts just dates starting from the date of today.
    I´m testing.
    Please help.
    Thanks
    Message was edited by: SNOWMAUSS
    It looks like the system have some problem just with the date 20/10/2013?!
    I´ve fixed the problem change the interval from 20/10/2013 to another date  and used  21/10/2013 to another date and it works!
    But I think something is wrong with the 20/10/2013 date?!
    To reproduce the erros just create a new form with date feature with this exaclty configurations and the bug appears:
    I´ll keep waiting
    Message was edited by: SNOWMAUSS

    Hi
    I´ve concluded that the problem persist if the date interval starts at the
    specific date "20/10/2013". Don´t know why?!
    Look at the screen capture above, you aks for
    Thanks a lot
    image: Imagem inline 1
    Maurício P. Galletti
    Contador
    [email protected]
    ( 55 11 3331-5567
    www.cadt.com.br
    2013/10/29 Genevieve Laroche <[email protected]>
       Re: DATE FIELD PROBLEMS - URGENT  created by Genevieve Laroche<http://forums.adobe.com/people/Genevieve+Laroche>in
    FormsCentral - View the full discussion<http://forums.adobe.com/message/5797083#5797083

  • Details:  i can not buy any thing from the app store and any thing from in side any games pls fix my problem urgent and as soon

    Details:
    Hi i can not buy any thing from the app store and any thing from in side any games pls fix my problem urgent and as soon
    Note this is second email pls answer and fix my problem
    <Email Edited by Host>

    These are public forums, you are not talking to iTunes Support here (most of the people here, including myself, are fellow users) - I've asked the hosts to remove your email address from your post
    If you are getting a message to contact iTunes support then you can do so via this page and ask them why the message is appearing (we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If it's a different problem ... ?

  • Javax.crypto.BadPaddingException: unknown block type - URGENT

    I am trying to encryp-decrypt a file (serialized xml file ) using BC provider with RSA algorithm and PKCS1Padding padding..
    Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding", "BC")
    Sequence of action is encrypt - base64encode -
    base64decode - decrypt.
    Encryption seems to be working fine but while decrypting it gives the error mentioned below:
    javax.crypto.BadPaddingException: unknown block type
    I tried using OAEPPadding - In that scenario I get this error
    javax.crypto.BadPaddingException: data hash wrong
    I tried searching the cause and resolution of the problems on various resources on net but in vain. Need it urgently. PLS HELP. THANKS
    I am pasting my code below :
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.security.Key;
    import java.security.KeyFactory;
    import java.security.KeyPair;
    import java.security.KeyPairGenerator;
    import java.security.NoSuchAlgorithmException;
    import java.security.NoSuchProviderException;
    import java.security.PrivateKey;
    import java.security.PublicKey;
    import java.security.Security;
    import java.security.spec.EncodedKeySpec;
    import java.security.spec.PKCS8EncodedKeySpec;
    import java.security.spec.X509EncodedKeySpec;
    import javax.crypto.Cipher;
    import org.apache.log4j.Logger;
    import org.bouncycastle.jce.provider.*;
    import sun.misc.BASE64Decoder;
    import sun.misc.BASE64Encoder;
    public class EncryptBase64File
    protected static final String ALGORITHM = "RSA";
         private static Logger logger = Logger.getLogger(EncryptFiles.class.getClass());
    private EncryptBase64File()
    * Init java security to add BouncyCastle as an RSA provider
    public static void init()
    Security.addProvider(new BouncyCastleProvider());
    * Generate key which contains a pair of privae and public key using 1024 bytes
    * @return key pair
    * @throws NoSuchAlgorithmException
    public static KeyPair generateKey() throws NoSuchProviderException,NoSuchAlgorithmException
    //KeyPairGenerator keyGen = KeyPairGenerator.getInstance(ALGORITHM);
              KeyPairGenerator keyGen =
                                  KeyPairGenerator.getInstance("RSA", "BC");
    keyGen.initialize(1024);
    KeyPair key = keyGen.generateKeyPair();
    return key;
    * Encrypt a text using public key.
    * @param text The original unencrypted text
    * @param key The public key
    * @return Encrypted text
    * @throws java.lang.Exception
    public static byte[] encrypt(byte[] text, PublicKey key) throws Exception
    byte[] cipherText = null;
    try
    // get an RSA cipher object and print the provider
    Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding", "BC");
                   //Cipher cipher = Cipher.getInstance("RSA");
                   System.out.println("\nProvider is: " + cipher.getProvider().getInfo());
                   System.out.println("\nStart encryption with public key");
    if (logger.isDebugEnabled())
                        logger.debug("\nProvider is: " + cipher.getProvider().getInfo());
                        logger.debug("\nStart encryption with public key");
    // encrypt the plaintext using the public key
    cipher.init(Cipher.ENCRYPT_MODE, key);
    cipherText = cipher.doFinal(text);
    catch (Exception e)
                   logger.error(e, e);
    throw e;
    return cipherText;
    * Encrypt a text using public key. The result is enctypted BASE64 encoded text
    * @param text The original unencrypted text
    * @param key The public key
    * @return Encrypted text encoded as BASE64
    * @throws java.lang.Exception
    public static String encrypt(String text, PublicKey key) throws Exception
    String encryptedText;
    try
    byte[] cipherText = encrypt(text.getBytes("UTF8"),key);
    encryptedText = encodeBASE64(cipherText);
                   System.out.println("Enctypted text is: " + encryptedText);
                   logger.debug("Enctypted text is: " + encryptedText);
    catch (Exception e)
                   logger.error(e, e);
    throw e;
    return encryptedText;
    * Decrypt text using private key
    * @param text The encrypted text
    * @param key The private key
    * @return The unencrypted text
    * @throws java.lang.Exception
    public static byte[] decrypt(byte[] text, PrivateKey key) throws Exception
    byte[] dectyptedText = null;
    try
    // decrypt the text using the private key
    //Cipher cipher = Cipher.getInstance("RSA/CBC/PKCS1Padding","BC");
                   Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding", "BC");
                   //Cipher cipher = Cipher.getInstance("RSA");
                   logger.debug("Start decryption");
                   System.out.println("Start decryption");
    cipher.init(Cipher.DECRYPT_MODE, key);
    dectyptedText = cipher.doFinal(text);
    catch (Exception e)
                   logger.error(e, e);
    throw e;
    return dectyptedText;
    * Decrypt BASE64 encoded text using private key
    * @param text The encrypted text, encoded as BASE64
    * @param key The private key
    * @return The unencrypted text encoded as UTF8
    * @throws java.lang.Exception
    public static String decrypt(String text, PrivateKey key) throws Exception
    String result;
    try
    // decrypt the text using the private key
    byte[] dectyptedText = decrypt(decodeBASE64(text),key);
    result = new String(dectyptedText, "UTF8");
                   logger.debug("Decrypted text is: " + result);
    catch (Exception e)
                   logger.error(e, e);
    throw e;
    return result;
    * Encode bytes array to BASE64 string
    * @param bytes
    * @return Encoded string
    private static String encodeBASE64(byte[] bytes)
    BASE64Encoder b64 = new BASE64Encoder();
    return b64.encode(bytes);
    * Decode BASE64 encoded string to bytes array
    * @param text The string
    * @return Bytes array
    * @throws IOException
    private static byte[] decodeBASE64(String text) throws IOException
    BASE64Decoder b64 = new BASE64Decoder();
    return b64.decodeBuffer(text);
    * Encrypt file using 1024 RSA encryption
    * @param srcFileName Source file name
    * @param destFileName Destination file name
    * @param key The key. For encryption this is the Private Key and for decryption this is the public key
    * @param cipherMode Cipher Mode
    * @throws Exception
    public static void encryptFile(String srcFileName, String destFileName, PublicKey key) throws Exception
    encryptDecryptFile(srcFileName,destFileName, key, Cipher.ENCRYPT_MODE);
    * Decrypt file using 1024 RSA encryption
    * @param srcFileName Source file name
    * @param destFileName Destination file name
    * @param key The key. For encryption this is the Private Key and for decryption this is the public key
    * @param cipherMode Cipher Mode
    * @throws Exception
    public static void decryptFile(String srcFileName, String destFileName, PrivateKey key) throws Exception
    encryptDecryptFile(srcFileName,destFileName, key, Cipher.DECRYPT_MODE);
    * Encrypt and Decrypt files using 1024 RSA encryption
    * @param srcFileName Source file name
    * @param destFileName Destination file name
    * @param key The key. For encryption this is the Private Key and for decryption this is the public key
    * @param cipherMode Cipher Mode
    * @throws Exception
    public static void encryptDecryptFile(String srcFileName, String destFileName, Key key, int cipherMode) throws Exception
    OutputStream outputWriter = null;
    InputStream inputReader = null;
    try
              Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding", "BC");
    String textLine = null;
    byte[] buf = cipherMode == Cipher.ENCRYPT_MODE? new byte[100] : new byte[128];
    int newBuffer;
    // init the Cipher object for Encryption...
    cipher.init(cipherMode, key);
    // start FileIO
    outputWriter = new FileOutputStream(destFileName);
    inputReader = new FileInputStream(srcFileName);
    while ( (bufl = inputReader.read(buf)) != -1)
    String encText = null;
    String base64EncText = null ;
    if (cipherMode == Cipher.ENCRYPT_MODE)
    encText = encrypt(getBytes(buf,newBuffer).toString(),(PublicKey)key);
    else
    encText = decrypt(getBytes(buf,newBuffer).toString(),(PrivateKey)key);
                   outputWriter.write(encText.getBytes());
    outputWriter.flush();
    catch (Exception e)
                   logger.error(e,e);
    throw e;
    finally
    try
    if (outputWriter != null)
    outputWriter.close();
    if (inputReader != null)
    inputReader.close();
    catch (Exception e)
    public static byte[] getBytes(byte[] arr, int length)
    byte[] newArr = null;
    if (arr.length == length)
    newArr = arr;
    else
    newArr = new byte[length];
    for (int i = 0; i < length; i++)
    newArr[i] = (byte) arr;
    return newArr;
         public static void main(String args[])
              throws Exception
              init();
              KeyPair keyPair = generateKey();
              PublicKey pubKey = keyPair.getPublic();
              PrivateKey privKey = keyPair.getPrivate();
              encryptFile("C:\\Temp\\TestFile.xml","C:\\Temp\\RSAEncryptedText.xml",pubKey);
              decryptFile("C:\\Temp\\RSAEncryptedText.xml","C:\\Temp\\RSADecryptedText.xml",privKey);

    I think you are the same poster as 'contebral'. Why the multiple identities?
    First off, the code you posted doesn't even compile. The getBytes() method has an error. Also, in method encryptDecryptFile() the variable bufl is not declared.
    The rest of the code is a mess. The toString() method does not do what you think it does; you're just going to get the object reference id. There is no reason to keep converting to/from byte arrays and Strings. Most of the time your data should be kept as a byte array, only possibly converting for I/O operations.
    The size of the base64 encoded output is not 128 bytes, it is 172 bytes. At this point I ran out of patience and stopped looking.
    There is no shame in being a beginner in Java, but you must walk before you can run. Stop running.

  • Report server run problem (urgent plz)

    i am using developer9i, xp opereting system but i am not able to run report server . infact i dont know where report server reside and how configure report server. otn discussion forum gave me below instructions but i need step by step detail to run report server.
    pls help me.
    i want to see (Please reffer to Note:204538.1 on
    Metalink ) but i could not access metalink.
    registration does not alow me. i have no country on
    country list and no Support Identifier (CSI, SAC,
    Access Code etc.) . but i need access.
    please help me. access with path
    thanks
    mostafizDear see this information this is metalink information
    Note:204538.1
    Subject: Common Reasons & Troubleshooting: "Unable to communicate with the Reports Server"
    Type: BULLETIN
    Status: PUBLISHED
    Content Type: TEXT/X-HTML
    Creation Date: 22-JUL-2002
    Last Revision Date: 08-MAR-2005
    PURPOSE
    ========
    The main purpose of this document is to list the known causes of the "Unable to
    communicate with the Reports Server" error. The terms Reports Server, CGI,
    Reports Servlet are also described briefly for a better explanation of this error scenario.
    This document includes the following sections :
    I. Brief summary on the architecture of Reports Server, CGI and Reports
    Servlet
    II. Sources of errors encountered when running a report with Reports Server
    III. How the CGI (or the Reports Servlet) communicates with the Reports
    Server
    IV. Possible reasons which lead to "Unable to communicate with the Reports
    Server" error.
    1) Reports Server is up and running
    2) tnsnames.ora and sqlnet.ora problems
    3) Effect of parameter "ORACLE_HOME"
    4) Effect of parameter "maxconnect"
    5) Passing very large parameters to reports server
    6) A case specific to OAS 4.0.8.2
    7) A case specific to WEBDB version 2.1.0.9.3
    V. References
    I. Brief summary on the architecture of Reports Server, CGI and Reports Servlet
    =================================================================================
    In order to understand the causes of the error "Unable to communicate with the
    Reports Server", let's first briefly review the Reports Runtime Engines, Reports
    Server, the Reports CGI, and Reports Servlet architecture.
    There are 4 important layers in Reports Server architecture which should be
    understood in order to clearly understand the error "Unable to communicate with
    the Reports Server" :
    1) The Runtime Engines : This is the main layer where the reports are actually
    executed. On unix systems there are "rwrun60" and on NT systems there are
    "rwrun60.exe" processes.
    2) The Reports Server : The Reports Server recieves the job request and queues
    it. When one of its runtime engines becomes available, it sends the
    command line to that runtime engine for execution. On Unix systems it is
    the "rwmts60" executable and on NT systems it is "rwmts60.exe".
    3) The Reports CGI : The Reports Web CGI passes the request to the Reports Server.
    The Reports CGI or Servlet converts the request to a command line that can be executed by the Reports Server and
    submits it to the specified Reports Server. On Unix platforms this executable
    is "rwcgi60" and on NTs it is "rwcgi60.exe.
    4) The Reports Servlet : Its functionality and function is just the same as "Reports CGI", but it is
    a program written in Java as difference to the CGI program (which is
    written in C programming language).
    The Reports Server may be running on the same server with the CGI program (or
    servlet) OR may reside totally on another machine which does not necessarily have
    the same Operating System. For instance CGI may reside in a Windows NT machine
    while the Reports server may reside on a Unix box, or any other combination with
    Unix-Linux-NT-2000, etc.
    The reports are called with a URL similar to below with the CGI :
    http://fully.qualified.server.name:PORT/dev60cgi/rwcgi60.exe?server=<REPSERVER>&other_parameters=...........
    where fully.qualified.server.name is the name of the server where the Reports CGI
    reside, and <REPSERVER> is the name of the server.
    II. Sources of errors encountered when running a report with Reports Server
    ============================================================================
    The Reports Web CGI (or the Reports Servlet) makes a call to the Reports Server
    and asks it to place the output into some destination (defined by DESTYPE and
    DESNAME parameters), then gives back the necessary response to the calling
    program. For example if the DESTYPE is "cache", then the Reports server generates
    the report to a file in a temporary place and gives it back to CGI and the CGI gives
    it back to the calling program. Otherwise, if the DESTYPE is "file", the Reports Server
    generates the report output to the requested file and the CGI replies back the
    following message : "Report output was successfully written to requested
    destination.".
    If there is any error in this process, the related error message is returned. The
    possible sources of errors can be categorized as follows :
    1) The errors that are returned from Reports Server; like the Reports Server can
    not find the requested RDF file or the report may be run to file and the
    directory where the reports output is asked to be placed does not occur or
    similar errors. (Usually the REP-XXXX errors)
    2) Another possible cause of error is the errors returned by the RDBMS to the
    Reports Server, for example a table not found error or things like that. Of
    course from the CGI point of view these errors are again transmitted from the
    Reports Server but in fact the error originates from the RDBMS. (Usually the
    ORA-XXXX errors)
    3) Another possible cause of errors is the CGI itself, for example when the CGI
    executable can not connect to the requested Reports Server, then we get the
    famous "Unable to communicate with the Reports Server". In this document we will
    diagnose the common reasons of this last error.
    III. How the CGI (or the Reports Servlet) communicates with the Reports Server
    ===============================================================================
    Having said that "Oracle Reports Server CGI - Unable to communicate with the
    Reports Server." error is returned back from the CGI itself, let's discuss the
    issue of how the Reports CGI connect to the Reports Server. The name of the
    Reports Server given in the URL with "server=....." parameter is, in fact, just
    a special tnsnames alias, similar to aliases for database connect strings. As it is
    important for the CGI to resolve the alias, the CGI needs to know the HOST name (or the
    IP) of the machine where the Reports Server is running and the port on which the
    Reports Server is listening. So a typical Reports Server alias is defined as follows :
    REP60_<MACHINE>=(ADDRESS = (PROTOCOL = tcp)(HOST = <MACHINE>)(PORT = <PORT>))
    This is defined in tnsnames.ora file, and the sqlnet.ora file is also used in
    the name resolving operation.
    IV. Possible reasons which lead to "Unable to communicate with the Reports Server" error.
    ==========================================================================================
    The possible reasons for the "Unable to communicate with the Reports Server" error :
    1) Reports Server is up and running :
    Make sure that the Reports Server is really running on the specified server
    and listening on the specified port. For details have a look at above
    explanations for tnsnames alias of the reports server. And because of this the
    CGI could not establish a connection to the Reports Server.
    2) tnsnames.ora and sqlnet.ora problems :
    As described above, the CGI resolves the details for the reports server using
    the "tnsnames.ora" and "sqlnet.ora" files. There may be a problem with them,
    here are the possible configuration problems :
    a) There is no alias in the tnsnames.ora file for this Reports Server
    b) The CGI looks into the wrong directory for the "tnsnames.ora" and "sqlnet.ora"
    files. By default the CGI checks the $ORACLE_HOME/net80/admin directory for
    these scripts, where the $ORACLE_HOME is the home of the Forms & Reports
    installation. Please note that in a typical 9iAS 1.0.X installation there
    are two ORACLE_HOME's, one is for the iAS and the other is for the tools,
    usually the home for the tools is a directory with name "806" on NT and
    "6iserver" on unix systems. By defining TNS_ADMIN in the environment, one
    can override the search path for these two files.
    The TNS_ADMIN variable can be defined in one of the following places :
    i) In the environment : On MS Windows platforms check the "Settings
    --> Control Panel --> System". On NTs check the environment TAB and in
    Win2K systems check the "Environment Variables" button on Advanced tab.
    ii) In "6iserver.conf" file. Details are as follows : The main configuration
    file for Apache server is "httpd.conf" file which resides in
    $IAS_HOME/Apache/Apache/conf directory. In this file there is a line to
    include "oracle_apache.conf" and in this "oracle_apache.conf" file
    there is a line to include "$ORACLE_HOME/conf/6iserver.conf" file. And
    in this file the TNS_ADMIN variable could be defined as follows :
    SetEnvIf Request_URI "rwcgi60" TNS_ADMIN=c:\orant\network\ADMIN
    Please note that by defining it this way, the TNS_ADMIN will only be defined
    for "rwcgi60" calls, so the other parts of the 9iAS will not be affected by
    this setting.
    c) In sqlnet.ora the "names.default_domain" is set but in tnsnames.ora the
    domain is not defined in the alias description. For example if the
    "names.default_domain=world" is present and active in "sqlnet.ora" file
    then in the "tnsnames.ora" the alias of the reports server should also have
    the ".world" extension appended at the end. And another cause is of course
    the vice versa for this. If there is no "names.default_domain" is defined
    in the "sqlnet.ora" then the alias in "tnsnames.ora" should not have the
    domain extension.
    Another important point that should be checked is, if TNS_ADMIN is defined
    as described above then the search path is as follows, first the directory
    defined by TNS_ADMIN is searched, if the "tnsnames.ora" file is not found in
    this directory then $ORACLE_HOME/net80/admin is checked. (And on unix systems
    /var/opt/oracle is also checked). These directories are only checked if the file
    is not present, so if the "tnsnames.ora" file is present in TNS_ADMIN directory
    but the alias is not present, then the other directories are not checked at all.
    Let us assume that the tnsnames.ora file is present in the TNS_ADMIN directory but
    there is no "sqlnet.ora" files here, then the sqlnet.ora file is checked in
    $ORACLE_HOME/net80/admin directory, which could cause the same problem if the
    "names.default_domain" is defined in this file.
    All the above will result in, CGI to unable to resolve the alias in tnsnames.ora
    file so it will not be able to establish a connection to the Reports Server.
    3) Wrong "ORACLE_HOME" setting :
    Wrong ORACLE_HOME setting. This is usually the case for Reports Servlet,
    because the environment settings are defined in "jserv.properties" file for the
    servlets and the setting here will effect both the Reports Servlet and the
    setting for Oracle JSP and other servlets. So the other servlets or Oracle JSP
    may need to set ORACLE_HOME to home of HTTP server while the reports server needs
    it to be set to the TOOLS_HOME directory. In this case the best alternative is
    not to set ORACLE_HOME in this directory and leave it to registry or defined the
    ORACLE_HOME in "6iserver.conf" file just like the TNS_ADMIN defined above. For
    details please have a look at the following document :
    Note 179609.1 "Getting an error Unable to communicate with the Reports Server
    using RWSERVLET"
    4) Effect of parameter "maxconnect" :
    Another common case for this error is that the CGI request reaches the Reports Server but
    the Reports Server refuses connection. The main cause for this case is, that the Reports Server
    configuration parameter "maxconnect" is defined too low, there are long running reports on the
    server or the server is too busy at that time. Usually a second try some
    later time results in a successful connection. If this is the case, the end user
    may think that the problem is occasional. For details on this case please
    have a look at the following document :
    Note 125265.1 "Unable to communicate with the Reports Server"
    5) Passing very large parameters to reports server :
    Another known reason for this error is, if you are passing large parameters
    to the Reports Server which exceeds sqlnet transmission blocks then the request may
    end up with this error. To test it try with small parameter values. If you hit
    this case, the solution is to increase the SDU (Session data unit size) and the TDU
    (Transport unit data size) parameters in tnsnames.ora file, for details please
    have a look at the following document :
    Note 197358.1 "Passing large parameters to Reports show up a Reports Server
    error"
    6) A case specific to OAS 4.0.8.2 :
    If you are using OAS instead of iAS, and the error appeared after
    upgrading to 4.0.8.2 then this is caused because the 4.0.8.2 is using RSF
    (Required Support Files) version 8.1.6 and the Reports 6i is using 8.0.6 and the
    two could not reside in the same ORACLE_HOME directory. So the solution for this
    problem is to create a new batch file and use it from which the actual CGI
    executable is called. For details please see the following document :
    Note 116754.1 "After applying OAS 4.0.8.2 CGI and Cartridge cannot communicate
    to report server"
    7) A case specific to WEBDB version 2.1.0.9.3 :
    Another known case for this error is with WEBDB version 2.1.0.9.3 or less.
    If you are using these old versions of WEBDB as HTTP listener, please have a
    look at the following document :
    Note 95426.1 "URL Not Found When Calling Oracle Developer Report from WebDB Site"

    On Windows you can create a Report Services:
    rwserver -install server=repserverYou have to choose different names for all servers, like your collegue cannot create a server with the same name. You can start/stop this Report server in Services (control panel). Configuration files can be found under $ORACLE_HOME/reports/conf
    Martin

  • Pricing problem-Urgent

    Hi all,
    iam getting a problem regarding pricing.
    When i make a Sales doc. with reference to an invoice,
    everything is being copied from invoice to the sales doc.-customer, material  and its no. , sales area, payment terms, incoterms, and material qty. also.
    But the pricing of the invoice is not getting copied on to the sales doc.
    I have maintained all checks available in the sales doc. type and the item category of the sales doc. type i.e
    Pricing: X
    and then in OVKK , i have maintained the doc. pric. procedure of the sales doc. type  with the pricing procedure of the invoice
    and again in the copy control measures, i have maintained
    Pricing type: D
    But i still not able to copy pricing procedure from the invoice to the Sales doc.
    I want the soltn. urgently.
    Thanks in advance
    Sourav

    run VTAF for your sales doc type/bil type
    and check item category
    set flag for "update doc flow"
    and pricing type B

  • HTML Link problem (Urgent!)

    I'm writing a prrogram that displays an HTML file. I used a JEditorPane. I tryed using the hyperlinkListener but it doesn't work! here's the class I wrote...
    can anyone help please?
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    import browser.*;
    import java.net.*;
    import javax.swing.event.*;
    * Classe :
    * Description :
    * Societe : Medias France
    * @version 1.0
    public class Aide extends JFrame implements HyperlinkListener
         BrowserInterface bI;
         URL url1;
         static Interface parent;
         public Aide(String titre, Interface i)
              super(titre);
              parent = i;
              getContentPane().setLayout(new BorderLayout());
              //bI = new BrowserInterface(jp);
              setBounds(10,10,800,600);
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                   quit(null);
              try
                   url1 = new URL("file:/home/darkazan/java/BDO/tablegen-1.8/help/help.html");
                   //bI.URL_Process(url1);
              catch (MalformedURLException e)
                   System.out.println("probleme " + e.toString());
              JEditorPane editorPane = new JEditorPane();
         editorPane.setEditable(false);
         try
         editorPane.setPage(url1);
         catch (IOException e)
         System.err.println("Attempted to read a bad URL: " + url1);
         JScrollPane editorScrollPane = new JScrollPane(editorPane);
              editorScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
         editorScrollPane.setPreferredSize(new Dimension(800, 600));
         getContentPane().add(editorScrollPane, "Center");
         pack();
         setVisible(true);
         public void hyperlinkListener(HyperlinkEvent e)
              if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
         // do something on HL click
    System.out.println("ouverture");
              if (e.getEventType() == HyperlinkEvent.EventType.ENTERED)
              // do something on mouse over HL
         // do something on HL click
         System.out.println("bbbbbbbbbbbbbbbbbbbb");
    if (e.getEventType() == HyperlinkEvent.EventType.EXITED)
    // do something on HL click
    System.out.println("ggggggggggggggggggg");
    // do something on mouse moved away from HL
         public void hyperlinkUpdate(HyperlinkEvent e)
         public static void main(String[] args)
              Aide aide1 = new Aide("Help", parent);
         * Quitter l'application
         * @param     e L'evenement recu
         * @return     Sans objet.
         void quit(ActionEvent e)
              parent.bAide.setEnabled(true);
              dispose();
    }

    also check your file protocol it should look like this: file:/// with three slashes(i think?)
    here Mr. Urgent, my html viewer: (and it works) ;P
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import javax.accessibility.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.IOException;
    public class iROCHelp extends JPanel implements HyperlinkListener{
    //ATTRIBUTES
    JEditorPane html;
    private static boolean HelpShowing = false;
    private static JFrame selTopic;
    //METHODS
    //Constructor
    public iROCHelp(java.net.URL URLstr){
    //setBorder(new EmptyBorder());
    setLayout(new BorderLayout());
    try{
    URL url = URLstr;
    if(url != null){
    html = new JEditorPane(url);
    html.setEditable(false);
    html.addHyperlinkListener(this);
    JScrollPane scroller = new JScrollPane();
    JViewport vp = scroller.getViewport();
    vp.add(html);
    vp.setBackingStoreEnabled(true);
    add(scroller, BorderLayout.CENTER);
    catch (MalformedURLException e){
    System.out.println("Malformed URL: " + e);
    catch (IOException e){
    System.out.println("IOException: " + e);
    }//HelpTopic CONSTRUCTOR
    public void hyperlinkUpdate(HyperlinkEvent e){
    if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){
    linkActivated(e.getURL());
    }//hyperlinkUpdate
    protected void linkActivated(URL u){
    Cursor c = html.getCursor();
    Cursor waitCursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
    html.setCursor(waitCursor);
    SwingUtilities.invokeLater(new PageLoader(u, c));
    }//linkActivated
    class PageLoader implements Runnable{
    PageLoader(URL u, Cursor c){
    url = u;
    cursor = c;
    public void run(){
    if (url == null){
    // restore the original cursor
    html.setCursor(cursor);
    Container parent = html.getParent();
    parent.repaint();
    else{
    Document doc = html.getDocument();
    try{
    html.setPage(url);
    catch (IOException ioe){
    html.setDocument(doc);
    finally{
    // schedule the cursor to revert after
    // the paint has happended.
    url = null;
    SwingUtilities.invokeLater(this);
    }//else
    }//run
    URL url;
    Cursor cursor;
    }//PageLoader
    public static void spawnHelp(java.net.URL URLStr){
    if (!HelpShowing){
    selTopic = new JFrame();
    selTopic.getContentPane().setLayout(new BorderLayout());
    selTopic.getContentPane().add(new iROCHelp(URLStr),BorderLayout.CENTER);
    Dimension dim = selTopic.getToolkit().getScreenSize();
    selTopic.setLocation((int)dim.getWidth()/2-selTopic.getWidth()/2,(int)dim.getHeight()/2-selTopic.getHeight()/2);
    selTopic.setSize(500, 400);
    selTopic.setTitle("Remote Operators Console Help");
    selTopic.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e){
    closeHelp();
    }//windowClosing
    selTopic.show();
    HelpShowing = true;
    }//if help showing
    }//spawnHelp
    public static void closeHelp(){
    if (HelpShowing){
    selTopic.dispose();
    HelpShowing = false;
    }//closeHelp
    }//HelpTopic CLASS

  • Jaxb & XML & encoding problem                      *URGENT*

    Hello,
    ***Do not be scared because of the length of the question please. I tried to explain problem clearly.***
    I am developing a Web service for a particular client. The client has provided .wsdl and some .xsd files for me.
    I used JWSDP-2.0 to generate holder classes from those .xsd files. In order to specify the root elemnen, I added "@XmlRootElement" annotation in front of the ServiceInfo class (, and also imported "javax.xml.bind.annotation.XmlRootElement"). I am using Eclipse in this project.
    I prepared the Web service exactly as specified by the client, but when I test it with the client the client application cannot show the XML data that it receives as a response to its request. The client application opens a file, writes the XML response to that file and also shows the response on the client application window. However, that file is always empty and I see nothing on the client application window. I do not have the client application's source code, but I do know that client application has no bug.
    NOTE: I have a guideline for developing the Web Service for this particular client and it says there: "ServiceInfo is transfered as a Unicode string, and then encoded as UTF-16."
    (Actually I don't know whether this is the reason of my problem but it is still sth that should be known I guess.)
    Here is the code of my method:
    public java.lang.String getServiceInfo() throws java.rmi.RemoteException {
    JAXBContext servInfoContext = JAXBContext.newInstance("com.gw.oms.serviceinfo"); //com.gw.oms.serviceinfo is the directory where all generated java (from serviceinfo.xsd file) files are stored.
    // create an ObjectFactory instance, create instances of holder classes
    // (root element is "serviceInfo") and set their values.
              try {
                   StringWriter writer = new StringWriter();
                   Marshaller marshaller = servInfoContext.createMarshaller();
                   marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-16");
                   marshaller.marshal(serviceInfo, writer);
                   return writer.toString();
              } catch (JAXBException e) {
                   throw new RemoteException("Error marshalling serviceInfo", e);
    I guess the code piece in the try-catch block is true, but maybe I am continuously missing sth. Can you see any wrong thing in the code?
    In order to see what is happenning in the communication between my Web Service and the client application I analyzed the traffic between them via Ethereal network sniffing tool. Here is some info:
    FROM CLIENT TO WEB SERVICE: (Data Content of HTTP packet)
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope
    xmlns:soap="http://schema.xmlsoap.org/soap/envelope"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <GetServiceInfo
    xmlns="http://....XXX....."/>
    </soap:Body>
    </soap:Envelope>
    FROM WEB SERVICE TO CLIENT: (Data Content of HTTP packet)
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope
    xmlns:soap="http://schema.xmlsoap.org/soap/envelope"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <GetServiceInfoResult
    xmlns=""/> **>> WARNING 1 <<**
    <?xml version="1.0" encoding="UTF-16" standalone="yes"?>\n<serviceInfo xmlns="http://....XXX..../serviceInfo"><serviceProvider>Service Provider Name< **>> WARNING 2 <<**
    </GetServiceInfoResult>
    </soapenv:Body>
    </soapenv:Envelope>
    **>> WARNING 1 <<**: WHY IS 'XMLNS' EMPTY HERE??? SHOULDN'T IT BE "http://....XXX....." ALSO????
    **>> WARNING 2 <<**: WHY DON'T I SEE THE COMPLETE SERVICEINFO HERE? ONLY 1 HTTP RESPONSE PACKET IS BEING SENT TO THE CLIENT BY MY WEB SERVICE.
    If I make Eclipse write to the console what I am sending, I see the result below:
    <?xml version="1.0" encoding="UTF-16"?>
    <serviceInfo xmlns="http://....XXX...../serviceInfo">
    <serviceProvider>MY UNIVERSITY</serviceProvider>
    <serviceUri>http://myserviceuri.com</serviceUri>
    <signUpPage>http://signupmyservice/services/ITUServiceSoap</signUpPage>
    <targetLocale>1053</targetLocale>
    <localName>MIN SERVIS</localName>
    <englishName>MY SERVICE</englishName>
    <authenticationType>other</authenticationType>
    <supportedService>
    <SMS_SENDER maxSbcsPerMessage="160" maxRecipientsPerMessage="400" maxMessagesPerSend="5" maxDbcsPerMessage="0"/>
    </supportedService>
    </serviceInfo>
    Somehow the client application cannot receive (or validate) the serviceinfo that my Web service sends. I suspect that sth is wrong with my Java code. Can any one see any error in this schema?
    I am really stucked. Any recommendation would be very valuable for me.
    Thanks & Regards

    I feel like nobody is following this forum anymore.. :)
    Does anybody have any idea...?
    Regards

  • Media reconnection problem URGENT!

    I am in a very urgent situation.
    Working on a feature length project and today after opening 2 sequences I was working on yesterday I had to relink media, because my scratch disks were not connected.
    While relinking, final cut pop up says that some clips' media start & end has changed , continue with relinking or cancel. I had to continue work so I went on. Alas, now i am in front of a nightmare!
    Both sequencies have been altered. In some areas the edits look the same but the content is different, in other areas cuts have been totaly removed.
    please help.

    Thank you for trying to help. These file were imported by log and capture and were atomaticaly converted to prores 422 LT. I did not mess around with file names, as the names were given during the log and transfer proccess.
    This is definetely a final cut bug.
    The problem dissapeared (not solved though, as the reasons remain unknown) with the folowing way:
    a) I open one of the backed up files and looked at my rough cut wich consists of sequencies.
    b) By playing the 2 specific sequencies on the rough cut, there was no error in the edit.
    c) By opening these 2 sequencies on the project browser, there was a different edit !!!!
    d) By going back to the rough cut and double clicking on the nested sequence, I could see the original edit.
    e) Now I had  one specific sequence in the timeline, the same name, the identical sequence, opened in two different tabs. In one tab (the sequence that i entered to through the rough cut) the edit was the original, in the other tab (the one that i opened through the project browser) the edit was distorted !!!
    f) I copied the clips of the original edit to a newly created sequence.
    g) I deleted the old- problematic sequence
    h) i repeated the process with the second sequence that was altered by final cut on its own will.
    I hope this will help someone in a similar situation and I keep this question as unsolved, because in reality noone really knows - until now- the reason for this situation. Thank god it was solved.

  • Number of data block problem

    number of data block
    is there any limit for the number of datablocks in a form?
    i have a form that has 8 blocks and all of them are none base,
    some times when i use this form it suddenly closed and a special file (ifrun60_dump file)
    is created.i donot know the reson and i cannot solve the problem
    if you have any idea about this ,plz help me?
    thanks in advance.
    regards ,
    shoja.

    Restriction on the number of objects is documented in the Help topic "Limits" - There is no practical limit to the number of blocks in a form. Certainly 8 is a timy number compared with mosdt forms.
    Contact support and supply them with the dump file, that should help to identify the issue you have.

  • MT100 Header Blocks problem

    Hello expert,
    I have a problem in MT100 generation.
    File is generated with the correct payment information but I don't have headr block i mean tags 01, 02, 03, 04, 05, 06 and 07.
    There is an option that i should set to print also header block?
    Thank you in advance.

    Thank you Gaurav.
    I checked all MF of all events. There is no tags 1,2..7. In the event 30, the MF creates tags 20 until 72.
    The bank sent me the file format MT100 expected. There are two blocks: header Block  (Tag from 1 to 7) and payment information  block  (Tag from 20 to 72). I have no problem with the payment  block is what generate SAP and i found those tags in event 30.
    by cons I do not know how to enable the generation of header block?
    1- This block could be generated by standard SAP ? What i must to set?
    2- Or i must use MF to add myself this header block? (Specific dev)
    Just for information, header block is like that:
    :01:  Refrence    --> YYMMDDNN when NN is the file number --> Mandatory for the bank
    :02: Total amount                                                                      --> Mandatory for the bank
    :03: No orders                                                                          --> Mandatory for the bank
    :04: Paying Bank --> SWIFT                                                     --> Mandatory for the bank
    :05: Ordering party --> Ordering party name and adress       --> Mandatory for the bank
    :06: User No --> User No at the paying bank                         -->optional
    :07: File name                                                                         -->optional
    Thank you very much for your help.

  • MSI 6368 with USB problem (URGENT)

    I have an urgent need to solve this problem.
    Client has a computer based on this motherboard, with Celeron 1.1 Ghz, WIN 98 Second Edition.
    The USB port works with a Microsoft mouse. Client tries to install a Canon digital camera (D60), but the USB port cannot see the camera.
    Is there something I should be doing?
    Thanks a lot

    try a different cable?  Not sure about Canon but they might need a program that they supply with the camera to move the files off of the camera.  Sort of like MP3 players and how they ship with their own proprietary software to move files onto the player and etc.

  • JOptionPane event blocking problem

    Hi,
    JOptionPane is causing me a problem.
    I have a simple frame that contains a text field and a button.
    Pressing the button should write something to the standard output.
    When the text field loses focus a JOptionPane in poped to the user.
    The following scenario is problematic:
    1. The text field owns the focus.
    2. The user presses the button.
    Expected result:
    The JOptionPane appears due to the lost focus event on the text field.
    After closing it some text is written to the standard output due to the action event on the button.
    The actual result:
    The JOptionPane does appears but after closing it nothing is written to the standard output. The button stays in a curious state (when the mouse hovers over the button the button looks pressed, and when the mouse doesn't hover over the button the button looks unpressed).
    Probable reason for this behaviour:
    The JOptionPane blocks all awt/swing events while it is opened. Some of the button code is perfomed due to the button press, but the ActionListener's actionPerformed method is not invoked.
    I need the actionPerfomed method to be invoked.
    Can anyone help me?
    Here is the source code:
    package test;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test {
    public Test() {
    public static void main(String[] args) {
    //Test test1 = new Test();
    final JFrame f = new JFrame("Test");
    JButton b = new JButton("Click Here");
    JTextField tField = new JTextField("Text", 10);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    b.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Button pressed!");
    tField.addFocusListener(new FocusAdapter() {
    public void focusLost(FocusEvent e) {
    if (e.isTemporary()) return;
    JOptionPane.showMessageDialog(f,
    "Focus lost",
    "Title",
    JOptionPane.INFORMATION_MESSAGE);
    JPanel content = (JPanel)f.getContentPane();
    content.setLayout(new BoxLayout(content, BoxLayout.X_AXIS));
    content.add(tField);
    content.add(Box.createHorizontalStrut(5));
    content.add(b);
    f.pack();
    f.show();
    Thanks,
    Shai

    Hello Shai.
    The JOptionPane seems to consume all events when its shown. (Check the stack after JOptionPane is shown.) I've solved a similar problem with the SwingUtilities.invokeLater() method. Maybe the following example will help:
    Runnable doDlgError = new Runnable() {
    public void run() {
    JOptionPane.showMessageDialog(this, "Error", "Error",
    JOptionPane.ERROR_MESSAGE);
    SwingUtilities.invokeLater(doDlgError);
    -Olaf

  • GP - Sequential Block Problem with input structure

    Hi all
    My scenario is as follows:
    I have three Actions A1 , A2, A3
    every action has collable object of type WebDynproComponent : CO1 CO2 CO3
    CO1 has only output parameters that i have mapped to input parameters of CO2 . 
    Output parameters of CO2 are apped to input parameters of CO3 . 
    I have created sequential block with Actions A1 , A2, A3.where target of A1 is A2 and that of A2 is A3
    I have created IVIEW of this GP process .
    when i open iview , ideally it should directly open the webdynpro comp of collable object CO1.
    *But my problem is its before instantiation asking me to fill values for  input parameters of CO2 which is in sequence to CO1.*
    *Is there any setting that i have missed while creating block?*
    Regards,
    Sheetal

    Hi,
    If you expose parameters at the process level, it will ask you to provide values while instaniation.
    If it is not a mandatory parameter, you can proceed with out providing values.
    The best way is don't expose paramters, if is not required at process level.
    You have to expose a parameter at process level, only if you want to use that parameter in other processes.
    by default, it will be exposed. You have to uncheck it, If you don't want to expose it.
    thanks

Maybe you are looking for

  • Help me to write a program?

    hi i want to write a program which shows me the latest posts of a special site or shows  posts of specific date,  but i don't know how to start it.  can you help me,please? thanks 

  • I have a station that will not display a particular java applet.

    It has had 1.4, then 6.0 and when attempting to click on the applet of a calendar, a box pops up, then waits a second, then shows a red x. So I uninstalled all Java, rebooted, and installed 5.0.12 etc. It still does it and if you hit cancel, it puts

  • How to track residual item

    Hi Experts,                    first a bill is matched by residual method. for example: invoice amount: 2000. collection amount: 1000. remaining 1000 is maintained as resdiual item and is stored in open item table BSID. after matching the remaining 1

  • Pearl 9105 - email messages

    hi there since i got my bb 9105 that i receive email messages, on message icon (not sms) and those contain links for emails but i dont have any email associated. i use to have one email account but is already deleted... ive already caal my phone oper

  • Help keeps telling me java plug in not enable but it is checked. what can i do next. I am computer illiterate

    Please help me-keeps telling me that java plugins not enabled but they are checked. What can I do to install java? I am computer illiterate so easy on me please.