-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong 'ahc-default.properties' resource file loaded when there's a non-shaded version of asynchttpclient in the class path. #177
Comments
Hi @noisypants, Is this a duplicate of #87? |
It's got the same original behavior, however i'm not convinced the workaround solves the issue. By adding the original keys to the shaded properties file, it works if the non-shaded library loads the shaded properties file. But i have the shaded library loading the non-shaded properties. @marcospereira, am i reading that correctly? |
I am seeing the same issue (see version details below) on the Guardian frontend repo with Play 2.6.3 and above. Here is the branch that exhibits the issue. Confirming the fix in #87 has not resolved the problem as mentioned by @noisypants. Play WS Version (2.5.x / etc)2.6.3+ API (Scala / Java / Neither / Both)Both Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)macOS Sierra 10.12.5 JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
Stack Trace
The code corresponding to the line indicated in the stack trace ( |
Same issue on 2.6.7 |
The problem still persists. A solution is to copy the ahc.properties file from the jar file into the conf/ path of the application, thus making sure that the application finds this one in the classpath (the file from the jar already contains the correct keys for shaded+non-shaded versions). |
Are you looking for help?
Play WS Version (2.5.x / etc)
2.6.2
API (Scala / Java / Neither / Both)
Both
Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)
Windows 10
JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
Library Dependencies
Expected Behavior
When there is a non-shaded version of asynchttpclient in the class path, depending on the order of jars in the classpath, the non-shaded version of the ahc-default.properties file can get loaded. This in turn makes config queries fail with using the prefix 'play.shaded.ahc'. I would expect the shaded library to specifically load the shaded properties files by renaming the shaded property files.
Actual Behavior
NumberFomatException occurs when trying to instantiate the AsyncHttpClientProvider class when launching a play application.
The text was updated successfully, but these errors were encountered: