I need to catch the payload exceeded exception thrown by akka. This is because in case my payload is more than the permissible amount set in config file, the response just ends with a timeout. Instead of this present scenario, I would like to catch the exception akka throws in case payload is exceeded instead of waiting for a timeout. Can anyone help how to go about this?
Akka payload exception catch
199 Views Asked by Nagireddy Hanisha At
1
There are 1 best solutions below
Related Questions in EXCEPTION
- Python twisted not catching exception
- Proper use of custom exceptions
- C++ Mongodb driver, not working
- C# console application - Unhandled exception while finding the Available and free Ram space.Getting exact answer in windows forms application
- Hashing String (SHA-256) in an ActionListener class
- Do we have to mention exception type in java?
- How can I make Eclipse (or javac) warn about over-inclusive throws clauses
- Why can an Exception not be rethrown in the BackgroundWorker RunWorkerCompleted event
- How can I set the the expected Exception type for a catch statement with a parameter I've passed into a method?
- Why do I get an IndexOutOfBoundsException when my else should prevent it?
- crypto.BadPaddingException: data hash wrong (EKYC-Response)
- How to print the first line from a traceback stack
- java.lang.ArrayIndexOutOfBoundsException object array
- Passing keyword arguments to custom exceptions - anomaly
- Unauthorised access to folders when creating xml file
Related Questions in TIMEOUT
- Function timeouts in C and thread
- RubyOnRails multiple database connections errors
- Debugging a 404 error for an existing page
- HttpWebRequest timing out, but no packets leaving client
- Multipart/form-data POST request gets timeout and is never sent using AFNetworking
- How to prevent timeout when running a time consuming PHP
- RequireJS module load timeout when using bundles
- OkHttp/Retrofit default timeout
- jetty replay request on timeout
- BASH - Getting an rsh command to return a value or to timeout
- ShareFile upload with Python 2.7.5 code timesout on FTPS STOR
- This page cannot be displayed error when calling a long stored procedure
- Javascript reruning timeout after being cleared
- Retrieve the data from sql database and don`t encounter timeout exception
- AmazonEc2InstanceDataPropertySource.getProperty() is extremely slow when run outside of Amazon
Related Questions in AKKA
- Akka actor invoked with a function delegate - is this bad practice?
- Akka supervisor on stop of subordinate
- Scala - TCP Packet frame using Akka
- Akka-http process requests with Stream
- Multiple dispatcher for spray
- Spray Dead Letter msg
- ActorNotFound Exception trying to run Spark 1.3.1 on windows 7
- What's the best way to get members of an Akka cluster?
- Is it possible to await for second response in Scala
- How to keep Akka running all the time in Play 2.3
- Suspending AKKA actor
- Spray Client (i.e. AKKA) within Tomcat, cause Threading issue
- Can I use Akka scheduler to schedule multiple things from a single actor context?
- akka: pattern for combining messages from multiple children
- Akka: multiple dispatcher vs multiple actor system
Related Questions in PAYLOAD
- Mule Facebook Null Payload
- Format double in remote push notification message before it is presented
- IIS 8 block request by JSON payload fields
- Minimal spring ws (2.4.0) endpoint with xml payload
- "Send payload error" in HTTP POST - Arduino ESP8266
- How do I build up a payload in Mule?
- Status 400: Invalid multipart payload format when testing
- How to POST data on payload instead of formdata
- Where to get number of bytes received in TCP payload
- shellcode spawning a shell
- ASP MVC - Can I combine authorization attributes with conditional logic?
- push notifications received by a limt number of ios devices
- Akka payload exception catch
- Differentiating message event type while catching payload on facebook webhook
- How to get variable for a customer from a webhook in WooCommerce
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can't.
OversizedPayloadExceptionis internal to the Akka remoting capability and is on a thread that is invisible to your code. There is no way for your application to capture that exception. (And it's not thrown, but logged, as seen here and here, but that's a tangential fact.)Having said that, one way to move forward is to follow the suggestions in this answer to a related question that you asked.