On 3/15/24 07:07, Vieri wrote:
On Friday, March 15, 2024 at 02:59:01 PM GMT+1, Nick Couchman
<[email protected]> wrote:
2024-03-15 07:34:08,879 [https-openssl-apr-8543-exec-8] DEBUG
o.a.g.rest.RESTExceptionMapper - Unexpected error in REST endpoint.
java.lang.NullPointerException: null
at java.io.Reader.<init>(Reader.java:78)
at java.io.InputStreamReader.<init>(InputStreamReader.java:97)
at
org.apache.guacamole.rest.patch.PatchRESTService.readResourceAsString(PatchRESTService.java:69)
at
org.apache.guacamole.rest.patch.PatchRESTService.getPatches(PatchRESTService.java:113)
at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
.Sorry about that, didn't go back and look at the original. It looks like the
expected data isn't making it to the input stream, which seems to indicate that
the data is getting dropped before it hits the Tomcat server. This seems to me
to be something outside of the Guacamole stack itself - something
system-related, or perhaps a firewall or Web Application Firewall (WAF) that
might be blocking the traffic?
No problem. Thanks for looking into it.
If it were a WAF or FW issue I'm guessing a Tomcat restart wouldn't solve the
problem immediately... but it does.
As of the system I don't know where to look. Still, isn't it odd that
restarting the Tomcat service solves the problem? Could it have anything to do
with open file descriptors?
The location where that exception is occurring is within the part of
Guacamole that reads the .jar files of extensions, specifically related
to reading HTML patch files. The error shown in the stacktrace indicates
that some extension has an HTML patch declared in its guac-manifest.json
that does not actually exist in the extension.
Do you have a custom extension present that might have a
guac-manifest.json containing one or more incorrect paths to HTML patches?
If not, the only other possible cause would be modification of the
extension .jar while the webapp is running, which could cause cached
portions of the .jar to no longer align with the actual contents on disk.
- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]