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()
.