Getting java.lang.ArrayIndexOutOfBoundsException: 40 error while using HTTPClient in spark Future
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I am calling web api which has NTLM Auth in Spark Future.
I cant share the exact code, but below is the sample method which I am calling in future
def ApiCall(Paramters)
{
val post = new HttpPost( Web Api Link)
post.setEntity(new StringEntity(JsonInput_String,
ContentType.APPLICATION_JSON))
val credsProvider = new BasicCredentialsProvider
val credential = new NTCredentials(UserID,Password)
credsProvider.setCredentials(AuthScope.ANY, credential)
val HttpBuilder= HttpClientBuilder.create().setDefaultCredentialsProvider(credsProvider).build()
val httpResponse = HttpBuilder.execute(post)
//putting result of API to a List
}
And then I am calling this method in a loop
val Ft:Seq[Future[Int]] = for (Looping condt) yield
{
Future { ApiCall(some parameters)
1
}
val Aggregated: Future[Seq[Int]] = Future.sequence(Ft)
Await.result(Aggregated, 2.hours)
But I am getting below error :
19/01/03 10:10:56 ERROR ApplicationMaster: User class threw exception: java.lang.ArrayIndexOutOfBoundsException: 40
java.lang.ArrayIndexOutOfBoundsException: 40
at org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage.addByte(NTLMEngineImpl.java:911)
at org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage.addULong(NTLMEngineImpl.java:941)
at org.apache.http.impl.auth.NTLMEngineImpl$Type1Message.getResponse(NTLMEngineImpl.java:1036)
at org.apache.http.impl.auth.NTLMEngineImpl.getType1Message(NTLMEngineImpl.java:148)
at org.apache.http.impl.auth.NTLMEngineImpl.generateType1Msg(NTLMEngineImpl.java:1628)
at org.apache.http.impl.auth.NTLMScheme.authenticate(NTLMScheme.java:139)
at org.apache.http.impl.auth.AuthSchemeBase.authenticate(AuthSchemeBase.java:138)
at org.apache.http.impl.auth.HttpAuthenticator.doAuth(HttpAuthenticator.java:239)
at org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:202)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:262)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at SymbolLinking.SymbolLinking$$anonfun$1.apply(SymbolLinking.scala:458)
at SymbolLinking.SymbolLinking$$anonfun$1.apply(SymbolLinking.scala:324)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108)
at SymbolLinking.SymbolLinking.ApiCall(SymbolLinking.scala:324)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply$mcI$sp(SymbolLinking.scala:569)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply(SymbolLinking.scala:569)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply(SymbolLinking.scala:569)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
19/01/03 10:10:56 INFO ApplicationMaster: Final app status: FAILED, exitCode: 15, (reason: User class threw exception: java.lang.ArrayIndexOutOfBoundsException: 40)
19/01/03 10:10:56 INFO SparkContext: Invoking stop() from shutdown hook
apache-spark httpclient ntlm
add a comment |
I am calling web api which has NTLM Auth in Spark Future.
I cant share the exact code, but below is the sample method which I am calling in future
def ApiCall(Paramters)
{
val post = new HttpPost( Web Api Link)
post.setEntity(new StringEntity(JsonInput_String,
ContentType.APPLICATION_JSON))
val credsProvider = new BasicCredentialsProvider
val credential = new NTCredentials(UserID,Password)
credsProvider.setCredentials(AuthScope.ANY, credential)
val HttpBuilder= HttpClientBuilder.create().setDefaultCredentialsProvider(credsProvider).build()
val httpResponse = HttpBuilder.execute(post)
//putting result of API to a List
}
And then I am calling this method in a loop
val Ft:Seq[Future[Int]] = for (Looping condt) yield
{
Future { ApiCall(some parameters)
1
}
val Aggregated: Future[Seq[Int]] = Future.sequence(Ft)
Await.result(Aggregated, 2.hours)
But I am getting below error :
19/01/03 10:10:56 ERROR ApplicationMaster: User class threw exception: java.lang.ArrayIndexOutOfBoundsException: 40
java.lang.ArrayIndexOutOfBoundsException: 40
at org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage.addByte(NTLMEngineImpl.java:911)
at org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage.addULong(NTLMEngineImpl.java:941)
at org.apache.http.impl.auth.NTLMEngineImpl$Type1Message.getResponse(NTLMEngineImpl.java:1036)
at org.apache.http.impl.auth.NTLMEngineImpl.getType1Message(NTLMEngineImpl.java:148)
at org.apache.http.impl.auth.NTLMEngineImpl.generateType1Msg(NTLMEngineImpl.java:1628)
at org.apache.http.impl.auth.NTLMScheme.authenticate(NTLMScheme.java:139)
at org.apache.http.impl.auth.AuthSchemeBase.authenticate(AuthSchemeBase.java:138)
at org.apache.http.impl.auth.HttpAuthenticator.doAuth(HttpAuthenticator.java:239)
at org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:202)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:262)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at SymbolLinking.SymbolLinking$$anonfun$1.apply(SymbolLinking.scala:458)
at SymbolLinking.SymbolLinking$$anonfun$1.apply(SymbolLinking.scala:324)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108)
at SymbolLinking.SymbolLinking.ApiCall(SymbolLinking.scala:324)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply$mcI$sp(SymbolLinking.scala:569)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply(SymbolLinking.scala:569)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply(SymbolLinking.scala:569)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
19/01/03 10:10:56 INFO ApplicationMaster: Final app status: FAILED, exitCode: 15, (reason: User class threw exception: java.lang.ArrayIndexOutOfBoundsException: 40)
19/01/03 10:10:56 INFO SparkContext: Invoking stop() from shutdown hook
apache-spark httpclient ntlm
2
Welcome to Stack Overflow :) We'll need more information to properly help you: what code have you tried so far, what specifically is going wrong (you've got that), and do you have a minimal working example of the issue? See How do I ask a good question?, the Stack Overflow question checklist and Creating a Minimal, Complete, and Verifiable example.
– Mark Ormesher
Jan 4 at 9:36
add a comment |
I am calling web api which has NTLM Auth in Spark Future.
I cant share the exact code, but below is the sample method which I am calling in future
def ApiCall(Paramters)
{
val post = new HttpPost( Web Api Link)
post.setEntity(new StringEntity(JsonInput_String,
ContentType.APPLICATION_JSON))
val credsProvider = new BasicCredentialsProvider
val credential = new NTCredentials(UserID,Password)
credsProvider.setCredentials(AuthScope.ANY, credential)
val HttpBuilder= HttpClientBuilder.create().setDefaultCredentialsProvider(credsProvider).build()
val httpResponse = HttpBuilder.execute(post)
//putting result of API to a List
}
And then I am calling this method in a loop
val Ft:Seq[Future[Int]] = for (Looping condt) yield
{
Future { ApiCall(some parameters)
1
}
val Aggregated: Future[Seq[Int]] = Future.sequence(Ft)
Await.result(Aggregated, 2.hours)
But I am getting below error :
19/01/03 10:10:56 ERROR ApplicationMaster: User class threw exception: java.lang.ArrayIndexOutOfBoundsException: 40
java.lang.ArrayIndexOutOfBoundsException: 40
at org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage.addByte(NTLMEngineImpl.java:911)
at org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage.addULong(NTLMEngineImpl.java:941)
at org.apache.http.impl.auth.NTLMEngineImpl$Type1Message.getResponse(NTLMEngineImpl.java:1036)
at org.apache.http.impl.auth.NTLMEngineImpl.getType1Message(NTLMEngineImpl.java:148)
at org.apache.http.impl.auth.NTLMEngineImpl.generateType1Msg(NTLMEngineImpl.java:1628)
at org.apache.http.impl.auth.NTLMScheme.authenticate(NTLMScheme.java:139)
at org.apache.http.impl.auth.AuthSchemeBase.authenticate(AuthSchemeBase.java:138)
at org.apache.http.impl.auth.HttpAuthenticator.doAuth(HttpAuthenticator.java:239)
at org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:202)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:262)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at SymbolLinking.SymbolLinking$$anonfun$1.apply(SymbolLinking.scala:458)
at SymbolLinking.SymbolLinking$$anonfun$1.apply(SymbolLinking.scala:324)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108)
at SymbolLinking.SymbolLinking.ApiCall(SymbolLinking.scala:324)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply$mcI$sp(SymbolLinking.scala:569)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply(SymbolLinking.scala:569)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply(SymbolLinking.scala:569)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
19/01/03 10:10:56 INFO ApplicationMaster: Final app status: FAILED, exitCode: 15, (reason: User class threw exception: java.lang.ArrayIndexOutOfBoundsException: 40)
19/01/03 10:10:56 INFO SparkContext: Invoking stop() from shutdown hook
apache-spark httpclient ntlm
I am calling web api which has NTLM Auth in Spark Future.
I cant share the exact code, but below is the sample method which I am calling in future
def ApiCall(Paramters)
{
val post = new HttpPost( Web Api Link)
post.setEntity(new StringEntity(JsonInput_String,
ContentType.APPLICATION_JSON))
val credsProvider = new BasicCredentialsProvider
val credential = new NTCredentials(UserID,Password)
credsProvider.setCredentials(AuthScope.ANY, credential)
val HttpBuilder= HttpClientBuilder.create().setDefaultCredentialsProvider(credsProvider).build()
val httpResponse = HttpBuilder.execute(post)
//putting result of API to a List
}
And then I am calling this method in a loop
val Ft:Seq[Future[Int]] = for (Looping condt) yield
{
Future { ApiCall(some parameters)
1
}
val Aggregated: Future[Seq[Int]] = Future.sequence(Ft)
Await.result(Aggregated, 2.hours)
But I am getting below error :
19/01/03 10:10:56 ERROR ApplicationMaster: User class threw exception: java.lang.ArrayIndexOutOfBoundsException: 40
java.lang.ArrayIndexOutOfBoundsException: 40
at org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage.addByte(NTLMEngineImpl.java:911)
at org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage.addULong(NTLMEngineImpl.java:941)
at org.apache.http.impl.auth.NTLMEngineImpl$Type1Message.getResponse(NTLMEngineImpl.java:1036)
at org.apache.http.impl.auth.NTLMEngineImpl.getType1Message(NTLMEngineImpl.java:148)
at org.apache.http.impl.auth.NTLMEngineImpl.generateType1Msg(NTLMEngineImpl.java:1628)
at org.apache.http.impl.auth.NTLMScheme.authenticate(NTLMScheme.java:139)
at org.apache.http.impl.auth.AuthSchemeBase.authenticate(AuthSchemeBase.java:138)
at org.apache.http.impl.auth.HttpAuthenticator.doAuth(HttpAuthenticator.java:239)
at org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:202)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:262)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at SymbolLinking.SymbolLinking$$anonfun$1.apply(SymbolLinking.scala:458)
at SymbolLinking.SymbolLinking$$anonfun$1.apply(SymbolLinking.scala:324)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108)
at SymbolLinking.SymbolLinking.ApiCall(SymbolLinking.scala:324)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply$mcI$sp(SymbolLinking.scala:569)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply(SymbolLinking.scala:569)
at SymbolLinking.SymbolLinking$$anonfun$2$$anonfun$apply$1.apply(SymbolLinking.scala:569)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
19/01/03 10:10:56 INFO ApplicationMaster: Final app status: FAILED, exitCode: 15, (reason: User class threw exception: java.lang.ArrayIndexOutOfBoundsException: 40)
19/01/03 10:10:56 INFO SparkContext: Invoking stop() from shutdown hook
apache-spark httpclient ntlm
apache-spark httpclient ntlm
edited Jan 14 at 20:47
Ram Ghadiyaram
17.5k84980
17.5k84980
asked Jan 4 at 9:15
ashish sharmaashish sharma
62
62
2
Welcome to Stack Overflow :) We'll need more information to properly help you: what code have you tried so far, what specifically is going wrong (you've got that), and do you have a minimal working example of the issue? See How do I ask a good question?, the Stack Overflow question checklist and Creating a Minimal, Complete, and Verifiable example.
– Mark Ormesher
Jan 4 at 9:36
add a comment |
2
Welcome to Stack Overflow :) We'll need more information to properly help you: what code have you tried so far, what specifically is going wrong (you've got that), and do you have a minimal working example of the issue? See How do I ask a good question?, the Stack Overflow question checklist and Creating a Minimal, Complete, and Verifiable example.
– Mark Ormesher
Jan 4 at 9:36
2
2
Welcome to Stack Overflow :) We'll need more information to properly help you: what code have you tried so far, what specifically is going wrong (you've got that), and do you have a minimal working example of the issue? See How do I ask a good question?, the Stack Overflow question checklist and Creating a Minimal, Complete, and Verifiable example.
– Mark Ormesher
Jan 4 at 9:36
Welcome to Stack Overflow :) We'll need more information to properly help you: what code have you tried so far, what specifically is going wrong (you've got that), and do you have a minimal working example of the issue? See How do I ask a good question?, the Stack Overflow question checklist and Creating a Minimal, Complete, and Verifiable example.
– Mark Ormesher
Jan 4 at 9:36
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54035973%2fgetting-java-lang-arrayindexoutofboundsexception-40-error-while-using-httpclien%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54035973%2fgetting-java-lang-arrayindexoutofboundsexception-40-error-while-using-httpclien%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Welcome to Stack Overflow :) We'll need more information to properly help you: what code have you tried so far, what specifically is going wrong (you've got that), and do you have a minimal working example of the issue? See How do I ask a good question?, the Stack Overflow question checklist and Creating a Minimal, Complete, and Verifiable example.
– Mark Ormesher
Jan 4 at 9:36