Friday, 27 January 2017

ATG Info

To find the class from which it is using:

Using the following URL, we can get it.

http://host:port/dyn/dyn/findclass.jhtml

2)Not able to open home page of dyn/admin in ATG10.2
The detailed exception is: java.io.IOException: Cannot run program "javac": CreateProcess error=206, The filename or extension is too long

Solution 1)If we direcly access with nucles as below, it will work.

/dyn/admin/nucleus

Solution 2)

Add following(ExtendedJhtmlPageProcessor) component at this location and restart the sever.
atg\dynamo\servlet\pagecompile\

ExtendedJhtmlPageProcessor.properties:-
     #atg\dynamo\servlet\pagecompile\ExtendedJhtmlPageProcessor.properties
     $class=atg.servlet.pagecompile.jsp11.JSPPageProcessor
     javaCompilerClassName=atg.servlet.pagecompile.SunJavaSourceCompiler



Q)How to change the password at dyn/admin using URL ?
A) Using the following URL, password can be changed.
http://hostname:port/dyn/admin/atg/dynamo/admin/en/change-password.jhtml

Monday, 23 January 2017

Repository Data Export ,Import using startSQLImport and RepositoryLoader(RL)

Aim:To remove unwanted (versioned data)  at BCC.

Steps:
1)Export the data from CATA/CATB into xml files using startSQLRepository  command.
2)Import those xml files using startSQLImport command  at PUb schema.
3)Import the file assets using RL (explained seperately).
4)Run the full deployment using directSQLDeployment(DeploymentServer).
5)Trigger the CMS at store instance
6) Insert the inventory and price data into Core schema using SQL scripts.
7)Trigger the Endeca index.
8)verify the site.

Repositories to be export and import (OOTB)

The OOTB repositories which are used as part of export and import

@Store

1) /atg/multisite/SiteRepository  (export/imported as part product catalog export/import )
2) /atg/seo/SEORepository
3) /atg/userprofiling/PersonalizationRepository
4) /atg/commerce/catalog/ProductCatalog
5) /atg/commerce/claimable/ClaimableRepository



@PUB

1) /atg/systemconfiguration/SystemConfigurationRepository
2) /atg/dynamo/security/AdminSqlRepository
3) /atg/portal/framework/PortalRepository
4) /atg/userprofiling/InternalProfileRepository
5) /atg/web/viewmapping/ViewMappingRepository
6) /atg/epub/file/PublishingFileRepository

If we have any Custom repositories , we need to export and import those also.

Pre Export configurations

Before exporting, we have to set the following configurations in the ATG-home/servers/cata_export\localconfig\atg\dynamo\service\jdbc  path.

1)DirectJTDataSource.properties
2)FakeXADataSource.properties
3)FakeXADataSource_core.properties
4)IdGenerator.properties
5)JTDataSource.properties
6)SwitchingDataSource.properties


Detailed Explanation
1)DirectJTDataSource.properties
dataSource=/atg/dynamo/service/jdbc/JTDataSource




2)FakeXADataSource.properties

$class=atg.service.jdbc.FakeXADataSource

#driver=oracle.jdbc.xa.client.OracleXADataSource
driver=oracle.jdbc.driver.OracleDriver
URL=jdbc:oracle:thin:@172.21.0.71:1521:DEVOPSDB
user=CATA-schemaUserName
password=CATA-schemaPWD


3)FakeXADataSource_core.properties

$class=atg.service.jdbc.FakeXADataSource
driver=oracle.jdbc.xa.client.OracleXADataSource
URL=jdbc:oracle:thin:@DBIPAddress:1521:ServiceId
user=Core_schemaUserName
password=Core_schemaPWD




4)IdGenerator.properties
dataSource=/atg/dynamo/service/jdbc/SwitchingDataSource

5)JTDataSource.properties
$class=atg.service.jdbc.MonitoredDataSource
dataSource=/atg/dynamo/service/jdbc/FakeXADataSource_core
min=10
max=10
blocking=true
#maxBlockTime=
#maxCreateTime=
#maxCreateAttempts=
loggingSQLWarning=false
loggingSQLInfo=false

6)SwitchingDataSource.properties
$class=atg.service.jdbc.MonitoredDataSource

# only use this data source if you do not have an JDBC driver
# which provides true XA data sources
dataSource=/atg/dynamo/service/jdbc/FakeXADataSource
min=10
max=10
blocking=true

#maxBlockTime=
#maxCreateTime=
#maxCreateAttempts=

#
# This will log any SQLWarnings that are generated.  By default, we turn
# these off since they tend to be informational, not really warnings.  If
# we want the full traceback for where these messages are generated,
# set loggingWarning to true.
#
loggingSQLWarning=false
#
# The monitored connection by default logs all sql through the log info
# path.
#
loggingSQLInfo=false



Pub export configurations

As we have data to export  from PUB repositories, we have to set the following configurations in the path
 ATG-home/serverspub_export\localconfig\atg\dynamo\service\jdbc

1
)FakeXADataSource.properties
2)FakeXADataSource_core.properties
3)FakeXADataSource_pub.propertie
4)IdGenerator.properties
5)IdGenerator_production.propertie
6)5)JTDataSource.properties
7)JTDataSource_production.properties
8)SwitchingDataSource.properties


1)FakeXADataSource.properties

$class=atg.service.jdbc.FakeXADataSource
#driver=oracle.jdbc.xa.client.OracleXADataSource
driver=oracle.jdbc.driver.OracleDriver
URL=jdbc:oracle:thin:@DBHostIpAddrss:1521:SID
user=CATA_schemauserName
password=CATA_schemaPWD

2)FakeXADataSource_core.properties

$class=atg.service.jdbc.FakeXADataSource
driver=oracle.jdbc.xa.client.OracleXADataSource
URL=jdbc:oracle:thin:@DBHostIpAddrss:1521:SID
user=Core_schemauserName
password=Core_schemaPWD

3)FakeXADataSource_pub.propertie

  $class=atg.service.jdbc.FakeXADataSource

#driver=oracle.jdbc.xa.client.OracleXADataSource
driver=oracle.jdbc.driver.OracleDriver
URL=jdbc:oracle:thin:@172.21.22.14:1521:LPSRMS
user=PUB_schemauserName
password=PUB_schemaPWD


4)IdGenerator.properties
dataSource=/atg/dynamo/service/jdbc/SwitchingDataSource

5)IdGenerator_production.propertie
dataSource=/atg/dynamo/service/jdbc/JTDataSource_production

6)5)JTDataSource.properties
  $class=atg.service.jdbc.MonitoredDataSource
dataSource=/atg/dynamo/service/jdbc/FakeXADataSource_pub
min=10
max=10
blocking=true
loggingSQLWarning=false
loggingSQLInfo=false

7)JTDataSource_production.properties

  $class=atg.service.jdbc.MonitoredDataSource
dataSource=/atg/dynamo/service/jdbc/FakeXADataSource_core
min=10
max=10
blocking=true
loggingSQLWarning=false
loggingSQLInfo=false

8)SwitchingDataSource.properties

$class=atg.service.jdbc.MonitoredDataSource
dataSource=/atg/dynamo/service/jdbc/FakeXADataSource
min=10
max=10
blocking=true

#maxBlockTime=
#maxCreateTime=
#maxCreateAttempts=
loggingSQLWarning=false
loggingSQLInfo=false



Pre Import configurations


The import configurations we have to do in the following paths

ATG-home\servers\pub_import\localconfig\atg\dynamo\service\jdbc

1)DirectJTDataSource.properties
2)DirectJTDataSource_production
3)FakeXADataSource.properties
4)FakeXADataSource_core.properties
5)FakeXADataSource_pub.propertie
6)IdGenerator.properties
7)IdGenerator_production.propertie
8)5)JTDataSource.properties
9)JTDataSource_production.properties
10)SwitchingDataSource.properties


1)DirectJTDataSource.properties
$class=atg.service.jdbc.MonitoredDataSource

dataSource=/atg/dynamo/service/jdbc/FakeXADataSource
min=10
max=10
blocking=true
#maxBlockTime=
#maxCreateTime=
#maxCreateAttempts=
loggingSQLWarning=false
loggingSQLInfo=false


2)DirectJTDataSource_production
 
$class=atg.service.jdbc.MonitoredDataSource

dataSource=/atg/dynamo/service/jdbc/FakeXADataSource_core
min=10
max=10
blocking=true
#maxBlockTime=
#maxCreateTime=
#maxCreateAttempts=
loggingSQLWarning=false
loggingSQLInfo=false


3)FakeXADataSource.properties

  $class=atg.service.jdbc.FakeXADataSource

#driver=oracle.jdbc.xa.client.OracleXADataSource
driver=oracle.jdbc.driver.OracleDriver
URL=jdbc:oracle:thin:@DBHostIPAddress:1521:SID
user=CATA_SchemauserName
password=CATA_SchemauserPWD


4)FakeXADataSource_core.properties
$class=atg.service.jdbc.FakeXADataSource

