Java runtime exception and runtimeexception

Source: Internet
Author: User

Java runtime exception and runtimeexception

ArithmeticException: arithmetic exception
ArrayStoreException, Array Storage exception
BufferOverflowException, Encoding Error

Solution:

When I used Eclipse to develop a java project, an error occurs in java. nio. BufferOverflowException. At that time, I saw the solution on the Internet.

1. In eclipse, project-> Generate javadoc menu, after adding the-encoding UTF-8 parameter in the Extra Javadoc options text box in the third dialog box, this phenomenon disappears

2. temporarily) set the local language to English in the area and language options in the control panel

3. You can also change the input background data to full English.


BufferUnderflowException, Encoding Problems
CannotRedoException,
CannotUndoException,
ClassCastException, which is a runtime exception thrown when JVM detects incompatibility between the two types.
Cmcmexception. If the local CMM returns an error, this exception is thrown.
ConcurrentModificationException: If Vector and ArrayList are modified simultaneously during iteration, an exception is thrown.
DOMException. The interface indicates a processing error. When an operation cannot be executed, an exception is thrown.
EmptyStackException, empty stack exception
IllegalArgumentException. The location file cannot be found. This is also reported when the project is started. View the tomcat configuration file.
IllegalMonitorStateException occurs because the programmer does not pay attention to the conditions for using the Y (), notify (), and wait () methods and does not really understand the thread synchronization mechanism. If the current thread is not the lock owner of this object, but calls the notify (), notify (), wait () method of this object, this exception is thrown.
IllegalPathStateException,
IllegalStateException,

This exception indicates that the current response to the client has ended and cannot be sent

The client (actually a buffer) Outputs any content


ImagingOpException,

IndexOutOfBoundsException, array out-of-bounds exception
MissingResourceException,
NegativeArraySizeException,

This is generally because the form is incorrectly written.

Method must be post

Add ENCTYPE = "multipart/form-data"

<Form name = "myForm" method = "post" ENCTYPE = "multipart/form-data">

NoSuchElementException, iterator Error
NullPointerException, null pointer exception
ProfileDataException,
ProviderException,
RasterFormatException,
SecurityException, insufficient Permissions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.