On Sat, Mar 9, 2024 at 6:08 PM Nathaniel Belles <[email protected]> wrote:
> Hello, > > I’m currently trying to write a simple extension for guacamole that allows > for push notifications through web hooks. The extension of course relies a > lot on guacamole's event listeners. The documentation shows a very simple > example (TutorialListener.java) of these event listeners which I have added > to the `guacamole-client/extensions/` folder, compiled and then added the > extension jar to the extensions folder of my guacamole instance. This > example runs just fine and produces debugging output as expected. But when > I try to extend the functionality, even just to store a copy of the > `AuthenticationProvider` object from the event after including the > `import org.apache.guacamole.net.auth.AuthenticationProvider;` line at the > top of the file, I am able to compile the extension but then at runtime I > get the following: `Unexpected internal error: > 'org.apache.guacamole.net.auth.AuthenticationProvider > org.apache.guacamole.net.event.AuthenticationFailureEvent.getAuthenticationProvider()'`. > > Could you share the full output of the runtime error or Java stack trace? > I started looking through the code and I have found that there is a > `.getAuthenticationProvider()` function in the > `AuthenticationFailureEvent.java` file so I know that I’m using the write > function. I also found similar instances of the > `AuthenticationFailureEvent` being used in the `EventLoggingListener.java` > file and tried to replicate the imports and logic used for the > guacamole-client. Do I need to do something special to get proper access to > the object types? > > Aside from the import, are you including the required dependencies, and the correct version(s) of them, in your pom.xml file? -Nick