driver=oracle.jdbc.xa.client.OracleXADataSource
URL=jdbc:oracle:thin:@DBHostIPAddress:1521:SID
user=Core_SchemauserName
passwordCore_SchemauserPWD

5)FakeXADataSource_pub.propertie
 $class=atg.service.jdbc.FakeXADataSource

#driver=oracle.jdbc.xa.client.OracleXADataSource
driver=oracle.jdbc.driver.OracleDriver
URL=jdbc:oracle:thin:@DBHostIPAddress:1521:SID
user=PUB_SchemauserName
password=PUB_SchemauserPWD

6)IdGenerator.properties
dataSource=/atg/dynamo/service/jdbc/JTDataSource
7)IdGenerator_production.propertie
  dataSource=/atg/dynamo/service/jdbc/JTDataSource_production

8)5)JTDataSource.properties
  $class=atg.service.jdbc.MonitoredDataSource
dataSource=/atg/dynamo/service/jdbc/FakeXADataSource_pub

min=10
max=500
blocking=true
#maxBlockTime=
#maxCreateTime=
#maxCreateAttempts=
loggingSQLWarning=false
loggingSQLInfo=false


9)JTDataSource_production.properties
  $class=atg.service.jdbc.MonitoredDataSource
dataSource=/atg/dynamo/service/jdbc/FakeXADataSource_core
min=10
max=10
blocking=true

#maxBlockTime=
#maxCreateTime=
#maxCreateAttempts=
loggingSQLWarning=false
loggingSQLInfo=false

10)SwitchingDataSource.properties
 $class=atg.service.jdbc.MonitoredDataSource
dataSource=/atg/dynamo/service/jdbc/FakeXADataSource
min=10
max=10
blocking=true
#maxBlockTime=
#maxCreateTime=
#maxCreateAttempts=
loggingSQLWarning=false
loggingSQLInfo=true

Export


We can export the data using following command at Linux box.

nohup startSQLRepository  -m modules.Commerce -s cata_export -encoding ISO-8859-1 -repository /atg/commerce/catalog/ProductCatalog -noTransaction -export all exported_productCatalog.xml > exported_productCatalog_log.txt &


Explanation:
Export the content at Linux box from the  {ATG_HOME}\bin folder
modules should be there in /opt/ATG /ATG10.2 folder and should contains Commerce folder.
The content will be exported in the folder exported_productCatalog.xml.
The log will be moved to the folder   exported_productCatalog_log.txt


We can export all the versioned and non versioned repositories.Usually productCatalog export will take time and also depends on number of asset and   Linux box configuration like JVM  RAM and DB server configuration like oracle server RAM


Import (startSQLImport )

We can do import the data file(.xml file) in two ways.

1)Import the content without checkin and executed checkin scripts.(Huge data)
2)Import the content and checkin as part of the command.(small data) 
 

1)Import the content without checkin and executed checkin scripts.(Huge data)

 This is used to import the product catalog data  from XML file to PUB schema and command used as follows.

nohup  startSQLImport -m modules.CA -s  pub_import  -repository  /atg/commerce/catalog/ProductCatalog -file  /opt/ATG/ATG10.2/home/bin/CAT-A/exported_productCatalog.xml  -workspace ProductCatalogImport -nocheckin   -batchSize 5000 > imported_productCatalog_log.txt &

 In the above command nocheckin is given , so it won't be checkedin automatically. Need to run DB scripts to check in the workspace (ProductCatalogImport ). And batchsize also helps to make the import fast.

2)Import the content and checkin as part of the command.(small data)

nohup startSQLImport -m modules.CA -s  pub_import  -repository    /atg/commerce/claimable/ClaimableRepository -file  /opt/ATG/ATG10.2/home/bin/exportFilesLocation/exported_claimable_dump.xml  -workspace Claimable_import > /opt/ATG/ATG10.2/home/bin/Logs/imported_Claimable_logo.txt &

In the above command -nocheckin and batchSize is not mentioned as the file  contaisn samll data compared with Product catalog. So workspace is checkedin . NO need to run any scripts to checking the workspace.


1)Should be executed at {ATG_HOME}\bin location.
2)exported_productCatalog.xml is the exported file using startSQLRepository command as mentioned above Export section.
3)We executed in nocheckin mode.
4)Generated log file name is imported_productCatalog_log.txt

 While importing productCatalog, the following error may occurs.


Error:While importing catalog import using SQLImport command, got the following error.

CONTAINER:atg.adapter.gsa.sqlimport.ImportException; SOURCE:com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR, code 26))
at [row,col {unknown-source}]: [28036853,45]
at atg.adapter.gsa.sqlimport.ImportParserImpl.parseFirsPass(ImportParserImpl.java:130)
at atg.adapter.gsa.sqlimport.SQLImporter.doImport(SQLImporter.java:1992)
at atg.adapter.gsa.sqlimport.SQLImporter.execute(SQLImporter.java:1353)
at atg.adapter.gsa.sqlimport.SQLImporter.main(SQLImporter.java:1306)
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR, code 26))
at [row,col {unknown-source}]: [28036853,45]
at com.ctc.wstx.sr.StreamScanner.throwInvalidSpace(StreamScanner.java:666)
at com.ctc.wstx.sr.StreamScanner.throwInvalidSpace(StreamScanner.java:651)
at com.ctc.wstx.sr.BasicStreamReader.readCDataPrimary(BasicStreamReader.java:4226)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTreeCommentOrCData(BasicStreamReader.java:3285)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2801)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1065)
at org.codehaus.stax2.ri.Stax2EventReaderImpl.nextEvent(Stax2EventReaderImpl.java:255)
at atg.adapter.gsa.sqlimport.ImportParserImpl.parseFirsPass(ImportParserImpl.java:112)
... 3 more

Solution:Create one .sh file  and execute that file which removes cntrl character.

echo 'starting '
tr [:cntrl:] ' ' <productCatalogExportData.xml> productCatalogExportData_withRemovedChars.xml


echo 'ending'
-----

Logs for StartSQLImport which won't checkin the workspace as part of   StartSQLImport  command execution

Example logs while importing the product catalog. 

The following logs  shows which won't check in the project as part of the import.
As data is long, we opted import process without checkin.
[info@2017-01-25 10:24:55.749] Phase 1 of 2: 100%
[info@2017-01-25 10:36:50.757] Phase 2 of 3: 10%

[info@2017-01-25 10:45:38.261] Phase 2 of 3: 20%

[info@2017-01-25 10:54:16.794] Phase 2 of 3: 30%

[info@2017-01-25 11:02:09.893] Phase 2 of 3: 40%

[info@2017-01-25 11:11:05.023] Phase 2 of 3: 50%

[info@2017-01-25 11:19:55.685] Phase 2 of 3: 60%

[info@2017-01-25 11:28:59.399] Phase 2 of 3: 70%

[info@2017-01-25 11:48:35.439] Phase 2 of 3: 80%

[info@2017-01-25 12:11:44.144] Phase 2 of 3: 90%

[info@2017-01-25 12:30:29.815] Phase 2 of 3: 100%

[info@2017-01-25 12:30:29.904] performing add/update/removes phase 3

[info@2017-01-25 12:46:43.728] Phase 3 of 3: 10%

[info@2017-01-25 13:00:20.402] Phase 3 of 3: 20%

[info@2017-01-25 13:14:11.638] imported 2,931,754 items in 18:35:43 hh:mm:ss (excluding checkin)

[info@2017-01-25 13:14:11.656] imported 2,931,754 items at 43.79 items/second

[info@2017-01-25 13:14:11.656] shutting down

.....
.......

Logs for StartSQLImport which checkin the workspace as part of   StartSQLImport  command execution

Other Repository Like SEO and Checking As part of Import iteself

[info@2020-12-05 04:46:48.026] created new workspace: workspace:76101
[info@2020-12-05 04:46:48.034] parsing input data

[info@2020-12-05 04:46:48.323] importing 400 items.

[info@2020-12-05 04:46:48.323] checking out versioned items in batch

[info@2020-12-05 04:46:49.338] performing add/update/removes

[info@2020-12-05 04:46:50.472] Phase 2 of 2: 100%

[info@2020-12-05 04:46:50.472] checkIn: workspace:76101


Manually Workspace checkin (product catalog )


1)After this, we have to import the new file using nohup command. will be imported into the product catalog.
2)But workspace is not checkeed in.
3) We have to manually check in the  product catalog assets .The following are the scripts are used to checkin the workspace. This will be working for the first. If we have custom tables, we need to run for those also.The below are purerly OOTB product catalog.

update  DBC_MANUFACTURER  set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp  ;
update   DCS_CATALOG   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
update   DCS_CATEGORY   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
update   DCS_CLOSE_QUALIF   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
update   DCS_FOLDER   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
update   DCS_GEN_FOL_CAT   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
update   DCS_MEDIA   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
update   DCS_PRICE_LIST   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
update   DCS_PRM_FOLDER   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
update   DCS_PROMOTION   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
update   SITE_CONFIGURATION   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
update   SITE_GROUP   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
commit;

