Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The wrong error message is being displayed when encountering a NoClassDefFoundError
gfsh
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
server.log
[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
Attachments
Issue Links
- links to