Skip to content

RuntimePermission issue - ("java.lang.RuntimePermission" "accessDeclaredMembers") #316

Answered by nicolatimeus
GregoryIvo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

The issue is likely caused by the fact that

return GSON.fromJson(new StringReader(responseString), DiscoverResponse.class);

is executed through CompletableFuture.supplyAsync() using the Fork Join Pool common pool.

Quoting from ForkJoinPool Javadoc, If a SecurityManager is present and no factory is specified, then the default pool uses a factory supplying threads that have no Permissions enabled..

The DiscoveryClient should be probably modified to allow customizing the execution facility.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@GregoryIvo
Comment options

@jmklix
Comment options

Comment options

You must be logged in to vote
2 replies
@nicolatimeus
Comment options

@GregoryIvo
Comment options

Answer selected by jmklix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 2 days.
3 participants