update   DCS_PRODUCT    set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
commit;
update   DCS_SKU   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
commit;
update   DCS_SKU_LINK   set IS_HEAD =1 , VERSION_EDITABLE = 0 , CHECKIN_DATE = current_timestamp ;
commit;

update avm_workspace set checked_in = 1, ci_time = current_timestamp,userid ='admin',locked =0, editable =0, change_was ='SQL import' where ws_id in (select  workspace_id from dcs_catalog where rownum =1 );
commit;

Note:Here we can give directly current_timestamp as value. It will work.

Once all the version data(all repositories ) is imported using  the startSQLImport , data is available  PUB schema. After this We have to do full derployment using (useDirectSQL=true @Deployment Manager) .Then only data will be available at CAT/CATB(If configured CATB).So this startSQLImport  will be used for the initial import only.

Repository loader

Presetup:
Production deployment config file folder copy is required to  load the content config file data which holds the all file assets and and this config file should be accessible to BCC instance

1)This explains the initial import of file assets Like form production.
2)Used to import file assets into BCC where PUB schema is empty

The following components has to be changed.


1)/atg/epub/file/typemappers/PublishingTypeMapper
2)/atg/dynamo/service/loader/FileSystemMonitorServic
3)/atg/epub/file/VersionedLoaderEventListener
 Configuration at the compoents

1)/atg/epub/file/typemappers/PublishingTypeMapper
Implement the custom class and configure here
2)/atg/dynamo/service/loader/FileSystemMonitorServic

rootPath=
  
3)/atg/epub/file/VersionedLoaderEventListener

createProjects=true [“true” only when targets are existing and “false” loading using workspace]

The URL is
http://hostNumber:BCCportNumner\rl












Friday, 20 January 2017

ATG BCC Info


0)  The following ATG OOTB  modules will be used for BCC setup
 
DafEar.Admin,DCS-UI.Versioned, BIZUI, PubPortlet,DCS-UI.SiteAdmin.Versioned, SiteAdmin.Versioned,\
DCS.Versioned, DCS-UI, DAF.Endeca.Index.Versioned, DCS.Endeca.Index.Versioned, DCS.Endeca.Index.SKUIndexing,


1)Before doing BCC setup , we have to delete the following table in the  PUB schema.These scripts are already verified.


delete from DSI_SERVER_ID;
delete from DSS_SERVER_ID;
delete from EPUB_WF_SERVER_ID;
delete from EPUB_PROC_TASKINFO;
delete from EPUB_WORKFLOW_STRS;
delete from  epub_workflow_info;
delete  from epub_coll_workflow;
delete from EPUB_IND_WORKFLOW;

2)Agents removing at DB level.

 The following scripts removes the agents at DB level and verified also.

delete from EPUB_TR_AGENTS;
delete from EPUB_TARGET;
delete from EPUB_TL_TARGETS;
delete from EPUB_PRJ_TG_SNSHT;
delete from EPUB_PR_HISTORY;
delete from EPUB_AGENT_TRNPRT;
delete from EPUB_INCLUD_ASSET;
delete from EPUB_PRINC_ASSET;
delete from EPUB_AGENT;
delete from EPUB_PR_TG_STATUS;


3) Identify the project which modifies the asset using asset id(DB Script)

Script :: Need to run the below script at BCC DB

select workspace_id from dcs_sku where sku_id='733688474'
select * from avm_devline where id=14473
select * from epub_project where project_id='prj33181'


4) By pass the stage server in BCC


Generally, it will be used in Local system so that we can use only one set of schemas.

1)How to by pass the stage server in BCC ?
1) We have to remove the work flow from DB and on starting the server it will populate available work flow.
2) We have to remove the staging layer from run assembler. IN xx we have to remove from deploy-weblogic.xml file. (from local layer as well as from layer staging.) Build is required on removing this and also in server startup script also we have to remove.The file may be vary for different projects.Generally these arguments will be available where runAssember is invoking as part of build.

  <arg value="-layer"/>
  <arg value="staging"/>


5) REGISTER WORKFLOW DIRECTORY

If the we create the new workflow with different directory (other than /common) We are not ablet to see the project assets and state. So we need to override the CommerceActivitySource.properties initalize the workflow directory

