摘要: 浏览器发出请求,后端响应结果并以json的形式返回,后端抛出如下问题截图如下: 经过仔细检查,原来工程中少了commons-lang-2.5.jar库文件,导致json-lib-2.4-jdk15.jar无法找到有关依赖项,从而出现上述问题。 Json-lib 需要的 jar 包(下载地址:http 阅读全文
posted @ 2016-04-26 12:46 指尖飞舞 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 最近在项目中实现一个文件传输功能时,每完成一次操作tomcat8中总是抛出如下异常: 虽然不影响使用,but maybe it is a time bomb! 于是决定找出原因。搜索了一番,发现解决方案大概有两种: 方案一: 因为tomcat8没有属性resourceEntries,换成tomcat 阅读全文
posted @ 2016-04-10 12:22 指尖飞舞 阅读(14990) 评论(0) 推荐(1) 编辑
摘要: 1、Blob-->String 2、String-->Blob 阅读全文
posted @ 2016-03-24 09:43 指尖飞舞 阅读(7499) 评论(0) 推荐(1) 编辑
摘要: 这些天在进行java web开发的过程中,启动tomcat总是报错,具体错误如下: 严重: Exception starting filter struts2 Unable to load configuration. - [unknown location] at org.apache.strut 阅读全文
posted @ 2016-02-02 14:59 指尖飞舞 阅读(26368) 评论(2) 推荐(1) 编辑
摘要: 现在用的tomcat6.0,不知道大家注意没有,在启动的时候,那个启动窗口最上面出现这样一条信息:信息: The APR based Apache Tomcat Native library which allows optimal performance in production environ... 阅读全文
posted @ 2016-01-25 20:05 指尖飞舞 阅读(7947) 评论(0) 推荐(0) 编辑
摘要: Java应用部署到tomcat上后,启动时运行正常,但在运行过程中,是不是抛出如下异常:严重: Error, processing connectionjava.lang.IndexOutOfBoundsException at java.io.BufferedInputStream.read(Bu... 阅读全文
posted @ 2016-01-25 16:21 指尖飞舞 阅读(5408) 评论(0) 推荐(0) 编辑
摘要: 在android开发过程中,经常要通过sqlite来存储一些数据,这种应用应该是再平常不过了,但是有时难免一时疏忽,就会出现sqlite创建表成功,insert不报错,但没有数据插入。具体问题详见如下代码: Context ctx; SQLiteDatabase db = dbOpenHelpe... 阅读全文
posted @ 2016-01-21 19:52 指尖飞舞 阅读(2125) 评论(0) 推荐(0) 编辑
摘要: 在使用tomcat6开发的过程中,由于要输出数据统计图,在后台每次生成图形到前台显示时,总是抛出异常,内容显示有:getOutputStream() has already been called for this response在百度一搜一大把,可见很多人都遇到过类似的问题,解决办法也差不多,在... 阅读全文
posted @ 2016-01-18 10:51 指尖飞舞 阅读(1329) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://blog.sina.com.cn/s/blog_5f1fe33f0100jibg.html示例代码:JsonBean bean = new JsonBean();bean.setName("NewBaby");bean.setAge(1);bean.setBorn(new D... 阅读全文
posted @ 2016-01-14 19:34 指尖飞舞 阅读(1520) 评论(0) 推荐(0) 编辑
摘要: 在xwork2.1.6版本中使用以下这段代码是没有错误的。 ActionContext ctx = ActionContext.getContext(); Map session = ctx.getSession(); session.put(String, Object);但在xwork2.... 阅读全文
posted @ 2015-12-15 20:11 指尖飞舞 阅读(948) 评论(0) 推荐(0) 编辑