-
Enhancement
-
Resolution: Done
-
Major
-
6.4.0.Final, 6.5.0.CR1, 7.0.0.Beta1
-
None
-
NEW
-
NEW
MemoryUtil throws this exception on Google App Engine:
java.lang.NoClassDefFoundError: Could not initialize class
com.google.apphosting.runtime.security.shared.stub.java.lang.management.ManagementFactory
at org.drools.core.util.MemoryUtil.<clinit>(MemoryUtil.java:33)
because the PermGen check goes the wrong way on GAE.
In the MemoryUtil code on line 33, we need something like:
if (... || isGAE()) { ... } public boolean isGAE() { String p = System.getProperty("com.google.appengine.runtime.environment"); return p != null && !p.equals(""); }
On GAE, p is "Development". => act same like isAndroid()
On GCE (= plain old OpenJDK), p is null. => act normally
On plain Fedora with OpenJDK 8, p is null. => act normally
- is cloned by
-
RHBRMS-2599 MemoryUtil should not fail on Google App Engine with NoClassDefFoundError
- Verified
- is related to
-
RHBRMS-2600 MemoryUtil should not fail on Google App Engine with NoClassDefFoundError
- Closed