ssh 项目 异常 求解

java20087760445 2011-04-05 11:54:00
小弟在写一个小项目 遇到了Caused by: java.lang.NumberFormatException: For input string: ""异常,弄了一天还没找到错无的根源,求解 急!!!
...全文
89 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
liucy1983 2011-04-07
  • 打赏
  • 举报
回复
NumberFormatException: For input string
数字格式异常:输入为字符串
dataminer_2007 2011-04-06
  • 打赏
  • 举报
回复
你哪里有个空字符串转换不了为int
java20087760445 2011-04-05
  • 打赏
  • 举报
回复
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Integer.parseInt(Integer.java:497)
at org.hibernate.cfg.HbmBinder.bindColumn(HbmBinder.java:1647)
at org.hibernate.cfg.HbmBinder.bindColumns(HbmBinder.java:1066)
at org.hibernate.cfg.HbmBinder.bindColumnsOrFormula(HbmBinder.java:1518)
at org.hibernate.cfg.HbmBinder.bindSimpleValue(HbmBinder.java:1124)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2073)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2031)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:359)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144)
at org.hibernate.cfg.Configuration.add(Configuration.java:424)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:465)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:631)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
... 39 more

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