Showing posts with label dynamo. Show all posts
Showing posts with label dynamo. Show all posts

Aug 22, 2018

ATG - Bcc Full Deployment Failure with IOException


Error

Deployments Fail Due to Corruption in Version File Store, IOException in Log: Unexpected end of stream while reading deployment protocol

Applies to:

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

Symptoms

Deployments fail as a result of problems with a file asset, such as targeter or scenario .properties file, in the VersionFileStore .  In the BCC UI, the deployment status shows that the deployment failed and references a versioned file that the VersionManagerService is trying to reference.
Deployment Failed

Deployment Status:
Error Applying
Error Message:
Deployment FailedDeployment 'ID' to target 'TARGET' encountered a system level deployment error during data transfer.
Asset:
uri:atgvm://VersionManagerService/PublishingFiles/targeter/fa108888 (note URI maybe different for your project)




Note: The error "atg.deployment.common.DeploymentException: Deployment 'ID' to target 'TARGET' encountered a system level deployment error during data transfer" is a generic error for any deployment failure and is not specific to only this issue.



Cause

It is possible, but not mandatory, that a problem occurred during a previous deployment. For example, a deployment was run and a target was restarted in the middle, or a previous deployment failed. It is also possible that no specific deployment problem was detected.


Solution

Note:  Exercise caution when directly modifying the versioned database schema.  For assistance identifying this problem and implementing the solution, please open an SR with Oracle Support.

1. Follow the steps in sequence

  • login into PUB schema with sql developer or ssh on particular environment.
  • take backup/export of table epub_file_asset table content
  • run following command <update epub_file_asset set VERSION_DELETE=1;
  • commit the changes
  • invalidate the caches on PublishingRepository through Dyn/Admin of BCC instance.
  • Error will disappear

Jul 27, 2016

java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

error

JBWEB000309: type JBWEB000066: Exception report
JBWEB000068: message JBWEB000248: Servlet execution threw an exception
JBWEB000069: description JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.
JBWEB000070: exception
javax.servlet.ServletException: JBWEB000248: Servlet execution threw an exception
JBWEB000071: root cause
java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
atg.servlet.pagecompile.SunJavaSourceCompiler.javaToClass(SunJavaSourceCompiler.java:110)
atg.servlet.pagecompile.jsp11.JSPPageProcessor.javaToClass(JSPPageProcessor.java:405)
atg.servlet.pagecompile.PageProcessor.compilePageClass(PageProcessor.java:2437)
atg.servlet.pagecompile.PageProcessor.getPageInfo(PageProcessor.java:1787)
atg.servlet.pagecompile.jsp12.Jsp12PageProcessor.getPageInfo(Jsp12PageProcessor.java:324)
atg.servlet.minimal.MinimalServletContainer.compileServlet(MinimalServletContainer.java:153)
atg.servlet.pagecompile.PageCompileServlet.service(PageCompileServlet.java:306)



APPLIES TO

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


SOLUTION

1. Follow the steps in sequence

  • create folder structure under your jboss/modules as "com\sun\tools\javac\main"
  • Copy and paste attached one file to this location. "module.xml" & Copy tools.jar from jre/lib location on your system.module.xml
  • Copy "tools.jar" to jboss_home/standalone/deployments/<prod_server>.
  • Copy "tools.jar" to code base location "/<module>/<sub-module>/lib"
  • Go to code base location "<project>/<module>/META-INF" and open file "MANIFEST.mf"
  • Add "lib/tools.jar" to ATG-Class-Path in the file.
  • Stop Servers if running & Re-Build the ear's.
  • Restart the server and make sure <module>.<sub-module> is started with parameters in Server Startup.
  • Similar way can fix Pub if there is same error.
  • create folder structure under your jboss/modules as "com\sun\tools\javac\main".

May 20, 2016

Not able to access User / Profile Repository in ACC

Error

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)



APPLIES TO:

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


Cause

This error is because your particular Repository in ACC is not able to find particular class to load the properties of the xml.


e.g when you click on Users or Orders in ACC, above error appears in front of you.


Solution


So the solution is , find out if there are any external classes used for your repository. In my case pci encryption was used to encrypt password in UserProfile.xml and ACC was not able to locate that class when loading the particular repository.

So Add following lines in pci encryption module :

Go to encryption module MANIFEST.MF file

Add line ATG-Client-Class-Path: bin/ config/config.jar lib/classes.jar

Build project wit ANT and restart the server.

Cheers!!!