#exceptio

java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGCodec

今天迁移老项目到linux服务器,jdk8,tomcat8.5遇到这个问题。java.lang.ClassNotFoundException:com.sun.image.codec.jpeg.JPEGCodec查询资料得知,原来openjdk从jdk7开始去掉了这个类。ICEpdfPDF-332JPEGCodechas...

php下载报错PHPExcel exception Could not close zip file

php下载报错PHPExcelexception:“Couldnotclosezipfile…” 问题原因:就是目录没有权限导致。给报错的路径777权限就可以了 ...

MySQL出现:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago.

1、首先检查生产环境的机器是否ping的通和telnet的通数据库2、排查数据库连接的参数3、看数据量是否很大 参考:http://blog.csdn.net/sclxf/article/details/5775125 ...

解决 org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected

异常翻译:Prematureendofchunkcodedmessagebody:closingchunkexpected翻译如下:过早的关闭通过块编码的消息体:关闭块异常。关键点在于http传输协议1.0与1.1的区别,1.1协议的内容是分块传输,response获得实体事懒加载,一块一块的获取,但是这个Entity...

VMware Workstation 虚拟机暂停后无法启动 出现Exception 0xc0000006 (disk error while paging) has occurred.错误

虚拟机暂停了,突然停电,再开机后无法启动暂停的虚拟机,出现下面的错误VMwareWorkstationunrecoverableerror:(vmx)Exception0xc0000006(diskerrorwhilepaging)hasoccurred.Alogfileisavailablein“D:Do...

本地启动tomcat的时候报内存溢出错误:java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space

问题分析:  PermGenspace的全称是PermanentGenerationspace,是指内存的永久保存区域,这块内存主要是被JVM存放Class和Meta信息的,Class在被Loader时就会被放到PermGenspace中,它和存放类实例(Instance)的Heap区域不同,GC(GarbageCol...

前后台JSON传值得一个问题和异常处理net.sf.json.JSONException: Unquotted string '"name"'

  项目中做导入的时候遇到个bug,用JSON.stringify()序列号json对象传给后台;然后后台通过getPatameter()获取值时,前台的英文引号变成了中文引号。  原来代码如下:(自己排查发现就算是英文的时候也是如此)//提交事件$("#submitButton").bind("click",func...

常见Hibernate报错处理:出现“org.hibernate.QueryException: could not resolve property”和 is not mapped和could not locate named parameter错误的解决

  正确写法:  @Override@SuppressWarnings("unchecked")publicList<Device>queryOSDevice(Stringcpu){Stringsql=null;if(cpu.equals("os_xp")){sql="from"+this.clazz.ge...

unexpected token: * 和 java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to 解决办法

一、unexpectedtoken:* 的解决办法  首先要搞清楚sql与hql的区别!  sql操作的是数据库表,而hql操作的是对象!  sql中“select*fromtable”,而hql中"fromtable对象"!  因为sql用惯了,习惯*,但是hql不认识!  试试:直...

Tomcat无法启动8005端口,提示:java.net.ConnectException: 拒绝连接 (Connection refused)

修改$JAVA_HOME/jre/lib/security/Java.security文件中securerandom.source配置项:将securerandom.source=file:/dev/random修改为:securerandom.source=file:/dev/urandom然后启动Tomcat和关闭...

Spring Data JPA使用getOne方法报错:Method threw 'org.hibernate.LazyInitializationException' exception. Cannot evaluate

getOne是懒加载,需要增加这个配置: spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true,但这种方式不太友好,建议不要使用。解释:https://vladmihalcea.com/2016...每次初始化一个实体的关联就会创建一个临...

Jackson反序列化错误:com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field的解决方法

说明:出现这种问题的情况是由于JSON里面包含了实体没有的字段导致反序列化失败。解决方法://第一种解决方案//ObjectMapper对象添加mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,false);Strings="{"id"...

Caused by: java.net.UnknownHostException: localhost.localdomain: localhost.localdomain的问题解决

在hosts文件增加如下配置即可,下面的方法适合上面提示的错误,无论是Tomcat问题还是MongoDB等等的问题都可以完美解决。vi/etc/hosts127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4127.0.0.1lo...

错误:Caused by:org.apache.spark.SparkException: Kryo serialization failed: Buffer overflow.Available: 0, required: 21. To avoid this,

这个是写入Redis时用的序列化器,然后错误提示是超过了大小限制,把配置调大即可。.set("spark.kryoserializer.buffer.max","128");如果没有配置,那么找一下看下有没有硬编码写了大小的范围导致的。 参考:http://blog.csdn.net/keyuquan/art...

Jetty错误: badMessage: java.lang.IllegalStateException: too much data after closed for HttpChannelOverHttp@472adad9{r=2,c=false,a=IDLE,uri=}

最近用Jetty跑SpringMVC接收POST请求(POST中数据很大)。出现数据无法获取到的问题。如:@RequestMapping(value="/receive",method=RequestMethod.POST)publicreceive(Stringa,Stringb,Stringc)其中a是从POST中...
首页上一页...2021222324...下一页尾页