java.lang.ArithmeticException: / by zero

来源:互联网 发布:linux常用哪些版本 编辑:程序博客网 时间:2024/05/19 01:13

java.lang.ArithmeticException: / by zero

at com.tfy.itheima.service.impl.AccountServiceImpl.transfer(AccountServiceImpl.java:19)

at com.tfy.itheima.impl.test.ClientTest.main(ClientTest.java:15)

Exception in thread "main" java.lang.RuntimeExceptionjava.lang.ArithmeticException: / by zero

at com.tfy.itheima.service.impl.AccountServiceImpl.transfer(AccountServiceImpl.java:25)

at com.tfy.itheima.impl.test.ClientTest.main(ClientTest.java:15)

Caused by: java.lang.ArithmeticException: / by zero

at com.tfy.itheima.service.impl.AccountServiceImpl.transfer(AccountServiceImpl.java:19)

... 1 more

java.lang.NullPointerException

at com.tfy.itheima.jdbc.util.DbcpUtil.startTransaction(DbcpUtil.java:105)

at com.tfy.itheima.service.impl.AccountServiceImpl.transfer(AccountServiceImpl.java:10)

at com.tfy.itheima.impl.test.ClientTest.main(ClientTest.java:14)

java.lang.RuntimeExceptionjava.lang.NullPointerException

at com.tfy.itheima.jdbc.util.DbcpUtil.startTransaction(DbcpUtil.java:108)

at com.tfy.itheima.service.impl.AccountServiceImpl.transfer(AccountServiceImpl.java:10)

at com.tfy.itheima.impl.test.ClientTest.main(ClientTest.java:14)

Caused by: java.lang.NullPointerException

at com.tfy.itheima.jdbc.util.DbcpUtil.startTransaction(DbcpUtil.java:105)

... 2 more

Exception in thread "main" java.lang.RuntimeExceptionjava.lang.RuntimeExceptionjava.lang.NullPointerException

at com.tfy.itheima.service.impl.AccountServiceImpl.transfer(AccountServiceImpl.java:25)

at com.tfy.itheima.impl.test.ClientTest.main(ClientTest.java:14)

Caused by: java.lang.RuntimeExceptionjava.lang.NullPointerException

at com.tfy.itheima.jdbc.util.DbcpUtil.startTransaction(DbcpUtil.java:108)

at com.tfy.itheima.service.impl.AccountServiceImpl.transfer(AccountServiceImpl.java:10)

... 1 more

Caused by: java.lang.NullPointerException

at com.tfy.itheima.jdbc.util.DbcpUtil.startTransaction(DbcpUtil.java:105)

... 2 more