[jira] [Resolved] (GEODE-1575) Unhandled NoClassDefFound Exception when creating regions

2016-06-21 Thread Kevin Duling (JIRA)

 [ 
https://issues.apache.org/jira/browse/GEODE-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Duling resolved GEODE-1575.
-
Resolution: Fixed

> 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, gfsh
>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  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.(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)


[jira] [Resolved] (GEODE-1575) Unhandled NoClassDefFound Exception when creating regions

2016-06-21 Thread Kevin Duling (JIRA)

 [ 
https://issues.apache.org/jira/browse/GEODE-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Duling resolved GEODE-1575.
-
   Resolution: Fixed
Fix Version/s: 1.0.0-incubating.M3

Added a catch clause for the exception.

Now the error message reads:

{panel:title=gfsh}


(2) Executing - create region --name=replicatedRegion --type=REPLICATE 
--cache-loader=com.example.TestCacheLoader
   Member | Status
- | 
---
host1-server1 | ERROR: Could not find class "com.example.TestCacheLoader" 
specified for "cache-loader".
{panel}

> 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
>
>
> {panel:title=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
> {panel}
> {panel:title=server.log}
> [fine 2016/06/21 10:02:02.745 PDT host1-server1  Processor1> tid=0x41] Replying with exception: ReplyMessage processorId=13 
> from null with exception com.gemstone.gemfire.distributed.internal.ReplyE
> xception: 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.(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
> {panel}
> The wrong error message is being displayed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)