Hawk agent fails to start with "java.lang.reflect.InvocationTargetException" exception.

Hawk agent fails to start with "java.lang.reflect.InvocationTargetException" exception.

book

Article ID: KB0092747

calendar_today

Updated On:

Products Versions
TIBCO ActiveSpaces -
Not Applicable -

Description

Description:

Hawk agent will not start. Error reported:


java.lang.reflect.InvocationTargetException
        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 com.tibco.as.space.agent.HawkAgentConsole.run(HawkAgentConsole.java:590)
        at com.tibco.as.space.agent.HawkAgentConsole.main(HawkAgentConsole.java:38)
Caused by: java.lang.UnsatisfiedLinkError: Native library not found. Tried to load tibrvnativesd64 and tibrvnativesd
        at com.tibco.tibrv.Tibrv.loadNativeLibrary(Tibrv.java:392)
        at com.tibco.tibrv.Tibrv.<clinit>(Tibrv.java:79)
        at com.tibco.as.ami.AmiMicroSession.openSession(AmiMicroSession.java:144)
        at com.tibco.as.ami.AmiMicroSessionStarter.open(AmiMicroSessionStarter.java:54)


Symptoms:
Hawk agent throws "java.lang.reflect.InvocationTargetException" exception.
Cause:
Mismatch in the class path. 

Issue/Introduction

Hawk agent fails to start with "java.lang.reflect.InvocationTargetException" exception.

Resolution

1). Before starting as-hawkagent, the LD_LIBRARY_PATH must be updated.

# RV_HOME, AS_HOME must be set too.


export LD_LIBRARY_PATH=$RV_HOME/lib/64:$RV_HOME/lib:AS_HOME/lib:$LD_LIBRARY_PATH

2). The as-hawkagent parameter -Djava.ext.dirs must include $RV_HOME/lib/64 first.

e.g., java -d64 -Djava.ext.dirs=$RV_HOME/lib/64:$RV_HOME/lib:$HAWK_HOME/lib -jar $AS_HOME/lib/as-hawk-agent.jar -metaspace Metaspace_Name -hawk_rv_service 7474 -hawk_rv_network ";" -hawk_rv_daemon "tcp:7474"

3). The Hawk settings must match the settings in the TIBCO_HOME/tra/domain/<domainname>/hawkagent.cfg file (property -rvd_session).


parameters: -hawk_rv_service, -hawk_rv_network,  -hawk_rv_daemon

Additional Information