Ask Your Question
1

java.security.AccessControlException accessing Azure Event Hub

asked 2020-01-28 09:47:48 -0600

updated 2020-01-28 10:10:23 -0600

metadaddy gravatar image

CONTAINER_0001 - java.lang.RuntimeException: java.security.AccessControlException: access denied ("java.net.SocketPermission" "" "resolve")

Full stack trace:

2020-01-28 15:55:13,124 soc_new_1/socnew102cba92a-b18a-4b99-a01a-3ced16229923   ERROR   Host socnew102cba92a-b18a-4b99-a01a-3ced162299230 received general error notification during Checking Leases: java.lang.RuntimeException: java.security.AccessControlException: access denied ("java.net.SocketPermission" "" "resolve")    EventHubConsumerSource  *admin      pool-213-thread-1
2020-01-28 15:55:13,124 soc_new_1/socnew102cba92a-b18a-4b99-a01a-3ced16229923   WARN    host socnew102cba92a-b18a-4b99-a01a-3ced162299230: Exception stealing lease PartitionManager    *admin      pool-213-thread-1
java.lang.RuntimeException: java.security.AccessControlException: access denied ("java.net.SocketPermission" "t" "resolve")
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1488)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3018)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:489)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
    at com.microsoft.azure.storage.StorageException.translateException(StorageException.java:76)
    at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:199)
    at com.microsoft.azure.storage.blob.CloudBlob.downloadAttributes(CloudBlob.java:1239)
    at com.microsoft.azure.eventprocessorhost.AzureBlobLease.lambda$isExpired$0(AzureBlobLease.java:87)
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
    at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.security.AccessControlException: access denied ("java.net.SocketPermission" "" "resolve")
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
    at java.security.AccessController.checkPermission(AccessController.java:884)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1048)
    at java.net.InetAddress.getAllByName0(InetAddress.java:1268)
    at java.net.InetAddress.getAllByName(InetAddress.java:1192)
    at java.net.InetAddress.getAllByName(InetAddress.java:1126)
    at java.net.InetAddress.getByName(InetAddress.java:1076)
    at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
    at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:106)
edit retag flag offensive close merge delete

Comments

Can you edit your question to include the entire stack trace from sdc.log? Also, what version of Data Collector are you using?

metadaddy gravatar imagemetadaddy ( 2020-01-28 09:52:52 -0600 )edit

i am using following version StreamSets Data Collector 3.4.3

Sourabh Sardesai gravatar imageSourabh Sardesai ( 2020-01-28 10:05:31 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-01-28 10:09:41 -0600

metadaddy gravatar image

It looks like you might be hitting SDC-9270, which was fixed in StreamSets Data Collector 3.11.0. If you're using an older version, please upgrade and let us know if it works.

edit flag offensive delete link more

Comments

yes i think you are right, i will be upgrading the streamsets and will let you know Thanks you so much !!!

Sourabh Sardesai gravatar imageSourabh Sardesai ( 2020-01-28 10:24:30 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-01-28 09:47:48 -0600

Seen: 14 times

Last updated: Jan 28