That is actually a very clever point that I didn't consider, but unfortunately both arguments for /setParameter/ method must be a String. It will not accept an Integer. And this part is copy/paste exactly from the Guacamole guide, so I don't think that's the part that causes this error.

The exception tells that this operation:


/GuacamoleSocket socket = new ConfiguredGuacamoleSocket(//
//                    new InetGuacamoleSocket("http://exampledockerpage.mydomain.com";, 8443),//
//                    config//
//            );/

/
/

causes it to be thrown. Description of /InetGuacamoleSocket /constructor//shows that I should provide Guacamole proxy server and the port, but should those be the same as in the address that I can access Guacamole Clinet panel at?


W dniu 31.08.2020 o 14:41, Nick Couchman pisze:
On Mon, Aug 31, 2020 at 8:14 AM Michał Kalinowski <[email protected]> wrote:

    Hello,

    Recently I was trying to integrate Guacamole into my Spring
    application, but I encountered a Guacamole Exception just like in
    the description.

    I create tunnel just like in guide:

    protected GuacamoleTunnel doConnect(HttpServletRequest request)
             throws GuacamoleException {

             // Create our configuration
             GuacamoleConfiguration config = new GuacamoleConfiguration();
             config.setProtocol("vnc");
             config.setParameter("hostname", "localhost");
             config.setParameter("port", "5901");


I think this is your issue, here - the port number should be an integer value, not a string.

-Nick

Reply via email to