Bad Padding exception when trying to decrypt the file

Hi i am trying to decypt a file in java which is encrypted in c++ but i get the pad padding exception
javax.crypto.BadPaddingException: Given final block not properly padded
     at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
     at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
public byte[] decrypt(byte[] str) {
try {
// Decrypt
     System.out.println("beforedecrypt-->"+str.length);
     byte[] input = new byte[64];
          while(true) {
                    int bytesRead = fin.read(input);
                    if (bytesRead == -1) break;
                    byte[] output = dcipher.update(input, 0, bytesRead);
               byte[] output = dcipher.doFinal();
     // byte[] utf8 = dcipher.doFinal(str);
     System.out.println("afterdecrypt-->");
// Decode using utf-8
return output;
} catch (javax.crypto.BadPaddingException e) {e.printStackTrace();}
catch (IllegalBlockSizeException e) {e.printStackTrace();}
catch (Exception e){e.printStackTrace();}
return null;
}

MuppidiJava wrote:
Sorry man..i got the same key in java..which you got i followed everything was mentioned... but i did not get the same key using C++ But did you compensate in your Java for the C++ bug I highlighted involving the creation of the bytes from the password? I bet you didn't. Did you even talk to your C++ guys about the bug? I bet you didn't.
as i said i was not good at it..but your sample cpp code would have fixed it easily. Did you look at the Microsoft Crypto documentation? I bet you didn't. Did you try to learn enough C++ to add in the few lines of code needed to export and print out the generated key? I bet you didn't. Did you try to get the C++ guys to help you on this?
I runing short of timeSorry but your time management problem is your problem.
..thanks for your support..The BadPaddingException problem you have is almost certainly as a result of you not generating the same key bytes in your Java as are being generated by the C++. Since you get the same bytes as I do when not compensating for the C++ bug it is almost certain that the C++ bug is the root cause of your problem. If I compensate for the C++ bug I get a match between my C++ key bytes and my Java key bytes. If you don't spend effort in understanding the C++ bug and how to correct for it in your Java you are stuffed. If you don't spend time learning enough C++ to be able to export the C++ key then you will have great difficulty in proving that you C++ key bytes actually match your Java key bytes. I have explained what the bug is - the Java code to compensate for the bug is actually trivial. I have explained how to export the C++ key - the C++ code for this is small and straightforward. I'm not going to provide the C++ code nor the Java compensation code. This is a 'forum' and not a programming service.
P.S. You still have a problem with the '.' key on your keyboard.

Similar Messages

  • Getting IO exception when trying to view the joblog.log file

    Hi,
    We are unable to view the joblog.log file. The joblog file is created in server path, but when we trying to view/read/download the joblog.log file we are getting JCS-108004: An IO exception occurred accessing a local file error.
    server path: xxx/log/processerver_.log.
    But we are able to view the reports through redwood for these extensions (*. html, *.csv. *. xml.).
    server path: xxx/lis/sys_.html
    Can anybody help on this issue.
    Thanks,
    Suresh.

    Dear Suresh,
    Your Question is not clear to me. what i understood is you can abel to check log in redwood , and unable to open in server at os level? if it is correct, login to server with cps installation user, ten i hope you can able to open files, check the file permissions in init file in $JCS_HOME/admin directory, check the permissions given, and also check listener port value, is it correct?
    thanks and regards
    Muhammad Asif

  • Instance Manager Unhandled Exception when trying to view the status!

    Hi,
    I got an error while trying to view the failed instances in the Instance manager. Can any one please help how to fix this tomcat error.
    Unhandled Exception  Back  | Exit 
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at com.crystaldecisions.sdk.occa.infostore.internal.al.get(Unknown Source) at org.apache.jsp.instancesByStatus.main_jsp._jspService(main_jsp.java:439) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) 
    Thanks,
    Kalyan.

    Hi Kalyan,
    Which is the Business Objects version at your end?Are you running XI R1 or XI R2?
    Do you have any Service Packs, Critical, Monthly, or Weekly hotfixes installed?
    If you have no service packs installed, please install the latest service pack from our SAP Support Portal.
    I hope this the issue gets resolved by this.
    Regards,
    Arun Sasi

  • Bad Padding Exception using AES/ECB/PKCS5Padding

    Hi, I need some help Tryng to crypt and decrypt a String using AES/ECB/PKCS5Padding
    I paste my code below
    Crypt
    Cipher cipher;
             byte[] pass=new byte[]{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; // just for example
            SecretKeySpec key = new SecretKeySpec(pass, "AES");
            cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
            cipher.init(Cipher.ENCRYPT_MODE, key);        
            byte[] utf8 = da_cifrare.getBytes("utf-8");
            byte[] enc = cipher.doFinal(utf8);
            String cifrata =new String (Base64.encodeBase64(enc));
            return cifrata;
    And on the other side Decrypt
    Cipher decipher;
               byte[] pass=new byte[]{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; // just for example
               SecretKeySpec key = new SecretKeySpec(pass, "AES");
               decipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
               decipher.init(Cipher.DECRYPT_MODE, key); 
               byte[] buf =Base64.decodeBase64(da_decifrare.getBytes("utf-8"));
               byte[] recoveredBytes = decipher.doFinal(buf);
               String in_chiaro = new String (recoveredBytes,"utf-8");
               return (in_chiaro);I'm getting Bad padding exception when I try to Decrypt, any ideas ??

    Nothing obviously wrong but we have no view of your Base64 encoder and decoder. You should check
    a) that the bytes of your key are the same in both methods
    b) that the bytes resulting in your decrypt methodbyte[] buf =Base64.decodeBase64(da_decifrare.getBytes("utf-8"));are exactly the same as those created in the encrypt method using  byte[] enc = cipher.doFinal(utf8);
          Note - since Base64 consists of only ASCII characters you should use String cifrata =new String (Base64.encodeBase64(enc),"ASCII");and byte[] buf =Base64.decodeBase64(da_decifrare.getBytes("ASCII"));though this flaw should not be the cause of your exception.
    Edited by: sabre150 on Dec 15, 2009 12:32 PM

  • Exception when trying to run OneEJBHotelSample

    I get the following exception when trying to run the one ejb hotel sample,
    any clues as to what is wrong??
    java.lang.IncompatibleClassChangeError: Unimplemented interface method
    at javax.naming.spi.NamingManager.getURLObject(Compiled Code)
    at javax.naming.spi.NamingManager.getURLContext(Compiled Code)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Compiled Code)
    at javax.naming.InitialContext.lookup(Compiled Code)
    at client.JavaGUIClient.EJBHotelSample.getHotelSystemBean(Compiled Code)
    at client.JavaGUIClient.EJBHotelSample.main(Compiled Code)
    null

    Hello,
    Like you said it was the problem with url.
    The webservice I used is actually running on the local machine (where the NetWeaver developer studio is installed); so in the url I had specified localhost. But I deployed the application on another server(SAP J2EE Engine). That is why it didn't work. On changing the url as required, the application is working fine.
    Thanks !
    Regards,
    Loveline.

  • Exception CX_RS_ERROR occurred when trying to run the DTP from Cube

    Hi everyone,
    I've run the DTP &  loaded the cube using normal transformation routines , it works fine in the Dev Sys but not in quality & production. I've access only to the Dev sys. In Qual & Prod when trying to run the DTP from Cube to open HUB
    we're getting the following error
    Exception CX_RS_ERROR occurred (program: CL_RSTRAN_TRFN================CP, include: CL_RSTRAN_TRFN================CM024*
    My system support package level is SAPKW70106.
    I've found note 920338 but is for SAPKW70107.

    Hi,
    The issue seems to be with the one of the routines in the transformation and similar kind of the issues were solved by retransporting the DTP & the related transformation.
    Kindly reactivate the DTP and transformation in the source and execute a new request to transport the DTP, transformation and related routines to Quality & Production again.
    Hope this helps.
    Rgds,
    Colum

  • Getting an interrupted exception when trying to bring down the service

    Hi,
    From the client side , I started an invocation service which is giving an interrupted exception when trying to shut it down.
    2013-08-01 12:21:15.576 PDT ERROR -  -  -  - Oracle Coherence 3.7.1.6 (thread=Invocation:customerLoaderWM:EventDispatcher, member=5): This thread was interrupted while waiting for the results of a request:
    Poll
      PollId=20, active
      InitTimeMillis=1375384875574
      Service=Cluster (0)
      RespondedMemberSet=[]
      LeftMemberSet=[]
      RemainingMemberSet=[1]
    2013-08-01 12:21:15.576 PDT ERROR -  -  -  - Oracle Coherence 3.7.1.6 (thread=Invocation:customerLoaderWM:EventDispatcher, member=5): Error while starting service "customerLoaderWM": (Wrapped: Interrupted while waiting for response from:[Member(Id=1, Timestamp=2013-08-01 12:20:11.375, Address=10.241.100.189:18088, MachineId=42483, Location=site:,machine:slc05esi,process:4777,member:ecs1, Role=OracleChargingLauncher)]) java.lang.InterruptedException
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.processPollInterrupt(Grid.CDB:40)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:54)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ClusterService.ensureService(ClusterService.CDB:15)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.register(Grid.CDB:5)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:3)
        at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:39)
        at com.tangosol.coherence.component.util.SafeService.restartService(SafeService.CDB:28)
        at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:23)
        at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
        at com.tangosol.coherence.commonj.WorkManager.getServers(WorkManager.java:599)
        at com.tangosol.coherence.commonj.WorkManager.disableServer(WorkManager.java:656)
        at com.tangosol.coherence.commonj.WorkManager$ServiceListener.memberLeft(WorkManager.java:1213)
        at com.tangosol.net.MemberEvent.dispatch(MemberEvent.java:116)
        at com.tangosol.net.MemberEvent.dispatch(MemberEvent.java:87)
        at com.tangosol.coherence.component.util.SafeService.translateEvent(SafeService.CDB:28)
        at com.tangosol.coherence.component.util.SafeService.memberLeft(SafeService.CDB:1)
        at com.tangosol.net.MemberEvent.dispatch(MemberEvent.java:116)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$DispatchEvent.run(Grid.CDB:7)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.Service$EventDispatcher.onNotify(Service.CDB:26)
        at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
        at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.InterruptedException
        at java.lang.Object.wait(Native Method)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:39)
    It says one thread is interrupted by another. Has anyone faced this issue?.
    Any info on this is appreciated.
    Thanks.

    Error in the TDS datastream: unknown block: 68Sounds like Microsoft have updated the TDS protocol for MSSQL2000. If you're using the Free TDS (www.freetds.org) driver I know you can configure the it for different versions of TDS (check out the FAQ or the doco on their web site) but whether it works with SQL 2000 or not I don't know.
    Col

  • My iPad works perfectly except when trying to update apps.  Then I get a message that says "Cannot connect to the iTunes store."

    My iPad works perfectly except when trying to update apps.  Then I get a message that says "Cannot connect to the iTunes store."

    Try logging out of your account on the iPad by tapping on your id in Settings > Store and then log back in and see if it then works.
    If that doesn't solve it then what has worked for some people is going into Settings > General > Date & Time and change the date to a few months in the future and then re-trying

  • Why bad padding exception???

    hi guys
    here i am trying to decrypt the already encrypted string by one different encrpytion algo.
    in the example i have encrypted the string by des and then i tried to decrypt it using blowfish but it gives as the output null instead of a random string...because of a bad padding exception(check line 86). help to remove the exception.
    if we try to decrypt the des encrypted string by des again it give n padding exception. why with blowfish???
    // CIPHER / GENERATORS
    import javax.crypto.Cipher;
    import javax.crypto.SecretKey;
    import javax.crypto.KeyGenerator;
    // KEY SPECIFICATIONS
    import java.security.spec.KeySpec;
    import java.security.spec.AlgorithmParameterSpec;
    import javax.crypto.spec.PBEKeySpec;
    import javax.crypto.SecretKeyFactory;
    import javax.crypto.spec.PBEParameterSpec;
    // EXCEPTIONS
    import java.security.InvalidAlgorithmParameterException;
    import java.security.NoSuchAlgorithmException;
    import java.security.InvalidKeyException;
    import java.security.spec.InvalidKeySpecException;
    import javax.crypto.NoSuchPaddingException;
    import javax.crypto.BadPaddingException;
    import javax.crypto.IllegalBlockSizeException;
    import java.io.UnsupportedEncodingException;
    import java.io.IOException;
    public class StringEncrypter {
    Cipher ecipher;
    Cipher dcipher;
    StringEncrypter(SecretKey key, String algorithm) {
    try {
    ecipher = Cipher.getInstance(algorithm);
    dcipher = Cipher.getInstance(algorithm);
    ecipher.init(Cipher.ENCRYPT_MODE, key);
    dcipher.init(Cipher.DECRYPT_MODE, key);
    } catch (NoSuchPaddingException e) {
    System.out.println("EXCEPTION: NoSuchPaddingException");
    } catch (NoSuchAlgorithmException e) {
    System.out.println("EXCEPTION: NoSuchAlgorithmException");
    } catch (InvalidKeyException e) {
    System.out.println("EXCEPTION: InvalidKeyException");
    public String encrypt(String str) {
    try {
    // Encode the string into bytes using utf-8
    byte[] utf8 = str.getBytes("UTF8");
    // Encrypt
    byte[] enc = ecipher.doFinal(utf8);
    // Encode bytes to base64 to get a string
    return new sun.misc.BASE64Encoder().encode(enc);
    } catch (BadPaddingException e) {
    } catch (IllegalBlockSizeException e) {
    } catch (UnsupportedEncodingException e) {
    } catch (IOException e) {
    return null;
    public String decrypt(String str) {
    try {
    // Decode base64 to get bytes
    byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);
    // Decrypt
    byte[] utf8 = dcipher.doFinal(dec);
    // Decode using utf-8
    return new String(utf8, "UTF8");
    } catch (BadPaddingException e) {
    System.out.println("BAd padding excception");
    } catch (IllegalBlockSizeException e) {
    System.out.println("IllegalBlockSizeException");
    } catch (UnsupportedEncodingException e) {
    System.out.println("UnsupportedEncodingException");
    } catch (IOException e) {
    System.out.println("IOException");
    return null;
    public static void testUsingSecretKey() {
    try {
              String secretString = "code cant be decrypted!";
              SecretKey desKey = KeyGenerator.getInstance("DES").generateKey();
              SecretKey blowfishKey = KeyGenerator.getInstance("Blowfish").generateKey();
         StringEncrypter desEncrypter = new StringEncrypter(desKey, desKey.getAlgorithm());
              StringEncrypter blowfishEncrypter = new StringEncrypter(blowfishKey, blowfishKey.getAlgorithm());
              String desEncrypted = desEncrypter.encrypt(secretString);     
         String desDecrypted = desEncrypter.decrypt(desEncrypted);
         String blowfishDecrypted = blowfishEncrypter.decrypt(desEncrypted);      
         System.out.println(desKey.getAlgorithm() + " Encryption algorithm");
         System.out.println(" Original String : " + secretString);
         System.out.println(" Encrypted String : " + desEncrypted);
         System.out.println(" Decrypted String : " + desDecrypted);
         System.out.println();
         System.out.println(blowfishKey.getAlgorithm() + " Encryption algorithm");
         System.out.println(" Original String : " + desEncrypted);
         System.out.println(" Decrypted String : " + blowfishDecrypted);
         System.out.println();
         } catch (NoSuchAlgorithmException e) {
         public static void main(String[] args) {
         testUsingSecretKey();
    }

    peter_crypt wrote:
    you are right but this is my question. why cant we do that?? it should be possible.by the way i am working on a project for cryptanalysis . there i need to implement it.You need to spend more time studying and less time programming -
    1) Applied Cryptography, Schneier, Wiley, ISBN 0-471-11709-9
    2) Practical Cryptography, Ferguson and Schneier, Wiley, ISBN 0-471-22357-3
    3) Java Cryptography, Knudsen, O'Reilly, ISBN 1-56592-402-9 dated but still a good starting point
    4) Beginning Cryptography with Java, written by David Hook and published by WROX .

  • Unusual Bad Padding Exception

    I am writing a class to encrypt licencing information onto a text file in Base64 encoding. This write aspect works fine but the reading the licence back throw a Bad Padding Exception. (error and code below) Any assistance will be much appreciated
    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.AESCipher.engineDoFinal
    (DashoA6275)
    at javax.crypto.Cipher.doFinal(DashoA6275)
    at Encryptor.encrypt(Encryptor.java:117)
    at Encryptor.loadAllEncryptedLayerLicences
    (Encryptor.java:158)
    at Encryptor.main(Encryptor.java:183)
    KeyGenerator kgen = KeyGenerator.getInstance("AES");
    kgen.init(128);
    SecretKey skey = kgen.generateKey();
    byte[] raw = skey.getEncoded();
    SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
    Cipher cipher = Cipher.getInstance("AES");
    //encrypt
    cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
    byte[] encrypted = cipher.doFinal(value.getBytes());
    //CONVERT TO BASE64 Encoding
    String s = new sun.misc.BASE64Encoder().encode(encrypted);
    //write the encrypted data to the file
    fos = new FileOutputStream("C:\\aes\\output.properties");
    new PrintStream(fos).println("layerhandle\t"+s);
    fos.flush();
    //fos.close();
    //decrypt
    byte[] buf = new sun.misc.BASE64Decoder().decodeBuffer(value);
    cipher.init(Cipher.DECRYPT_MODE, skeySpec);
    //read from file and decrypt the values
    byte[] unecrypted = cipher.doFinal(buf);
    String word = new String(unecrypted);

    String s = new
    sun.misc.BASE64Encoder().encode(encrypted);
    //write the encrypted data to the file
    fos = new
    FileOutputStream("C:\\aes\\output.properties");
    new PrintStream(fos).println("layerhandle\t"+s);
    fos.flush();
    //fos.close();This looks suspicious. You should close the PrintStream and not just flush 'fos'. Closing the PrintSteam will close 'fos'. This failure to close the print stream could be the cause your problem.
    >
    >
    //decrypt
    byte[] buf = new
    sun.misc.BASE64Decoder().decodeBuffer(value);If there is a problem with decrypt then it may be because you have not read the 'value' or the 'key' properly.

  • Bad Padding Exception

    I've got a small program to save/load passwords from a file, but the encryption is causing me a few issues, currently I'm stuck on a bad padding exception (line 120).
    The code can be found here: http://www.rafb.net/paste/results/R8NoZB78.html
    Does anyone know how I can resolve the error? Thanks.

        private String decrypt(String encrypted) {
            try {
                Cipher cipher = Cipher.getInstance("DES");
                cipher.init(Cipher.DECRYPT_MODE, key);
                return new String(Base64.decodeBase64(cipher.doFinal(encrypted.getBytes())));
            } catch (Exception e) { e.printStackTrace(); }
            return null;
        private String encrypt(String plaintext) {
            try {
                Cipher cipher = Cipher.getInstance("DES");
                cipher.init(Cipher.ENCRYPT_MODE, key);
                return new String(cipher.doFinal(Base64.encodeBase64(plaintext.getBytes())));
            } catch (Exception e) { e.printStackTrace(); }
            return null;
        }decrypt()
    string -> encrypted encoded bytes -> encoded bytes -> bytes -> string
    encrypt()
    string -> bytes -> encoded bytes -> encrypted encoded bytes -> string
    I do ask myself first. And no, I still don't get what the problem is - I really think there's something, probably very simple, that I don't know about and that's why I'm not getting this.

  • Error when trying to access the RBAC User editor and Message tracking

    Hi,
    I am getting an error when trying to access the RBAC User editor and Message tracking on the Web Mgmt interface. I verified that the admin account trying to access is in the Organization Management group and has the correct Role Assignment Policy applied.
    I searched through this thread below and saw that matching the msExchRoleLink and msExchUserLink attributes fixed the issue. 
    https://social.technet.microsoft.com/Forums/exchange/en-US/fc568cc6-8691-4127-b70b-bcc82f9b1f7f/first-2010-cas-server-no-administrator-rights-emc-permissions-gone?forum=exchange2010
    However I have another environment where this is not the case and works just fine; the msExchUserLink attribute has a value of CN=Organization Management,OU=Microsoft Exchange Security Groups,DC=Domain,DC=Local which is different as per the issue outlined in
    the above thread so I am not convinced that this will work and also don’t want to blindly edit something in adsiedit without being sure.
    I then checked the event logs on the server and saw the below error logged;
    Current user: 'Domain/Server Services Accounts/administrator'
    Request for URL 'https://server.domain.com/ecp/default.aspx?p=AdminDeliveryReports&exsvurl=1' failed with the following error:
    System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Exchange.Management.ControlPanel.UrlNotFoundOrNoAccessException: The page may not be available or you might not have permission to open the
    page. Please contact your administrator for the required credentials. For new credentials to take effect, you have to close this window and log on again.
       at Microsoft.Exchange.Management.ControlPanel._Default.CreateNavTree()
       at Microsoft.Exchange.Management.ControlPanel._Default.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       --- End of inner exception stack trace ---
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.default_aspx.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    Microsoft.Exchange.Management.ControlPanel.UrlNotFoundOrNoAccessException: The page may not be available or you might not have permission to open the page. Please contact your administrator for the required credentials. For new credentials to take effect, you
    have to close this window and log on again.
       at Microsoft.Exchange.Management.ControlPanel._Default.CreateNavTree()
       at Microsoft.Exchange.Management.ControlPanel._Default.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    I then had a look at the IIS permissions for ecp and owa. The account did not have permissions so I added them there but still got the same error. I’ve also tried all of the above with a newly-created account but still got the same issue.
    Any ideas as to what the above event log is specifically referring to?

    Hi,
    From your description, I would like to clarify the following thing:
    If you want to search message tracking logs, the account you use should be a member of the role groups below:
    Organization Management role group, Records Management role group, Recipient Management role group.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • An error occurred when trying to access the service

    I'm asking myself why I purchased a one year subscription to Adobe Reader to convert PDF files to Doc files, when it NEVER WORKS and no one seems to be able to help me!!! I am on a Mac Book Pro with Yosemite (don't upgrade it slows your Mac badly) and whenever I try to convert a pdf to a doc I get 'an error occurred when trying to access the service', can anybody help me please?

    Hi Cedric,
    The customer service number is 800833687
    The direct link for chat support is: http://adobe.ly/19llvMN
    You need to click on 'Still need help' to initiate the chat session.
    Are you getting this error: "an error occurred when trying to access the service" while trying to access the service via Reader.
    Try using the link: https://cloud.acrobat.com/exportpdf sign in with your Adobe ID and try to convert a pdf to doc and check if that works for you.
    Reards,
    Rave

  • Approval task SP09: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'

    Hi everyone,
    I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
    I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
    ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
    And the notifications configured on approval task does not start either.
    The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
    I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
    Has anyone passed trough this situation in SP09?
    I think there is an issue with the runtime components delivered with this initial package of SP09.
    Suggestions?

    Hi Kelvin,2016081
    The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
    For more info about the issue and the patch please refer to SAPNote 2016081.
    @Michael Penn - I might be able to assist if you provide the ticket number
    Cheers,
    Kristiyan
    IdM Development

  • LockException when trying to lock the instance before writing.

    hi...
    i am working with entity beans. when i am trying to update the  data from multiple clients at the same time it is giving  exception like...................
    [code]
    java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: Exception in method updateTest2.
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0.updateTest2(Test2UpdateSessionObjectImpl0.java:140)
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0p4_Skel.dispatch(Test2UpdateSessionObjectImpl0p4_Skel.java:157)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         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)
    Caused by: com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException: Exception in method in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(java.lang.String).
         at in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(Test2EntityLocalLocalObjectImpl0.java:780)
         at in.mobileone.test2.Test2UpdateSessionBean.updateTest2(Test2UpdateSessionBean.java:64)
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0.updateTest2(Test2UpdateSessionObjectImpl0.java:122)
         ... 10 more
    Caused by: <b>com.sap.engine.services.ejb.entity.pm.lock.LockException: LockException when trying to lock the instance before writing</b>.
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:87)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.writeLock(UpdatablePersistent.java:186)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.writeOperation(UpdatablePersistent.java:209)
         at in.mobileone.test2.Test2EntityBean0PM.setStrFiled2(Test2EntityBean0PM.java:97)
         at in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(Test2EntityLocalLocalObjectImpl0.java:755)
         ... 12 more
    Caused by: com.sap.engine.frame.core.locking.LockException: Cannot lock [2007072510571546800000mobileone202.................5791450, %TMP_TEST2              wCGMIA, test2, E]; it is in use by another owner. The lock collision occurred with user admin.
         at com.sap.engine.core.locking.impl3.LockingManagerImpl.lockInternal(LockingManagerImpl.java:154)
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.lock(AbstractLockingManagerImpl.java:420)
         at com.sap.engine.services.applocking.AbstractBaseLocking.lockInternal(AbstractBaseLocking.java:126)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:129)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:138)
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:82)
         ... 16 more
    ; nested exception is:
         javax.ejb.TransactionRolledbackLocalException: com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException: Exception in method in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(java.lang.String).
         at in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(Test2EntityLocalLocalObjectImpl0.java:780)
         at in.mobileone.test2.Test2UpdateSessionBean.updateTest2(Test2UpdateSessionBean.java:64)
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0.updateTest2(Test2UpdateSessionObjectImpl0.java:122)
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0p4_Skel.dispatch(Test2UpdateSessionObjectImpl0p4_Skel.java:157)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         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)
    Caused by: com.sap.engine.services.ejb.entity.pm.lock.LockException: LockException when trying to lock the instance before writing.
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:87)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.writeLock(UpdatablePersistent.java:186)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.writeOperation(UpdatablePersistent.java:209)
         at in.mobileone.test2.Test2EntityBean0PM.setStrFiled2(Test2EntityBean0PM.java:97)
         at in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(Test2EntityLocalLocalObjectImpl0.java:755)
         ... 12 more
    Caused by: com.sap.engine.frame.core.locking.LockException: Cannot lock [2007072510571546800000mobileone202.................5791450, %TMP_TEST2              wCGMIA, test2, E]; it is in use by another owner. The lock collision occurred with user admin.
         at com.sap.engine.core.locking.impl3.LockingManagerImpl.lockInternal(LockingManagerImpl.java:154)
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.lock(AbstractLockingManagerImpl.java:420)
         at com.sap.engine.services.applocking.AbstractBaseLocking.lockInternal(AbstractBaseLocking.java:126)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:129)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:138)
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:82)
         ... 16 more
    com.sap.engine.services.ejb.entity.pm.lock.LockException: LockException when trying to lock the instance before writing.
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:87)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.writeLock(UpdatablePersistent.java:186)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.writeOperation(UpdatablePersistent.java:209)
         at in.mobileone.test2.Test2EntityBean0PM.setStrFiled2(Test2EntityBean0PM.java:97)
         at in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(Test2EntityLocalLocalObjectImpl0.java:755)
         at in.mobileone.test2.Test2UpdateSessionBean.updateTest2(Test2UpdateSessionBean.java:64)
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0.updateTest2(Test2UpdateSessionObjectImpl0.java:122)
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0p4_Skel.dispatch(Test2UpdateSessionObjectImpl0p4_Skel.java:157)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         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)
    Caused by: com.sap.engine.frame.core.locking.LockException: Cannot lock [2007072510571546800000mobileone202.................5791450, %TMP_TEST2              wCGMIA, test2, E]; it is in use by another owner. The lock collision occurred with user admin.
         at com.sap.engine.core.locking.impl3.LockingManagerImpl.lockInternal(LockingManagerImpl.java:154)
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.lock(AbstractLockingManagerImpl.java:420)
         at com.sap.engine.services.applocking.AbstractBaseLocking.lockInternal(AbstractBaseLocking.java:126)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:129)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:138)
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:82)
         ... 16 more
         at com.sap.engine.services.ejb.exceptions.BaseRemoteException.writeReplace(BaseRemoteException.java:276)
         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:324)
         at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
         at com.sap.engine.services.rmi_p4.DispatchImpl.throwException(DispatchImpl.java:135)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:296)
         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)
    Caused by: javax.ejb.TransactionRolledbackLocalException: com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException: Exception in method in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(java.lang.String).
         at in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(Test2EntityLocalLocalObjectImpl0.java:780)
         at in.mobileone.test2.Test2UpdateSessionBean.updateTest2(Test2UpdateSessionBean.java:64)
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0.updateTest2(Test2UpdateSessionObjectImpl0.java:122)
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0p4_Skel.dispatch(Test2UpdateSessionObjectImpl0p4_Skel.java:157)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         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)
    Caused by: com.sap.engine.services.ejb.entity.pm.lock.LockException: LockException when trying to lock the instance before writing.
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:87)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.writeLock(UpdatablePersistent.java:186)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.writeOperation(UpdatablePersistent.java:209)
         at in.mobileone.test2.Test2EntityBean0PM.setStrFiled2(Test2EntityBean0PM.java:97)
         at in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(Test2EntityLocalLocalObjectImpl0.java:755)
         ... 12 more
    Caused by: com.sap.engine.frame.core.locking.LockException: Cannot lock [2007072510571546800000mobileone202.................5791450, %TMP_TEST2              wCGMIA, test2, E]; it is in use by another owner. The lock collision occurred with user admin.
         at com.sap.engine.core.locking.impl3.LockingManagerImpl.lockInternal(LockingManagerImpl.java:154)
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.lock(AbstractLockingManagerImpl.java:420)
         at com.sap.engine.services.applocking.AbstractBaseLocking.lockInternal(AbstractBaseLocking.java:126)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:129)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:138)
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:82)
         ... 16 more
    com.sap.engine.services.ejb.entity.pm.lock.LockException: LockException when trying to lock the instance before writing.
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:87)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.writeLock(UpdatablePersistent.java:186)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.writeOperation(UpdatablePersistent.java:209)
         at in.mobileone.test2.Test2EntityBean0PM.setStrFiled2(Test2EntityBean0PM.java:97)
         at in.mobileone.test2.Test2EntityLocalLocalObjectImpl0.setStrFiled2(Test2EntityLocalLocalObjectImpl0.java:755)
         at in.mobileone.test2.Test2UpdateSessionBean.updateTest2(Test2UpdateSessionBean.java:64)
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0.updateTest2(Test2UpdateSessionObjectImpl0.java:122)
         at in.mobileone.test2.Test2UpdateSessionObjectImpl0p4_Skel.dispatch(Test2UpdateSessionObjectImpl0p4_Skel.java:157)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         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)
    Caused by: com.sap.engine.frame.core.locking.LockException: Cannot lock [2007072510571546800000mobileone202.................5791450, %TMP_TEST2              wCGMIA, test2, E]; it is in use by another owner. The lock collision occurred with user admin.
         at com.sap.engine.core.locking.impl3.LockingManagerImpl.lockInternal(LockingManagerImpl.java:154)
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.lock(AbstractLockingManagerImpl.java:420)
         at com.sap.engine.services.applocking.AbstractBaseLocking.lockInternal(AbstractBaseLocking.java:126)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:129)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:138)
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:82)
         ... 16 more
         at com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException.writeReplace(BaseTransactionRolledbackLocalException.java:273)
         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:324)
         at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
         ... 11 more[/code]
    regards
    Guru
    Message was edited by:
            Guruvulu Bojja
    Message was edited by:
            Guruvulu Bojja

    Hi Guru,
    > we need to lock the table when client is accessing so that we can maintain the consistente data
    And that's exactly why the LockException is thrown. If the second client was allowed to update the same data record, this would result in a dirty write which is not allowed by any means. So it's not quite clear what you expect... You lock the data - you get a LockException on concurrent write access - it's so simple and not surprising at all, isn't it?
    What you can probably do is to catch the LockException and retry the operation according to your business logic.
    HTH!
    -- Vladimir

Maybe you are looking for