HTTP Status 500 - Request processing failed; nested exception is java.lang.ArithmeticException: / by
2016-11-03 20:43
1266 查看
一、问题描述
访问网页报
HTTP Status 500 - Request processing failed; nested exception is java.lang.ArithmeticException: / by zero
二、解决方法
这是除数为0时,报的错。除数无论什么情况下都不能为0的,否则没有结果,因此为0的时候系统就会抛出异常。
发现由于我在代码中除数写成了0
将他修改成2、就可以了。
访问网页报
HTTP Status 500 - Request processing failed; nested exception is java.lang.ArithmeticException: / by zero
二、解决方法
这是除数为0时,报的错。除数无论什么情况下都不能为0的,否则没有结果,因此为0的时候系统就会抛出异常。
发现由于我在代码中除数写成了0
将他修改成2、就可以了。
相关文章推荐
- HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException
- HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException
- HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException
- HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException:
- springMVC开发|HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFou
- HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: jav
- HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoSuchMethodError:
- HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
- HTTP Status 500 - Handler processing failed; nested exception is java.lang.OutOfMemoryError: PermGen
- HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGram
- HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGram
- HTTP Status 500 - Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException
- HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- HTTP Status 500 - Request processing failed; nested exception is org.hibernate.exception.GenericJDBC
- HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemExc
- HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException
- HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemExc
- HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemExc
- 问题3:HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding