Compilation Errors when I updade SAML20module version

0
I get this message when I try to run my application after I Update some modules and Mendix version.   Buildfile: C:\Users\azera\OneDrive\Documents\Mendix\Amaya TCU-main\deployment\build_core.xml compile:     [javac] Compiling 680 source files to C:\Users\azera\OneDrive\Documents\Mendix\Amaya TCU-main\deployment\run\bin     [javac] C:\Users\azera\OneDrive\Documents\Mendix\Amaya TCU-main\javasource\saml20\implementation\security\SAMLSessionInfo.java:111: error: cannot find symbol     [javac]                     new String[]{"TLSv1.2", "TLSv1.3"}, null, SSLConnectionSocketFactory.getDefaultHostnameVerifier());     [javac]                                                                                         ^     [javac]   symbol:   method getDefaultHostnameVerifier()     [javac]   location: class SSLConnectionSocketFactory     [javac] C:\Users\azera\OneDrive\Documents\Mendix\Amaya TCU-main\javasource\saml20\implementation\security\SAMLSessionInfo.java:121: error: cannot find symbol     [javac]             RequestConfig requestConfig = RequestConfig.custom().setCookieSpec(CookieSpecs.STANDARD_STRICT)     [javac]                                                                                           ^     [javac]   symbol:   variable STANDARD_STRICT     [javac]   location: class CookieSpecs     [javac] C:\Users\azera\OneDrive\Documents\Mendix\Amaya TCU-main\javasource\saml20\implementation\security\SAMLSessionInfo.java:132: error: cannot find symbol     [javac]                     .setConnectionTimeToLive(1, TimeUnit.MINUTES)     [javac]                     ^     [javac]   symbol:   method setConnectionTimeToLive(int,TimeUnit)     [javac]   location: class HttpClientBuilder     [javac] C:\Users\azera\OneDrive\Documents\Mendix\Amaya TCU-main\javasource\saml20\implementation\DelegatedAuthenticationHandler.java:305: error: cannot find symbol     [javac]             httpPost.setProtocolVersion(HttpVersion.HTTP_1_1);     [javac]                     ^     [javac]   symbol:   method setProtocolVersion(HttpVersion)     [javac]   location: variable httpPost of type HttpPost     [javac] Note: Some input files use or override a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] Note: Some input files use unchecked or unsafe operations.     [javac] Note: Recompile with -Xlint:unchecked for details.     [javac] 4 errors BUILD FAILED C:\Users\azera\OneDrive\Documents\Mendix\Amaya TCU-main\deployment\build_core.xml:30: Compile failed; see the compiler error output for details. Total time: 29 seconds   Do someone have an idea?   Thank you.
asked
2 answers
1

Hi Yaakov,

Keep the application path outside one drive and check, sometimes the application wont work properly when located inside one drive.

answered
0

Hello, 

 

Please try this procedure:

 

  1. Try to update all your modules to the most recent versions
  2. From my experience, for this particular case, the issue is related to the version of the JAR file httpclient-4.3.6.jar. The version httpclient-4.5.14.jar resolves the problem
  3. Use a tool to clean up the unused and/or outdated JAR files - mendix-userlib-cleaner. See https://github.com/cinaq/mendix-userlib-cleaner/
  4. Clean any JAR file that mendix-userlib-cleaner for some reason didn't delete. Example, delete the file httpclient-4.3.6.jar if any
  5. Studio Pro, hit F4 to sync app dir files, and F5 to compile/run.
  6. Cross your fingers!
answered