Validator fails with Google App Engine due to use of restricted class java.util.ResourceBundle.Control

Description

In version 5.2.2 this change was made to PlatformResourceBundleLocator.

That broke number of validators which were working fine in 5.2.1

This change causes exception on Google Appengine. PlatformResourceBundleLocator is referencing ResourceBundle class, which is blacklisted in Google Appengine.

Environment

Google Appengine, Jersey

Activity

Show:
Huseyn Guliyev
October 23, 2015, 8:58 PM

Both options are good. First is automatic, so library will work as it is. Second will allow to configure for GAE. So basically, both will provide a mechanism for HV to work with Appengine.

I guess first is better option, if one has to choose.

Here is more about Appengine Java Runtime Environment
https://cloud.google.com/appengine/docs/java/#Java_The_environment

Thanks

Hardy Ferentschik
October 27, 2015, 2:18 PM
Edited

, here is my shot at providing a solution to the App engine issue - https://github.com/hferentschik/hibernate-validator/commit/a6b4f9a87abe2c9d5a0148174ff64b7702703974

Could you maybe verify that it works for you by running your app with the following SNAPSHOT build:

Huseyn Guliyev
November 1, 2015, 12:18 AM
Edited

Thanks for the fix. Can you advice which repository i can find this in? I get this error:

Hardy Ferentschik
November 4, 2015, 12:21 PM

, snapshots are deployed to the JBoss Nexus Repository - https://repository.jboss.org/nexus/#welcome. Here you find some info on how to configure it.

Btw, we already merged the fix to master, so you can just use 5.3.0-SNAPSHOT as version.

Gunnar Morling
November 4, 2015, 4:21 PM

Hey , the PR has be been merged into master now. Could you get the latest snapshot from the JBoss repo and give it a try: https://repository.jboss.org/nexus/content/repositories/public/org/hibernate/hibernate-validator/5.3.0-SNAPSHOT/

Thanks!

Assignee

Unassigned

Reporter

Huseyn Guliyev

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure