
异常错误发现和处理
IPI715718
这个作者很懒,什么都没留下…
展开
-
eclipse启动tomcat报错'Start Tomcat v8.0 Server at localhost' has encountered a problem.
错误:Start Tomcat v8.0 Server at localhost' has encountered a problem.Port 8080 required by Tomcat v8.0 Server at localhost is already in use. The server may already be running in another process, or a ...原创 2018-09-11 20:17:55 · 4353 阅读 · 2 评论 -
eclipse发布到tomcat提示java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderLis
https://blog.youkuaiyun.com/john1337/article/details/52044855转载 2018-09-20 17:56:40 · 532 阅读 · 0 评论 -
java.lang.ClassCastException: com.github.pagehelper.PageHelpercannot be cast to org.apache.Intercept
使用pagehelper插件时出现的异常。我原先mybatis的配置如下<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-co...原创 2018-10-25 18:27:55 · 3035 阅读 · 9 评论 -
java.lang.NoClassDefFoundError和java.lang.ClassNotFoundException
NoClassDefFoundError错误发生的原因NoClassDefFoundError错误的发生,是因为Java虚拟机在编译时能找到合适的类,而在运行时不能找到合适的类导致的错误。例如在运行时我们想调用某个类的方法或者访问这个类的静态成员的时候,发现这个类不可用,此时Java虚拟机就会抛出NoClassDefFoundError错误。与ClassNotFoundException的不同...原创 2018-10-26 09:36:01 · 259 阅读 · 0 评论 -
FTPClient上传文件大小为0字节的问题顺利解决 一步到位
今天通过FTPClient上传图片时出现,虽然无错误出现但是上传到服务器端的图片大小为0。之前的代码public static boolean uploadFile(String host, int port, String username, String password,String basePath, String filePath, String file...原创 2018-10-29 22:24:49 · 14198 阅读 · 14 评论 -
nginx 启动报错“var/run/nginx/nginx.pid" no such file or directory解决方法
今天刚搭建的nginx服务器启动时,报错“var/run/nginx/nginx.pid" no such file or directory,按照他的意思我在var/run/新建了一个文件夹nginx,重新启动,启动成功。但是当我虚拟机重启后依然报错“var/run/nginx/nginx.pid" no such file or directory,进入var/run/下的...原创 2018-10-30 21:59:53 · 11331 阅读 · 2 评论 -
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj....
今天使用 mysql-8.0.13版本数据库链接时出现了以下问题Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and...原创 2018-11-18 12:50:10 · 17615 阅读 · 8 评论 -
Unable to create core [new_core] Caused by: Unknown fieldType 'long' specified on field item_price.
今天搭建solr服务器的中文词法分析器,我用的是solr-8.0.0,出现Error CREATEing SolrCore 'new_core': Unable to create core [new_core] Caused by: Unknown fieldType 'long' specified on field item_price.意思是: long 类型不认识。打开我的 m...原创 2019-04-01 20:57:46 · 1107 阅读 · 0 评论