How to fix Error java.lang.UnsatisfiedLinkError: com.tibco.as.space.impl.NativeImpl.browserGetSpaceDef

How to fix Error java.lang.UnsatisfiedLinkError: com.tibco.as.space.impl.NativeImpl.browserGetSpaceDef

book

Article ID: KB0071460

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.6.1

Description

The following error is shown when running application in BE studio local, but the same application runs fine from TIBCO Admin with the same Tibco Home.
main       INFO  [cluster.om.daoprovider                  ] - Initialized [ASDaoProvider]
 main       INFO  [cluster.om.membermediator               ] - Initializing [ASGroupMemberMediator]
 main       FATAL [container.standalone                    ] - com.tibco.as.space.impl.NativeImpl.browserGetSpaceDef(J)Lcom/tibco/as/space/impl/serializer/ASByteBuffer;
java.lang.UnsatisfiedLinkError: com.tibco.as.space.impl.NativeImpl.browserGetSpaceDef(J)Lcom/tibco/as/space/impl/serializer/ASByteBuffer;
	at com.tibco.as.space.impl.NativeImpl.browserGetSpaceDef(Native Method)
	at com.tibco.as.space.impl.ASBrowser.getSpaceDef(ASBrowser.java:184)
	at com.tibco.as.space.impl.ASBrowser.<init>(ASBrowser.java:89)
	at com.tibco.as.space.impl.ASMetaspace.browse(ASMetaspace.java:416)
	at com.tibco.as.space.impl.ASMetaspace.getSpaceMembers(ASMetaspace.java:872)
	at com.tibco.cep.runtime.service.dao.impl.tibas.ASGroupMemberMediator.fetchNativeMembers(SourceFile:148)
	at com.tibco.cep.runtime.service.cluster.gmp.impl.AbstractGroupMemberMediator.updateAllMembers(AbstractGroupMemberMediator.java:106)
	at com.tibco.cep.runtime.service.cluster.gmp.impl.AbstractGroupMemberMediator.init(AbstractGroupMemberMediator.java:59)
	at com.tibco.cep.runtime.service.cluster.MultiAgentCluster.init(MultiAgentCluster.java:110)
	at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initCluster(RuleServiceProviderImpl.java:826)
	at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(RuleServiceProviderImpl.java:299)
	at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:169)
	at com.tibco.cep.container.standalone.BEMain.main(SourceFile:71)
System exit requested by thread [main] with status: -1
 
The reported error is related to the local environment settings.

Environment

All

Resolution

Make sure the AS_HOME path is set in environment variables. The OS library path is configured in a Linux system with the environment variable LD_LIBRARY_PATH.

Create a startup script that sets all parameters properly (setEnv.bat for Windows) or update the user profile to point to the correct version.

e.g. (startup script):
export AS_HOME=/tibco/as/2.4
export LD_LIBRARY_PATH=$AS_HOME/lib:$LD_LIBRARY_PATH

 

Issue/Introduction

This article explains how to fix the error java.lang.UnsatisfiedLinkError: com.tibco.as.space.impl.NativeImpl.browserGetSpaceDef when running in studio local, but running well on TibcoAdministrator with same Tibco Home.