Search
Calendar
December 2017
S M T W T F S
« Sep    
 12
3456789
10111213141516
17181920212223
24252627282930
31  
Your widget title
Archives

Posts Tagged ‘TibrvException’

PostHeaderIcon TibrvException[error=4,message=Tibrv not initialized]

Case

In a JUnit test, I send a message on a TibcoRV, but I get the following error:

TibrvException[error=4,message=Tibrv not initialized]

Fix

In order, proceed as this:

  1. check an RVD daemon is running 😉
  2. check tibrvj.jar is in your classpath 😉
  3. check the instanciation of transport layer new TibrvRvdTransport(service, network, daemon); is done within your public void testXXX(), and not in the setUp().

PostHeaderIcon TibrvException[error=901,message=Library not found: tibrvjsd]

Stacktrace

TibrvException[error=901,message=Library not found: tibrvjsd]

and below:

java.lang.UnsatisfiedLinkError: no tibrvjsd in java.library.path

The error appears also with tibrv instead of tibrvjsd.

Context

Mule ESB 2.2.1 using TibcoRV 8.1.2, under Windows XP, with Java 1.5

Explanation – Fix

  • Explanation:
    • the Mule tries to load a DLL, here tibrvjsd.dll. Its path should be available in the property java.library.path.
    • Unlike what may be found on the net, the right DLL cannot be found under
      %TIBRV_HOME%/lib, where only jars are available, not DLLs.
  • Backup the file %MULE_HOME%/conf/wrapper.conf
  • Edit it
  • After the lines
# Java Native Library Path (location of .DLL or .so files)
wrapper.java.library.path.1=%LD_LIBRARY_PATH%
wrapper.java.library.path.2=%MULE_HOME%/lib/boot

add the line:

wrapper.java.library.path.3=%TIBRV_HOME%/bin