Java Development common errors (Continuous updates)

Source: Internet
Author: User

1) the following error occurs when receiving files:

Java. Io. utfdataformatexception: malformed input around byte 19

At java. Io. datainputstream. readutf (datainputstream. Java: 617)
At java. Io. datainputstream. readutf (datainputstream. Java: 547)
At CN. ac. ICT. acceptfilefronm. run (acceptfilefronm. Java: 49)
At CN. ac. ICT. socketmanager. doflag (socketmanager. Java: 127)
At CN. ac. ICT. socketmanager. Run (socketmanager. Java: 89)

Solution: The datainputstream stream has been opened before and then obtained from the socket later. A stream exception occurs (the datainputstream stream may be incomplete). Therefore, you only need to open the socket input stream at one point to solve this problem.

2) [20:55:33-picture1__txt] project has no default. properties file! Edit
Project properties to set one.

1. Copy the default. properties file to other projects and use it directly. If the file is still incorrect, re-import the project. 2. Rename the project. properties file in the project to default. properties.


3)Description
Resource path location type error: apostrophe not preceded by \ (in search 'titles) strings. xml

change the single quotation marks (') in the defined string (\')

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.