You searched for exceptions
. We found 168
results in 0.093 seconds.
Now we can see the string values for the latitude and longitude, I suspect I know the problem. Double.parseDouble will throw an exception for a string like this: 41,352979. My guess is that somewhere you're catching Exception and... more
I strongly suspect that it's not hanging - it's just throwing an exception without you noticing. I'd expect it to throw a FileNotFoundException, which is what happens when I tried it. It's happening before readLine() because... more
You've got at least two problems here: You're reopening the output file on each iteration. That's pretty much bound to be slow. Open it once at the same time you open the reader. You're not closing either the reader or the writer on... more
The ValidationException you've thrown will be th in your calling code... there's no cause for that ValidationException. The point of getCause() is for one exception to be able to refer to another one as an underlying cause - but there's... more
You're parsing an empty string, because you never assign a different value to json. You make a request, and set is to refer to the input stream from the response - but you then don't use is. You might want: JObj = new JSONObject(new... more
There are two problems here: 1) You've declared a local variable a static. That's invalid. 2) If an exception is thrown early in your method, you're catching it and then trying to return status without ever assigning a value to it. I... more
An async method never throws an exception directly. Instead, if an exception is raised within the body of the method, the task returned by the async method becomes faulted. The sleep isn't executed because the exception does prevent the... more
Currently if the dealer ID can't be found, you're calling RedirectToAction, but ignoring the result and then trying to return your view with the dealer ID. I suspect you want: [HttpGet] public ActionResult Edit(int dealerId = 0) { ... more
My problem is that I don't want that to be sent, I am making sure that the string I am sending it has no extra white space at the end to create this. No, you're not. Look at your code: sendingStream.println("00 0012552 003365... more
Is there a performance benefit to changing these to static classes? Yes - you won't be constructing a load of pointless objects which the GC then has to collect. Is that significant in your application? Hard to tell. More... more