workflowDirectories+=/feed/*


6) Fetch the all conflict projects


select * from epub_project where workspace in
(select name from avm_devline where id in
(select workspace_id from avm_asset_lock))

7) Find all conflicting projects for a particular asset

select * from epub_project where workspace in
(select name from avm_devline where id in
(select workspace_id from dcs_category where category_id = 'cat1234' and category_id in
(select repository_id from avm_asset_lock where descriptor_name='category')))



8) Finding project and workspace name based on product/asset

select * from dcs_product where product_id = '12345C' and is_head=1
select * from avm_workspace where ws_id in ('34114','34760','34760')
select * from epub_project where workspace in ('epub-prj229006','epub-prj234026')


9) Project State Change to Author


By executing the following scripts, we can change project state means move author state.
-- remove asset locks on the project. if any
delete from avm_asset_lock where workspace_id =
(select id from avm_devline where name =
(select workspace from epub_project where project_id = 'prj49001'));

-- change states. Locked to false and editable to true
--   locked to 0 and editable to 1
update epub_project
set locked=0
where project_id = 'prj49001';

update epub_project
set editable=1
where project_id = 'prj49001';

-- change states. Locked to false and editable to true
--   locked to 0 and editable to 1
update avm_workspace
set locked=0
where ws_id =
(select id from avm_devline where name =
(select workspace from epub_project where project_id = 'prj49001'));

update avm_workspace
set editable=1
where ws_id =
(select id from avm_devline where name =
(select workspace from epub_project where project_id = 'prj49001'));

-- finally change state to author which is 3 for all workflows
update epub_ind_workflow
set state=3
where process_id =
(select process_id from epub_process where project='prj49001');
commit;
Invalidate below repository caches after executing the above scripts
/atg/epub/PublishingRepository/
/atg/epub/version/VersionManagerRepository/



10) Complete Project delete from versioned

  Need to check this

-- Removing locks of the project if any
delete from avm_asset_lock where workspace_id in
(select id from avm_devline where name in
(select workspace from epub_project where project_id = '<Your Project ID>'));

-- delete history of the project
delete from EPUB_PR_HISTORY where project_id in
(select project_id from epub_project where project_id = '<Your Project ID>');

-- delete the project
delete from epub_project where project_id = '<Your Project ID>';

-- delete history of the process
delete from EPUB_PROC_HISTORY where process_id in
(select process_id from epub_process where project = '<Your Project ID>');

-- delete task information of process
delete from EPUB_PROC_TASKINFO where id in
(select process_id from epub_process where project = '<Your Project ID>');

-- delete states of project (if any)
delete from EPUB_WORKFLOW_STRS where id in
(select ID from EPUB_IND_WORKFLOW where process_id in
(select process_id from epub_process where project = '<Your Project ID>'));

delete  from EPUB_IND_WORKFLOW where process_id in
(select process_id from epub_process where project = '<Your Project ID>');

-- finally delete the process
delete from epub_process where project = '<Your Project ID>';

 

11) DELET LOCKED / ENTIRE PROJECT

 Need to validate the following one.

If the project has been locked or not in any states . Need to delete the following workflow or project using following Query:

If BCC instance is bounced while deploying a project to staging
we can get back the project previous state so that we can start from Author state


-- remove asset locks on the project. if any
delete from avm_asset_lock where workspace_id =
(select id from avm_devline where name =
(select workspace from epub_project where project_id = 'prj49001'));

-- change states. Locked to false and editable to true
-- locked to 0 and editable to 1
update epub_project
set locked=0
where project_id = 'prj49001';

update epub_project
set editable=1
where project_id = 'prj49001';

-- change states. Locked to false and editable to true
-- locked to 0 and editable to 1
update avm_workspace
set locked=0
where ws_id =
(select id from avm_devline where name =
(select workspace from epub_project where project_id = 'prj49001'));

update avm_workspace
set editable=1
where ws_id =
(select id from avm_devline where name =
(select workspace from epub_project where project_id = 'prj49001'));

-- finally change state to author which is 3 for all workflows
update epub_ind_workflow
set state=3
where process_id =
(select process_id from epub_process where project='prj49001');
commit;

Invalidate below repository caches
/atg/epub/PublishingRepository/


If BCC instance is bounced while deploying a project to production
we can get back the project previous state so that we can redeploy to
production.
-If project with workflow editCommerceAssets.wdl
--stuck while deploying to production

update epub_ind_workflow
set state=11
where process_id =
(select process_id from epub_process where project = 'prj49001');
commit;

-- For projects which are created by auto import workflow

-- If project with /Commerce/autoImportAssets.wdl workflow
-- stuck while production

update epub_ind_workflow
set state=10
where process_id =
(select process_id from epub_process where project = 'prj49001');
commit;

Invalidate only /atg/epub/PublishingRepository/


Completely delete a project
-- Removing locks of the project if any
delete from avm_asset_lock where workspace_id in
(select id from avm_devline where name in
(select workspace from epub_project where project_id = 'prj243002'))

-- delete history of the project
delete from EPUB_PR_HISTORY where project_id in
(select project_id from epub_project where project_id = 'prj243002');

-- delete the project
delete from epub_project where project_id = 'prj243002';

-- delete history of the process
delete from EPUB_PROC_HISTORY where process_id in
(select process_id from epub_process where project = 'prj49001');

-- delete task information of process
delete from EPUB_PROC_TASKINFO where id in
(select process_id from epub_process where project = 'prj49001');

-- delete states of project (if any)
delete  from EPUB_IND_WORKFLOW where process_id in
(select process_id from epub_process where project = 'prj49001');

-- finally delete the process
delete from epub_process where where project = 'prj49001';

commit;
---- Extra Sqls that may give more info --



12). Identification of the project names and projectIds based on resource like categoryId and producId



Syntax script

select PROJECT_ID,DISPLAY_NAME from epub_project where WORKSPACE in (select name from avm_devline where id in (select WORKSPACE_ID from ${resource table name} where ${id name} =’id value’))

Eg.,
select PROJECT_ID,DISPLAY_NAME from epub_project where WORKSPACE in (select name from avm_devline where id in (select WORKSPACE_ID from dcs_category where CATEGORY_ID ='cat20102'))


13) SNAPSHOT EXCEPTION


Any Snapshot related exception during the partial deployment need to forcely insert the snapshot id into the /atg/epub/DeploymentServer component

Q) How to get the last successful snapshot?

Execute the below query in the pub schema.

 select epub_target.display_name as "Target",
epub_prj_tg_snsht.snapshot_id as "Snapshot",
epub_project.display_name as "Project" from
epub_target, epub_project, epub_prj_tg_snsht
where
epub_prj_tg_snsht.project_id in
(
select project_id from epub_project where
workspace is not null and
checked_in = '1'
) and
epub_target.target_id = epub_prj_tg_snsht.target_id and
epub_prj_tg_snsht.project_id = epub_project.project_id
order by epub_project.checkin_date desc;

  [OR]

Select * from epub_PRJ_TG_SNSHT ORDER BY to_number(SNAPSHOT_ID) DESC;

or
 we can the snap shot from completed projects for stage as well as production.




14) BCC WorkBench Configuration

 Issue:On clincking the workbench url not redirecting to expected XM Workbench URL 

Solution: We change the following component

Atg/endeca/ApplicationConfiguration.properties

workbenchPort=0 (it can be empty also)
workbenchHostName=need to give host name(like abc.xy.com)


And also extended the class ApplicationConfiguration.java to override the method getWorkBenchURL().

  

15)In which component Data directory information will be configured

 

16)BCC Queries

Identification of workspace from project
select id from avm_devline where name = (select workspace from epub_project where project_id = 'prj48069');


17) SQL DEPLOYMENT

 SQL deployment is available in the following link


/atg/epub/DeploymentServer.properties

useDirectSQLReplication=true

/atg/epub/version/VersionManagerService.properties

replicationTransactionBatchSize=1000
maxReplicationThreadCount=9

 

18) BCC custom workflow info 

The following components involves in implementing custom workflow

1)ActivityManager
2) PublishingActivitySource
3) autoworkflow.wdl file
4)CommerceActivitySource
  hiddenWorkflowDirectories=/Commerce/deployment/*

 

 

19) BCC Project is stucked in Last state(Not done last step)

Solution: In Dyn/admin, Go the the following component.

/atg/epub/messaging/PublishingMessageSource/
  
Need to select the project and send Deployment complete the project
More inforamtion added in ATG error section .



20)Roll back the project.

We can roll back to a particular project by selecting target project in projects tab then click on Rollback option.
2)System navigates to other page, then select now option(to do immediately) .
3)Rollback values will be reflected at CATA/CATB not at PUB schema.



21)Display of any property values in BCC UI while associating to any other property. Need to configure as follow.
<item-descriptor name="xxx"   display-property="xxxName">

If we can give this, defaul the repository name and id  will be displayed.

  21)Use full References

https://docs.oracle.com/cd/E13188_01/jrockit/docs81/tuning/config.html#1010119


22)Fetching the table records using the project id

Using the following query ,we can fetch the records from product table using the project name

select * from dcs_product where WORKSPACE_ID in ((select id from avm_devline where name in (select WORKSPACE from epub_project where DISPLAY_NAME ='projectName')));

Wednesday, 18 January 2017

ATG FULL deployment process

Need to  do the following steps before starting the full deployment.
  1.  Enable the  useDirectSQLReplication property value at DeploymentServer component and the component path at BCC dyn admin is atg/epub/DeploymentServer/useDirectSQLReplication=true
  2. Then go topology mappings then give the cata and catb and /or core schema names with in the prefix form files with . also as schemaName. (.estore_prod.)
  3. While doing any deployment errors occur, the execute the following script at the BCC schema. delete from epub_deployment.  (before exceute select * from epub_deployment).
  4. Need to provide the CATA previliage access to PUB schema.So need to execute the following script at catA to grant the access to PUB  schema.
Begin
FOR x IN (SELECT table_name FROM user_tables)
LOOP
EXECUTE IMMEDIATE 'GRANT all ON ' || x.table_name || ' TO BCC_schema_name';
END LOOP;
END;

/

The whole process time depends on system configuration and data. If the data is 4 lakhs, it will  take around 5 to 6 hrs.


PUB Schema and CATA schema are on different machines(hosts). 

Even though DB link is created between these two, full deployment is not working. We will get the following error on querying at SQL developer.

Error:
 ORA-22992: cannot use LOB locators selected from remote tables
22992. 00000 -  "cannot use LOB locators selected from remote tables"
*Cause:    A remote LOB column cannot be referenced.
*Action:   Remove references to LOBs in remote tables.


How to Query using DB link on different schema

select * from table1@temp_remote;
temp_remote is DB link.



Error: delete all deployment meta-data on each
agent server before attempting to re-use it as a part of a new target.

Snapshot ID '11906' is not valid for target 'Production'. Please verify that each agent server in target '11906' has a valid snapshot, or delete all deployment meta-data on each
agent server before attempting to re-use it as a part of a new target. 

Solution:
1. you need to delete the files under data folder - home server (store and pub)
Ex(home\servers\local-pub-xx\Publishing\deployment\data)


Monday, 16 January 2017

ATG BCC issues and solutions

The following section describes the  day to day ATG issues and solutions.

1)Problem: Workflow is not loading properly on starting BCC Server due protocol.jar as follows.


/atg/epub/workflow/process/WorkflowProcessManager    ---    atg.process.ProcessException: Process /Common/commonWorkflow.wdl not found in registry

Solution:set the pre_classpath as follows in BCC server startup.

set PRE_CLASSPATH=C:\XX\Oracle\Middleware\Oracle_Home\user_projects\domains\test_domain\lib\protocol.jar

Error due to jar files 

Error :  
**** Error Fri Nov 27 08:14:35 IST 2020 1606445075382 / Unable to resolve component /atg/commerce/catalog/ProductCatalog java.lang.NoClassDefFoundError: atg/adapter/version/PropertyCheckoutDependency
**** Error Fri Nov 27 08:14:35 IST 2020 1606445075382 / at atg.adapter.version.VersionItemDescriptor.addPropertyCheckoutDependency(VersionItemDescriptor.java:10900)
**** Error Fri Nov 27 08:14:35 IST 2020 1606445075382 / at atg.adapter.gsa.Table.addVersionTableExtensions(Table.java:3174)
**** Error Fri Nov 27 08:14:35 IST 2020 1606445075382 / at atg.adapter.gsa.Table.addTableInvalidationListeners(Table.java:2410)
**** Error Fri Nov 27 08:14:35 IST 2020 1606445075382 / at atg.adapter.gsa.GSAItemDescriptor.addTableInvalidationListeners(GSAItemDescriptor.java:11613)
**** Error Fri Nov 27 08:14:35 IST 2020 1606445075382 / at atg.adapter.gsa.GSARepository.addTableInvalidationListeners(GSARepository.java:6206)
**** Error Fri Nov 27 08:14:35 IST 2020 1606445075382 / at atg.adapter.version.VersionRepository.addTableInvalidationListeners(VersionRepository.java:2478)
**** Error Fri Nov 27 08:14:35 IST 2020 1606445075382 / at atg.adapter.gsa.xml.TemplateParser.addDocumentToTemplate(TemplateParser.java:734)
**** Error Fri Nov 27 08:14:35 IST 2020 1606445075382 / at a



Solution:
This the problem with ear .After coping the _DAS_slib_sclasses.jar from another box(working successfully), not getting this error.This might be  temporary solution. Identified by verifying the size of the generated jar in ear(standalone ear)

/opt/EARs/1_16_2018_Ears/xx-pub.ear/atglib/_DAS_slib_sclasses.jar

Permanent solution need to check.Might be issue at DAS classes.jar file


2) Error :Class not found exception

**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager Error executing action checkInProject[] on process instance 53500001; reverting the process instance to its original state CONTAINER:atg.process.ProcessException; SOURCE:atg.epub.PublishingException: Rolling back current transaction due to a runtime exception: java.lang.NoSuchMethodError: atg.versionmanager.impl.WorkspaceRepositoryImpl.isUpToDate(I)Z.
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.epub.workflow.process.action.CheckinProject.executeAction(CheckinProject.java:115)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.action.ActionImpl.execute(ActionImpl.java:419)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.executeAction(ProcessManagerService.java:14001)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.takeIndividualTransition(ProcessManagerService.java:13408)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.takeIndividualTransition(ProcessManagerService.java:13453)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveIndividualEventMessage(ProcessManagerService.java:11878)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveIndividualEventMessage(ProcessManagerService.java:11573)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveMessage(ProcessManagerService.java:11383)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveMessage(ProcessManagerService.java:11341)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.ElementManager.deliverMessage(ElementManager.java:317)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.InputPort.onMessage(InputPort.java:190)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.InputDestination.onMessage(InputDestination.java:397)
**** Warning Fri Nov 27 14:52:22 IST 2020 1606468942953 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.local.MessageConsumerImpl.deliverMessage(MessageConsumerImpl.java:296)

Solution:It is also jar issue _Publishing.base_slib_sclasses.jar
/opt/EARs/1_16_2018_Ears/xx-pub.ear/atglib/_Publishing.base_slib_sclasses.jar

3) Error: On starting estore and BCC instances  ,got the following errors due to port conflict.


**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization    ---     java.rmi.server.ExportException: Port already in use: 0; nested exception is:
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            java.net.BindException: Address already in use: JVM_Bind
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:328)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:236)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:207)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:310)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:252)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:150)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:136)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at atg.core.net.RegisteringUnicastRemoteObject.<init>(RegisteringUnicastRemoteObject.jav
a:121)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at atg.server.rmi.TestImpl.<init>(TestImpl.java:86)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at atg.server.rmi.RmiInitialization.doStartService(RmiInitialization.java:343)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at atg.nucleus.GenericService.startService(GenericService.java:561)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1726)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:139
7)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:928)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:667)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:648)
**** Error      Tue Jan 03 18:05:31 IST 2017    1483446931783   /atg/dynamo/server/RmiInitialization            at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:493)


Solution: Same RMI port is used in store and BCC. Need to configure properly at server layes of Configuration component.

Not able to login using admin credentials at dyn/admin.

Solution:Delete the record from dsa table and restart the server. It will come automattcally.

delete from  das_account where account_name='admin';


4)Prodblem:While triggering CMS, got the following error

java.lang.NoSuchMethodError: atg.adapter.gsa.GSAItem.getInternalRepositoryId()Ljava/lang/String;
        at atg.adapter.gsa.GSAWeakItemCache.storeItem(GSAWeakItemCache.java:384)
        at atg.adapter.gsa.GSAWeakItemCache.storeItem(GSAWeakItemCache.java:368)
        at atg.adapter.gsa.ItemCache.putItemInWeakCache(ItemCache.java:1574)
        at atg.adapter.gsa.GSALocalItemCache.removeItemInternal(GSALocalItemCache.java:564)
        at atg.adapter.gsa.GSALocalItemCache.removeItemInternal(GSALocalItemCache.java:524)
        Truncated. see log file for complete stacktrace

Solution: It is DAS/classes.jar issue.

I copied the jar file from existing system. Directly I changed in  ear itself (in store  ear).
Sample i mentioned the path /opt/EARs/xx-store.ear/atglib/_DAS_slib_sclasses.jar.
Issue is resovled and CMS is successfully trigerried.

5)BCC Project is stucked in Last state(Not done last step)

Issue :The BCC project is completed some steps like Author, staging completed and Production completed but not deployed the assets in BCC.Means last step is pending.




The error at back end

**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager Error executing action checkInProject[] on process instance 2300182; reverting the process instance to its original state CONTAINER:atg.process.ProcessException; SOURCE:atg.epub.PublishingException: Rolling back current transaction due to a runtime exception: java.lang.NullPointerException.
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.epub.workflow.process.action.CheckinProject.executeAction(CheckinProject.java:115)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.action.ActionImpl.execute(ActionImpl.java:419)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.executeAction(ProcessManagerService.java:14001)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.takeIndividualTransition(ProcessManagerService.java:13408)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveIndividualEventMessage(ProcessManagerService.java:11878)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveIndividualEventMessage(ProcessManagerService.java:11573)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveMessage(ProcessManagerService.java:11383)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveMessage(ProcessManagerService.java:11341)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.ElementManager.deliverMessage(ElementManager.java:316)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.InputPort.onMessage(InputPort.java:190)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.InputDestination.onMessage(InputDestination.java:397)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.local.MessageConsumerImpl.deliverMessage(MessageConsumerImpl.java:296)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.local.TopicImpl.deliverToRecipients(TopicImpl.java:113)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.local.DestinationImpl.deliverMessage(DestinationImpl.java:260)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.local.TopicPublisherImpl.publish(TopicPublisherImpl.java:163)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.OutputDestination.sendMessage(OutputDestination.java:203)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.OutputPort.sendMessage(OutputPort.java:162)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.ElementManager.sendMessage(ElementManager.java:385)
----------
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager Caused by :atg.epub.PublishingException: Rolling back current transaction due to a runtime exception: java.lang.NullPointerException.
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.epub.project.ProjectMethods.checkin(ProjectMethods.java:913)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.epub.project._Project_Impl.checkin(_Project_Impl.java:62)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.epub.workflow.process.action.CheckinProject.executeAction(CheckinProject.java:94)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.action.ActionImpl.execute(ActionImpl.java:419)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.executeAction(ProcessManagerService.java:14001)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.takeIndividualTransition(ProcessManagerService.java:13408)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveIndividualEventMessage(ProcessManagerService.java:11878)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveIndividualEventMessage(ProcessManagerService.java:11573)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveMessage(ProcessManagerService.java:11383)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.process.ProcessManagerService.receiveMessage(ProcessManagerService.java:11341)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.ElementManager.deliverMessage(ElementManager.java:316)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.InputPort.onMessage(InputPort.java:190)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.patchbay.InputDestination.onMessage(InputDestination.java:397)
**** Warning Thu Sep 15 21:20:41 CEST 2016 1473967241796 /atg/epub/workflow/process/WorkflowProcessManager at atg.dms.local.MessageConsumerImpl.deliverMessage(MessageConsumerImpl.java:296)


Solution: In Dyn/admin, Go the the following component.

/atg/epub/messaging/PublishingMessageSource/

Need to select the project and send Deployment complete the project
Release a Stalled Deployment
Resolution of project deployment—successful and unsuccessful—depends on delivery of a Success or Failure status message to the project’s workflow. Under rare circumstances, this message is never delivered., and the project stalls indefinitely in the workflow’s Wait for staging deployment completion or Wait for production deployment completion stage. When this happens, the ATG Business Control Center Admin Console shows no deployment information for this project as active or pending.
You can resolve this problem in the Dynamo Administration Component Browser as follows:
Navigate to this component:
/atg/epub/messaging/PublishingMessageSource
Construct a message to send to the stalled deployment, by setting the following fields:
Select Project: Choose the project whose deployment is stalled.
Select Target: Choose the deployment’s target site.
Select Success or Failure State: Choose the message to send, Success or Failure. A Success message advances the workflow; a Failure message reverts the workflow to its previous stage, Approve for production deployment, or Approve for staging deployment. In general, it is safest to send a Failure message and retry the deployment.
Click Send Deployment Complete Message.

6)Exception: META - DATA EXCEPTION

In full deployment:
Snapshot ID '11906' is not valid for target 'Production'. Please verify that each agent server in target '11906' has a valid snapshot, or delete all deployment meta-data on each
agent server before attempting to re-use it as a part of a new target.

Solution:Need to delete the files under data folder - home server (store and pub)
Ex(home\servers\local-pub-xx\Publishing\deployment\data)


7)Not able to deploy the project (journal.idx file missed at store front 
PublishAgent folder)

The journal.idx file is removed by some one from server location. 
Opt/oracle/commerce/envs/stg2/ATG-Data/servers/app1/publishingAgent/deploymentConfig/data/config/journel/journal.idx file is missing



 Solution:

We have annalized  that the  journal.idx  file was removed by some one from the above mentioned path(in Error).
Once we restarted the  ConfigFileSystem component(at Store not BCC ), again new files and folder is crated . Then able to deploy this project.





Log Error:


**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer      ---     CONTAINER:atg.deployment.common.DeploymentException: error activating deployment on target:agent 'Production:app1' : ERROR_ACTIVATE : An exception was encountered switching data stores.; SOURCE:atg.deployment.agent.SwitchableException
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.common.ResourceUtil.exception(ResourceUtil.java:445)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.server.Deployment.agentException(Deployment.java:5203)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.server.Deployment.activateDeployment(Deployment.java:5338)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.server.Deployment.run(Deployment.java:1971)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.lang.Thread.run(Thread.java:745)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer      Caused by :atg.deployment.agent.SwitchableException
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.vfs.switchable.SwitchableLocalFileSystem.performSwitch(SwitchableLocalFileSystem.java:974)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.agent.DeploymentAgent.switchDataStores(DeploymentAgent.java:1965)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.agent.DeploymentAgent.activateDeployment(DeploymentAgent.java:1853)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.agent.DeploymentAgent.handleCommand(DeploymentAgent.java:1052)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.agent.RMIClientAgentTransport.sendCommand(RMIClientAgentTransport.java:191)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.reflect.GeneratedMethodAccessor1298.invoke(Unknown Source)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.lang.reflect.Method.invoke(Method.java:606)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.Transport$2.run(Transport.java:202)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.Transport$2.run(Transport.java:199)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.security.AccessController.doPrivileged(Native Method)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.Transport.serviceCall(Transport.java:198)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.security.AccessController.doPrivileged(Native Method)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.lang.Thread.run(Thread.java:745)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer      Caused by (#2):java.io.FileNotFoundException: /opt/oracle/commerce/envs/stg2/ATG-Data/servers/app1/PublishingAgent/deploymentconfig/data/config/journal/journal.idx (No such file or directory)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.io.FileInputStream.open(Native Method)

**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.io.FileInputStream.<init>(FileInputStream.java:146)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.io.FileInputStream.<init>(FileInputStream.java:101)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.core.io.FileUtils.copyFile(FileUtils.java:352)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.vfs.switchable.SwitchableLocalFileSystem.backupJournal(SwitchableLocalFileSystem.java:1060)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.vfs.switchable.SwitchableLocalFileSystem.performSwitch(SwitchableLocalFileSystem.java:972)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.agent.DeploymentAgent.switchDataStores(DeploymentAgent.java:1965)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.agent.DeploymentAgent.activateDeployment(DeploymentAgent.java:1853)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.agent.DeploymentAgent.handleCommand(DeploymentAgent.java:1052)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at atg.deployment.agent.RMIClientAgentTransport.sendCommand(RMIClientAgentTransport.java:191)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.reflect.GeneratedMethodAccessor1298.invoke(Unknown Source)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.lang.reflect.Method.invoke(Method.java:606)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.Transport$2.run(Transport.java:202)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.Transport$2.run(Transport.java:199)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.security.AccessController.doPrivileged(Native Method)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.Transport.serviceCall(Transport.java:198)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.security.AccessController.doPrivileged(Native Method)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer              at java.lang.Thread.run(Thread.java:745)
**** Error      Wed Aug 03 13:06:42 CEST 2016   1470222402757   /atg/epub/DeploymentServer
**** Warning    Wed Aug 03 13:07:10 CEST 2016   1470222430615   /atg/epub/DeploymentServer      Failed to connect to agent 'app2'.  This agent has no deployment responsibilities and its absence will not adversely affect data application.  The server will continue attempts to intialize the connection.  Set loggingDebug to true for continued exception and stacktrace logging.
**** Warning    Wed Aug 03 13:07:11 CEST 2016   1470222431841   /atg/userprofiling/InternalProfileUserAuthority Attempt to log into account admin with incorrect password
**** Warning    Wed Aug 03 13:07:14 CEST 2016   1470222434841   /atg/dynamo/servlet/sessiontracking/GenericSessionManager/iqdQFdhAReb6Tt3F4DgRKRXANIDn1A5Zv8z1JRnOtxfvYCH9v1aC!-733712767!1470222424128/atg/dynamo/security/InternalProfileIdentityManager      Authentication failed for login admin
<Aug 3, 2016 1:07:25 PM CEST> <Warning> <Socket> <BEA-000449> <Closing the socket, as no data read from it on 10.41.156.29:51,340 during the configured idle timeout of 5 seconds.>
**** Warning    Wed Aug 03 13:07:40 CEST 2016   1470222460532   /atg/epub/DeploymentServer      Failed to connect to agent 'app2'.  This agent has no deployment responsibilities and its absence will not adversely affect data application.  The server will continue attempts to intialize the connection.  Set loggingDebug to true for continued exception and stacktrace logging.
<Aug 3, 2016 1:07:41 PM CEST> <Info> <Health> <BEA-310002> <46% of the total memory in the server is free.>
**** Warning    Wed Aug 03 13:08:10 CEST 2016   1470222490615   /atg/epub/DeploymentServer      Failed to connect to agent 'app2'.  This agent has no deployment responsibilities and its absence will not adversely affect data application.  The server will continue attempts to intialize the connection.  Set loggingDebug to true for continued exception and stacktrace logging.
**** Warning    Wed Aug 03 13:08:40 CEST 2016   1470222520531   /atg/epub/DeploymentServer      Failed to connect to agent 'app2'.  This agent has no deployment responsibilities and its absence will not adversely affect data application.  The server will continue attempts to intialize the connection.  Set loggingDebug to true for continued exception and stacktrace logging.
**** Warning    Wed Aug 03 13:09:10 CEST 2016   1470222550615   /atg/epub/DeploymentServer      Failed to connect to agent 'app2'.  This agent has no deployment responsibilities and its absence will not adversely affect data application.  The server will continue attempts to intialize the connection.  Set loggingDebug to true for continued exception and stacktrace logging.
**** Warning    Wed Aug 03 13:09:40 CEST 2016   1470222580532   /atg/epub/DeploymentServer      Failed to connect to agent 'app2'.  This agent has no deployment responsibilities and its absence will not adversely affect data application.  The server will continue attempts to intialize the connection.  Set loggingDebug to true for continued exception and stacktrace logging.
**** Warning    Wed Aug 03 13:10:10 CEST 2016   1470222610614   /atg/epub/DeploymentServer      Failed to connect to agent 'app2'.  This agent has no deployment responsibilities and its absence will not adversely affect data application.  The server will continue attempts to intialize the connection.  Set loggingDebug to true for continued exception and stacktrace logging.
**** Warning    Wed Aug 03 13:10:40 CEST 2016   1470222640532   /atg/epub/DeploymentServer      Failed to connect to agent 'app2'.  This agent has no deployment responsibilities and its absence will not adversely affect data application.  The server will continue attempts to intialize the connection.  Set loggingDebug to true for continued exception and stacktrace logging.
 

8) ProtletException BCC Screens broken without doing anything.

     Issue:BCC screen is broken.

Solution : Oracle gave Patch.

One more solution

Solution : Given at Oracle forum (Mentioned as increase to -Xss value.)


As per Oracle support, increased the -Xss value to 1536k java argument during server startup resolved this issue. I would like to thank Oracle support for their prompt support and resolution on this


 Temporary solution: Restart the BCC server. It will work.

Error:

**** Error      Fri May 13 06:56:42 CEST 2016   1463115402804   /atg/portal/portletstandard/ATGContainerService PortletInvokerImpl.render() - Error while dispatching portlet.       javax.portlet.PortletException
**** Error      Fri May 13 06:56:42 CEST 2016   1463115402804   /atg/portal/portletstandard/ATGContainerService         at org.apache.pluto.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:58)
**** Error      Fri May 13 06:56:42 CEST 2016   1463115402804   /atg/portal/portletstandard/ATGContainerService         at atg.portlet.DispatchPortlet.handleRender(DispatchPortlet.java:175)
**** Error      Fri May 13 06:56:42 CEST 2016   1463115402804   /atg/portal/portletstandard/ATGContainerService         at atg.portlet.GenericPortletService.render(GenericPortletService.java:581)
**** Error      Fri May 13 06:56:42 CEST 2016   1463115402804   /atg/portal/portletstandard/ATGContainerService         at atg.portlet.service.filter.PortletFilter.dispatch(PortletFilter.java:139)
**** Error      Fri May 13 06:56:42 CEST 2016   1463115402804   /atg/portal/portletstandard/ATGContainerService         at atg.portlet.service.filter.PortletFilter.doFilter(PortletFilter.java:165)
**** Error      Fri May 13 06:56:42 CEST 2016   1463115402804   /atg/portal/portletstandard/ATGContainerService         at atg.portlet.service.filter.FilterChainService.doFilter(FilterChainService.java:151)
**** Error      Fri May 13 06:56:42 CEST 2016   1463115402804   /atg/portal/portletstandard/ATGContainerService         at atg.portlet.service.filter.DropletEventFilter.doFilter(DropletEventFilter.java:277)
**** Error      Fri May 13 06:56:42 CEST 2016   1463115402804   /atg/portal/portletstandard/ATGContainerService         at atg.portlet.service.filter.FilterChainService.doFilter(FilterChainService.java:151)

9)BCC WorkBench Configuration

 Issue:On clincking the workbench url not redirecting to expected XM Workbench URL 

Solution: We change the following component

Atg/endeca/ApplicationConfiguration.properties

workbenchPort=0 (it can be empty also)
workbenchHostName=need to give host name(like abc.xy.com)


And also extended the class ApplicationConfiguration.java to override the method getWorkBenchURL().

 

8) Not Able to deploy the Project(NullpointerException)


Error Log:


**** Error      Tue Aug 16 07:08:10 EDT 2016    1471345690524   /atg/dynamo/servlet/sessiontracking/GenericSessionManager/yr6TBSfhNYjumOyPfZ4Ie3tj3eXt5oudWp4vx12zZs2_JfElvAZh!1767238723!1471345403874/atg/remote/assetmanager/epub/service/PublishingService
[Flex Messaging] 08/16/2016 07:08:10.553 [ERROR] [Message.General] Exception when invoking service 'remoting-service': flex.messaging.MessageException: flex.messaging.MessageException: atg.flex.service.RemoteOperationException : java.lang.NullPointerException
  incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
    operation = getProjectAssetsInConflict
    clientId = 5CF2BAE8-AC2D-CF56-19D1-AFEF19A1A087
    destination = /atg/remote/assetmanager/epub/service/PublishingService
    messageId = 9DBD28B2-E37D-176D-42DD-930984C6B191
    timestamp = 1471345690484
    timeToLive = 0
    body = null
    hdr(DSId) = 5CF23857-611C-C701-2A49-188627DBDCBB
    hdr(DSEndpoint) = atg-amf
  Exception: flex.messaging.MessageException: flex.messaging.MessageException: atg.flex.service.RemoteOperationException : java.lang.NullPointerException
        at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:225)
        at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1503)
        at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:884)
        at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121)
        at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
        at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
        at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
        at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146)
        at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278)
        at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:322)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
       at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
        at atg.service.configuration.ResponseWrappingConfiguration.invokeFilterChainWithPossibleWrapping(ResponseWrappingConfiguration.java:460)
        at atg.servlet.pipeline.TailPipelineServlet.service(TailPipelineServlet.java:174)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:275)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at com.xx.endeca.servlet.xxAssemblerPipelineServlet.service(xxAssemblerPipelineServlet.java:437)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.http.CookieBufferServlet.service(CookieBufferServlet.java:119)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.userprofiling.ExpiredPasswordServlet.service(ExpiredPasswordServlet.java:383)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:228)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:696)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.epub.servlet.LocaleServlet.service(LocaleServlet.java:84)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.search.servlet.SearchClickThroughServlet.service(SearchClickThroughServlet.java:418)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:191)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:161)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:512)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.service.preview.PreviewCommandServlet.service(PreviewCommandServlet.java:192)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:230)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:367)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.epub.servlet.ProjectServlet.service(ProjectServlet.java:109)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.epub.servlet.PublishingSecurityServlet.service(PublishingSecurityServlet.java:80)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:150)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:213)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:697)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2452)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at com.xx.servlet.pipeline.xxCheckCheckoutPageAccessServlet.service(xxCheckCheckoutPageAccessServlet.java:282)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:461)
        at com.xx.userprofiling.xxProfileRequestServlet.service(xxProfileRequestServlet.java:214)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at com.xx.servlet.pipeline.xxSecurePageservlet.service(xxSecurePageservlet.java:971)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at com.xx.servlet.pipeline.xxCheckSessionExpiration.service(xxCheckSessionExpiration.java:248)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at com.xx.servlet.pipeline.xxDeviceDetectionServlet.service(xxDeviceDetectionServlet.java:340)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at com.xx.servlet.pipeline.xxCookieServlet.service(xxCookieServlet.java:286)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.ondemand.servlet.pipeline.NetscalerServlet.service(NetscalerServlet.java:92)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.pipeline.CachePreventionServlet.service(CachePreventionServlet.java:141)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:491)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:298)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:392)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:113)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:234)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.pipeline.SecurityServlet.service(SecurityServlet.java:200)
        at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
        at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1281)
        at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:950)
        at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:272)
        at atg.filter.dspjsp.PageFilter.innerDoFilter(PageFilter.java:348)
        at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:206)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3388)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3354)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
        at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2238)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2154)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2132)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
        at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:312)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:264)
Caused by: atg.flex.service.RemoteOperationException: flex.messaging.MessageException: atg.flex.service.RemoteOperationException : java.lang.NullPointerException
        at atg.flex.messaging.services.TransactionalJavaAdapter.invoke(TransactionalJavaAdapter.java:206)
        at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
        ... 106 more
Caused by: flex.messaging.MessageException: atg.flex.service.RemoteOperationException : java.lang.NullPointerException
        at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:447)
        at atg.flex.messaging.services.TransactionalJavaAdapter.invoke(TransactionalJavaAdapter.java:189)
        ... 107 more
Caused by: atg.flex.service.RemoteOperationException: java.lang.NullPointerException
        at atg.remote.assetmanager.epub.service.PublishingService.getProjectAssetsInConflict(PublishingService.java:1368)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:421)
        ... 108 more
Caused by: java.lang.NullPointerException
        at atg.repository.RepositoryUtils.getItemDisplayPropertyName(RepositoryUtils.java:1293)
        at atg.repository.RepositoryUtils.getItemDisplayPropertyName(RepositoryUtils.java:1252)
        at atg.repository.RepositoryUtils.getItemDisplayPropertyPath(RepositoryUtils.java:1228)
        at atg.adapter.version.VersionItemDescriptor.getItemDisplayPropertyDescriptorForQuery(VersionItemDescriptor.java:8456)
        at atg.adapter.version.VersionItemDescriptor.addDisplayNameToQuery(VersionItemDescriptor.java:8404)
        at atg.adapter.version.VersionItemDescriptor.getUpToDateAssetsSQL(VersionItemDescriptor.java:8240)
        at atg.adapter.version.VersionItemDescriptor.getOutOfDateAssetsInWorkspaceSQL(VersionItemDescriptor.java:8149)
        at atg.adapter.version.VersionItemDescriptor.getWorkspaceVersionIDs(VersionItemDescriptor.java:7462)
        at atg.adapter.version.VersionRepository.getVersionIDsInWorkspace(VersionRepository.java:6662)
        at atg.adapter.version.VersionRepository.getWorkingVersions(VersionRepository.java:6255)

 


Solution: Need to restart the BCC machine.


Oracle Gave to check

When creating an asset, merchandising tries to resolve one of the keys in the autoAddAssetTypescollection from the /atg/remote/assetmanager/workbench/service/WorkbenchServiceto a Nucleus component that represents the actual repository for that specific asset. The asset repository name to the actual repository mapping is defined in the /atg/dynamo/service/AssetResolver/ component.
When the mapping defined in the /atg/remote/assetmanager/workbench/service/WorkbenchService.autoAddAssetTypes collection key does not match an Asset Source Name defined in the /atg/dynamo/service/AssetResolver/ component, a null is returned in place of the actual repository, which causes the NullPointerException.

10)Targetter issue resolution 

Error and screen shot
**** Error      Thu Jan 14 19:33:23 IST 2016    1452780203009   /atg/dynamo/servlet/sessiontracking/GenericSessionManager/TxlAR21vB2EVskK6dnzbO7GlRrUsDC-DNhy--Q-8FBNytW9ByE_c!847993606!1452777368944/atg/web/assetmanager/editor/targeting/TargeterFormHandler     I/O exception reading file /opt/Oracle/Middleware/Oracle_Home/user_projects/domains/bcc_domain/ATG-Data/Publishing/versionFileStore/PublishingFiles/fa100/0/_xxtartegerName_xproperties._fa100470#9
<Jan 14, 2016 7:33:23 PM IST> <Warning> <Socket> <BEA-000449> <Closing the socket, as no data read from it on 172.21.16.16:55,023 during the configured idle timeout of 5 seconds.>

solution
 

 First check targetter in the following table
 select * from epub_file_asset where FILENAME='
xxtartegerName.properties' and IS_HEAD=1
If ther targetter is available in different environment,copy the targtter in the current location.
Set the size also accordingly(size of the available targetter,copied from the other targgetter) as follows.

update epub_file_asset set size_bytes=650 where filename='
xxtartegerName.properties' and is_head=1 and file_asset_id='fa100470'
 Here 470 is the file_asset_Id in the table
epub_file_asset

 
11). WorKFlow registration exception 

ServerId cleanup and WorkFlowProcessManager


   First cleanup the following tables in that pub schema where the local server going to run on top of that.
delete from dss_server_id;
delete from dsi_server_id;
delete from epub_wf_server_id;
delete from epub_coll_workflow;
delete from epub_workflow_info;
      commit;

1  If possible put the WorkFlowProcessManager.xml with my server name and drpport
2 And configure the Protocol.jar if u r using weblogic server.And add that in the environment variables like class path.
3 This should fix the issue.

12). On changing the environment and environment corrupted

select * from epub_int_prj_hist;
select * from epub_int_user;

select * from epub_project;

select * from dpi_user;

update epub_int_prj_hist set SEQUENCE_NUM='2' where PROJECT_ID='prj380008' and USER_ID='portal-admin';



13) SQLIntegrityConstraintViolationException

 

Problem: SQLIntegrityConstraintViolations exception happens some times. This is the data corrupted.See the below following error.

RCA:Child tables asset version is mismatch with parent table asset version. Before executing DB script, we need to identity the how many  child tables are corrupted and those rows need to be removed .The latest  asset version should match the parent table asset_version property.


Solution: We have to execute the DB script to resolve this issues

**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939335   /atg/multisite/SiteRepository-ver       SQL Statement Failed: [++SQLInsert++]
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939335   /atg/multisite/SiteRepository-ver        INSERT INTO xx_country_payment_methods(id,asset_version,seq_num,payment_methods)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939335   /atg/multisite/SiteRepository-ver        VALUES(?,?,?,?)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939335   /atg/multisite/SiteRepository-ver       -- Parameters --
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939335   /atg/multisite/SiteRepository-ver       p[1] = {pd} 800008 (java.lang.String)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939335   /atg/multisite/SiteRepository-ver       p[2] = {pd} 19 (java.lang.Integer)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939335   /atg/multisite/SiteRepository-ver       p[3] = {pd} 0 (java.lang.Integer)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939335   /atg/multisite/SiteRepository-ver       p[4] = {pd: paymentMethods} 900001 (java.lang.String)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939335   /atg/multisite/SiteRepository-ver       [--SQLInsert--]
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939335   /atg/multisite/SiteRepository-ver
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService        ---     CONTAINER:atg.repository.RepositoryException; SOURCE:java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (xx_PUB_I18N_QC_2.SYS_C0094078) violated
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.adapter.gsa.GSAItemDescriptor.updateItem(GSAItemDescriptor.java:7692)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.adapter.version.VersionRepository.updateItem(VersionRepository.java:1506)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.adapter.secure.GenericSecuredMutableRepository.updateItem(GenericSecuredMutableRepository.java:391)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.remote.assetmanager.editor.service.RepositoryAssetServiceImpl.doUpdateAsset(RepositoryAssetServiceImpl.java:696)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.remote.assetmanager.editor.service.AssetServiceImpl.updateAsset(AssetServiceImpl.java:678)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.remote.assetmanager.editor.service.AssetEditorService.updateAsset(AssetEditorService.java:683)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at java.lang.reflect.Method.invoke(Method.java:606)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:421)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.flex.messaging.services.TransactionalJavaAdapter.invoke(TransactionalJavaAdapter.java:189)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1503)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:884)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:322)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.service.configuration.ResponseWrappingConfiguration.invokeFilterChainWithPossibleWrapping(ResponseWrappingConfiguration.java:460)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.servlet.pipeline.TailPipelineServlet.service(TailPipelineServlet.java:174)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/Rep
ositoryAssetService                at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:275)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remote/assetmanager/editor/service/RepositoryAssetService                at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
**** Error      Thu Sep 22 17:35:39 IST 2016    1474545939336   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-1270/atg/remo

 

14) Not able to change any property at BCC :Purging service.

 
Error on modifying any property in the BCC.

 


RCA:Purging service is running backend.

Solution: Backend Purging service is running.This service locks all the properties. If we check at CLientLockManager , we can see GlobalAssetEditLock . So we stopped the Purging service. Then it is working fine.

Enable the log of CLientLockManager to debug here we can see GlobalAssetEditLock key which will be added by Purging service.


Error at back end**** Error      /atg/commerce/catalog/ProductCatalog    ---     atg.versionmanager.exceptions.VersionException: The current operation cannot proceed: another process is blocking changes to assets. Please try again later.
**** Error     /atg/commerce/catalog/ProductCatalog            at atg.versionmanager.impl.WorkspaceRepositoryImpl.checkOut(WorkspaceRepositoryImpl.java:836)
**** Error     /atg/commerce/catalog/ProductCatalog            at atg.adapter.version.VersionItemDescriptor.getVersionItem(VersionItemDescriptor.java:2456)
**** Error     /atg/commerce/catalog/ProductCatalog            at atg.adapter.version.CurrentVersionItem.getVersionItem(CurrentVersionItem.java:1099)
**** Error    /atg/commerce/catalog/ProductCatalog            at atg.adapter.version.CurrentVersionItem.setPropertyValue(CurrentVersionItem.java:374)
**** Error    /atg/commerce/catalog/ProductCatalog            at atg.adapter.secure.GenericSecuredRepositoryWorkingVersionItem.setPropertyValue(GenericSecuredRepositoryWorkingVersionItem.java:115)
 ..............

.........


 Error      Thu Apr 21 07:56:47 EDT 2016    1461239807490   /atg/commerce/catalog/ProductCatalog    ---     atg.versionmanager.exceptions.VersionException: The current operation cannot proceed: another process is blocking changes to assets. Please try again later.
**** Error      Thu Apr 21 07:56:47 EDT 2016    1461239807490   /atg/commerce/catalog/ProductCatalog            at atg.versionmanager.impl.WorkspaceRepositoryImpl.checkOut(WorkspaceRepositoryImpl.java:836)
**** Error      Thu Apr 21 07:56:47 EDT 2016    1461239807490   /atg/commerce/catalog/ProductCatalog            at atg.adapter.version.VersionItemDescriptor.getVersionItem(VersionItemDescriptor.java:2456)
**** Error      Thu Apr 21 07:56:47 EDT 2016    1461239807490   /atg/commerce/catalog/ProductCatalog            at atg.adapter.version.CurrentVersionItem.getVersionItem(CurrentVersionItem.java:1099)
**** Error      Thu Apr 21 07:56:47 EDT 2016    1461239807490   /atg/commerce/catalog/ProductCatalog            at atg.adapter.version.CurrentVersionItem.setPropertyValue(CurrentVersionItem.java:374)
**** Error      Thu Apr 21 07:56:47 EDT 2016    1461239807490   /atg/commerce/catalog/ProductCatalog            at atg.adapter.secure.GenericSecuredRepositoryWorkingVersionItem.setPropertyValue(GenericSecuredRepositoryWorkingVersionItem.java:115)

How to debug:  This we can debug using ClientLockManager compnent.


 If we observe GlobalAssetEditLock in the client lock manager at dyn/admin, then all BCC assets are locked.Then we have to restart the BCC server and also need to observe that scheduled time. If it is wrongly configured, we have to change the settings and restart the server.


15) Not able to logIn BCC as Password don't know.

Soltuion:Changed Password and salt  in dpi_user  table by knowing password and salt where we are able to login

 

16)fileMarker cause NullPointerException 

 **** Error    Thu Nov 27 20:53:23 IST 2016    1317098203971    /atg/deployment/DeploymentManager     item = fileMarker:mark100007 cause = java.lang.NullPointerException

**** Error    Thu Nov 27 20:53:23 IST 2016    1317098203971    /atg/deployment/DeploymentManager        at atg.epub.file.VersionFilePropertyDescriptor.verifyLatestFileVersion(VersionFilePropertyDescriptor.java:353)

**** Error    Thu Nov 27 20:53:23 IST 2016    1317098203971    /atg/deployment/DeploymentManager        at atg.epub.file.VersionFilePropertyDescri


Solution: 
Delete all your epub datas and import it again, This issue will arise missing of some required data's, Check your epub tables and if you know the exact value you can directly put that into required tables if not then enable logDebug=true for your repository and DeploymentManager component and find out the table which causing this exception.


17)
Error: "/com/xx/yy/xxComponent" is configured for deployment to this target by another Content Administration culuster named  "management".you must ensure that only one Content Administrator cluster   is responbsible for each repository in a given target.


Solution:
One more BCC instance is configured with the same name. We shouldn’t point 2 BCC instances to the same database.(need to validate this intances)



18)BCC table owner ship issues.(tablePrefix,tableSuffix) :Table ownership
   Especially when a core table is refered from catalog then if there is no permission for schema from other schema. We will get issues.

If the value is fetching from core, then the highlighted properites should point to Core schema name.

                  <table name="xx_promo_info" type="auxiliary" id-column-names="sku_id" >
                  <attribute name="tablePrefix" value="DBLINKNAME.XCORE."/>
                  <attribute name="metaDataSchemaPattern" value="XCORE"/>
                  <property name="xxxiscountPrice" column-names="sku_discount_price" data-type="double" cache-mode="disabled">
                        <attribute name="uiwritable" value="false"/>
                        <attribute name="propertySortPriority" value="-13"/> 
                  </property>
            </table>


If there is any DBlink problem, we can use the SYNONYM.But we never used this.

SYNONYM say CREATE SYNONYM DCS_INVENTORY for DCS_INVENTORY@DB_LINK