Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
6.4.0.Final
-
None
-
NEW
-
NEW
Description
[INFO] java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a restricted class. Please see the Google App Engine developer's guide for more details. [INFO] at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:52) [INFO] at org.drools.core.util.MemoryUtil.<clinit>(MemoryUtil.java:33) [INFO] at java.lang.Class.forName0(Native Method) [INFO] at java.lang.Class.forName(Class.java:195) [INFO] at com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:70) [INFO] at com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:65) [INFO] at org.drools.core.RuleBaseConfiguration.setPermGenThreshold(RuleBaseConfiguration.java:583) [INFO] at org.drools.core.RuleBaseConfiguration.init(RuleBaseConfiguration.java:451) [INFO] at org.drools.core.RuleBaseConfiguration.init(RuleBaseConfiguration.java:429) [INFO] at org.drools.core.RuleBaseConfiguration.<init>(RuleBaseConfiguration.java:278) [INFO] at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieBaseConfiguration(KieServicesImpl.java:185)
the problem is in this code:
static { if (!hasPermGen() || ClassUtils.isAndroid()) { // hasPermGen is true because GAE doesn't support java 8 yet permGenStats = new DummyMemoryStats(); } else { MemoryPoolMXBean permGenBean = null; for (MemoryPoolMXBean mx : ManagementFactory.getMemoryPoolMXBeans()) { // <=== EXCEPTION if (mx.getName() != null && mx.getName().contains("Perm")) { permGenBean = mx; break; } } permGenStats = new MBeanMemoryStats(permGenBean); } }
Attachments
Issue Links
- is incorporated by
-
RHBRMS-1812 [GSS](6.3.z)Google App Engine support: Handle exception from ClassLoader.getSystemClassLoader() and allow usage of GoogleAppEngineThreadFactory
- Verified
- relates to
-
DROOLS-1194 Creating KieSession from KieContainer fails on Google App Engine
- Closed