[ https://issues.apache.org/jira/browse/GEODE-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15342253#comment-15342253 ]
ASF GitHub Bot commented on GEODE-1575: --------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/incubator-geode/pull/170 > Unhandled NoClassDefFound Exception when creating regions > --------------------------------------------------------- > > Key: GEODE-1575 > URL: https://issues.apache.org/jira/browse/GEODE-1575 > Project: Geode > Issue Type: Bug > Components: configuration > Reporter: Kevin Duling > Assignee: Kevin Duling > Fix For: 1.0.0-incubating.M3 > > > The wrong error message is being displayed when encountering a > {{NoClassDefFoundError}} > {panel:title=gfsh} > {noformat} > Executing - create region --name=replicatedRegion --type=REPLICATE > --cache-loader=com.example.TestCacheLoader > Could not process command due to GemFire error. > java.lang.ClassNotFoundException cannot be cast to > com.gemstone.gemfire.management.internal.cli.functions.CliFunctionResult > {noformat} > {panel} > {panel:title=server.log} > {noformat} > [fine 2016/06/21 10:02:02.745 PDT host1-server1 <Function Execution > Processor1> tid=0x41] Replying with exception: ReplyMessage processorId=13 > from null with exception > com.gemstone.gemfire.distributed.internal.ReplyException: > java.lang.NoClassDefFoundError: org/apache/log4j/Logger > com.gemstone.gemfire.distributed.internal.ReplyException: > java.lang.NoClassDefFoundError: org/apache/log4j/Logger > at > com.gemstone.gemfire.internal.cache.MemberFunctionStreamingMessage.process(MemberFunctionStreamingMessage.java:248) > at > com.gemstone.gemfire.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:379) > at > com.gemstone.gemfire.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:450) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at > com.gemstone.gemfire.distributed.internal.DistributionManager.runUntilShutdown(DistributionManager.java:611) > at > com.gemstone.gemfire.distributed.internal.DistributionManager$9$1.run(DistributionManager.java:1071) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger > at > io.pivotal.support.cases.server.TestCacheLoader.<clinit>(TestCacheLoader.java:14) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:348) > at > com.gemstone.gemfire.internal.ClassPathLoader.forName(ClassPathLoader.java:408) > at > com.gemstone.gemfire.management.internal.cli.functions.RegionCreateFunction.forName(RegionCreateFunction.java:386) > at > com.gemstone.gemfire.management.internal.cli.functions.RegionCreateFunction.createRegion(RegionCreateFunction.java:312) > at > com.gemstone.gemfire.management.internal.cli.functions.RegionCreateFunction.execute(RegionCreateFunction.java:89) > at > com.gemstone.gemfire.internal.cache.MemberFunctionStreamingMessage.process(MemberFunctionStreamingMessage.java:194) > ... 7 more > Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger > at > com.gemstone.gemfire.internal.JarClassLoader.forName(JarClassLoader.java:568) > at > com.gemstone.gemfire.internal.JarClassLoader.loadClass(JarClassLoader.java:413) > at > com.gemstone.gemfire.internal.JarClassLoader.loadClass(JarClassLoader.java:389) > at > com.gemstone.gemfire.internal.JarClassLoader.loadClass(JarClassLoader.java:384) > ... 15 more > {noformat} > {panel} -- This message was sent by Atlassian JIRA (v6.3.4#6332)