Java223 Scripting - Script with Java on openHAB [5.0.1.0,6.0.0.0)

It’s not an issue, merely a deep debug log (this is why I used the trace log level).
The bundle tries to inject openHAB binding value in the script class, and for doing so, checks all class members (by their name). As the name (here, “logger”), doesn’t correspond to anything in the available openHAB bindings values, it logs a trace.

It could be null if the user doesn’t use the generated class “Items” as expected (for example, the user instantiate the Items class by himself instead of using the automatic injection provided by the bundle).
Therefore, I made this log suggesting the user to use the proper way.

You are right : there is no details when having an error using a transformation in a sitemap.
But, when using a transformation profile script, the script root error cause is properly logged. So this is probably a little omission.

As it is a global openHAB issue, I made a PR for openhab-core.