Spent a little more time debugging. I decided to use the 
guacamole-client/Dockerfile to try and build the extension using the builder 
portion of the docker container in hopes that it would provide a consistent 
build environment. I was able to build the extension without the problematic 
line. When I add back the problematic line, it actually threw a compilation 
error, unlike before. I tried a few other variations of storing different 
variable types and they all throw similar errors about being unable to find the 
symbol. 

The full error is below:

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] 
/tmp/guacamole-docker-BUILD/extensions/guacamole-notifier/src/main/java/org/apache/guacamole/event/Notifier.java:[32,87]
 cannot find symbol
  symbol:   method getAuthenticationProvider()
  location: class org.apache.guacamole.net.event.AuthenticationFailureEvent
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for guacamole-client 1.5.4:
[INFO] 
[INFO] guacamole-client ................................... SUCCESS [ 22.159 s]
[INFO] guacamole-common ................................... SUCCESS [ 18.192 s]
[INFO] guacamole-ext ...................................... SUCCESS [ 13.470 s]
[INFO] guacamole-common-js ................................ SUCCESS [ 27.115 s]
[INFO] guacamole .......................................... SUCCESS [01:03 min]
[INFO] extensions ......................................... SUCCESS [  0.218 s]
[INFO] guacamole-auth-duo ................................. SUCCESS [  4.289 s]
[INFO] guacamole-auth-header .............................. SUCCESS [  1.649 s]
[INFO] guacamole-auth-jdbc ................................ SUCCESS [  0.190 s]
[INFO] guacamole-auth-jdbc-base ........................... SUCCESS [  4.586 s]
[INFO] guacamole-auth-jdbc-mysql .......................... SUCCESS [  2.951 s]
[INFO] guacamole-auth-jdbc-postgresql ..................... SUCCESS [  2.054 s]
[INFO] guacamole-auth-jdbc-sqlserver ...................... SUCCESS [  2.056 s]
[INFO] guacamole-auth-jdbc-dist ........................... SUCCESS [  1.801 s]
[INFO] guacamole-auth-json ................................ SUCCESS [  4.449 s]
[INFO] guacamole-auth-ldap ................................ SUCCESS [  5.090 s]
[INFO] guacamole-auth-quickconnect ........................ SUCCESS [  3.933 s]
[INFO] guacamole-auth-sso ................................. SUCCESS [  0.195 s]
[INFO] guacamole-auth-sso-base ............................ SUCCESS [  1.797 s]
[INFO] guacamole-auth-sso-cas ............................. SUCCESS [  6.892 s]
[INFO] guacamole-auth-sso-openid .......................... SUCCESS [  2.625 s]
[INFO] guacamole-auth-sso-saml ............................ SUCCESS [  2.814 s]
[INFO] guacamole-auth-sso-dist ............................ SUCCESS [  2.498 s]
[INFO] guacamole-auth-totp ................................ SUCCESS [  4.915 s]
[INFO] guacamole-notifier ................................. FAILURE [  2.274 s]
[INFO] guacamole-history-recording-storage ................ SKIPPED
[INFO] guacamole-vault .................................... SKIPPED
[INFO] guacamole-vault-base ............................... SKIPPED
[INFO] guacamole-vault-ksm ................................ SKIPPED
[INFO] guacamole-vault-dist ............................... SKIPPED
[INFO] guacamole-example .................................. SKIPPED
[INFO] guacamole-playback-example ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:22 min
[INFO] Finished at: 2024-03-10T03:52:47Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on 
project guacamole-notifier: Compilation failure
[ERROR] 
/tmp/guacamole-docker-BUILD/extensions/guacamole-notifier/src/main/java/org/apache/guacamole/event/Notifier.java:[32,87]
 cannot find symbol
[ERROR]   symbol:   method getAuthenticationProvider()
[ERROR]   location: class 
org.apache.guacamole.net.event.AuthenticationFailureEvent
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :guacamole-notifier


> On Mar 9, 2024, at 7:06 PM, Nathaniel Belles <[email protected]> 
> wrote:
> 
> Somehow managed to reply with the wrong email… Sorry. Here’s the message I 
> sent:
> 
> I am currently using Guacamole 1.5.4. Here’s the whole pom.xml
> 
> <project xmlns="http://maven.apache.org/POM/4.0.0 
> <http://maven.apache.org/POM/4.0.0>"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
> <http://www.w3.org/2001/XMLSchema-instance>"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> <http://maven.apache.org/POM/4.0.0> http://maven.apache.org/maven-v4_0_0.xsd 
> <http://maven.apache.org/maven-v4_0_0.xsd>">
> 
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>org.apache.guacamole</groupId>
>     <artifactId>guacamole-notifier</artifactId>
>     <packaging>jar</packaging>
>     <version>1.5.4</version>
>     <name>guacamole-notifier</name>
> 
>     <properties>
>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>     </properties>
> 
>     <build>
>         <plugins>
> 
>             <!-- Written for Java 8 -->
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <version>3.3</version>
>                 <configuration>
>                     <source>1.8</source>
>                     <target>1.8</target>
>                 </configuration>
>             </plugin>
> 
>         </plugins>
>     </build>
> 
>     <dependencies>
> 
>         <!-- Guacamole Extension API -->
>         <dependency>
>             <groupId>org.apache.guacamole</groupId>
>             <artifactId>guacamole-ext</artifactId>
>             <version>1.5.4</version>
>             <scope>provided</scope>
>         </dependency>
> 
>         <!-- Slf4j API -->
>         <!-- This is needed only if your listener wants to 
>                 write to the Guacamole web application log -->
>         <dependency>
>             <groupId>org.slf4j</groupId>
>             <artifactId>slf4j-api</artifactId>
>             <version>1.7.7</version>
>             <scope>provided</scope>
>         </dependency>
> 
>     </dependencies>
> 
> </project>
> 
> -Nathaniel 
> 
>> On Mar 9, 2024, at 6:55 PM, Nick Couchman <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> On Sat, Mar 9, 2024 at 6:34 PM Nathaniel Belles <[email protected] 
>> <mailto:[email protected]>> wrote:
>> Thanks for the quick response!
>> 
>> The only output I get is: 
>> 
>> guacamole_guacamole  | 22:39:55.184 [http-nio-8080-exec-9] INFO  
>> org.apache.guacamole.event.Notifier - failed authentication for user null
>> guacamole_guacamole  | 22:39:55.186 [http-nio-8080-exec-9] ERROR 
>> o.a.g.rest.RESTExceptionMapper - Unexpected internal error: 
>> 'org.apache.guacamole.net.auth.AuthenticationProvider 
>> org.apache.guacamole.net.event.AuthenticationFailureEvent.getAuthenticationProvider()'
>> 
>> As for the pom.xml, the only thing I changed was the name of the artifactId 
>> produced to `guacamole-notifier`. 
>> 
>> 
>> What version of Guacamole are you running, and what version(s) are specified 
>> in the pom.xml for pulling in the guacamole-ext dependency?
>> 
>> -Nick
> 

Reply via email to