java.lang.NumberFormatException: multiple points已解决
来源:互联网 发布:南风成女脸型数据 编辑:程序博客网 时间:2024/06/02 21:31
问题:
多线程方法中使用了共享变量SimpleDateFormat,报如下错误:
java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1084
原因:
解决:
在线程方法中,new SimpleDateFormat();
例:
SimpleDateFormat sdf = new SimpleDateFormat();
class QueryUserByNoThread extends Thread{
LoginOpr loginOpr;
CountDownLatch countdown ;
Map<String, Object> map;//构造返回信息
Group group;
String grpUId;
SimpleDateFormat sdf;
List<Cust> listCust;
List<GroupMember> listMem;
List<User> listUser;
User user;
Map<String, String> member = new HashMap<String, String>();
/**
* @param bo
* @param loginOpr
*/
public QueryUserByNoThread(LoginOpr loginOpr,CountDownLatch cdown,Map<String, String> member,Group group,String grpUId,List<Cust> listCust,List<GroupMember> listMem,List<User> listUser,User user,Map<String, Object> map) {
super();
this.member.putAll(member);
this.countdown = cdown;
this.map = map;
this.group=group;
this.grpUId = grpUId;
this.sdf = new SimpleDateFormat(Constants.DATE_MODEL_8);
this.listMem = listMem;
this.listUser = listUser;
this.loginOpr = loginOpr;
this.user=user;
}
- java.lang.NumberFormatException: multiple points已解决
- java.lang.NumberFormatException: multiple points已解决
- java.lang.NumberFormatException: multiple points已解决
- java.lang.NumberFormatException: multiple points已解决
- java.lang.NumberFormatException: multiple points
- java.lang.NumberFormatException: multiple points特例及解决!
- java.lang.NumberFormatException: multiple points的解决方案
- java.lang.NumberFormatException: multiple points 异常
- java.lang.NumberFormatException: multiple points 异常
- java.lang.NumberFormatException: multiple points 问题
- 时间转换报java.lang.NumberFormatException: multiple points问题
- 已解决java.lang.NumberFormatException: For input string: "7006@17006"
- java.lang.NumberFormatException: multiple points 异常 原创 2016年11月15日 20:48:09 标签:java 3032 平时使用SimpleD
- java.lang.NumberFormatException翻译
- Java.lang.NumberFormatException分析
- java.lang.NumberFormatException: null
- java.lang.NumberFormatException
- java.lang.NumberFormatException: null
- 数据结构第四章--串
- 【并查集】畅通工程 _HDU1232
- 向他人求助的正确姿态
- Android HttpConnection HttpClient
- django - generic views
- java.lang.NumberFormatException: multiple points已解决
- 全局变量、局部变量、静态全局变量、静态局部变量在内存里的区别
- [cocos2dx]Cocos Code IDE使用教程
- Python 字符串切割函数设计
- LoadRunner的并发用户和集合点
- Android mk文件(Makefile)笔记
- 列表解析与生成器表达式
- 【Java】的绝对路径和相对路径
- C++ void参数