At last it worked!!!
IT turned out there is a setting on the shared library called "Use an isolated classloader for this shared library" (On the Environment -> Shared Libraries option on the menu on the left) . We changed that and it started working. This means that reports are now working, it also means that loading parameters now work.