Java version of as-agent fails to start.

Java version of as-agent fails to start.

book

Article ID: KB0089109

calendar_today

Updated On:

Products Versions
TIBCO ActiveSpaces -
Not Applicable -

Description

Description:
ASException INVALIDP_ARG thrown when staring as-agent.

P { margin-bottom: 0.08in; }
Symptoms:
C:\tibco\as\2.1\bin>java -jar C:\tibco\as\2.1\lib\as-agent.jar -metaspace D2CWMS_WA_LOCAL -discovery "tcp://schelwa-w530:55000" -listen

"tcp://schelwa-w530:55000" -remote_listen "tcp://schelwa-w530:55051" -name WaveOpSeeder1 -data_store C:\Customers\Temp\WMS\Run\Activespaces -debug 6 -log C:\Customers\Temp\WMS\Run\Activespaces\WaveO

pSeeder1.log

****************************************************************

TIBCO ActiveSpaces Agent

Enterprise Edition. Version: 2.1.2.012 26-Jun-2013 SVN Rev.19187

Copyright(c) 2008-2013 TIBCO Software Inc. All rights reserved

****************************************************************

Could not connect to metaspace: INVALID_ARG (command_line_arg_invalid - arg=-connect_timeout)

com.tibco.as.space.ASException: INVALID_ARG (command_line_arg_invalid - arg=-connect_timeout)

        at Native.Common::parseArgs(Common.cpp:726)

        at Native.API_Metaspace_Connect(ApiMetaspace.cpp:22)

        at Native.Java_com_tibco_as_space_impl_NativeImpl_connect(MetaspaceMessage.cpp:34)

        at com.tibco.as.space.impl.NativeImpl.connect(Native Method)

        at com.tibco.as.space.impl.ASMetaspace.<init>(ASMetaspace.java:148)

        at com.tibco.as.space.agent.AgentConsole.run(AgentConsole.java:316)

        at com.tibco.as.space.agent.AgentConsole.main(AgentConsole.java:44)

Cause:
This is the result of a jar mismatch.

Issue/Introduction

Java version of as-agent fails to start.

Resolution

Check the PATH/LD_LIBRARY_PATH to see if it points to the correct ActiveSpaces lib folder. This usually happens when you run ActiveSpaces but the PATH points to a different ActiveSpaces version.

Another solution is use parameter –Djava.ext.dirs and point to the ActiveSpaces lib folder. For example,

java -Djava.ext.dirs=C:\svnsrc\WMtibco2010\branches\WA-IR4\lib.java\;C:\tibco\as\2.1\lib -jar C:\tibco\as\2.1\lib\as-agent.jar -metaspace D2CWMS_WA_LOCAL -discovery "tcp://schelwa-w530:55000" -listen "tcp://schelwa-w530:55000" -remote_listen "tcp://schelwa-w530:55051" -name WaveOpSeeder1 -data_store C:\Customers\Temp\WMS\Run\Activespaces -debug 3 -log C:\Customers\Temp\WMS\Run\Activespaces\WaveOpSeeder1.log