java.lang.NumberFormatException: multiple points已解决
来源:互联网 发布:看门狗2低配优化 编辑:程序博客网 时间:2024/06/10 19:45
问题:
多线程方法中使用了共享变量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
- Java注解学习四:@Inherited的使用
- iOS动画(Core Animation)使用
- 深入浅出UML类图
- 域名解析中A记录、CNAME、MX记录、NS记录的区别和联系
- 将项目放在不同系统环境下出现编码格式错误
- java.lang.NumberFormatException: multiple points已解决
- 跟Android初学者分享几点经验
- AJAX之Json序列化
- 简单工厂模式
- 链表相关的操作整理(二)
- Java中的装箱 拆箱
- -force_load配置framework路径
- android UI线程与非Ui线程交互方法
- vitualbox5.0虚拟机和宿主机相互通信