Showing posts with label IOException. Show all posts
Showing posts with label IOException. 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

Error Starting Dyn Admin on Prod. ( java.io.IOException: Cannot run program "javac")

Error

Error : The detailed exception is: java.io.IOException: Cannot run program "javac": CreateProcess error=206, The filename or extension is too long
atg.servlet.pagecompile.jsp11.JSPPageProcessor.javaToClass(JSPPageProcessor.java:421) [_DAS_slib_sclasses.jar:]

APPLIES TO:

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

CAUSE

Above error is Java compiler error, where java compiler fails to compile.

SOLUTION

1. Follow the steps in sequence
  • Go to location "servers/atg_config/local_prod1a_cbsbuild/localconfig/atg/dynamo/servlet" in your code base.
  • Add folder pagecompile under servlet.
  • Add two files with name "ExtendedJhtmlPageProcessor.properties" and "PageProcessor.properties"
  • In Extend file add following code snippet
    $class = atg.servlet.pagecompile.jsp11.JSPPageProcessor
    javaCompilerClassName=atg.servlet.pagecompile.SunJavaSourceCompiler 
  • In PageProcessor.properties add following code
    javaCompilerClassName=atg.servlet.pagecompile.SunJavaSourceCompiler
  • Build your project again and restart the server.