cfg4j / cfg4j

Modern configuration library for distributed apps written in Java.

Home Page:http://cfg4j.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cfg4j use of java NIO classes restricted on Google App Engine

kwade101 opened this issue · comments

cfg4j uses NIO classes like Paths which are not on the GAE whitelist:

java.lang.NoClassDefFoundError: java.nio.file.Paths is a restricted class. Please see the Google App Engine developer's guide for more details.
at com.google.apphosting.runtime.security.shared.stub.java.nio.file.Paths.(Paths.java)
at org.cfg4j.source.classpath.ClasspathConfigurationSource.getConfiguration(ClasspathConfigurationSource.java:106)

To be clear, many NIO classes ARE allowed on GAE. But not Path and Paths:
https://cloud.google.com/appengine/docs/standard/java/jrewhitelist

Any ideas for a workaround? Or am I just out of luck using cfg4j here.