Error in Decryption

Dear All,
This is my first post. Require your help in the resolving the following issue.
I have an encrypter and corresponding decrypter using DES algorithm compiled using Sun JDK. Now the encrypter is being used in IBM JRE environment. The file is getting encrypted, but when I try to decrypt it using Sun JDK, it is looking for the ibm classes (com.ibm.provider.DESKey) and is not able to decrypt the file. Can anyone help, why is the decrypter looking for the ibm classes.
The JRE versions of both IBM and Sun are 1.4.2.
Thanks in advance for the help...

The decrypter class
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name:   Decrypter.java
package icici.matrix.utils;
import java.io.FileInputStream;
import java.io.PrintStream;
import java.math.BigInteger;
import java.util.Properties;
public class Decrypter
    static class Params
        BigInteger p;
        BigInteger q;
        BigInteger n;
        BigInteger d;
        BigInteger e;
        BigInteger phi;
        BigInteger max;
        Params()
            p = new BigInteger("0");
            q = new BigInteger("0");
            n = new BigInteger("0");
            d = new BigInteger("0");
            e = new BigInteger("15");
            phi = new BigInteger("0");
    public Decrypter()
    public String decrypt()
        Params par = new Params();
        String password = "";
        String propFile = "app.properties";
        try
            Properties prop = new Properties();
            FileInputStream finput = new FileInputStream(propFile);
            prop.load(finput);
            password = (String)prop.get("password");
            System.out.println(password);
        catch(Exception e)
            e.printStackTrace();
        String cipherText = password;
        String cipherTextTemp = "";
        String decipheredText = "";
        String outputText = "";
        boolean flag = cipherText.startsWith("P");
        if(flag)
            cipherText = cipherText.substring(1, cipherText.length());
        int blockSize = 4;
        if(blockSize % 2 != 0)
            System.out.println("blockSize must be even");
            System.exit(1);
        String maxEncodedString = "";
        for(int cnt = 0; cnt < blockSize; cnt += 2)
            maxEncodedString = maxEncodedString + "94";
        par.max = new BigInteger(maxEncodedString);
        par.p = par.max.divide(new BigInteger("502"));
        Decrypter obj = new Decrypter();
        obj.getKeys(par, blockSize);
        decipheredText = obj.doRSA(cipherText, par.d, par.n, blockSize);
        System.out.println("decipheredText\n" + decipheredText);
        outputText = obj.decode(decipheredText);
        if(flag)
            outputText = outputText.substring(0, outputText.length() - 1);
        System.out.println("outputText\n" + outputText);
        return outputText;
    void getKeys(Params par, int blockSize)
        BigInteger bigOne = new BigInteger("1");
        for(; !par.p.isProbablePrime(1000); par.p = par.p.add(bigOne));
        String firstQ = par.p.subtract(bigOne);
        par.q = new BigInteger(firstQ);
        for(par.n = par.p.multiply(par.q); par.n.toString().length() > blockSize; par.n = par.p.multiply(par.q))
            par.q = par.q.divide(new BigInteger("2"));
        for(par.q = par.q.divide(new BigInteger("2")); !par.q.isProbablePrime(1000); par.q = par.q.subtract(bigOne));
        for(par.n = par.p.multiply(par.q); par.n.compareTo(par.max) <= 0; par.n = par.p.multiply(par.q))
            for(par.q = par.q.add(bigOne); !par.q.isProbablePrime(1000); par.q = par.q.add(bigOne));
        if(par.n.toString().length() > blockSize || par.n.compareTo(par.max) <= 0)
            System.out.println("Required conditions are not met");
            System.exit(1);
        BigInteger pPrime = par.p.subtract(bigOne);
        BigInteger qPrime = par.q.subtract(bigOne);
        for(par.phi = pPrime.multiply(qPrime); !par.e.gcd(par.phi).equals(bigOne); par.e = par.e.add(bigOne));
        par.d = par.e.modInverse(par.phi);
        if(blockSize > 6)
            System.exit(0);
    String decode(String encodedText)
        String temp = "";
        String decodedText = "";
        for(int cnt = 0; cnt < encodedText.length(); cnt += 2)
            temp = encodedText.substring(cnt, cnt + 2);
            int val = Integer.parseInt(temp) + 32;
            decodedText = decodedText + String.valueOf((char)val);
        return decodedText;
    String doRSA(String inputString, BigInteger exp, BigInteger n, int blockSize)
        String temp = "";
        String outputString = "";
        for(int cnt = 0; cnt < inputString.length(); cnt += blockSize)
            temp = inputString.substring(cnt, cnt + blockSize);
            BigInteger block = new BigInteger(temp);
            BigInteger output = block.modPow(exp, n);
            for(temp = output.toString(); temp.length() < blockSize; temp = "0" + temp);
            outputString = outputString + temp;
        return outputString;
    public String decrypt(String password)
        Params par = new Params();
        String cipherText = password;
        String cipherTextTemp = "";
        String decipheredText = "";
        String outputText = "";
        boolean flag = cipherText.startsWith("P");
        if(flag)
            cipherText = cipherText.substring(1, cipherText.length());
        int blockSize = 4;
        if(blockSize % 2 != 0)
            System.out.println("blockSize must be even");
            System.exit(1);
        String maxEncodedString = "";
        for(int cnt = 0; cnt < blockSize; cnt += 2)
            maxEncodedString = maxEncodedString + "94";
        par.max = new BigInteger(maxEncodedString);
        par.p = par.max.divide(new BigInteger("502"));
        Decrypter obj = new Decrypter();
        obj.getKeys(par, blockSize);
        decipheredText = obj.doRSA(cipherText, par.d, par.n, blockSize);
        System.out.println("decipheredText\n" + decipheredText);
        outputText = obj.decode(decipheredText);
        if(flag)
            outputText = outputText.substring(0, outputText.length() - 1);
        System.out.println("outputText\n" + outputText);
        return outputText;
}

Similar Messages

  • Getting Error while decrypt a file using Blowfish algorithm

    I am using blowfish algorithm for encrypt and decrypt my file. this is my code for encrypting decrypting .
    while i am running program i am getting an Exception
    Exception in thread "main" javax.crypto.BadPaddingException: Given final block not properly padded
    at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
    at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
    at com.sun.crypto.provider.BlowfishCipher.engineDoFinal(DashoA6275)
    at javax.crypto.Cipher.doFinal(DashoA12275)
    at Blowfishexe.main(Blowfishexe.java:65)
    import java.security.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.io.*;
    import org.bouncycastle.crypto.CryptoException;
    import org.bouncycastle.crypto.KeyGenerationParameters;
    import org.bouncycastle.crypto.engines.DESedeEngine;
    import org.bouncycastle.crypto.generators.DESedeKeyGenerator;
    import org.bouncycastle.crypto.modes.CBCBlockCipher;
    import org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher;
    import org.bouncycastle.crypto.params.DESedeParameters;
    import org.bouncycastle.crypto.params.KeyParameter;
    import org.bouncycastle.util.encoders.Hex;
    public class Blowfishexe {
    public static void main(String[] args) throws Exception {
    KeyGenerator kgen = KeyGenerator.getInstance("Blowfish");
              kgen.init(128);
              String keyfile="C:\\Encryption\\BlowfishKey.dat";
    SecretKey skey = kgen.generateKey();
    byte[] raw = skey.getEncoded();
    SecretKeySpec skeySpec = new SecretKeySpec(raw, "Blowfish");
              System.out.println("key"+raw);
                   byte[] keyBytes = skey.getEncoded();
                   byte[] keyhex = Hex.encode(keyBytes);
                   BufferedOutputStream keystream =
    new BufferedOutputStream(new FileOutputStream(keyfile));
                        keystream.write(keyhex, 0, keyhex.length);
    keystream.flush();
    keystream.close();
    Cipher cipher = Cipher.getInstance("Blowfish");
    cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
              System.out.println("secretKey"+skeySpec);
    FileOutputStream fos=new FileOutputStream("C:\\Encryption\\credit11.txt");
              BufferedReader br=new BufferedReader(new FileReader("C:\\Encryption\\credit.txt"));
              String text=null;
              byte[] plainText=null;
              byte[] cipherText=null;
              while((text=br.readLine())!=null)
              System.out.println(text);
              plainText = text.getBytes();
              cipherText = cipher.doFinal(plainText);
              fos.write(cipherText);
              br.close();
              fos.close();
              cipher.init(Cipher.DECRYPT_MODE, skeySpec);
              FileOutputStream fos1=new FileOutputStream("C:\\Encryption\\BlowfishOutput.txt");
              BufferedReader br1=new BufferedReader(new FileReader("C:\\Encryption\\credit11.txt"));
              String text1=null;
              /*while((text1=br1.readLine())!=null)
                   System.out.println("text is"+text1);
                   plainText=text1.getBytes("UTF8");
                   cipherText=cipher.doFinal(plainText);
                   fos1.write(cipherText);
              br1.close();
              fos1.close();
    //byte[] encrypted = cipher.doFinal("This is just an example".getBytes());
              //System.out.println("encrypted value"+encrypted);*/
    Any one pls tell me how to slove my problem
    thanks in advance

    hi
    i got the solution. its working now
    but blowfish key ranges from 56 to448
    while i am writing the code as
    KeyGenerator keyGenerator = KeyGenerator.getInstance("Blowfish");
    keyGenerator.init(448);
    this code is generating the key upto 448 bits
    but coming to encoding or decode section key length is not accepting
    cipher.init(Cipher.ENCRYPT_MODE, key);
    Exception in thread "main" java.security.InvalidKeyException: Illegal key size or default parameters
    at javax.crypto.Cipher.a(DashoA12275)
    at javax.crypto.Cipher.a(DashoA12275)
    at javax.crypto.Cipher.a(DashoA12275)
    at javax.crypto.Cipher.init(DashoA12275)
    at javax.crypto.Cipher.init(DashoA12275)
    at Blowfish1.main(Blowfish1.java:46)
    i am getting this error
    what is the solution for this type of exception.
    thank you

  • DBMS_CRYPTO.DECRYPT-Error in decryption.

    Hi all,
    i created encryption and decryption program using DBMS_CRYPTO package.as a whole both encryption and decryption working fine.but when i used the decrypt part alone using stored encrypted data(RAW DataType) it showing some internal error,kindly help me in this issue.i provided the details here,
    * I encrypted a string using dbms_crypto.encrypt and stored that string in a column which i created as RAW datatype format.
    *The program i used is ,
    DECLARE
    op VARCHAR2(500) ;
    op_raw raw(2000);
    ip raw(2000);
    num_key_bytes NUMBER := 256/8; -- key length 256 bits (32 bytes)
    key_bytes_raw RAW (32); -- stores 256-bit encryption key
    encryption_type PLS_INTEGER := -- total encryption type
    DBMS_CRYPTO.ENCRYPT_AES256 + DBMS_CRYPTO.CHAIN_CBC + DBMS_CRYPTO.PAD_PKCS5;
    BEGIN
    SELECT pass INTO ip FROM user_test WHERE user_id =309;
    /*this pass is of format RAW,it storing the ouput of DBMS_CRYPTO.ENCRYPT */
    /*above query fetches F130E5785F8DAE2D59972FB9B7B74BE4 as output */
    /*word used for encryption is 'secret' */
    key_bytes_raw := DBMS_CRYPTO.RANDOMBYTES (num_key_bytes);
    DBMS_OUTPUT.PUT_LINE ('ip :' || ip);
    op_raw := DBMS_CRYPTO.DECRYPT( src =>ip , typ => encryption_type, KEY => key_bytes_raw );
    DBMS_OUTPUT.PUT_LINE ('op_raw :'||op_raw);
    op:= UTL_I18N.RAW_TO_CHAR (op_raw , 'AL32UTF8');
    DBMS_OUTPUT.PUT_LINE ('op :'||op);
    END;
    * The Error i getting is ,
    Error report:
    ORA-28817: PL/SQL function returned an error.
    ORA-06512: at "SYS.DBMS_CRYPTO_FFI", line 67
    ORA-06512: at "SYS.DBMS_CRYPTO", line 41
    ORA-06512: at line 14
    28817. 00000 - "PL/SQL function returned an error."
    *Cause:    A PL/SQL function returned an error unexpectedly.
    *Action:   This is an internal error. Contact Oracle customer support.
    kindly help me in this issue as soon as possible.
    Thanks in advance,
    Jeevanand.K
    Edited by: Jeevanand K on Oct 26, 2010 2:08 AM

    Hi,
    there is a note on Metalink for this: "DBMS_CRYPTO.DECRYPT - ORA-28817 ORA-06512 at DBMS_CRYPTO_FFI", it has id 956603.1.
    Herald ten Dam
    http://htendam.wordpress.com

  • Error while decrypt a signature

    I have my own RSA privateKey and create a signature for my data by the following way: digest my data, then encrypt digested data with my RSA privateKey. When receive this signature, I decrypt it with my RSA publicKey, but there's a error message: Invalid PKCS#1 padding: no leading zero!
    I already use RSA privateKey to sign with DSA too, but denied.
    How to solve this problem? Or we could only sign with DSA? Or is there any way to convert RSA keys to DSA keys
    Thanks

    I digest a UserName then encrypt with a PrivateKey, but when decrypt with the PublicKey, they're not the same
    Anyone know why?
    Here is my codes:
    public byte[] Encrypt(){
    try{
    byte[] b = MakeDigest(strUser.getBytes());
    Cipher rsa = Cipher.getInstance("RSA/ECB");
    // Encrypt using Client's PrivateKey
    rsa.init(Cipher.ENCRYPT_MODE,CprivateKey);
    byte[] encrypted = rsa.doFinal(b);
    rsa.init(Cipher.DECRYPT_MODE,CpublicKey);
    byte[] encrypted_1 = rsa.doFinal(encrypted);
    System.out.println(encrypted.equals(encrypted_1)); // false
    return encrypted;
    }catch(Exception ex){
    System.out.println(ex.getMessage());
    return null;
    private byte[] MakeDigest(byte[] bUser){
    try{
    MessageDigest md = MessageDigest.getInstance("SHA");
    md.update(bUser);
    return md.digest();
    }catch(Exception ex){
    return null;
    }

  • Weblogic 10.3 AS - Error while Decrypting the encrypted message

    Hi,
    I'm trying WS Security with policy. I'm able to configure the keystore and test the axis client(engaging rampart) for signature alone. If I try Encryption with Signature, I'm getting the following error.
    <faultcode>wsse:FailedCheck</faultcode><faultstring>weblogic.xml.crypto.encrypt.api.XMLEncryptionException: weblogic.xml.crypto.api.KeySelectorException: Failed to resolve key using SecurityTokenReference weblogic.xml.crypto.wss.SecurityTokenReferenceImpl@14f83d1</faultstring>
    Complete stack trace available on the server log:::
    java.security.InvalidAlgorithmParameterException: [Security:090596]The WebLogicCertPathProvider was passed an unsupported CertPathSelector.
         at weblogic.security.providers.pk.WebLogicCertPathProviderRuntimeImpl$JDKCertPathBuilder.engineBuild(WebLogicCertPathProviderRuntimeImpl.java:682)
         at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
         at com.bea.common.security.internal.legacy.service.CertPathBuilderImpl$CertPathBuilderProviderImpl.build(CertPathBuilderImpl.java:67)
         at com.bea.common.security.internal.service.CertPathBuilderServiceImpl.build(CertPathBuilderServiceImpl.java:86)
         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 com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
         at $Proxy41.build(Unknown Source)
         at weblogic.security.service.WLSCertPathBuilderServiceWrapper.build(WLSCertPathBuilderServiceWrapper.java:62)
         at weblogic.security.service.CertPathManager.build(CertPathManager.java:195)
         at weblogic.security.service.CertPathManager$JDKCertPathBuilder.engineBuild(CertPathManager.java:265)
         at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
         at weblogic.xml.crypto.utils.CertUtils.buildCertPath(CertUtils.java:159)
         at weblogic.xml.crypto.utils.CertUtils.lookupCertificate(CertUtils.java:124)
         at weblogic.xml.crypto.utils.CertUtils.lookupCertificate(CertUtils.java:120)
         at weblogic.xml.crypto.wss11.internal.bst.BSTHandler.lookupCertificate(BSTHandler.java:81)
         at weblogic.xml.crypto.wss11.internal.bst.BSTHandler.getTokenByKeyId(BSTHandler.java:59)
         at weblogic.xml.crypto.wss.BinarySecurityTokenHandler.getSecurityToken(BinarySecurityTokenHandler.java:79)
         at weblogic.xml.crypto.common.keyinfo.KeyResolver.setupKeyProviderFromContext(KeyResolver.java:344)
         at weblogic.xml.crypto.common.keyinfo.KeyResolver.getKeyFromSTR(KeyResolver.java:295)
         at weblogic.xml.crypto.common.keyinfo.KeyResolver.select(KeyResolver.java:127)
         at weblogic.xml.crypto.encrypt.WLEncryptedType.getKey(WLEncryptedType.java:336)
         at weblogic.xml.crypto.encrypt.WLEncryptedKey.decryptBytes(WLEncryptedKey.java:151)
         at weblogic.xml.crypto.encrypt.WLEncryptedKey.decryptKey(WLEncryptedKey.java:142)
         at weblogic.xml.crypto.common.keyinfo.EncryptedKeyProvider.getKey(EncryptedKeyProvider.java:153)
         at weblogic.xml.crypto.common.keyinfo.BaseKeyProvider.getKeyByURI(BaseKeyProvider.java:66)
         at weblogic.xml.crypto.common.keyinfo.KeyResolver$2.getKey(KeyResolver.java:547)
         at weblogic.xml.crypto.common.keyinfo.KeyResolver.getKey(KeyResolver.java:516)
         at weblogic.xml.crypto.common.keyinfo.KeyResolver.getKeyFromSTR(KeyResolver.java:324)
         at weblogic.xml.crypto.common.keyinfo.KeyResolver.select(KeyResolver.java:127)
         at weblogic.xml.crypto.encrypt.WLEncryptedType.getKey(WLEncryptedType.java:336)
         at weblogic.xml.crypto.encrypt.WLEncryptedData.decrypt(WLEncryptedData.java:109)
         at weblogic.xml.crypto.encrypt.WLEncryptedData.decryptAndReplace(WLEncryptedData.java:148)
         at weblogic.xml.crypto.wss.SecurityImpl.decrypt(SecurityImpl.java:882)
         at weblogic.xml.crypto.wss.SecurityImpl.unmarshalAndProcessEncryptedKey(SecurityImpl.java:866)
         at weblogic.xml.crypto.wss.SecurityImpl.unmarshalChildren(SecurityImpl.java:561)
         at weblogic.xml.crypto.wss.SecurityImpl.unmarshalInternal(SecurityImpl.java:450)
         at weblogic.xml.crypto.wss.SecurityImpl.unmarshal(SecurityImpl.java:418)
         at weblogic.xml.crypto.wss11.internal.WSS11Factory.unmarshalAndProcessSecurity(WSS11Factory.java:33)
         at weblogic.wsee.security.wssp.handlers.WssServerHandler.processRequest(WssServerHandler.java:46)
         at weblogic.wsee.security.wssp.handlers.WssHandler.handleRequest(WssHandler.java:92)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
         at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
         at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
         at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
         at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
         at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
         at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3590)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Please advise

    There are examples showcasing WS-Security if you selected that option during installation time (custom install).
    If you did that, then look here:
    <MIDDLEWARE_HOME>\wlserver_10.3\samples\server\examples\src\examples\webservices\security_jws
    I recommend that you make sure you followed all of those same steps and try your example first with a WLS client before trying with an Apache Axis client.
    You can also try cross-posting in the WLS Web Services or WLS Security forums.

  • PGP Decryption Error (File is no valid PGP Message)

    Hi, I'm encountering an error while decrypting a pgp file.  Error is MP: exception caught with cause com.sap.aii.af.lib.mp.module.ModuleException: File is no valid PGP Message, could not apply decryption.
    I have tested decrypting the file using an external tool and was able to decrypt it but not in PI.  Below is my configs in sender commChannel (Note: no file content conversion is involved).  Any ideas on how to resolve this? Thank you.

    Hi Sarah, thanks for the response. I tried arranging the sequence as you've suggested but once saved, it will re-arrange to the old order as below:
    keyRootPath
    ownPrivateKey
    partnerPublicKey
    pwdOwnPrivateKey
    With regards to running XPI Inspector Tool, i will install it first.
    For the meantime, are there other suggestions?
    Thank you.

  • Upgrade Error - DBConnect fails EC 00256

    Hi,
          the upgrade from 4.6c to Ecc6 failed at step StartSap_Dual with following error
    System start failed code - 2
    - 2 the test rfc did not work
    try to login in with the ddic user. this error shows up on the upgrade screen.
    we are using
    Windows 2000 sp3,oracle 9.02,kernel 700 patch 102
    wen manually tried to connect using management console it gives the error DBConnect fails Ec 00256
    The DB log mode is now changed to Archive log mode.\
    Kindly help if this is a known issue
    thanks
    John
    the dev_w0 log is shown below
    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Wed Aug 01 12:03:53 2007
    B  create_con (con_name=R/3)
    B  Loading DB library 'I:\usr\sap\U46\SYS\exe\run\dboraslib.dll' ...
    B  Library 'I:\usr\sap\U46\SYS\exe\run\dboraslib.dll' loaded
    B  Version of 'I:\usr\sap\U46\SYS\exe\run\dboraslib.dll' is "700.08", patchlevel (0.102)
    B  New connection 0 created
    M sysno      00
    M sid        U46
    M systemid   560 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    102
    M intno      20050900
    M make:      multithreaded, Unicode, optimized
    M pid        5908
    M
    M  kernel runs with dp version 224000(ext=109000) (@(#) DPLIB-INT-VERSION-224000-UC)
    M  length of sys_adm_ext is 572 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 5908) [dpxxdisp.c   1301]

    I Wed Aug 01 12:03:54 2007
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M  DpShMCreate: sizeof(wp_adm)          24344     (1432)
    M  DpShMCreate: sizeof(tm_adm)          4232256     (21056)
    M  DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    M  DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    M  DpShMCreate: sizeof(comm_adm)          528064     (1048)
    M  DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    M  DpShMCreate: sizeof(slock_adm)          0     (96)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1520)
    M  DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 08D10040, size: 4897456)
    M  DpShMCreate: allocated sys_adm at 08D10040
    M  DpShMCreate: allocated wp_adm at 08D11E80
    M  DpShMCreate: allocated tm_adm_list at 08D17D98
    M  DpShMCreate: allocated tm_adm at 08D17DC8
    M  DpShMCreate: allocated wp_ca_adm at 09121208
    M  DpShMCreate: allocated appc_ca_adm at 09126FC8
    M  DpShMCreate: allocated comm_adm at 09128F08
    M  DpShMCreate: system runs without slock table
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 091A9DC8
    M  DpShMCreate: allocated gw_adm at 091A9E08
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 091A9E38
    M  DpShMCreate: allocated wall_adm at 091A9E40

    X Wed Aug 01 12:03:55 2007
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation view
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.
    M  ThInit: running on host SAPUPG46
    M  calling db_connect ...
    C  CLIENT_ORACLE_HOME is not set as environment variable or
    C  DIR_CLIENT_ORAHOME is not set as profile parameter.
    C    assuming using instant client with unspecified location.

    C Wed Aug 01 12:03:56 2007
    C  Oracle Client Version: '10.2.0.2.0'
    C  Client NLS settings: AMERICAN_AMERICA.UTF8
    C  Logon as OPS$-user to get SAPU46's password
    C  Connecting as /@U46 on connection 0 (nls_hdl 0) ... (dbsl 700 010307)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   07443638   07448CD4   0744855C
    C  Attaching to DB Server U46 (con_hdl=0,svchp=074484A8,srvhp=0745A0A4)

    C Wed Aug 01 12:03:59 2007
    C  Starting user session (con_hdl=0,svchp=074484A8,srvhp=0745A0A4,usrhp=0747CD78)
    C  Now '/@U46' is connected (con_hdl 0, nls_hdl 0).
    C  *** ERROR => Cannot decrypt password I got from table vzxvb
    [dbsloci.c    11430]
    C  Disconnecting from connection 0 ...
    C  Closing user session (con_hdl=0,svchp=074484A8,usrhp=0747CD78)
    C  Now I'm disconnected from ORACLE
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1426]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10240]

    M  Info for wp 0

    M    stat = WP_RUN
    M    waiting_for = NO_WAITING
    M    reqtype = DP_RQ_DIAWP
    M    act_reqtype = NO_REQTYPE
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source =
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    csTrack = 0
    M    csTrackRwExcl = 0
    M    csTrackRwShrd = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = no VM

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server SAPUPG46_U46_00 on host SAPUPG46 (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Wed Aug 01 12:03:59 2007
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10439
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 5908) [dpnttool.c   327]

    Hi John
    Did you check the env variables??
    Error "CLIENT_ORACLE_HOME is not set as environment variable"
    Define ORACLE_HOME as <drive>:\oracle\<SID>\<oracle_version>
    or CLIENT_ORACLE_HOME as <drive>:\<oracle client location>
    Regards
    Juan
    Please reward with points if helpful

  • Error while creating Mysite in sharepoint 2010 , System error code 0

    Hi I was trying to create Mysite and I got the following error.
    Previously all user able to create MySite this error is coming from 3 days
    My Site creation failure for user XXXX\cwr.SMahindrakar' for site url 'https://XXXXXXXX/personal/cwr_smahindrakar'. The exception was: Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site. ---> System.ArgumentException: Error during decryption. System error code 0.
    at Microsoft.SharePoint.Administration.SPCredentialManager.DecryptWithApplicationCredentialKey(Byte[] rgbEncryptedPassphrase)
    at Microsoft.SharePoint.Administration.SPPeoplePickerSearchActiveDirectoryDomain.get_Password()
    at Microsoft.SharePoint.Utilities.SPActiveDirectoryDomain..ctor(SPPeoplePickerSearchActiveDirectoryDomain peoplePickerDomain)
    at Microsoft.SharePoint.Utilities.SPUserUtility.GetWindowsPrincipalResolvers(SPWebApplication webApp, String userAccountDirectoryPathRestriction, SPPrincipalResolver bySidResolver)
    at Microsoft.SharePoint.Utilities.SPUserUtility.CreatePrincipalResolvers(SPWebApplication webApp, ICollection`1 urlZones, Nullable`1 currentZone, SPPrincipalResolver bySidResolver, String userAccountDirectoryPathRestriction, Boolean alwaysAddWindowsResolver)
    at Microsoft.SharePoint.Utilities.SPUtility.ResolvePrincipalInternal(SPWeb web, SPWebApplication webApp, Nullable`1 urlZone, String input, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer, Boolean inputIsEmailOnly, Boolean alwaysAddWindowsResolver)
    at Microsoft.SharePoint.Utilities.SPUtility.ResolvePrincipal(SPWebApplication webApp, Nullable`1 urlZone, String input, SPPrincipalType scopes, SPPrincipalSource sources, Boolean inputIsEmailOnly)
    at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)
    at Microsoft.SharePoint.SPSite.SelfServiceCreateSite(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String contactLogin, String contactName, String contactEmail, String quotaTemplate, SPSiteSubscription siteSubscription)
    at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()
    --- End of inner exception stack trace ---
    at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()
    at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
    Error is coming on Prod Env, I have tried diffrent trial and Error method but still I am not able to find root cause.
    Please mark answer , if you think answer is helpful or correct.

    Hi All,
    To resolve these issues I have checked following things, and which all seems no issues
    1)Quota Limit
    2)Database read only mode
    3)Appl pool account access to database
    4)Changed app pool account with farm account
    5)Added app pool account to MySite admin group
    6)Database size limit
    7)Site collection site limit to MySite host
    8)User Profile service is running or not
    9)Self site creation to user
    10)Service application association to MYsite Host
    All above I have tested but it seems no error, still I am getting above Error.
    One more things I want to add is that Central admin  people picker does not recognize users. 
    That can be an issue?
    Please mark answer , if you think answer is helpful or correct.

  • Messaging Server 7u2-7.02 + uwc error + aci erros

    Hello,
    I have
    bash-3.00# /opt/sun/comms/messaging64/sbin/imsimta version
    Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)
    libimta.so 7u2-7.02 64bit (built 02:28:03, Apr 16 2009)
    Using /opt/sun/comms/messaging64/config/imta.cnf (compiled)
    SunOS fe1.army.mil 5.10 Generic_137138-09 i86pc i386 i86pc
    Directory server -  Directory server 6.2I am seeing below messages in directory error log.
    I have resolved that "'" problem of aci by solution provided on one of the thread.
    [28/May/2009:16:38:37 +0530] - INFORMATION - NSACLPlugin - conn=-1 op=-1 msgId=-1 -  Warning: Bad targetfilter((!(|(nsroledn=cn=Top-level Admin Role,dc=army,dc=mil)(entrydn=ou=ericssonr320_r1a_(fast_wireless_crawler,ou=internaldata,ou=1.0,ou=sunamclientdata,ou=clientdata,dc=army,dc=mil)))) in aci: does not match
    [28/May/2009:16:38:39 +0530] - INFORMATION - NSACLPlugin - conn=-1 op=-1 msgId=-1 -  Warning: Bad targetfilter((!(|(nsroledn=cn=Top-level Admin Role,dc=army,dc=mil)(entrydn=ou=nokia7110_v0.13_(compatible_yospace_smartphone_emulator_1.0,ou=internaldata,ou=1.0,ou=sunamclientdata,ou=clientdata,dc=army,dc=mil)))) in aci: does not match
    [28/May/2009:16:38:39 +0530] - INFORMATION - NSACLPlugin - conn=-1 op=-1 msgId=-1 -  Warning: Bad targetfilter((!(|(nsroledn=cn=Top-level Admin Role,dc=army,dc=mil)(entrydn=ou=nokia_6210_v0.13_(compatible_yospace_smartphone_emulator_1.,ou=internaldata,ou=1.0,ou=sunamclientdata,ou=clientdata,dc=army,dc=mil)))) in aci: does not match
    [28/May/2009:16:38:39 +0530] - INFORMATION - NSACLPlugin - conn=-1 op=-1 msgId=-1 -  Warning: Bad targetfilter((!(|(nsroledn=cn=Top-level Admin Role,dc=army,dc=mil)(entrydn=ou=nokia_7110_v0.13_(compatible_yospace_smartphone_emulator_we,ou=internaldata,ou=1.0,ou=sunamclientdata,ou=clientdata,dc=army,dc=mil)))) in aci: does not match
    [28/May/2009:16:38:39 +0530] - INFORMATION - NSACLPlugin - conn=-1 op=-1 msgId=-1 -  Warning: Bad targetfilter((!(|(nsroledn=cn=Top-level Admin Role,dc=army,dc=mil)(entrydn=ou=sie-c3i_1.0_up_4.1.8c_up.browser_4.1.8c-xxxx_(compatible__yo,ou=internaldata,ou=1.0,ou=sunamclientdata,ou=clientdata,dc=army,dc=mil)))) in aci: does not match
    multiple messages for above Logging to UWC showing error of misconfiguration, and uwc logs says below.
    May 28, 2009 5:03:55 PM com.sun.uwc.common.auth.LDAPAuthFilter doFilter
    INFO: --------Inside ldapfilter-----
    May 28, 2009 5:03:55 PM com.sun.uwc.common.UWCUserHelper getUserValidation
    INFO: getUserEntry: Getting user entry now
    May 28, 2009 5:03:55 PM com.sun.uwc.common.UWCUserHelper getUserValidation
    INFO: Getting connection -----
    May 28, 2009 5:03:55 PM com.sun.uwc.common.UWCUserHelper getUserValidation
    INFO: binding ----
    May 28, 2009 5:03:55 PM com.sun.uwc.common.UWCUserHelper getUserValidation
    INFO: now making search -----
    May 28, 2009 5:03:55 PM com.sun.uwc.common.auth.LDAPAuthFilter doFilter
    INFO: login:10.77.45.29:sumant:login successful
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel initializeForAuthUser
    INFO: ObjectClass: sunUCPreferences for DN: uid=sumant,ou=People,o=army.mil,dc=army,dc=mil is present
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel initializeForAuthUser
    INFO: UC Prefs Initialized : sunUCInitialized is present and value is true
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel initializeAndObtainPrefs
    INFO: Value from LDAP for: sunUCExtendedUserPrefs:sunUCInitialized is sunUCInitialized=true
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel initializeAndObtainPrefs
    INFO: UC multi-val Attribute : sunUCExtendedUserPrefs: landingPage is not obtained
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel setAttrValuesInSession
    INFO: Not Multi-val sunUCDefaultApplication value: addressbook
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel setAttrValuesInSession
    INFO: Not Multi-val sunUCTheme value: uwc
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel setAttrValuesInSession
    INFO: Not Multi-val sunUCColorScheme value: 2
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel setAttrValuesInSession
    INFO: Not Multi-val sunUCDefaultEmailHandler value: uc
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel setAttrValuesInSession
    INFO: Not Multi-val sunUCDateFormat value: M/D/Y
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel setAttrValuesInSession
    INFO: Not Multi-val sunUCDateDelimiter value: /
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel setAttrValuesInSession
    INFO: Not Multi-val sunUCTimeFormat value: 12
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel setAttrValuesInSession
    INFO: Not Multi-val sunUCTimeZone value: America/Los_Angeles
    May 28, 2009 5:03:55 PM com.sun.uwc.common.model.UserPreferencesModel setAttrValuesInSession
    INFO: Not Multi-val preferredLanguage value: en
    May 28, 2009 5:03:55 PM com.sun.uwc.common.UWCUserHelper replayMailProxyAuth
    SEVERE: Connection refused
    May 28, 2009 5:03:55 PM com.sun.uwc.common.UWCUserHelper replayMailProxyAuth
    SEVERE: Proxy auth with mail for user sumant has failed. This may be due to
    i.wrong webmail proxy credentials in uwcconfig.properties or
    ii.MS config parmater local.http.uwcenabled is not set
    iii.Mismatch between webmail.cookiename in uwcconfig.properties and local.service.http.cookiename in webmail
    May 28, 2009 5:03:55 PM com.sun.uwc.common.UWCApplicationHelper decryptPwrd
    INFO: -------Decrypt is done ----------
    May 28, 2009 5:03:55 PM com.sun.uwc.common.UWCUserHelper createCalStore
    SEVERE:          calsession  not created calstore connect has failed
    May 28, 2009 5:03:55 PM com.sun.uwc.calclient.CalModuleServlet onInitializeHandler
    SEVERE: Error[onBeforeRequest:getCalStore] [Error:getCalStore] - Could not create store
    May 28, 2009 5:04:00 PM com.sun.uwc.common.UWCUserHelper cleanWebmailSession
    SEVERE: Connection refused
    May 28, 2009 5:04:00 PM com.sun.uwc.common.auth.LDAPAuthFilter doFilter
    INFO: --------Inside ldapfilter-----I have configuration set as
    bash-3.00# /opt/sun/comms/messaging64/sbin/getconf local.webmail.sso.uwcenabled
    1
    bash-3.00# /opt/sun/comms/messaging64/sbin/getconf local.service.proxy.admin
    [email protected] has been set for local.service.http.cookiename and properties file have the default value webmailsid
    what's wrong going on...?
    I am able to send and receive message from front server using IMAP and SMTP
    thanks,
    Sumant

    Hello,
    now I have upgraded to 6.3.
    After recreating a test user I am able to see address book and options tab in UWC, however not Mail
    UWC logs says
    May 28, 2009 7:42:10 PM com.sun.uwc.common.UWCApplicationHelper decryptPwrd
    SEVERE: Error while decrypting javax.crypto.BadPaddingException: Given final block not properly padded
    May 28, 2009 7:42:10 PM com.sun.uwc.common.auth.LDAPConfig initUG
    SEVERE: Error in decrypting LDAP_BINDCRED
    May 28, 2009 7:42:10 PM com.sun.uwc.common.auth.MailProxyFilter init
    INFO: Initialized SecureDirFilter
    May 28, 2009 7:42:10 PM com.sun.uwc.calclient.MultipartFormServletFilter init
    INFO: /var/opt/sun/comms/ce/tempFileStore/already exist, check the file permission if file upload is not working
    May 28, 2009 7:42:11 PM com.sun.uwc.common.UWCApplicationHelper decryptPwrd
    SEVERE: Error while decrypting javax.crypto.BadPaddingException: Given final block not properly paddedPlease see that the some of the configuration parameter for uwc given in first message of thread.
    messaging http logs says
    [29/May/2009:11:25:00 +0530] fe1 httpd[3231]: Account Information: connect [127.0.0.1:51092]
    [29/May/2009:11:25:00 +0530] fe1 httpd[3231]: General Information: [127.0.0.1:51092] HEAD / HTTP/1.0
    [29/May/2009:11:25:00 +0530] fe1 httpd[3231]: Account Notice: close [127.0.0.1:51092] [unauthenticated] 2009/5/29 11:25:00 0:00:00 19 0 0
    [29/May/2009:11:35:00 +0530] fe1 httpd[3231]: Account Information: connect [127.0.0.1:53199]
    [29/May/2009:11:35:00 +0530] fe1 httpd[3231]: General Information: [127.0.0.1:53199] HEAD / HTTP/1.0
    [29/May/2009:11:35:00 +0530] fe1 httpd[3231]: Account Notice: close [127.0.0.1:53199] [unauthenticated] 2009/5/29 11:35:00 0:00:00 19 0 0
    [29/May/2009:11:36:43 +0530] fe1 httpd[3231]: Store Debug: session_expire: starting
    [29/May/2009:11:36:43 +0530] fe1 httpd[3231]: Store Debug: session_expire: donethanks,
    Sumant
    Edited by: mr.chhunchha on May 29, 2009 11:41 AM

  • ERROR: MFMessageErrorDomain/Encryption

    Hi,
    I'm using different email certificates for Mail. Every mail-address has a seperate email certificate. I'm using Secure Email Certificates from comodo.com.
    On my mac everything works fine.
    On my iOS 7 devices only decryption is working.
    Encryption doesn't work.
    It always says that there is no cerificate for encryption available.
    I have installed all the cerificates via keychain export.
    decryption is working well!
    Any idea?
    Thank you
    Klaus

    anu1106 wrote:
    Hi all,
    I have problem with decryption data because of byte[] as input
    Used 256 bit AES key encryption
    byte[] bytes1 = mc.getBytes();
    I am doing following steps:
    1) Encrypt the String data. Encryption method takes input as byte[] so used encrypt(mc.getBytes()) & write encrypted data on file.
    2)Read data from that binary file & transfer to another computer using httpClient.Now, httpClient transfer data as request so receive on other end as String.No you don't receive on the other end as String (or if you do you shouldn't). You should receive the data as bytes or before shipping you should Base64 or ASCII85 or Hex encode so that you can then work with Strings.
    You have been told this in your thread [http://forums.sun.com/thread.jspa?threadID=5438011&tstart=0|http://forums.sun.com/thread.jspa?threadID=5438011&tstart=0] yet you seem to be ignoring it.
    3) After that, what i Did receive data as string Till here everything fine
    Now Problem is
    Now, i need to decrypt data decryption method also take input as byte[] So , I convert String into byte[] using method byte[] bytes = String.getByte();
    But bytes not giving object value same as bytes1.
    So my code giving error at decryption because bytes1 have different value.
    Also used
    byte[] bytes1 = mc.getBytes("UTF-8");
    byte[] bytes = String.getByte("UTF-8"); but did notworkBecause it is just plain WRONG!
    >
    >
    Thanks
    Anu

  • Losing bytes while decrypting with Rijndael

    I wondered if somebody would like to help me solve the following problem:
    I'm trying to decrypt a file which is 32 bytes long before the decryption process. After the the decryption process, just 16 of the 32 bytes remain. All of the 16 bytes are decoded correctly! Does somebody know how i can prevent such a loss of data?
    Here follows a code-snippet:
    byte[] enckey = "thisisabeautifullkeydontyouthink".getBytes();
    SecretKeySpec key = new SecretKeySpec(enckey, "Rijndael");
    System.out.println("Loaded the key.");
    // Create a cipher using that key to initialize it
    Cipher cipher = Cipher.getInstance("Rijndael/CBC/PKCS5Padding");
    FileInputStream fis = new FileInputStream("c:\\temp\\foo.dat");
    FileOutputStream fos = new FileOutputStream("c:\\temp\\decrypted_foo.dat");
    byte[] iv = "thisstringislong".getBytes();
    IvParameterSpec spec = new IvParameterSpec(iv);
    System.out.println("Initializing the cipher.");
    cipher.init(Cipher.DECRYPT_MODE, key, spec);
    CipherInputStream cis = new CipherInputStream(fis, cipher);
    System.out.println("Decrypting the file...");
    int theByte = 0;
    while ((theByte = cis.read()) != -1)
    fos.write(theByte);
    cis.close();
    fos.close();
    I hope somebody is able to help me out!
    Thanks in advance,
    Mathieu

    I didn't use padding encode my files, so i've changed my cipher.init to Cipher cipher = Cipher.getInstance("Rijndael/CBC/NoPadding"); Now the cipher does not produce any errors when decrypting. Still the output differs slightly from the original file.
    For encoding my files i use perl. Is there a possibility to decode my files using the java.cipher? If so, what parameters should I use for decoding my files? Here follows my Perl code:
    sub encrypt{
        my ($key, $file, $file_out) = @_;
        my $buffer;
        # Rijndael encryption module
        use Crypt::Rijndael;
        $cipher = new Crypt::Rijndael $key, Crypt::Rijndael::MODE_CBC;
        # Open files
        open INF, $file;
        open OUTF, ">$file_out";
        # Binairy mode
        binmode INF;
        binmode OUTF;
        # Set IV
        $iv="mijnnaamishaasje";
        $cipher->set_iv($iv);
        # Read in and write
        while (
          read (INF, $buffer, 1024) and
                 print OUTF $cipher->encrypt(get16($buffer))
        # Close files
        close OUTF;
        close INF;
    sub get16 {
        my $data = shift;
        if (length($data)%16==0) {
            $return = $data;
        else {
            $return = $data . "\0" x ( 16 - length($data) % 16 );
        return $return;

  • Message File Adapter - XI Integration Server not arriving

    We have configured a file adapter to read a file.  According to the audit log the file is successfully read and converted to XML; however, the message is never posted to XI.  We have checked to make sure that no XI* users are locked and we have bounced the server.
    The following error message is listed in the audit log:
    Transmitting the message to endpoint http://kansbwul01:50000/sap/xi/engine/entry?action=execute using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: Error writing to server.
    The following is the application log:
    #1.5#0003BA54D61900190000000C000030E60003EEAAD1138641#1106842349700#/Applications/ExchangeInfrastructure/AdapterFramework/ThirdPartyRoot/comsap/Server/Adapter Framework##com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory.stop()######3e38f290707e11d996610003ba54d619#SAPEngine_System_Thread[impl:5]_35##0#0#Info#1#com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory#Java###The running MCF with GUID will be stopped now#1#8fa37160707811d995b00003ba54d619#
    #1.5#0003BA54D619001900000014000030E60003EEAAD16F4730#1106842355713#/Applications/ExchangeInfrastructure/AdapterFramework/ThirdPartyRoot/comsap/Server/Adapter Framework##com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory.stop()######3e38f290707e11d996610003ba54d619#SAPEngine_System_Thread[impl:5]_35##0#0#Info#1#com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory#Java###MCF with GUID was stopped successfully.#1#8fa37160707811d995b00003ba54d619#
    #1.5#0003BA54D619006000000009000030E60003EEAAD1A4DD9D#1106842359225#/Applications/ExchangeInfrastructure/AdapterFramework/ResourceAdapter/MessagingSystem/System/Clustering##com.sap.aii.af.ra.ms.runtime.MessagingSystem.reassignMessages(String, String[])#J2EE_GUEST#0#####SAPEngine_Application_Thread[impl:3]_11##0#0#Error#1#com.sap.aii.af.ra.ms.runtime.MessagingSystem#Java###Could not redistribute messages due to #1#LockingManager must be initialized before usage.#
    #1.5#0003BA54D6190040000000000000316A0003EEAAD9D40B8C#1106842496535#/Applications/ExchangeInfrastructure/AdapterFramework/Services/SecurityService##com.sap.aii.af.security.MessageSecurityServiceFrame.MessageSecurityServiceFrame.start()#######SAPEngine_System_Thread[impl:5]_24##0#0#Info#1#com.sap.aii.af.security.MessageSecurityServiceFrame#Java###QUEUE_CONNECTION_FACTORY: , ERROR_QUEUE: , QUEUE: , JARM_PREFIX: , JARM_USER: , JARM_ENABLED: .#6#jmsfactory/default/QueueConnectionFactory#jmsqueues/default/MessageSecurityErrorQueue#jmsqueues/default/MessageSecurityQueue#XI:Security:#XISecurityUser#false#
    #1.5#0003BA54D619004A000000060000316A0003EEAADD1ABF82#1106842551500#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File##com.sap.aii.adapter.file.File2XI.processFileList()#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : [016ffffffabffffffb60001]###9b9677a1707e11d9a9010003ba54d619#SAPEngine_Application_Thread[impl:3]_39##0#0#Error#1#com.sap.aii.adapter.file.File2XI#Plain###Module Exception 'com.sap.aii.af.mp.module.ModuleException: senderChannel 'c5a6ccb89b113e8c92474a4aa0df5858': Catching exception calling messaging system' found, cause: com.sap.aii.af.ra.ms.api.ConfigException: SLDAccess set to true, but not available.#
    #1.5#0003BA54D619004A000000080000316A0003EEAADD1AC8F6#1106842551503#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File##com.sap.aii.adapter.file.File2XI.processFileList()#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : [016ffffffabffffffb60001]###9b9677a1707e11d9a9010003ba54d619#SAPEngine_Application_Thread[impl:3]_39##0#0#Error#1#com.sap.aii.adapter.file.File2XI#Plain###Delivery Exception for guid'96f35561-707e-11d9-a16c-0003ba54d619' - non recoverable error, retry anyway#
    #1.5#0003BA54D619004A0000000A0000316A0003EEAADD1ACE8D#1106842551504#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File##com.sap.aii.adapter.file.File2XI.processFileList()#J2EE_GUEST#0####9b9677a1707e11d9a9010003ba54d619#SAPEngine_Application_Thread[impl:3]_39##0#0#Error#1#com.sap.aii.adapter.file.File2XI#Plain###Channel CDWExtFile: Sending file failed with com.sap.aii.af.ra.ms.api.ConfigException: SLDAccess set to true, but not available. - continue processing#
    #1.5#0003BA54D6190011000000FD0000316A0003EEAADF49F9C7#1106842588150#/Applications/ExchangeInfrastructure/AdapterFramework/ThirdPartyRoot/comsap/Server/Adapter Framework##com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory.SpiManagedConnectionFactory()######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Info#1#com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory#Plain###This SPIManagedConnectionFactory has the GUID: cc6372c0-707e-11d9-ca96-0003ba54d619#
    #1.5#0003BA54D6190011000001030000316A0003EEAADF4ADA00#1106842588207#/Applications/ExchangeInfrastructure/AdapterFramework/ThirdPartyRoot/comsap/Server/Adapter Framework##com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory.start()######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Info#1#com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory#Java###MCF with GUID is started now. (,)#3#cc6372c0707e11d9ca960003ba54d619#com.sap.engine.services.deploy.server.ApplicationLoader@5293b95#cc6372c0707e11d9ca960003ba54d619#
    #1.5#0003BA54D6190011000001090000316A0003EEAADF4AEA33#1106842588211#/Applications/ExchangeInfrastructure/AdapterFramework/ThirdPartyRoot/comsap/Server/Adapter Framework##com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory.start()######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Info#1#com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory#Java###MCF with GUID was started successfully.#1#cc6372c0707e11d9ca960003ba54d619#
    #1.5#0003BA54D6190051000000040000316A0003EEAAE1DFB940#1106842631518#/Applications/ExchangeInfrastructure/Repository#sap.com/com.sap.xi.repository#com.sap.aii.ib.core.applcomp.ApplicationComponent#J2EE_GUEST#0####e63e40d0707e11d9b8020003ba54d619#SAPEngine_Application_Thread[impl:3]_21##0#0#Info#1#com.sap.aii.ib.core.applcomp.ApplicationComponent#Plain###Startup of XI Application "REPOSITORY" ok.#
    #1.5#0003BA54D6190054000000170000316A0003EEAAE4BA42E1#1106842679394#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector#J2EE_ADMIN#339####02bf9dd0707f11d9b9830003ba54d619#SAPEngine_Application_Thread[impl:3]_12##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    #1.5#0003BA54D619004C000000080000316A0003EEAAE692D9D6#1106842710366#/Applications/ExchangeInfrastructure/Directory#sap.com/com.sap.xi.directory#com.sap.aii.ib.core.applcomp.ApplicationComponent#J2EE_GUEST#0##kansbwul01.erc.ge.com_LB1_148575#Guest#d8164a70707e11d9a3490003ba54d619#SAPEngine_Application_Thread[impl:3]_26##0#0#Info#1#com.sap.aii.ib.core.applcomp.ApplicationComponent#Plain###Startup of XI Application "DIRECTORY" ok.#
    #1.5#0003BA54D619004D000000040000316A0003EEAAEB3DF548#1106842788689#/Applications/ExchangeInfrastructure/Directory#sap.com/com.sap.xi.directory#com.sap.aii.ib.server.util.BasicJMSClient#WSHAUN#466#SAP J2EE Engine JTA Transaction : [016ffffffabffffffb6000ffffff90]###43ec08c0707f11d99f8b0003ba54d619#SAPEngine_Application_Thread[impl:3]_32##0#0#Error#1#com.sap.aii.ib.server.util.BasicJMSClient#Plain###TopicConnectionFactory not found#
    #1.5#0003BA54D619004D000000050000316A0003EEAAEB3E07B0#1106842788693#/Applications/ExchangeInfrastructure/Directory#sap.com/com.sap.xi.directory#com.sap.aii.ib.server.util.BasicJMSClient#WSHAUN#466#SAP J2EE Engine JTA Transaction : [016ffffffabffffffb6000ffffff90]###43ec08c0707f11d99f8b0003ba54d619#SAPEngine_Application_Thread[impl:3]_32##0#0#Error#1#com.sap.aii.ib.server.util.BasicJMSClient#Plain###Exception during JMS startup for topic "SYNCHRONIZED_CACHE"
    Thrown:
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/jms/topic/xi/TopicConnectionFactory.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.getLastContainer(ServerContextImpl.java:258)
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:621)
         at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:344)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:254)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:271)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at com.sap.aii.ib.server.util.BasicJMSClient.initJmsResources(BasicJMSClient.java:77)
         at com.sap.aii.ib.server.util.BasicJMSClient.init(BasicJMSClient.java:54)
         at com.sap.aii.ib.server.util.BasicJMSClient.<init>(BasicJMSClient.java:48)
         at com.sap.aii.ib.server.util.ClusterSyncedCache.<init>(ClusterSyncedCache.java:41)
         at com.sap.aii.ib.server.cpa.AdapterMDCache.<clinit>(AdapterMDCache.java:27)
         at com.sap.aii.ib.sbeans.misc.MiscServicesBean.getAdapterMetadata(MiscServicesBean.java:226)
         at com.sap.aii.ib.sbeans.misc.MiscServicesRemoteObjectImpl10.getAdapterMetadata(MiscServicesRemoteObjectImpl10.java:2028)
         at com.sap.aii.ib.sbeans.misc.MiscServicesRemoteObjectImpl10p4_Skel.dispatch(MiscServicesRemoteObjectImpl10p4_Skel.java:284)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    #1.5#0003BA54D6190004000000060000316A0003EEAAED036F71#1106842818407#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector######55770040707f11d9c6ea0003ba54d619#SAPEngine_System_Thread[impl:5]_16##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    #1.5#0003BA54D6190004000000120000316A0003EEAAED1F56F6#1106842820236#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector######55770040707f11d9c6ea0003ba54d619#SAPEngine_System_Thread[impl:5]_16##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    #1.5#0003BA54D61900040000001E0000316A0003EEAAED2014BF#1106842820285#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector######55770040707f11d9c6ea0003ba54d619#SAPEngine_System_Thread[impl:5]_16##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    #1.5#0003BA54D61900040000002A0000316A0003EEAAED20EE43#1106842820341#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector######55770040707f11d9c6ea0003ba54d619#SAPEngine_System_Thread[impl:5]_16##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    #1.5#0003BA54D6190004000000360000316A0003EEAAED21A105#1106842820386#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector######55770040707f11d9c6ea0003ba54d619#SAPEngine_System_Thread[impl:5]_16##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    #1.5#0003BA54D6190004000000420000316A0003EEAAED2268E0#1106842820438#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector######55770040707f11d9c6ea0003ba54d619#SAPEngine_System_Thread[impl:5]_16##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    #1.5#0003BA54D61900040000004E0000316A0003EEAAED233205#1106842820489#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector######55770040707f11d9c6ea0003ba54d619#SAPEngine_System_Thread[impl:5]_16##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    #1.5#0003BA54D61900040000005A0000316A0003EEAAED23EDCB#1106842820537#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector######55770040707f11d9c6ea0003ba54d619#SAPEngine_System_Thread[impl:5]_16##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    #1.5#0003BA54D6190004000000660000316A0003EEAAED249350#1106842820580#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector######55770040707f11d9c6ea0003ba54d619#SAPEngine_System_Thread[impl:5]_16##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    #1.5#0003BA54D6190051000000090000316A0003EEAAF39F13CA#1106842929271#/Applications/ExchangeInfrastructure/IntegrationServer#sap.com/com.sap.xi.services#com.sap.aii.ib.core.applcomp.ApplicationComponent#XIDIRUSER#526####97b7c160707f11d9837b0003ba54d619#SAPEngine_Application_Thread[impl:3]_21##0#0#Info#1#com.sap.aii.ib.core.applcomp.ApplicationComponent#Plain###Startup of XI Application "RUNTIME" ok.#
    #1.5#0003BA54D619003C0000000C0000316A0003EEAAFD1B729D#1106843088417#/Applications/ExchangeInfrastructure/AdapterFramework/ResourceAdapter/MessagingSystem/System/Queue##com.sap.aii.af.ra.ms.runtime.ListenerFinder.run()#J2EE_GUEST#0####b4a1c0b1707e11d98d600003ba54d619#SAPEngine_Application_Thread[impl:3]_19##0#0#Error#1#com.sap.aii.af.ra.ms.runtime.ListenerFinder#Java###Message listener could not be created for connection after attempts.#3#localejbs/TestListener#test#10#
    #1.5#0003BA54D6190058000000050000316A0003EEAB27D41690#1106843805160#/Applications/SL/UTIL##com.sap.sl.util.cvers.impl.DBConnector#J2EE_ADMIN#635####a1c95a40708111d9887c0003ba54d619#SAPEngine_Application_Thread[impl:3]_28##0#0#Error#1#com.sap.sl.util.cvers.impl.DBConnector#Plain###get data source CVERS failed! Trying SAP/BC_UME... #
    The following is the trace file:
    #1.5#0003BA54D6190000000000140000316A0003EEAAD72107D8#1106842451248#com.sap.engine.core.service630.container.ReferenceResolver##com.sap.engine.core.service630.container.ReferenceResolver#######Thread[Thread-1,5,main]##0#0#Error##Plain###Component com.sap.aii.af.security has a hard reference to service com.sap.aii.af.service.cpa with manual startup mode.#
    #1.5#0003BA54D6190036000000000000316A0003EEAAD94B1302#1106842487558#com.sap.engine.library.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Plain###************************************************************#
    #1.5#0003BA54D6190036000000010000316A0003EEAAD94C908B#1106842487656#com.sap.engine.library.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Plain###**************     CCMS CONNECTOR (System)    **************#
    #1.5#0003BA54D6190036000000020000316A0003EEAAD94C936D#1106842487657#com.sap.engine.library.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Plain###************************************************************#
    #1.5#0003BA54D6190036000000030000316A0003EEAAD94C9621#1106842487657#com.sap.engine.library.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Plain###Tracelevel: 0#
    #1.5#0003BA54D6190036000000040000316A0003EEAAD94E292D#1106842487760#com.sap.mona.api.MonitoringAgent##com.sap.mona.api.MonitoringAgent#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Plain###************************************************************#
    #1.5#0003BA54D6190036000000050000316A0003EEAAD94F65F2#1106842487842#com.sap.mona.api.MonitoringAgent##com.sap.mona.api.MonitoringAgent#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Java###*******     Java Monitoring API - Version      ********#1#1.8.8#
    #1.5#0003BA54D6190036000000060000316A0003EEAAD9525DA5#1106842488036#com.sap.mona.api.MonitoringAgent##com.sap.mona.api.MonitoringAgent#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Plain###************************************************************#
    #1.5#0003BA54D6190036000000070000316A0003EEAAD9547512#1106842488173#com.sap.mona.api.MonitoringAgent##com.sap.mona.api.MonitoringAgent#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Java###Host: , OS: , JDK: .#3#kansbwul01.erc.ge.com#SunOS_sparcv9_5.9#1.4.2_06#
    #1.5#0003BA54D6190036000000080000316A0003EEAAD95490A6#1106842488180#com.sap.mona.api.MonitoringAgent##com.sap.mona.api.MonitoringAgent#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Plain###Calculated library path: /global/usr/sap/LB1/DVEBMGS00/j2ee/cluster/server0/bin/ext/com.sap.mona.api#
    #1.5#0003BA54D6190036000000090000316A0003EEAAD954A29A#1106842488185#com.sap.mona.api.MonitoringAgent##com.sap.mona.api.MonitoringAgent#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Plain###System.load [2] /global/usr/sap/LB1/DVEBMGS00/j2ee/os_libs/libjmon.so#
    #1.5#0003BA54D61900360000000A0000316A0003EEAAD95617BA#1106842488280#com.sap.mona.api.MonitoringAgent##com.sap.mona.api.MonitoringAgent#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Java###Version of JNI library: .#1#3.12 Non-Unicode Version#
    #1.5#0003BA54D61900360000000B0000316A0003EEAAD9562000#1106842488283#com.sap.mona.api.MonitoringAgent##com.sap.mona.api.MonitoringAgent#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Java###Java tracelevel set to .#1#Error#
    #1.5#0003BA54D61900360000000C0000316A0003EEAAD9577C95#1106842488372#com.sap.mona.api.MonitoringAgent##com.sap.mona.api.MonitoringAgent#######SAPEngine_System_Thread[impl:5]_56##0#0#Info##Java###Connected () to segment (), , .#5#attach#0#read/write#system mode#40000000 bytes#
    #1.5#0003BA54D6190009000000010000316A0003EEAAD97D6C04#1106842490858#com.sap.aii.af.ra.ms.impl.core.queue.Queue##com.sap.aii.af.ra.ms.impl.core.queue.Queue.run()#######SAPEngine_System_Thread[impl:5]_73##0#0#Error##Java###Failed to retrieve message from MessageStore for queue .#2#aef38c80-707d-11d9-a639-0003ba54d619(OUTBOUND)#AFWSend#
    #1.5#0003BA54D6190014000000020000316A0003EEAAD988D5C9#1106842491606#com.sap.aii.af.ra.ms.impl.core.queue.Queue##com.sap.aii.af.ra.ms.impl.core.queue.Queue.run()#######SAPEngine_System_Thread[impl:5]_28##0#0#Error##Java###Failed to retrieve message from MessageStore for queue .#2#ea9f3be0-707c-11d9-834f-0003ba54d619(OUTBOUND)#AFWSend#
    #1.5#0003BA54D619003F000000000000316A0003EEAAD9CFB274#1106842496250#com.sap.aii.af.service.cpa.impl.cache.CacheManager##com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(boolean)#######SAPEngine_System_Thread[impl:5]_65##0#0#Error##Java###CPA Cache not updated with directory data, due to: #1#Couldn't open Directory URL (http://kansbwul01:50000/dir/hmi_cache_refresh_service/ext?method=CacheRefresh&mode=C&consumer=af.lb1.kansbwul01), due to: HTTP 503: Service Unavailable#
    #1.5#0003BA54D619003F000000010000316A0003EEAAD9D09295#1106842496307#com.sap.aii.af.service.cpa.impl.cache.CacheManager##com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(boolean)#######SAPEngine_System_Thread[impl:5]_65##0#0#Error##Java###Confirmation handling failed, due to: #1#Couldn't send confirmation, due to: Couldn't access Confirmation URL, due to: HTTP 503: Service Unavailable#
    #1.5#0003BA54D6190046000000000000316A0003EEAAD9E5FAD6#1106842497710#com.sap.aii.af.protocol.ispeak.clustercontext.ISPClusterContext##com.sap.aii.af.protocol.ispeak.clustercontext.ISPClusterContext.setCurrentNodeID(int)#######SAPEngine_System_Thread[impl:5]_43##0#0#Info#1#/Version#Plain###Current node set to 1485750#
    #1.5#0003BA54D6190046000000010000316A0003EEAAD9E62B77#1106842497723#com.sap.aii.af.protocol.ispeak.clustercontext.ISPClusterContext##com.sap.aii.af.protocol.ispeak.clustercontext.ISPClusterContext.setEnvironmentState(int)#######SAPEngine_System_Thread[impl:5]_43##0#0#Info#1#/Version#Plain###Environment state set to : ENV_INCOMPLETE#
    #1.5#0003BA54D6190049000000000000316A0003EEAAD9F40CB0#1106842498632#com.sap.aii.af.service.cpa.impl.container.CPAObjectEntry##com.sap.aii.af.service.cpa.impl.container.CPAObjectEntry.getValue(boolean)#######SAPEngine_System_Thread[impl:5]_77##0#0#Error##Java###Decryption failed, due to .#1#<null>#
    #1.5#0003BA54D6190049000000010000316A0003EEAAD9FB0888#1106842499090#com.sap.aii.af.service.cpa.impl.container.CPAObjectEntry##com.sap.aii.af.service.cpa.impl.container.CPAObjectEntry.getValue(boolean)#######SAPEngine_System_Thread[impl:5]_77##0#0#Error##Java###Decryption failed, due to .#1#<null>#
    #1.5#0003BA54D6190049000000020000316A0003EEAAD9FB3838#1106842499102#com.sap.aii.af.service.cpa.impl.container.CPAObjectEntry##com.sap.aii.af.service.cpa.impl.container.CPAObjectEntry.getValue(boolean)#######SAPEngine_System_Thread[impl:5]_77##0#0#Error##Java###Decryption failed, due to .#1#<null>#
    #1.5#0003BA54D6190049000000030000316A0003EEAAD9FB61D0#1106842499113#com.sap.aii.af.service.cpa.impl.container.CPAObjectEntry##com.sap.aii.af.service.cpa.impl.container.CPAObjectEntry.getValue(boolean)#######SAPEngine_System_Thread[impl:5]_77##0#0#Error##Java###Decryption failed, due to .#1#<null>#
    #1.5#0003BA54D6190009000000020000316A0003EEAADA5386CF#1106842504889#com.sap.aii.af.ra.ms.impl.core.queue.SendConsumer##com.sap.aii.af.ra.ms.impl.core.queue.SendConsumer.onMessage(QueueMessage)######9998abd0707e11d9cd270003ba54d619#SAPEngine_System_Thread[impl:5]_73##0#0#Error##Java###Transmitting the message to endpoint using connection failed, due to: .#3#AFW#com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: Error writing to server#http://kansbwul01:50000/sap/xi/engine/entry?action=execute#
    #1.5#0003BA54D6190014000000030000316A0003EEAADA542AB7#1106842504931#com.sap.aii.af.ra.ms.impl.core.queue.SendConsumer##com.sap.aii.af.ra.ms.impl.core.queue.SendConsumer.onMessage(QueueMessage)######99afb640707e11d9a86c0003ba54d619#SAPEngine_System_Thread[impl:5]_28##0#0#Error##Java###Transmitting the message to endpoint using connection failed, due to: .#3#AFW#com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: Error writing to server#http://kansbwul01:50000/sap/xi/engine/entry?action=execute#
    #1.5#0003BA54D619004D000000000000316A0003EEAADAF321D0#1106842515349#com.sap.aii.proxy.xiruntime.web.TransportServlet#sap.com/com.sap.xi.proxyserver#com.sap.aii.proxy.xiruntime.web.TransportServlet.init(...)#J2EE_GUEST#0####a1006c50707e11d99ea30003ba54d619#SAPEngine_Application_Thread[impl:3]_32##0#0#Info##Plain###Initialized#
    #1.5#0003BA54D619004D000000010000316A0003EEAADAF32B88#1106842515352#com.sap.aii.proxy.xiruntime.web.TransportServlet#sap.com/com.sap.xi.proxyserver#com.sap.aii.proxy.xiruntime.web.TransportServlet.init(...)#J2EE_GUEST#0####a1006c50707e11d99ea30003ba54d619#SAPEngine_Application_Thread[impl:3]_32##0#0#Info##Plain###Registered with Adapter Framework Monitor#
    #1.5#0003BA54D6190055000000010000316A0003EEAADCAC81FD#1106842544275#com.sap.pmi.io.HttpPostThread##com.sap.pmi.io.HttpPostThread######b1f90ee0707e11d9c4300003ba54d619#Thread[Thread-42,5,SAPEngine_System_Thread[impl:5]_Group]##0#0#Error#1#/System/Server#Plain###Error sending PMI records to http://kansbwul01:8000/sap/bc/sapi_gate, HTTP response: 404Not found. Please check the HTTP destination "pmistore".#
    #1.5#0003BA54D619004A000000050000316A0003EEAADD1ABD1C#1106842551499#com.sap.aii.adapter.file.File2XI##com.sap.aii.adapter.file.File2XI.processFileList()#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : [016ffffffabffffffb60001]###9b9677a1707e11d9a9010003ba54d619#SAPEngine_Application_Thread[impl:3]_39##0#0#Error#1#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File#Plain###Module Exception 'com.sap.aii.af.mp.module.ModuleException: senderChannel 'c5a6ccb89b113e8c92474a4aa0df5858': Catching exception calling messaging system' found, cause: com.sap.aii.af.ra.ms.api.ConfigException: SLDAccess set to true, but not available.#
    #1.5#0003BA54D619004A000000070000316A0003EEAADD1AC765#1106842551502#com.sap.aii.adapter.file.File2XI##com.sap.aii.adapter.file.File2XI.processFileList()#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : [016ffffffabffffffb60001]###9b9677a1707e11d9a9010003ba54d619#SAPEngine_Application_Thread[impl:3]_39##0#0#Error#1#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File#Plain###Delivery Exception for guid'96f35561-707e-11d9-a16c-0003ba54d619' - non recoverable error, retry anyway#
    #1.5#0003BA54D619004A000000090000316A0003EEAADD1ACD22#1106842551504#com.sap.aii.adapter.file.File2XI##com.sap.aii.adapter.file.File2XI.processFileList()#J2EE_GUEST#0####9b9677a1707e11d9a9010003ba54d619#SAPEngine_Application_Thread[impl:3]_39##0#0#Error#1#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File#Plain###Channel CDWExtFile: Sending file failed with com.sap.aii.af.ra.ms.api.ConfigException: SLDAccess set to true, but not available. - continue processing#
    #1.5#0003BA54D619004A0000000C0000316A0003EEAADD1B3AEE#1106842551532#com.sap.engine.services.ts##com.sap.engine.services.ts#J2EE_GUEST#0####9b9677a1707e11d9a9010003ba54d619#SAPEngine_Application_Thread[impl:3]_39##0#0#Error#1#/System/Server#Java#ts_0021##Thread is not associated with any transaction context.##
    #1.5#0003BA54D619004A0000000D0000316A0003EEAADD1B41AE#1106842551533#com.sap.engine.services.ts##com.sap.engine.services.ts#J2EE_GUEST#0####9b9677a1707e11d9a9010003ba54d619#SAPEngine_Application_Thread[impl:3]_39##0#0#Error#1#/System/Audit#Java###Exception #1#com.sap.engine.services.ts.exceptions.BaseIllegalStateException: Thread is not associated with any transaction context.
         at com.sap.engine.services.ts.jta.impl.TransactionManagerImpl.rollback(TransactionManagerImpl.java:441)
         at com.sap.aii.adapter.file.File2XI.processFileList(File2XI.java:1756)
         at com.sap.aii.adapter.file.File2XI.run(File2XI.java:1007)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    #1.5#0003BA54D6190011000000790000316A0003EEAADDAE5C4B#1106842561174#com.sap.engine.services.jmsconnector##com.sap.engine.services.jmsconnector######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Error#1#/System/Server#Plain###JMS Connector Container Application: sap.com/com.sap.xi.ibresources factory name: jms/topic/xi/TopicConnectionFactory loader does not exist:  . Using default class loader!!!#
    #1.5#0003BA54D61900110000007A0000316A0003EEAADDAFCE2B#1106842561269#com.sap.engine.services.jmsconnector##com.sap.engine.services.jmsconnector######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Error##Plain###Factory: jms/topic/xi/TopicConnectionFactory loader does not exist:  . Using default class loader!!!#
    #1.5#0003BA54D61900110000007C0000316A0003EEAADDAFE340#1106842561274#com.sap.engine.services.jmsconnector##com.sap.engine.services.jmsconnector######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Error#1#/System/Server#Plain###JMS Connector Container Application: sap.com/com.sap.xi.ibresources factory name: jms/queue/xi/QueueConnectionFactory loader does not exist:  . Using default class loader!!!#
    #1.5#0003BA54D61900110000007D0000316A0003EEAADDB040CB#1106842561298#com.sap.engine.services.jmsconnector##com.sap.engine.services.jmsconnector######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Error##Plain###Factory: jms/queue/xi/QueueConnectionFactory loader does not exist:  . Using default class loader!!!#
    #1.5#0003BA54D6190011000000B20000316A0003EEAADE6877ED#1106842573371#com.sap.engine.services.jmsconnector##com.sap.engine.services.jmsconnector######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Error#1#/System/Server#Plain###JMS Connector Container Application: sap.com/com.sap.aii.af.ispeak.app factory name: ISPXAConnectionFactory loader does not exist:  . Using default class loader!!!#
    #1.5#0003BA54D6190011000000B30000316A0003EEAADE68A1E8#1106842573382#com.sap.engine.services.jmsconnector##com.sap.engine.services.jmsconnector######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Error##Plain###Factory: ISPXAConnectionFactory loader does not exist:  . Using default class loader!!!#
    #1.5#0003BA54D6190011000000C10000316A0003EEAADE837B81#1106842575141#com.sap.aii.af.protocol.ispeak.clustercontext.ISPClusterContext##com.sap.aii.af.protocol.ispeak.clustercontext.ISPClusterContext.setEnvironmentState(int)######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Info#1#/Version#Plain###Environment state set to : ENV_COMPLETE#
    #1.5#0003BA54D6190011000000C20000316A0003EEAADE83D50E#1106842575164#com.sap.aii.af.protocol.ispeak.services.timer.impl.ISPEventSession##com.sap.aii.af.protocol.ispeak.services.timer.impl.ISPEventSession.initialize()######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Info#1#/Version#Plain###Looked up factory : com.sap.engine.services.jmsconnector.cci.QueueConnectionFactoryImpl@6cbd9138#
    #1.5#0003BA54D6190011000000C30000316A0003EEAADE83D78C#1106842575165#com.sap.aii.af.protocol.ispeak.j2ee.services.ISPStartupService##com.sap.aii.af.protocol.ispeak.j2ee.services.ISPStartupService.onAllAppStart()######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Info#1#/Version#Plain###Calling onServerStart on ISPClusterContext...#
    #1.5#0003BA54D6190011000000E60000316A0003EEAADF147D24#1106842584644#com.sap.engine.services.jmsconnector##com.sap.engine.services.jmsconnector######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Error#1#/System/Server#Plain###JMS Connector Container Application: sap.com/com.sap.ip.me.insttool factory name: InstToolTopicFactoryCreateEmptyImage loader does not exist:  . Using default class loader!!!#
    #1.5#0003BA54D6190011000000E70000316A0003EEAADF14A82D#1106842584655#com.sap.engine.services.jmsconnector##com.sap.engine.services.jmsconnector######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Error##Plain###Factory: InstToolTopicFactoryCreateEmptyImage loader does not exist:  . Using default class loader!!!#
    #1.5#0003BA54D6190011000000E90000316A0003EEAADF14B7A3#1106842584659#com.sap.engine.services.jmsconnector##com.sap.engine.services.jmsconnector######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Error#1#/System/Server#Plain###JMS Connector Container Application: sap.com/com.sap.ip.me.insttool factory name: InstToolTopicFactoryFinishImage loader does not exist:  . Using default class loader!!!#
    #1.5#0003BA54D6190011000000EA0000316A0003EEAADF14DC56#1106842584669#com.sap.engine.services.jmsconnector##com.sap.engine.services.jmsconnector######98db9d60707e11d9b1c00003ba54d619#SAPEngine_System_Thread[impl:5]_11##0#0#Error##Plain###Factory: InstToolTopicFactoryFinishImage loader does not exist:  . Using default class loader!!!#

    The problem was the Pipeline URL for the integration server.
    http://<server>:50000/sap/xi/engine/entry?action=execute
    is the defective URL. 
    Once we logged into SLD and selected the business system for the integration server we change the pipeline URL to the following
    http://<server>:8000/sap/xi/engine?type=entry
    we then restarted the J2EE server and it worked fine.

  • B2B ebMS certificate expiry fix failing in MLR 8

    Hi Gurus,
    As mentioned in the metalink note 803466.1, that the ebms certificate expiry fix is given in MLR 8.
    I have applied MLR 8 and trying to send a signed message. I have followed the instructions given in the note.
    Steps followed were
    1) Make a backup of the Database and Application server.
    2) Apply the latest Patch. At the minimum, MLR8 (8233048).
    3) Add the following entry in the file <OracleHome>/opmn/conf/opmn.xml
    Under "<ias-component id="B2B" status="enabled">"
    <variable id="CLASSPATH"
    value="$ORACLE_HOME/ip/lib/osdt/osdt_xmlsec.jar" append="true"/>
    4) Add the following entry in the <OracleHome>/ip/config/tip.properties
    oracle.tip.adapter.b2b.ebms.OSDT=true
    5) Restart B2B and execute the scenario
    The messages fail with the below error in b2b.log.
    2009.05.09 at 10:23:23:303: Thread-10: B2B - (ERROR) Error -: AIP-51924: The message failed the security check
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.verifyAttachmentSignature(EBMSOSDTSecurity.java:1408)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.decryptAndVerify(EBMSOSDTSecurity.java:1071)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin.decodeIncomingMessage(EBMSExchangePlugin.java:704)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1474)
         at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
         at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
         at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
         at java.lang.Thread.run(Thread.java:534)
    2009.05.09 at 10:23:23:303: Thread-10: B2B - (ERROR) Error -: AIP-51924: The message failed the security check
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.verifyAttachmentSignature(EBMSOSDTSecurity.java:1408)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.decryptAndVerify(EBMSOSDTSecurity.java:1071)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin.decodeIncomingMessage(EBMSExchangePlugin.java:704)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1474)
         at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
         at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
         at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
         at java.lang.Thread.run(Thread.java:534)
    2009.05.09 at 10:23:23:303: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity:decryptAndVerify Exception Error -: AIP-51924: The message failed the security check
    2009.05.09 at 10:23:23:303: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity:decryptAndVerify Exception stack trace Error -: AIP-51924: The message failed the security check
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.verifyAttachmentSignature(EBMSOSDTSecurity.java:1408)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.decryptAndVerify(EBMSOSDTSecurity.java:1071)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin.decodeIncomingMessage(EBMSExchangePlugin.java:704)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1474)
         at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
         at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
         at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
         at java.lang.Thread.run(Thread.java:534)
    2009.05.09 at 10:23:23:303: Thread-10: B2B - (ERROR) Error -: AIP-51931: There was an error while decrypting or verifying the message
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.decryptAndVerify(EBMSOSDTSecurity.java:1105)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin.decodeIncomingMessage(EBMSExchangePlugin.java:704)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1474)
         at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
         at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
         at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
         at java.lang.Thread.run(Thread.java:534)
    When the property oracle.tip.adapter.b2b.ebms.OSDT=true is disabled in tip.property the signed messages do not error out.
    Is there anything else that needs to be done.
    Kindly help.
    Thanks in advance
    Regards,
    Cema.

    Hi Gurus,
    As mentioned in the metalink note 803466.1, that the ebms certificate expiry fix is given in MLR 8.
    I have applied MLR 8 and trying to send a signed message. I have followed the instructions given in the note.
    Steps followed were
    1) Make a backup of the Database and Application server.
    2) Apply the latest Patch. At the minimum, MLR8 (8233048).
    3) Add the following entry in the file <OracleHome>/opmn/conf/opmn.xml
    Under "<ias-component id="B2B" status="enabled">"
    <variable id="CLASSPATH"
    value="$ORACLE_HOME/ip/lib/osdt/osdt_xmlsec.jar" append="true"/>
    4) Add the following entry in the <OracleHome>/ip/config/tip.properties
    oracle.tip.adapter.b2b.ebms.OSDT=true
    5) Restart B2B and execute the scenario
    The messages fail with the below error in b2b.log.
    2009.05.09 at 10:23:23:303: Thread-10: B2B - (ERROR) Error -: AIP-51924: The message failed the security check
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.verifyAttachmentSignature(EBMSOSDTSecurity.java:1408)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.decryptAndVerify(EBMSOSDTSecurity.java:1071)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin.decodeIncomingMessage(EBMSExchangePlugin.java:704)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1474)
         at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
         at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
         at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
         at java.lang.Thread.run(Thread.java:534)
    2009.05.09 at 10:23:23:303: Thread-10: B2B - (ERROR) Error -: AIP-51924: The message failed the security check
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.verifyAttachmentSignature(EBMSOSDTSecurity.java:1408)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.decryptAndVerify(EBMSOSDTSecurity.java:1071)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin.decodeIncomingMessage(EBMSExchangePlugin.java:704)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1474)
         at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
         at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
         at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
         at java.lang.Thread.run(Thread.java:534)
    2009.05.09 at 10:23:23:303: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity:decryptAndVerify Exception Error -: AIP-51924: The message failed the security check
    2009.05.09 at 10:23:23:303: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity:decryptAndVerify Exception stack trace Error -: AIP-51924: The message failed the security check
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.verifyAttachmentSignature(EBMSOSDTSecurity.java:1408)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.decryptAndVerify(EBMSOSDTSecurity.java:1071)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin.decodeIncomingMessage(EBMSExchangePlugin.java:704)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1474)
         at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
         at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
         at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
         at java.lang.Thread.run(Thread.java:534)
    2009.05.09 at 10:23:23:303: Thread-10: B2B - (ERROR) Error -: AIP-51931: There was an error while decrypting or verifying the message
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSOSDTSecurity.decryptAndVerify(EBMSOSDTSecurity.java:1105)
         at oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin.decodeIncomingMessage(EBMSExchangePlugin.java:704)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1474)
         at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
         at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
         at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
         at java.lang.Thread.run(Thread.java:534)
    When the property oracle.tip.adapter.b2b.ebms.OSDT=true is disabled in tip.property the signed messages do not error out.
    Is there anything else that needs to be done.
    Kindly help.
    Thanks in advance
    Regards,
    Cema.

  • Toplink app works without oc4j,fails with security excp. in oc4j[SOLVED]

    OS: Windows XP
    jdk version: 1.5.0.04 (installed normally with windows installer, no tampering)
    JDeveloper version: 10.1.3.2.0 (base installation)
    I'm new to JDeveloper and I'm working on SRDemo application from online ADF tutorial under JDeveloper. After 6th chapter I tried to run the app with embedded oc4j. After a login to app i got a toplink exception caused by a security exception. I've tried toplink part of the application with a standalone client it works without this strange problem. Also other toplink tutorials that i have work without oc4j.
    The exception is this:
    Note: some messages were in Turkish, so I (partly) translated them, they may not match original english messages
    [TopLink Info]: 2007.07.06 10:52:31.312--ServerSession(29560314)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--TopLink, sürüm: Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)
    [TopLink Config]: 2007.07.06 10:52:31.328--ServerSession(29560314)--Connection(27524709)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--connected(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> "SRDEMO"
         data source url=> "jdbc:oracle:thin:@localhost:1521:XE"
    [TopLink Severe]: 2007.07.06 10:52:31.343--ServerSession(29560314)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Local Exception Stack:
    Exception[TOPLINK-7107] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ValidationException
    Exception message: Error in decrypting .....
    Caused by: java.security.NoSuchAlgorithmException: Algorithm DES not available      at oracle.toplink.exceptions.ValidationException.errorDecryptingPassword(ValidationException.java:587)
         at oracle.toplink.internal.security.JCEEncryptor.decryptPassword(JCEEncryptor.java:94)
         at oracle.toplink.sessions.DatasourceLogin.prepareProperties(DatasourceLogin.java:296)
         at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:147)
         at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:197)
    ...(the stack goes on followed by below causes)
    Caused by: java.security.NoSuchAlgorithmException: Algorithm DES not available
         at javax.crypto.SunJCE_b.a(DashoA12275)
         at javax.crypto.SecretKeyFactory.getInstance(DashoA12275)
         at oracle.toplink.internal.security.JCEEncryptor$Synergizer.getMultitasker(JCEEncryptor.java:104)
         at oracle.toplink.internal.security.JCEEncryptor.decryptPassword(JCEEncryptor.java:74)
         ... 117 more
    Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: DES, provider: SunJCE, class: com.sun.crypto.provider.DESKeyFactory)
         at java.security.Provider$Service.newInstance(Provider.java:1155)
         at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)
         ... 121 more
    Caused by: java.lang.SecurityException: class "com.sun.crypto.provider.DESKeyFactory"'s signer information does not match signer information of other classes in the same package
         at java.lang.ClassLoader.checkCerts(ClassLoader.java:775)
         at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
         at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2241)
         at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1462)
         at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
         at java.security.Provider$Service.getImplClass(Provider.java:1172)
         at java.security.Provider$Service.newInstance(Provider.java:1129)
         ... 122 more
    This happens when i run toplink project inside oc4j, with a normal java client outside oc4j it works.
    The strange thing is the root cause of the problem (the exception complaining about signer) . If the root cause of this problem was really correct system wide, neither security code samples nor the standalone client that i tried would have worked.
    Only similiar issue I've found on the net is a problem that occured under eclipse due to a bug in previous versions of jce, but it seems this is no longer an issue.
    No one other than me seems to have this problem, so this implies a problem with my system, but the root exception about signer information (which is not correct) says there is something wrong with toplink/oc4j runtime or there is some subtle bug.
    I am trying to download another jdk1.5 version to see if this is a subtle bug of java-1.5.0.04 and oc4j, but either sun servers or my isp has a problem because the download is in the order of bytes and fails all the time.
    I think there can be a problem with the java2.policy file under oc4j config dir, but i don't know if it is really used and necessary or not.
    I don't know much about oc4j config so i need some help to proceed. thanks in advance
    Message was edited by:
    identityunknown

    Sorry, I tried something that I should have tried before posting, that gives another information about my problem.
    when i use standalone oc4j using start_oc4j.bat under jdev/bin, I also get the same security exception stack (nothing deployed to server) during server initialization. the default java command in start_oc4j.bat is this:
    OC4J_OPTS=
    VM_OPTS=-XX:MaxPermSize=256m
    JAVA_COMMAND="%JAVA_HOME%\bin\java.exe" %VM_OPTS% -jar oc4j.jar %OC4J_OPTS%
    if I change the command to this:
    OC4J_OPTS=
    VM_OPTS=-XX:MaxPermSize=256m -Xbootclasspath/p:"%JAVA_HOME%\jre\lib\ext\sunjce_provider.jar"
    JAVA_COMMAND="%JAVA_HOME%\bin\java.exe" %VM_OPTS% -jar oc4j.jar %OC4J_OPTS%
    and put sunjce_provider.jar on boot classpath I don't get that exception and oc4j initializes normally. My new questions are:
    1. what is the reason for this behavior
    2. how can I specify boot classpath option for embedded oc4j and/or JDeveloper

  • SQL Cluster Service Accounts

    Is it advisable to have different service accounts for the all the nodes in a cluster to avoid any potential account authentication issues or do all the nodes in cluster need to use the same account.

    Hello,
    If you install different instances of SQL Server on each node of SQL Server Cluster then there won't be an issue when specify SQL Server service with different services accounts. If you're using a different account for a single instance
    on two different nodes, then it may cause problem. You can refer to the explanation of Sean in
    this thread:
    SQL Server would probably not start or at least give errors around decrypting the service master key which is encrypted at the windows level by both the service account and the computer object, since these would both be different it would
    not be able to decrypt the SMK.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click
    here.
    Fanny Liu
    TechNet Community Support

