Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not switch environments due to static library loading #37

Closed
mbjones opened this issue Sep 10, 2014 · 1 comment
Closed

Can not switch environments due to static library loading #37

mbjones opened this issue Sep 10, 2014 · 1 comment
Milestone

Comments

@mbjones
Copy link
Member

mbjones commented Sep 10, 2014

Trying to switch the CN environment from the R client causes the error:

Error: The provided mnNodeid value is invalid for the DataONE environment

When one first opens R, running this succeeds:

mn_nodeid <- "urn:node:mnDemo5" # MN for DEV env
cli <- D1Client("DEV", mn_nodeid)

But then, if one tries to switch environments, the error above surfaces:

mn_nodeid <- "urn:node:mnSandboxUCSB1
cli <- D1Client("SANDBOX", mn_nodeid)

The problem seems to be because R loads Java classes statically via a JNI interface, so I'm thinking that the library is caching the old environment and therefore not seeing the the MN you request. There's no way in R to cause the Java library to reload. I can consistently change environments as long as I restart R in between trying to switch environments with the D1Client.

This issue will be eliminated when we close #36.

@mbjones mbjones modified the milestone: 2.0.0 Oct 9, 2014
@mbjones
Copy link
Member Author

mbjones commented May 22, 2015

No longer an issue as we don't use Java any more.

@mbjones mbjones closed this as completed May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant