Posts Tagged ‘TibrvException’
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:
- check an RVD daemon is running 😉
- check
tibrvj.jar
is in your classpath 😉 - check the instanciation of transport layer
new TibrvRvdTransport(service, network, daemon);
is done within yourpublic void testXXX()
, and not in thesetUp()
.
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