Questions tagged [uncaught-exception]

UncaughtException is thrown when exception is not handled by try/catch block. UncaughtException wraps the original exception that has been occurred.

314 questions
7
votes
1 answer

Android UncaughtExceptionHandler that instantiates an AlertDialog breaks

As the title says, I have an UncaughtExceptionHandler set in my custom application class that gets set as the default when my application starts. However, while not in the documentation I have read that you cannot instantiate a Dialog using…
Tom Fobear
  • 6,729
  • 7
  • 42
  • 74
7
votes
1 answer

Unable to log Uncaught exceptions with Logback

I wrote a web-app with various frameworks(jsf,Spring,Hibernate) and my logger library is Logback and slf4j. At the moment I'm not able to display uncaught exceptions(for example NullPointers) in log file. This is my logBack.xml
Gavi
  • 1,300
  • 1
  • 19
  • 39
7
votes
1 answer

Limit the jQuery select2 maximum selected options

I have referred to this docs provided by select2 jQuery plugin. http://ivaynberg.github.io/select2/ But when I use this code to limit the number of options a user can select at a time: $(document).ready(function(){ $(".select2").select2({…
Faizan
  • 1,847
  • 8
  • 40
  • 63
7
votes
7 answers

UICollectionView + iOS 7 / Xcode 5 = Assertion Failure

In my app there was a UICollectionView using flowLayout and it was working beautifully in iOS 6 but fails horribly in iOS 7. As soon as I segue to the view containing my UICollectionView here's what happens: *** Assertion failure in…
self.name
  • 2,341
  • 2
  • 17
  • 18
7
votes
1 answer

Uncaught TypeError: Expecting a function in instanceof check

I'm experimenting around with Backbone.js and am simply trying to get the messages to pop up on my console screen. How ever, every time I do so an error keeps on appearing (noted below) Uncaught TypeError: Expecting a function in instanceof check,…
Josh V
  • 123
  • 2
  • 10
7
votes
2 answers

[__NSCFType searchKeyword:]: unrecognized selector sent to instance 0x6d8eb80

The following code is to add a subview to current view from storyboard: EventSearchViewController* view1 = [self.storyboard instantiateViewControllerWithIdentifier:@"searchView"]; [view1 setBookingSystem:system]; [self.view…
6
votes
1 answer

Why is except not catching this error?

I have a program that simulates dice rolls and compares them to values in a chart (set of String lists). I currently get the value from a TEdit. If the box is empty it raises a EConvertError that should be caught by my Try/Except statement, but it's…
Aaron
  • 896
  • 3
  • 11
  • 22
6
votes
0 answers

Android: How to start an activity from an UncaughtExceptionHandler set in application

Possible Duplicate: How to start activity from UncaughtExceptionHandler if this is main thread crashed? My goal is to display some error messages when my Android program crashes. I have an uncaught exception handler registered in my program's…
Eric Chen
  • 3,562
  • 7
  • 39
  • 58
6
votes
2 answers

C++ uncaught exception in worker thread

Uncaught exception behaves differently for main thread and another std::thread. here is the test program #include class XXX{ public: XXX(){std::fprintf(stderr, "XXX ctor\n");} ~XXX(){std::fprintf(stderr, "XXX dtor\n");} }; void…
6
votes
1 answer

How to write a unit test for an uncaught thread exception handler.

I'm trying to write a unit test for my applications uncaught thread exception handler, but have had no luck so far. The handler is application wide, and I know it works. It was also based around code found here. However I can't think of a way to…
Dave
  • 3,178
  • 5
  • 28
  • 44
6
votes
2 answers

jQuery Mobile: Uncaught cannot call methods on checkboxradio prior to initialization; attempted to call method 'refresh'

I am pulling my hair out dealing with this problem. These are the code that I used and caused the mentioned problem. $(document).ready(function () { $("#at-site-btn").bind("tap", function () { …
Mysteltainn
  • 421
  • 3
  • 5
  • 13
6
votes
1 answer

Xcode catch all uncaught exceptions

In Xcode I can create a breakpoint to catch all exceptions (exception breakpoint). However this breakpoint will also fire in a try-catch situation. I'm using third party libraries, so the try-catch situation is a fact, not an option. Is there a way…
Yvo
  • 18,681
  • 11
  • 71
  • 90
5
votes
1 answer

What does "error: unreported exception ; must be caught or declared to be thrown" mean and how do I fix it?

New Java programmers frequently encounter errors phrased like this: "error: unreported exception ; must be caught or declared to be thrown" where XXX is the name of some exception class. Please explain: What the compilation error message is…
Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
5
votes
2 answers

Uncaught exception within uncaught exception handler

This question may sound a little silly ;) How would approach the possibility of an uncaught exception within the UncaughtExceptionHandler?
mibollma
  • 14,959
  • 6
  • 52
  • 69
5
votes
2 answers

How to fix “Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0” ERROR

After hours of searching the web I have not found the solution to my problem. So I am building a full-stack CRUD app on React & Java Spring Boot. So far I have been able to run the backend soring boot on localhost://8080. The problem appears when I…
Alex Mo
  • 131
  • 1
  • 2
  • 11
1
2
3
20 21