On Thu, Jul 25, 2019 at 8:45 AM tucky kong <[email protected]> wrote:

> According to your advice, I wrote my extension with JAX-RS. It worked
> until I tried with guacamole 1.0.0. Since then, I got an error 500 with the
> following content:
>
> {"message":"Unexpected internal 
> error","translatableMessage":{"key":"Unexpected internal 
> error","variables":null},"statusCode":null,"expected":null,"type":"INTERNAL_ERROR"}
>
> Logs give:
> ERROR o.a.g.rest.RESTExceptionMapper - Unexpected internal error: null for 
> uri: http://localhost/guacamole/api/ext/prometheus/metrics
> DEBUG o.a.g.rest.RESTExceptionMapper - Unexpected error in REST endpoint.
> com.sun.jersey.api.NotFoundException: null for uri: 
> http://localhost/guacamole/api/ext/prometheus/metrics
>
> what I'm concerned about is that with guacamole 0.9.14 when I tried to access 
> /api/ext endpoint, I had a 405 error. With guacamole 1.0.0 I get an error 500 
> with the following logs:
> ERROR o.a.g.rest.RESTExceptionMapper - An internal error occurred, but did 
> not contain an error message. Enable debug-level logging for details.
> DEBUG o.a.g.rest.RESTExceptionMapper - Unexpected error in REST endpoint.
> javax.ws.rs.WebApplicationException: null
>
>
Well, there's a null value somewhere that there shouldn't be.  There should
be some better log messages somewhere that point you to the exact line of
code where you're having issues.


> I compiled my extension with java 1.6 and 1.7. It runs with TomCat 8.5.
>
>
I don't know how related to the error you're seeing this is, but in
Guacamole 1.0.0 we raised the minimum Java version required to 1.8.  1.8
has been out for a LONG time, and itself won't be supported much longer, so
we thought it was pretty safe to move up to that.  You might try with JDK
1.8 or better and see if that works.

-Nick

>

Reply via email to