Service initialization issue when we deploy the application due to Salesforce plugin activity error.

Service initialization issue when we deploy the application due to Salesforce plugin activity error.

book

Article ID: KB0083583

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Salesforce.com 2.5.0

Description

Sometimes there occurs a Service initialization issue due to Salesforce plugin activity when an application is deployed on Administrator. The same code works on Design time but gives random errors on Runtime. Genrally, this issue logs "Activity not yet configured.: java.lang.StackOverflowError" error. Detailed logs follow.

Caused by: java.lang.Exception: Error in [HpsmSalesforceService Processes/Main Process/CreateUpdateIncident_Main.process/UpsertIncident2Appcloud]
Activity not yet configured.: java.lang.StackOverflowError
    at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute(Utils.java:101)
    at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute(Utils.java:101)
    at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute(Utils.java:101)
    at org.apache.axis.wsdl.symbolTable.Utils.getNodeNameQName(Utils.java:248)
    at org.apache.axis.wsdl.symbolTable.SchemaUtils.processChildElementNode(SchemaUtils.java:752)
    at org.apache.axis.wsdl.symbolTable.SchemaUtils.processSequenceNode(SchemaUtils.java:631)
    at org.apache.axis.wsdl.symbolTable.SchemaUtils.getContainedElementDeclarations(SchemaUtils.java:358)

Issue/Introduction

Service initialization issue when we deploy the application due to Salesforce plugin activity error for TIBCO ActiveMatrix BusinessWorks Plugin for Salesforce.com 2.5.0

Environment

All Environment

Resolution

This issue is caused due to stack overflow. Each Java thread reserves memory for the execution stack. If the stack space is too small and an application resources too deeply, then this error will be reported. To resolve this issue

1). Increase the stack size based on your current values.
    
2). Adjust the value of property 'java.thread.stack.size' in Application.tra file, which is under Domain_home\domainName\application\ApplicationName folder and then restart your process.
       Example:  java.thread.stack.size=1024K
    
3). Increase the min and max heap size for the respective application and restart your process.
        Example: java.heap.size.max=1024M