java.lang.ArithmeticException: / by zero

java.lang.ArithmeticException:/byzero

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

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

Exceptioninthread"main"java.lang.RuntimeException:java.lang.ArithmeticException:/byzero

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

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

Causedby:java.lang.ArithmeticException:/byzero

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

...1more

java.lang.NullPointerException

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

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

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

java.lang.RuntimeException:java.lang.NullPointerException

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

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

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

Causedby:java.lang.NullPointerException

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

...2more

Exceptioninthread"main"java.lang.RuntimeException:java.lang.RuntimeException:java.lang.NullPointerException

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

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

Causedby:java.lang.RuntimeException:java.lang.NullPointerException

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

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

...1more

Causedby:java.lang.NullPointerException

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

...2more

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