Failed OTK Upgrade due to java.lang.reflect.UndeclaredThrowableException
search cancel

Failed OTK Upgrade due to java.lang.reflect.UndeclaredThrowableException

book

Article ID: 278523

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

The OTK upgrade is failing with the following errors:

                <l7:Mapping action="NewOrUpdate" errorType="InvalidResource" srcId="44456a7ffb5e659f10fac58b6798d43f" type="POLICY">
                    <l7:Properties>
                        <l7:Property key="ErrorMessage">
                            <l7:StringValue>Error attempting to save or update the Policy with id = '44456a7ffb5e659f10fac58b6798d43f'.  Message: java.lang.reflect.UndeclaredThrowableException</l7:StringValue>
                        </l7:Property>
                        <l7:Property key="SK_ReadOnlyEntity">
                            <l7:BooleanValue>true</l7:BooleanValue>
                        </l7:Property>
                    </l7:Properties>
                </l7:Mapping>

Environment

OTK 4.6.0 (upgrading to 4.6.2)

Cause

The JAVA_HOME and SSG_JAVA_HOME environment variables were not set on the Gateway node.

Resolution

1. On the gateway node, run these commands:

export JAVA_HOME=/opt/SecureSpan/JDK
export SSG_JAVA_HOME=/opt/SecureSpan/JDK

2. Run the OTK upgrade