Streaming deploy fails with Component service loading failed error

Streaming deploy fails with Component service loading failed error

book

Article ID: KB0074803

calendar_today

Updated On:

Products Versions
TIBCO Streaming -

Description

We are getting this error while running a test case from the command line using command:
  mvn test -DTest={testname}
but this test is running fine in SBStudio.
[INFO] [dtm] INFO: Deploy tool version: [TIBCO Distributed Transactional Memory Platform 10.6.0 (build 2005210958)] starting at [Wed 
Jun 03 23:40:34 IST 2020]
[INFO] [dtm] INFO: Node version: [TIBCO StreamBase Runtime 10.5.0 (build 1911061437)]
[INFO] [dtm] INFO: Starting com.tibco.ep.buildmavenplugin.surefire.Runner on node A.cluster1 ...
[INFO] [dtm] INFO: com.tibco.ep.buildmavenplugin.surefire.Runner started on JVM com_tibco_ep_buildmavenplugin_surefire_Runner0 on node 
A.cluster1.
[INFO] [A.cluster1] No user-defined Logback configuration, using product default configuration
[ERROR] [A.cluster1] Component service loading failed
[ERROR] [A.cluster1] java.lang.IncompatibleClassChangeError: Mismatch detected for type com.tibco.ep.security.dtm.realm.local.Local
Principal, version ''. Changed values:
[ERROR] [A.cluster1] Field com.tibco.ep.security.dtm.realm.local.LocalPrincipal::failedLoginCount was added: Field com.tibco.ep.
security.dtm.realm.local.LocalPrincipal::autoLockoutStartTimeMsecs was added.
What is the problem?

Issue/Introduction

Operating system configuration requirements

Resolution

StreamBase Studio does not use Maven to invoke JUnit tests, but instead has its own integration to JUnit and knows what install location it was started from in order to find the other TIBCO Streaming libraries. The command-line 'mvn' environment uses the user PATH environment variable. This error is caused by having two or more different versions of the TIBCO Streaming installation in the PATH environment variable.

Check the user PATH for directories from two or more versions of TIBCO Streaming and make sure after editing that there is only one version available.

The expected path contains directories:
  tibco/sb-cep/10.6/jdk/bin;
  tibco/sb-cep/10.6/bin64;
  tibco/sb-cep/10.6/bin;
  tibco/sb-cep/10.6/distrib/tibco/bin;
  tibco/sb-cep/10.6/sdk/mvn/bin;

(You may optionally have an alternative Java JDK on the path.)

See the TIBCO Streaming product documentation:
  TIBCO Streaming > Installation Guide
sections:
  Installing on Windows
  Installing on macOS
  Installing on Linux
  StreamBase-Configured Shells
  Command Line Maven

 

Additional Information

10.6.0 Installation Guide