You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Diane Hardman (Jira)" <ji...@apache.org> on 2019/09/12 23:54:00 UTC

[jira] [Commented] (GEODE-7198) C++ authinitialize example hangs

    [ https://issues.apache.org/jira/browse/GEODE-7198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16928949#comment-16928949 ] 

Diane Hardman commented on GEODE-7198:
--------------------------------------

After modifying main.cpp to set log-level to 'debug', I am seeing the following exception in server.log file:

Security exception: org.apache.geode.security.AuthenticationFailedException: javaobject.SimpleAuthenticator, caused by: java.lang.ClassNotFoundException: javaobject.SimpleAuthenticator

> C++ authinitialize example hangs
> --------------------------------
>
>                 Key: GEODE-7198
>                 URL: https://issues.apache.org/jira/browse/GEODE-7198
>             Project: Geode
>          Issue Type: Bug
>          Components: native client
>            Reporter: Diane Hardman
>            Priority: Major
>
> After building geode-native from develop branch on my mac, I then followed the instructions to build the geode-native examples found here:
> [https://github.com/apache/geode-native/tree/develop/examples]
> Trying to run the authinitialize example resulted in a hang.
>  1. First I needed to correct the startserver.sh script to remove spaces around the '=' for setting RESOLVEDPATH and AUTHENTICATOR env vars.
>  2. Running cpp-authinitialize seems to hang when executing GetCredentials:
> dhardman$ ./cpp-authinitialize 
> ExampleAuthInitialize::ExampleAuthInitialize called
> ExampleAuthInitialize::GetCredentials called
> ExampleAuthInitialize::GetCredentials called
> ExampleAuthInitialize::GetCredentials called
> ExampleAuthInitialize::GetCredentials called
> ExampleAuthInitialize::GetCredentials called
> ExampleAuthInitialize::GetCredentials called
> ExampleAuthInitialize::GetCredentials called
> ExampleAuthInitialize::GetCredentials called
> ExampleAuthInitialize::GetCredentials called
> ExampleAuthInitialize::GetCredentials called
> libc++abi.dylib: terminating with uncaught exception of type apache::geode::client::NotConnectedException: : not connected to Geode
> Abort trap: 6
>  
> Expected: The README file indicates the following output
>        ExampleAuthInitialize::ExampleAuthInitialize called
>        ExampleAuthInitialize::getCredentials called
>        a = 1
>        b = 2



--
This message was sent by Atlassian Jira
(v8.3.2#803003)