Project Summary JavaEE common errors


  1. serious: StandardServer.await: create [8005]

  Cause: Port Number Conflicts

  solve:

  (1) Method a

  Use the command netstat -ano find the process of occupying the port number 8005, then the command taskkill / pid xxxx kill the corresponding process xxxx.

  (2) Method II

  Open the Task Manager, look under development tools eclipse whether to start two of the same process, ends the process, and restart eclipse project.

  (3) Method Three

  Modify the port number in the server.xml Tomcat configuration file.

  Modify the 8080 port to another port number.

  Note: This error with eclipse and the median operating system does not matter.

  2. Can’t load AMD 64-bit .dll on a IA 32-bit’ platform

  The reason: Tomcat and JDK digits inconsistent. Theoretically 64bit compatible 32bit tomcat.

  Solution: Tomcat and JDK make the same number of digits.

  3. Tomcat when loading the project, the progress bar has been displayed launching delegate ... stay at 27%

  Cause: the early morning.

  Solution: Restart MyEclipse, and then run the project again.

  4. Cause: java.sql.SQLException: OALL8 in an inconsistent state

  Cause: the early morning.

  Solution: The jar package into ojdbc14 10.2.0.5.0, and then run the project again.

  5.java.lang.UnsatisfiedLinkError: Can not load library …

  The reason: there is no corresponding DLL file is loaded into the tomcat.

  Solution: Manually copy the DDL files in the project to the next corresponding tomcat directory.

  6.Error starting endpoint

  The reason: Tomcat ports and other processes port conflict.

  Solution: kill other processes.

  7. Error querying database Cause:. Java.sql.SQLException: ORA-01722: invalid number

  Cause - because of the nature of the database table and the reference field data types do not match, there may be given the following two cases:

  (1) may be one: According to the parameters of the wrong type (ie, query, sql statement in question), database table fields are the type of infiltration parameter contains the number of characters.

  (2) may be two: sql statement no problem. E.g:

  ! Select count (*) from user t where t.pro_id = 4099; // error: invalid number

  select * from user t where t.pro_id !=4099; // 没错

  sql statement = oracle database is compared, so oracle will automatically converted into a digital string type digital compared. However, there is varchar data types such as strings, fields table records corresponding existing data both numeric characters also have led to compare their data types can not match.

  8. Network related errors

  Caused by: java.net.ConnectException: Connection timed out: connect

  Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection

  java.net.ConnectException: Connection refused: connect

  Analysis of ideas: network no problem, the card is not a problem, use plsql database can also be connected properly. After the eclipse close other projects, there will still be the problem, but the console log will be closed and other project-related errors.

  The reason: uncertainty.

  Solution: Delete other items temporarily running under Tomcat webapp directory.

  After logging site, the query is executed on a menu that prompts similar "session timeout, quit" message.

  The reason: the website access address in question, may be more a slash "/" character and so on.

  Solution: Modify the website access address.

  9.java.lang.OutOfMemoryError: PermGen space

  The reason: Tomcat assigned to the memory space is not enough.

  Solution: Tomcat to increase or decrease the memory to run the project in Tomcat.

  10. Cause: java.sql.SQLException: ORA-01789: query block has incorrect number of result columns \ n \ n; bad SQL grammar [] ;,

  mybatis - union need to return the same number of columns

  java.sql.SQLException: Invalid column type

  The data types of the database table

  11. load ‘EncryptJNI’ failed.: Native Library D:\Java\jdk1.6.0_06\bin\EncryptJNI.dll already loaded in another classloader

  to be solved

  12. ERROR] HeartbeatTask run() method error: Connection refused: connect

  to be solved

  13. [See nested exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

  to be solved

  14. The browser displays the content of Chinese garbled

  Solution: eclipse / myeclipse preferences workspace into GBK character set, and then re-run the project.

  15 Unsupported major.minor version 51.0

  Cause: The existing project is jdk 1.7 (major version 51.0) compiled java files are not able to run the project in the current lower JRE (4,5,6) version of the project environment that is imported jdk compiled later pass.

  Solution:

  Rebuild the project java file

  The current project jdk environment into 1.7 (effective pro-test)


Reproduced in: https: //juejin.im/post/5cf4cbb1e51d4510727c8036

Guess you like

Origin blog.csdn.net/weixin_33873846/article/details/91435530