Skip to content

常见错误

杨尚川 edited this page Nov 4, 2013 · 15 revisions

这里没有列出的错误请查看:https://github.com/ysc/APDPlat/issues

1、第一次导入数据失败

问题描述:

第一次运行出现错误 “Incorrect string value: 'xE6x95xB0xE6x8DxAE...' for column 'chinese' at row 1”,此错误位于日志 “第一次注册第一个数据字典: 数据字典” 的下一行

解决方法:

确认MYSQL是否使用UTF-8编码

2、第一次连接数据库失败

问题描述:

第一次运行出现错误 “java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)“

解决方法:

将数据库用户root的密码设置为root

打开命令行窗口,运行如下目命令:

mysql -u root -p

use mysql;

update user set user="root" where user="root";

flush privileges;

3、第一次运行中文分词报错

问题描述:

第一次运行出现错误“Caused by: net.paoding.analysis.exception.PaodingAnalysisException: dic home should not be a file, but a directory!”

解决方法:

签出的项目APDPlat所在的路径不能有空格,以后会使用MMSEG4J替换庖丁分词器

4、第一次启动抛出异常java.lang.VerifyError

问题描述:

第一次运行出现错误“Caused by: java.lang.VerifyError: Expecting a stackmap frame at branch target 24 in method com.apdplat.platform.spring.APDPlatContextLoaderListener.contextInitialized(Ljavax/servlet/ServletContextEvent;)V at offset 16”

解决方法:

在catalina.sh(catalina.bat)的JAVA_OPTS中配置-XX:-UseSplitVerifier

5、系统启动抛出异常org.hibernate.exception.GenericJDBCException: could not get table metadata: BackupLog

问题描述:

系统启动运行出现错误“ERROR [org.hibernate.util.JDBCExceptionReporter] - Can't create/write to file '/tmp/#sql_911_0.MYI' (Errcode: 13)2013-03-22 03:29:16,383 [localhost-startStop-1] ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] - could not complete schema update org.hibernate.exception.GenericJDBCException: could not get table metadata: BackupLog”

解决方法:

chmod 777 /tmp

6、系统启动抛出异常:java.lang.OutOfMemoryError: PermGen space

问题描述:

系统启动运行出现错误“java.lang.OutOfMemoryError: PermGen space”

解决方法:

加入JVM参数:-Xms256m -Xmx1000m -XX:MaxNewSize=256m -XX:MaxPermSize=256m