Invalid token - invalid request BLR at offset 340 function F_LRTRIM is not defined

巧了我就是萌 提交于 2019-12-11 15:27:10

问题


I am trying to synchronize two Firebird databases with each other. First of all, I already configured that the synchronization will be one-way. Therefore, one database is the Source-DB and the other is the target-DB.

To start a synchronization I use IBReplicator! When I start the synchronization, I get the error:

Exception: Invalid token
invalid request BLR at offset 340
function F_LRTRIM is not defined 
module name or entrypoint could not be found

I started searching for the cause of the problem. What I already checked:

  • .dll files exist in the firebird directory
  • Firebird version is 32 - bit
  • IBExpert displays the UDF in the UDF Section of the database.

I read that it could be a problem when there is a mismatch between Firebird Server version and .dll file version. But I don't know how to verify the versions.

And I wanted to search for a .conf file to check the path for the UDF file (.dll) but I didn't find it. I only found the firebird.conf file and I already set the UDFAccess to Full.

I would really appreciate if someone could help me. I wasted a huge amount of time in this problem.


回答1:


The error means that Firebird can't find the entrypoint or library when the function is executed. This means that

  1. The library can't be found: it is not on the (library) path or in one of the folders listed in the UdfAccess configuration
  2. The library was found, but it is 32 bit and you're running 64 bit (or its 64 bit and you're running 32 bit)
  3. The library was found, but doesn't have the entrypoint for the UDF.

Your problem seems to be the first, and the solution is to add the location of the UDF to the UdfAccess configuration. Given the comments, you should use

UdfAccess = Restrict UDF

Which will only allow UDF libraries from the UDF directory of your Firebird installation. If needed you can list multiple directories separated by ;.

You should never use UdfAccess = Full, it is unsafe as it can possibly be used to compromise your system with any library on the (library) path of your system.



来源:https://stackoverflow.com/questions/52056878/invalid-token-invalid-request-blr-at-offset-340-function-f-lrtrim-is-not-defin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!