Jul 27, 2016

java.io.StreamCorruptedException: unexpected block data

Error

We were getting below error when we try to start the ACC in our local VM
java.io.StreamCorruptedException: unexpected block data
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1364)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at atg.core.util.UnsynchronizedHashtable.readObject(UnsynchronizedHashtable.java:623)
at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream

APPLIES TO:

Oracle Commerce Platform - Version 9.4 and later
Information in this document applies to any platform.


Cause

Some of the SQLrepositories were modified with custom properties descriptors and ACC is not able to find them while start up.

SOLUTION

Please configure the application module with the following entries in the module's MANIFEST.MF file:
ATG-Client-Class-Path: A listing of the jar files that will added to the ACC client's classpath
Name: The filename of each jar file entry in the ATG-Client-Class-Path that needs to be downloaded
ATG-Client-Update-File: A true or false flag whether or not the filename should be downloaded by the ACC
ATG-Client-Update-Version: Optional version string used to force the ACC to update the specified filename
If you see the MANIFEST.MF file in PCIencryption module and it doesn't have the above entry. So please add the below 3 entries in the MANIFEST.MF file of PCIencryption Module.
ATG-Client-Class-Path: bin/
Name: bin/
ATG-Client-Update-File: true
ATG-Version is not required.  Do a build and start the server and try to access ACC through script or dyn/admin . You should be able to access it.

No comments: