[
https://issues.apache.org/jira/browse/GEODE-5897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Swapnil Bawaskar updated GEODE-5897:
------------------------------------
Description:
The command succeeds even if there was an error on the server. E.g.
{noformat}
gfsh>create jndi-binding --connection-url=lcoalsthag --name=ds2
--jdbc-driver-class="asdffii" --type=SIMPLE --username=foo
Password: *****
Member | Status | Message
------ | ------ |
-------------------------------------------------------------------
serv1 | OK | Initiated jndi binding "ds2" on "serv1". See server logs to
verify.
Changes to configuration for group 'cluster' are persisted.
{noformat}
But the server has an error in the logs:
{noformat}
[error 2018/10/18 11:26:27.385 PDT serv1 <Function Execution Processor2>
tid=0x48] An Exception was caught while trying to load the driver. asdffii
java.lang.ClassNotFoundException: asdffii
at org.apache.geode.internal.ClassPathLoader.forName(ClassPathLoader.java:170)
at
org.apache.geode.internal.datasource.GemFireBasicDataSource.loadDriver(GemFireBasicDataSource.java:130)
at
org.apache.geode.internal.datasource.GemFireBasicDataSource.<init>(GemFireBasicDataSource.java:68)
at
org.apache.geode.internal.datasource.DataSourceFactory.getSimpleDataSource(DataSourceFactory.java:75)
at
org.apache.geode.internal.jndi.JNDIInvoker.mapDatasource(JNDIInvoker.java:340)
at
org.apache.geode.management.internal.cli.functions.CreateJndiBindingFunction.executeFunction(CreateJndiBindingFunction.java:39)
at org.apache.geode.management.cli.CliFunction.execute(CliFunction.java:32)
at
org.apache.geode.internal.cache.MemberFunctionStreamingMessage.process(MemberFunctionStreamingMessage.java:193)
at
org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:367)
at
org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:432)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.geode.distributed.internal.ClusterDistributionManager.runUntilShutdown(ClusterDistributionManager.java:949)
at
org.apache.geode.distributed.internal.ClusterDistributionManager.doFunctionExecutionThread(ClusterDistributionManager.java:803)
at
org.apache.geode.internal.logging.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:121)
at java.lang.Thread.run(Thread.java:745)
[error 2018/10/18 11:26:27.386 PDT serv1 <Function Execution Processor2>
tid=0x48] DataSourceFactory::getSimpleDataSource:Exception while creating
GemfireBasicDataSource.Exception String=An Exception was caught while trying to
load the driver. asdffii
java.sql.SQLException: An Exception was caught while trying to load the
driver. asdffii
at
org.apache.geode.internal.datasource.GemFireBasicDataSource.loadDriver(GemFireBasicDataSource.java:137)
at
org.apache.geode.internal.datasource.GemFireBasicDataSource.<init>(GemFireBasicDataSource.java:68)
at
org.apache.geode.internal.datasource.DataSourceFactory.getSimpleDataSource(DataSourceFactory.java:75)
at
org.apache.geode.internal.jndi.JNDIInvoker.mapDatasource(JNDIInvoker.java:340)
at
org.apache.geode.management.internal.cli.functions.CreateJndiBindingFunction.executeFunction(CreateJndiBindingFunction.java:39)
at org.apache.geode.management.cli.CliFunction.execute(CliFunction.java:32)
at
org.apache.geode.internal.cache.MemberFunctionStreamingMessage.process(MemberFunctionStreamingMessage.java:193)
at
org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:367)
at
org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:432)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
{noformat}
was:
The command succeeds even if there was an error on the server. E.g.
{noformat}
gfsh>create jndi-binding --connection-url=lcoalsthag --name=ds1
--jdbc-driver-class="asdffii" --type=SIMPLE Member | Status | Message ------ |
------ | -------------------------------------------------------------------
serv1 | OK | Initiated jndi binding "ds1" on "serv1". See server logs to
verify. Changes to configuration for group 'cluster' are persisted.
{noformat}
But the server has an error in the logs:
{noformat}
[error 2018/10/18 11:26:27.385 PDT serv1 <Function Execution Processor2>
tid=0x48] An Exception was caught while trying to load the driver. asdffii
java.lang.ClassNotFoundException: asdffii
at org.apache.geode.internal.ClassPathLoader.forName(ClassPathLoader.java:170)
at
org.apache.geode.internal.datasource.GemFireBasicDataSource.loadDriver(GemFireBasicDataSource.java:130)
at
org.apache.geode.internal.datasource.GemFireBasicDataSource.<init>(GemFireBasicDataSource.java:68)
at
org.apache.geode.internal.datasource.DataSourceFactory.getSimpleDataSource(DataSourceFactory.java:75)
at
org.apache.geode.internal.jndi.JNDIInvoker.mapDatasource(JNDIInvoker.java:340)
at
org.apache.geode.management.internal.cli.functions.CreateJndiBindingFunction.executeFunction(CreateJndiBindingFunction.java:39)
at org.apache.geode.management.cli.CliFunction.execute(CliFunction.java:32)
at
org.apache.geode.internal.cache.MemberFunctionStreamingMessage.process(MemberFunctionStreamingMessage.java:193)
at
org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:367)
at
org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:432)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.geode.distributed.internal.ClusterDistributionManager.runUntilShutdown(ClusterDistributionManager.java:949)
at
org.apache.geode.distributed.internal.ClusterDistributionManager.doFunctionExecutionThread(ClusterDistributionManager.java:803)
at
org.apache.geode.internal.logging.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:121)
at java.lang.Thread.run(Thread.java:745)
[error 2018/10/18 11:26:27.386 PDT serv1 <Function Execution Processor2>
tid=0x48] DataSourceFactory::getSimpleDataSource:Exception while creating
GemfireBasicDataSource.Exception String=An Exception was caught while trying to
load the driver. asdffii
java.sql.SQLException: An Exception was caught while trying to load the
driver. asdffii
at
org.apache.geode.internal.datasource.GemFireBasicDataSource.loadDriver(GemFireBasicDataSource.java:137)
at
org.apache.geode.internal.datasource.GemFireBasicDataSource.<init>(GemFireBasicDataSource.java:68)
at
org.apache.geode.internal.datasource.DataSourceFactory.getSimpleDataSource(DataSourceFactory.java:75)
at
org.apache.geode.internal.jndi.JNDIInvoker.mapDatasource(JNDIInvoker.java:340)
at
org.apache.geode.management.internal.cli.functions.CreateJndiBindingFunction.executeFunction(CreateJndiBindingFunction.java:39)
at org.apache.geode.management.cli.CliFunction.execute(CliFunction.java:32)
at
org.apache.geode.internal.cache.MemberFunctionStreamingMessage.process(MemberFunctionStreamingMessage.java:193)
at
org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:367)
at
org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:432)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
{noformat}
> create jndi-binding gfsh command does not report errors
> -------------------------------------------------------
>
> Key: GEODE-5897
> URL: https://issues.apache.org/jira/browse/GEODE-5897
> Project: Geode
> Issue Type: Bug
> Components: gfsh
> Reporter: Swapnil Bawaskar
> Priority: Major
>
> The command succeeds even if there was an error on the server. E.g.
> {noformat}
> gfsh>create jndi-binding --connection-url=lcoalsthag --name=ds2
> --jdbc-driver-class="asdffii" --type=SIMPLE --username=foo
> Password: *****
> Member | Status | Message
> ------ | ------ |
> -------------------------------------------------------------------
> serv1 | OK | Initiated jndi binding "ds2" on "serv1". See server logs to
> verify.
> Changes to configuration for group 'cluster' are persisted.
> {noformat}
> But the server has an error in the logs:
> {noformat}
> [error 2018/10/18 11:26:27.385 PDT serv1 <Function Execution Processor2>
> tid=0x48] An Exception was caught while trying to load the driver. asdffii
> java.lang.ClassNotFoundException: asdffii
> at
> org.apache.geode.internal.ClassPathLoader.forName(ClassPathLoader.java:170)
> at
> org.apache.geode.internal.datasource.GemFireBasicDataSource.loadDriver(GemFireBasicDataSource.java:130)
> at
> org.apache.geode.internal.datasource.GemFireBasicDataSource.<init>(GemFireBasicDataSource.java:68)
> at
> org.apache.geode.internal.datasource.DataSourceFactory.getSimpleDataSource(DataSourceFactory.java:75)
> at
> org.apache.geode.internal.jndi.JNDIInvoker.mapDatasource(JNDIInvoker.java:340)
> at
> org.apache.geode.management.internal.cli.functions.CreateJndiBindingFunction.executeFunction(CreateJndiBindingFunction.java:39)
> at org.apache.geode.management.cli.CliFunction.execute(CliFunction.java:32)
> at
> org.apache.geode.internal.cache.MemberFunctionStreamingMessage.process(MemberFunctionStreamingMessage.java:193)
> at
> org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:367)
> at
> org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:432)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at
> org.apache.geode.distributed.internal.ClusterDistributionManager.runUntilShutdown(ClusterDistributionManager.java:949)
> at
> org.apache.geode.distributed.internal.ClusterDistributionManager.doFunctionExecutionThread(ClusterDistributionManager.java:803)
> at
> org.apache.geode.internal.logging.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:121)
> at java.lang.Thread.run(Thread.java:745)
> [error 2018/10/18 11:26:27.386 PDT serv1 <Function Execution Processor2>
> tid=0x48] DataSourceFactory::getSimpleDataSource:Exception while creating
> GemfireBasicDataSource.Exception String=An Exception was caught while trying
> to load the driver. asdffii
> java.sql.SQLException: An Exception was caught while trying to load the
> driver. asdffii
> at
> org.apache.geode.internal.datasource.GemFireBasicDataSource.loadDriver(GemFireBasicDataSource.java:137)
> at
> org.apache.geode.internal.datasource.GemFireBasicDataSource.<init>(GemFireBasicDataSource.java:68)
> at
> org.apache.geode.internal.datasource.DataSourceFactory.getSimpleDataSource(DataSourceFactory.java:75)
> at
> org.apache.geode.internal.jndi.JNDIInvoker.mapDatasource(JNDIInvoker.java:340)
> at
> org.apache.geode.management.internal.cli.functions.CreateJndiBindingFunction.executeFunction(CreateJndiBindingFunction.java:39)
> at org.apache.geode.management.cli.CliFunction.execute(CliFunction.java:32)
> at
> org.apache.geode.internal.cache.MemberFunctionStreamingMessage.process(MemberFunctionStreamingMessage.java:193)
> at
> org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:367)
> at
> org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:432)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> {noformat}
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)