错误一:
java.lang.IllegalArgumentException: The 'year' argument must be in range 1900 to 9999.
at org.jfree.date.SpreadsheetDate.<init>(SpreadsheetDate.java:114)
at org.jfree.date.SerialDate.createInstance(SerialDate.java:795)
at org.jfree.data.time.Day.<init>(Day.java:125)
at org.jfree.data.time.Minute.<init>(Minute.java:170)
at com.my.jfreechart.Util.XYAreaChartPublicClass.getJFreeChart(XYAreaChartPublicClass.java:94)
at com.alcornet.struts.action.ajax.AjaxAction.getJFreeChart(AjaxAction.java:280)
at com.alcornet.struts.action.ajax.AjaxAction.execute(AjaxAction.java:84)
at com.alcornet.struts.action.ajax.AjaxAction$$FastClassByCGLIB$$c73c8c38.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
错误二:
[Log4j] ERROR | 程序出错
java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at java.text.DigitList.getDouble(Unknown Source)
at java.text.DecimalFormat.parse(Unknown Source)
at java.text.SimpleDateFormat.subParse(Unknown Source)
at java.text.SimpleDateFormat.parse(Unknown Source)
at java.text.DateFormat.parse(Unknown Source)
at com.my.jfreechart.Util.XYAreaChartPublicClass.get_X_JFreeChart(XYAreaChartPublicClass.java:273)
at com.my.jfreechart.Util.XYAreaChartPublicClass.getJFreeChart(XYAreaChartPublicClass.java:80)
at com.alcornet.struts.action.ajax.AjaxAction.getJFreeChart(AjaxAction.java:280)
at com.alcornet.struts.action.ajax.AjaxAction.execute(AjaxAction.java:84)
at com.alcornet.struts.action.ajax.AjaxAction$$FastClassByCGLIB$$c73c8c38.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
错误三:java.lang.NumberFormatException: For input string: ".24711E.424711E4"
I mean,
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at java.text.DigitList.getDouble(Unknown Source)
at java.text.DecimalFormat.parse(Unknown Source)
at java.text.SimpleDateFormat.subParse(Unknown Source)
at java.text.SimpleDateFormat.parse(Unknown Source)
at java.text.DateFormat.parse(Unknown Source)
at com.my.jfreechart.Util.XYAreaChartPublicClass.getJFreeChart(XYAreaChartPublicClass.java:86)
at com.alcornet.struts.action.ajax.AjaxAction.getJFreeChart(AjaxAction.java:280)
at com.alcornet.struts.action.ajax.AjaxAction.execute(AjaxAction.java:84)
at com.alcornet.struts.action.ajax.AjaxAction$$FastClassByCGLIB$$c73c8c38.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
at com.alcornet.struts.action.ajax.AjaxAction$$EnhancerByCGLIB$$fbc7ec50.execute(<generated>)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.alcornet.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Unknown Source)
错误四:java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at java.text.DigitList.getLong(Unknown Source)
at java.text.DecimalFormat.parse(Unknown Source)
at java.text.SimpleDateFormat.subParse(Unknown Source)
at java.text.SimpleDateFormat.parse(Unknown Source)
at java.text.DateFormat.parse(Unknown Source)
at com.my.jfreechart.Util.XYAreaChartPublicClass.getJFreeChart(XYAreaChartPublicClass.java:86)
at com.alcornet.struts.action.ajax.AjaxAction.getJFreeChart(AjaxAction.java:280)
at com.alcornet.struts.action.ajax.AjaxAction.execute(AjaxAction.java:84)
at com.alcornet.struts.action.ajax.AjaxAction$$FastClassByCGLIB$$c73c8c38.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
at com.alcornet.struts.action.ajax.AjaxAction$$EnhancerByCGLIB$$aae2fd5e.execute(<generated>)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.alcornet.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Unknown Source)
在项目中用到了jfreechart ,有一个需求是 一个页面要显示十几张图,图要异步出现,这样做是为了防止浏览器假死或卡住,用了jquery 中的ajax方法,这十几张图是for循环取得的。function reload_img_nata(divId,trafficType_sub_sub,ap_id,peer_id,flag){
$.ajax({
type:'post',
url:'ajaxAction.do',
data:{op:'jfreechart',id:ap_id,peer_sid:peer_id,trafficType:'tunnel',trafficType_sub:'pps',trafficType_sub_sub:trafficType_sub_sub,tableName:'<%=tableName%>',filterValue:'line_send_pps;line_recv_pps;',filterValue_tcp:'all;',filterValue_udp:'all;',filterValue_icmp:'all;',selectTime:'<%=selectTime%>',startTime:'<%=startTime%>',endTime:'<%=endTime%>',flagLineGroup:flag},
async:true,
//表示异步请求
async:false,则表示同步请求
cache:false,
success:function (data,textStatus){
if(textStatus=="success"){
$(divId).html(data);
}
}
});
}
数据库里时间存的是毫秒
where does this: ".551E" come from?
出现上述错误的解释是:
I double checked the code, and this is what I found.
1. Only a single private instance of SimpleDateFormat is used
private static final SimpleDateFormat dateFormat = new SimpleDateFormat("yy-MM-dd HH:mm:ss");
2. The member is used once in the class via a public method
public void setDateAndTime(String string) {
timestamp = string;
if(string != null) {
try {
date = dateFormat.parse(string);
System.err.println("OutputMsg.setDateAndTime called parse() date = "+date.toString());
} catch(ParseException exception) {
//shouldn't happen - the parse machine won't pass on invalid dates
System.err.println("OutputMsg.setDateAndTime caught ParseException = "+exception.toString());
System.err.println("OutputMsg.setDateAndTime caught ParseException trying to parse string = "+string);
}
}
}
3. There are 4 callers to the public setDateAndTime(String) method. I double-checked the threads making the calls, and 3 calls are always made from the same thread, and the fourth is made the Event thread. I put breakpoints on the calls and checked the stack when the breakpoint was hit just to be sure. Also, the call from the Event thread is only made if a certain condition is met, and we are certain that that condition did not evaluate to true when we were getting the NumberFormatException. Also, the stack trace associated with the NumberFormatException showed 2 calls being made to the setDateAndTime(String) method from the same thread.
To be certain that we weren't passing bad data to the setDateAndTime(String) method, we hard-coded a valid string before calling parse, and then ran our app on the 3.0 gigahertz PC where we could reproduce the NumberFormatException fairly easily, and again the exception was thrown when a valid string was passed.
分享到:
相关推荐
项目详解地址:http://www.code4app.com/blog-843201-350.html 快速集成RTMP的视频推流教程:http://www.code4app.com/blog-843201-315.html ffmpeg常用命令操作:...
microsoft/webview2: https://developer.microsoft.com/zh-cn/microsoft-edge/webview2/ 高德地图 Uri Api: https://lbs.amap.com/api/uri-api 百度坐标拾取系统: https://api.map.baidu.com/lbsapi/getpoint/ ...
百度官方pcs api文档:http://developer.baidu.com/wiki/index.php?title=docs/pcs/overview,上面有各种语言的SDK,我用的laravel5,直接导里面的php SDK还用不了,稍做了修改才能用的。 看完上面两篇文章,基本就...
下载 sdk:http://developer.android.com/sdk/index.html 选择 linux 64 位版本 adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb 2、 安装 adb $ mkdir -p ~/bin $cp adt-bundle-linux-x86_64-20130729/sdk...
http://developer.novell.com/wiki/index.php/Libraries_for_C_(LibC) for authldap LDAP libs (2004/02/18 or later), available at: http://developer.novell.com/wiki/index.php/LDAP_Libraries_for_C you should...
Xcode的真机调试功能依赖于Apple的Developer ID,开发者需要在Apple Developer Portal上注册并加入相应的开发者计划,获取证书和配置文件,才能将应用安装到真机设备上进行调试。这些证书和配置文件管理在Xcode的...
IOS真机调试包 解压后放在目录:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
这是编译原理课程写的一个PL0的编译器,实现了词法分析、语法...愿意支持一下的可用积分下载,白嫖移步开源地址https://gitee.com/wlanxww/run_PL0_CPP。压缩包删除了clion的文件,开源地址理论上可以直接用(macOS)
描述文件 只能下载 iOS 13.1 的beta版 需要13.0 的话 需要自己先升级mac 系统到10.15的beta版 再去这个地址下载手机相应的固件 https://developer.apple.com/download/#ios-restore-images-iphone-new 通过ituns ...
- [iPhone SDK 2.2.1](http://developer.apple.com/iphone/download.action?path=/iphone/iphone_sdk_for_iphone_os_2.2.1__9m2621a__final/iphone_sdk_for_iphone_os_2.2.19m2621afinal.dmg) ### 二、iPhone SDK ...
然后根据推荐的驱动版本,前往<https://developer.nvidia.com/cuda-toolkit-release-notes> 查找对应的CUDA版本。下载CUDA安装包并按照官方指南进行安装。 安装CUDA后,需要下载与CUDA版本匹配的cuDNN。cuDNN是...
官网下载太慢,没有办法,分享一下! 【Windows 11】CUDA 12.6.1 及其配套的 cuDNN 8.9.7.29 【均来自英伟达官网】 链接:...cuDNN下载地址:https://developer.nvidia.com/rdp/cudnn-archive
安卓开发者网站https://developer.android.com/官网下载 国内好像不能直接访问,真是不懂这个网站为什么会被墙
Xcode下载地址大全,Xcode 各个历史版本下载地址,如本页面未收录,请在官方下载:https://developer.apple.com/downloads/index.action。
- [Room](https://developer.android.com/topic/libraries/architecture/room) - [Lifecycle-aware components](https://developer.android.com/topic/libraries/architecture/lifecycle) - [ViewModels]...
webView2运行时环境 离线环境 官网:https://developer.microsoft.com/zh-cn/microsoft-edge/webview2/?ch=1&form=MA13LH 一份是常青版本,可以支持自动更新到最新版 一份是固定版本,适合和软件包一起
打开网址 http://developer.baidu.com/map/index.php 点击 创建应用,跟流程创建应用app 3.点击相关下载->一键下载 4.调用百度地图的APP 需要在 AndroidManifest.xml 添加 android:name="baidumapsdk.demo....
* https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial * http://mdn.github.io/webgl-examples/tutorial/sample1/ * http://mdn.github.io/webgl-examples/tutorial/sample2/ * ...
选择了阿里云视觉智能开放平台(https://vision.aliyun.com/)、百度AI开放平台...//cloud.tencent.com/)、讯飞开放平台(https://www.xfyun.cn/)、华为云(https://developer.huaweicloud.com/)等主流的国内AI平台
参考资料: http://developer.android.com/reference/android/widget/SlidingDrawer.html 现在官方建议不再使用 第二种是DrawerLayout: 这种效果是左边的侧滑栏盖在右边。 参考资料: ...