When the socket receives data, it often throws Java. io. the eofexception is abnormal and there are no clear causes or prompts. Many people are asking this question on the Internet, but no practical solution is found. After research, the problem is solved. The exception stack information is as follows: Java. Io. eofexception
While loading persisted sessions [java. io. EOFException] Three solutions !, Dowhilenotrs. eof
Cause:
(1) IOException while loading persisted sessions: java. io. EOFException when loading persistent session error: the object end is abnormal, that is, it has been read to the end of the file, tomcat still tries to read
The following exception occurs during Tomcat startup:
Severe: ioexception while loading persisted sessions: Java. Io. eofexception
Severe: exception loading sessions from persistent Storage
Analysis: eofexception indicates the signal that the input process is intended to reach the end of the file or the end of the stream, causing data acquisition from
The following error occurs when Tomcat is started:
[Error] org. Apache. Catalina. session. managerbase-ioexception while loading persisted sessions: Java. Io. eofexception
OrSevere: ioexception while loading persisted sessions: Java. Io. eofexceptionSevere: exception loading sessions from persistent Storage
The reason is:
The reason is that the session data s
I have been using Tomcat 6 as a web server.
Suddenly the following exception occurs when Tomcat is started:
Severe:Ioexception while loading persisted sessions: Java. Io. eofexceptionJava. Io. eofexceptionAt java. Io. objectinputstream $ peekinputstream. readfully (objectinputstream. Java: 2279)At java. Io. objectinput
line of code will error, Logcat print displayjava.io.EOFException,意思就是不知道流的末尾,当到达末尾的时候,自然抛出了此异常。百思不得其解,然后Google,百度各种搜索,但是搜索出来的答案并不有效,其中一个网上提供的解决方案是:Connection.setrequestproperty ("Content-type", "Application/x-java-serialized-object"); But try to add this sentence invalid, helpless, continue to search solutions, finally found some solutions.Find the content-encoding in the response header as gzip by looking at the URL that returns the weather informa
Workaround: Look for sessions.ser under Tomcat_home and delete it.
Cause: Because the session persisted data is wrong, it only causes the data to fail to get from the session.
2006-12-9 11:32:27 Org.apache.catalina.core.AprLifecycleListener lifecycleeventInfo: The Apache Tomcat Native Library which allows optimal performance in production environments is not found on the Java . Library.path:c:/program Files/java
The recent use of Eclipse to launch Tomcat eofexception abnormal, although not affect the use, but always feel uncomfortable, to find a way to solve a bit.
After analysis, the original is Tomcat did not shut down, I basically every time through the task Manager to kill the thread, mainly in the project some resources are not released, under normal circumstances Tomcat will not shut down, so only kill the process.
Because Tomcat does not shut down prop
Java tutorial translation Sequence Java Introduction Build a JSE development environment-install JDK and eclipse Language basics Java Hello World Program Analysis Variable Java Variables Java Native type Conversion of Java
unchecked exceptions (unchecked exception). Another class of exceptions in the Java language is check exceptions (checked exception). Checking for exceptions is those that should be handled in the program, and not checking for exceptions are those that cannot be interfered with (such as an error class exception) or exceptions that can be avoided entirely under control, such as an array out of bounds error. The declaration of a method must indicate al
, write-only; RW, read/write3) You can directly jump to the specified position in the file.4. An example of an I/O ApplicationImport java. Io .*;Public class testio {Public static void main (string [] ARGs)Throws ioexception {// 1. read data from a file in behavior unitsBufferedreader in =New bufferedreader (New filereader ("F: // nepalon // testio. Java "));String S, S2 = new string ();While (S = in. Readl
the hierarchy of an exception class that begins with Throwable, expands the error and exception, and exception expands Runtimeexception.1.650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/2B/wKiom1V1RrHA1DStAAASfsZo_f0402.gif "title=" 56.gif "alt=" Wkiom1v1rrha1dstaaasfszo_f0402.gif "/>Figure 1. Java Exception hierarchyThese four classes are generalized and do not provide much error information, although instantiating these classes is syn
errors and resource exhaustion errors for the Java runtime system. The application should not throw this error.
The Exception class hierarchy consists of two branches.
The exception that is derived from the runtimeexception exception, which is caused by a program error.
Other exceptions are not program-induced.
Several cases that derive from the RuntimeException exception:
Wrong type conversions
Array access out of bound
1. What about the dynamic loading mechanism ??Learning Java is easier to understand the idea of OOP than C ++. After all, C ++ has a lot of process-oriented components. Many people can back up the features of the Java language, the so-called dynamic loading mechanism, and so on. Of course, the concept is often first remembered and then digested. How many people have actually realized the dynamic loading mec
Convert a string in the format of "yyyy-mm-dd" to Java. SQL. Date:
Simpledateformat bartdateformat = new simpledateformat ("yyyy-mm-dd "); String datestringtoparse = "2007-7-12 "; Try { Java. util. Date = bartdateformat. parse (datestringtoparse ); Java. SQL. Date sqldate = new java. SQL. date (date. gettime ());S
Java. io provides a comprehensive IO Interface, including file read/write and standard device output. In Java, IO is input and output based on a stream. All data is serialized into the output stream or read from the input stream. In specific use, many beginners are very vague about the use of Java. io packages. This article will detail the use of
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.