Change build time configuration in Quarkus

759 Views Asked by At

I am running a Quarkus Rest Easy based Java application which is pulling data from an external application to load its cache. However I have recently started getting the exception below and the application cannot seem to be able to load the cache.

javax.ws.rs.client.ResponseProcessingException:
javax.ws.rs.ProcessingException: com.fasterxml.jackson.databind.JsonMappingException:
RESTEASY003357: GZIP input exceeds max size: 10000000 (through reference chain: java.util.ArrayList[20985]

I understand that

resteasy.gzip.max.input is by default set to 10M

( as mentioned in https://docs.jboss.org/resteasy/docs/3.0.20.Final/userguide/html/gzip.html#d4e1407) and this is clear from the error that the size of the decompressed data that I am recieving is higher than that.

Hence, I tried changing the default property in quarkus (https://quarkus.io/guides/all-config#quarkus-resteasy-common_quarkus.resteasy.gzip.max-input) to a higher value.

quarkus.resteasy.gzip.max-input=2147483647M

However looks like this is a build time property and cannot be changed.

P.S :

  1. I tried adding an application.properties with custom values but still got the same error.

  2. Tried passing the custom value as a command line argument but still could not get it to work.

Seems like I cannot get the value of this property to change.

Can someone point me to how I can change this value at runtime?

Thanks.

[update 1]

There is an existing Quarkus bug for this issue. If anyone else is facing similar issues, please feel free to inform Quarkus team about it here : https://github.com/quarkusio/quarkus/issues/12941

1

There are 1 best solutions below

2
On

It seems that quarkus doesn't recognize the quarkus.resteasy.gzip.max-input

I have fixed this issue by using resteasy.gzip.max.input = 33456789