java.lang.ArithmeticException: / by zero

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

你可能感兴趣的:(java.lang.ArithmeticException: / by zero)