Maybe you are looking for

  • Partitioned nested table error while dropping one partition

    All, I created a partitioned table which is also a nested table as you can see below. I got FK constraint error while attempting to drop a partition, however, I could not find the FK in order to disable it since it's underlying table emp_list_p which

  • Daisy Chain cFP-1808 Network interface module

    Hello, I am trying to find some documententaion that explains how to Daisy Chain 2 NI cFP-1808, which is Network interface modules for the Compact Fieldpoint platform. http://sine.ni.com/nips/cds/view/p/lang/en/nid/202210 I am also trying to find out

  • Html:link to c:url

    <html:link action="/DispatchAddAction.do?method=Delete"> <fmt:message var="btnDelete" key="btn.delete" bundle="${appbundle}"/> <c:out value="${btnDelete}"/> </html:link> this is working fine. Trying now to use JSTL c:url <c:url value="/DispatchAddAct

  • Server state is set to 'FAILED_NOT_RESTARTABLE' during shutdown?

    The managed server (in a clustered environment) starts fine but while shutting down for some reason the server state is set to FAILED_NOT_RESTARTABLE. I also noticed that the Node Manager is unable to get the process id (null). Any help will be much

  • How to maintain, the validity internal when we use non commulative key figu

    Hi Friends, I would like to check, I've created query on Inventary infocube, when we trying to execute the report, I'm getting the following error. The validity internal has the initial value as lower limit Generally, How we will maintain validity in