Oracle: ZipException during synchronization

  • filip_aps_cz / 400 / Fri, 05 Jun 2009 11:45:00 GMT / Comments (7)
  • we occasionally face problem during synchronization of a client - the sync fails and the log record on server shows this error message:

    Sync session exception stack trace:
    java.util.zip.ZipException: invalid stored block lengths
    at java.util.zip.InflaterInputStream.read(Unknown Source)
    at oracle.lite.sync.HeliosSession.recvCompressed(Unknown Source)
    at oracle.lite.sync.HeliosSession.recvRec(Unknown Source)
    at oracle.lite.sync.HeliosSession.startSession(Unknown Source)
    at oracle.lite.sync.resume.Client$1.run(Unknown Source)
    at oracle.lite.sync.resume.ThreadPool$PoolTask.run(Unknown Source)

    when this occurs, there's no way how to get client working again. we have to delete the databases on the client and setup the sync again. I presume it's some kind of data corruption problem - we tried to delete the *.bin files on the client, but it did not help... Does anybody also faced this problem? We're using 10.2.0.2 version and PPC2003 clients.
  • Keywords:

    zipexception, during, synchronization, oracle

  • http://database.itags.org/oracle/291707/«« Last Thread - Next Thread »»
    1. it looks like the patch #5508302 should solve this - I should better search metalink before I post new topic next time :)

      filip_aps_cz | Sat, 23 Feb 2008 18:35:00 GMT |

    2. Interesting....
      We had this same problem and Oracle said that it was due to the version of the JDBC driver failing to deal with trailing null collumns on an upload and got us to upgrade the server JDBC driver. Fixed the problem ok, and not seen this patch before

      garyw | Sat, 23 Feb 2008 18:36:00 GMT |

    3. hmmm... sounds curious.. I just applied the patch so I hope it won't break anything. what version of JDBC driver did you upgrade to?

      filip_aps_cz | Sat, 23 Feb 2008 18:37:00 GMT |

    4. If you are using iAS, you should be at 10.1.0.4.2 but the one that is recommended is 10.1.0.5

      rekounas | Sat, 23 Feb 2008 18:39:00 GMT |

    5. I'm running mobile server in standalone mode (oc4j), so no iAS.. On our 10.2.0.2 production server I can see "JDBC Version 9.0.1.5.0" on mobile server home page, so I should probably upgrade the driver. How can I do it?

      filip_aps_cz | Sat, 23 Feb 2008 18:39:00 GMT |

    6. Hi,
      Interesting..

      We had this same problem and Oracle said that it was due to the version of the JDBC driver failing to deal with trailing null collumns on an upload and got us to upgrade the server JDBC driver. Fixed the problem ok, and not seen this patch before

      This i found in one of your reply...
      How can i Upgrade JDBC Driver ???

      paninie | Sat, 23 Feb 2008 18:40:00 GMT |

    7. I am assuming iAS, but it should be similar if you are using OC4J. You are probably also experiencing bug "5508302" and require the one-off patch of the same number 5508302.

      Create a new directory to put the new JDBC libraries:
      $ mkdir $ORACLE_HOME/jdbc/jdbc92

      2. Put new JDBC libraries and jar files in the new directory you created

      3. Edit the $iAS_ORACLE_HOME/opmn/conf/opmn.xml file to include/modify the -Djava.ext.dirs java option to the OC4J instance that you want it to use the new JDBC Drivers:
      -Djava.ext.dirs=<path_to_the_AS_OH>/jdbc/jdbc92

      This step can also be achieved using the -Xbootclasspath/a: java option:

      UNIX Syntax:
      -Xbootclasspath/a:<path_to_the_AS_oracle_home>/jdbc/jdbc92/classes12dms.jar:
      <path_to_the_AS_oracle_home>/jdbc/jdbc92/dms.jar

      Windows Syntax:
      -Xbootclasspath^/a:O:\path\to\AS\oracle\home\jdbc\jdbc92classes12dms.jar;
      O:\path\to\AS\oracle\home\jdbc\jdbc92\dms.jar
      4. Propagate changes to your DCM repository:
      $ dcmctl updateconfig -ct opmn

      5. Stop/Start your OC4J instance:
      $ opmnctl stopproc process-type=<oc4j_instance_name>
      $ opmnctl startproc process-type=<oc4j_instance_name>

      rekounas | Sat, 23 Feb 2008 18:41:00 GMT |