博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jmeter简单压力post接口问题
阅读量:6250 次
发布时间:2019-06-22

本文共 10966 字,大约阅读时间需要 36 分钟。

  hot3.png

#问题异常

Apache Tomcat/6.0.24 - Error report 

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.postgresql.util.PSQLException: The connection attempt failed.	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:979)	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)	javax.servlet.http.HttpServlet.service(HttpServlet.java:643)	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)

root cause

org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.postgresql.util.PSQLException: The connection attempt failed.	org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)	org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:615)	org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:866)	org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:927)	org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:937)	com.hava.tactic.sthpw.repository.WorkHourDAO.create(WorkHourDAO.java:67)	com.hava.tactic.workhour.workhour.service.ClientSendTacticWorkhourService.service(ClientSendTacticWorkhourService.java:64)	com.hava.tactic.workhour.workhour.controller.ClientSendWorkhourController.getClientSend(ClientSendWorkhourController.java:35)	sun.reflect.GeneratedMethodAccessor996.invoke(Unknown Source)	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	java.lang.reflect.Method.invoke(Method.java:498)	org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)	org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)	org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:832)	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:743)	org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961)	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895)	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)	javax.servlet.http.HttpServlet.service(HttpServlet.java:643)	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)

root cause

org.postgresql.util.PSQLException: The connection attempt failed.	org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:262)	org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)	org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:215)	org.postgresql.Driver.makeConnection(Driver.java:406)	org.postgresql.Driver.connect(Driver.java:274)	org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)	org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)	org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)	org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:79)	org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)	org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)	org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)	org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)	org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:615)	org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:866)	org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:927)	org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:937)	com.hava.tactic.sthpw.repository.WorkHourDAO.create(WorkHourDAO.java:67)	com.hava.tactic.workhour.workhour.service.ClientSendTacticWorkhourService.service(ClientSendTacticWorkhourService.java:64)	com.hava.tactic.workhour.workhour.controller.ClientSendWorkhourController.getClientSend(ClientSendWorkhourController.java:35)	sun.reflect.GeneratedMethodAccessor996.invoke(Unknown Source)	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	java.lang.reflect.Method.invoke(Method.java:498)	org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)	org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)	org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:832)	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:743)	org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961)	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895)	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)	javax.servlet.http.HttpServlet.service(HttpServlet.java:643)	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)

root cause

java.net.NoRouteToHostException: Cannot assign requested address	java.net.PlainSocketImpl.socketConnect(Native Method)	java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)	java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)	java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)	java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)	java.net.Socket.connect(Socket.java:589)	org.postgresql.core.PGStream.<init>(PGStream.java:64)	org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:133)	org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)	org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:215)	org.postgresql.Driver.makeConnection(Driver.java:406)	org.postgresql.Driver.connect(Driver.java:274)	org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)	org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)	org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)	org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:79)	org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)	org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)	org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)	org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)	org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:615)	org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:866)	org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:927)	org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:937)	com.hava.tactic.sthpw.repository.WorkHourDAO.create(WorkHourDAO.java:67)	com.hava.tactic.workhour.workhour.service.ClientSendTacticWorkhourService.service(ClientSendTacticWorkhourService.java:64)	com.hava.tactic.workhour.workhour.controller.ClientSendWorkhourController.getClientSend(ClientSendWorkhourController.java:35)	sun.reflect.GeneratedMethodAccessor996.invoke(Unknown Source)	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	java.lang.reflect.Method.invoke(Method.java:498)	org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)	org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)	org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:832)	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:743)	org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961)	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895)	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)	javax.servlet.http.HttpServlet.service(HttpServlet.java:643)	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.


Apache Tomcat/6.0.24

转载于:https://my.oschina.net/hava/blog/780256

你可能感兴趣的文章
Web服务基础六之编译安装配置RHEL+Apache+MySQL+PHP+ZendOptimize
查看>>
通过bat文件运行jar包程序
查看>>
关于hive RegexSerDe的源码分析
查看>>
OpenCart之侧边浮动联系我们表单(Side Contact Us Form)
查看>>
PureWhite OpenCart 商城自适应主题模板 ABC-0009
查看>>
zabbix安装配置
查看>>
CentOS 配置***客户端
查看>>
线上应用故障排查之二:高内存占用
查看>>
老毛桃 win7
查看>>
第四次作业
查看>>
4196. [NOI2015]软件包管理器【树链剖分】
查看>>
Apache Spark源码走读之20 -- ShuffleMapTask计算结果的保存与读取
查看>>
Ext 4.2.1 教大家如何去规避ext-all和动态加载机制的优缺点
查看>>
异常处理汇总 ~ 修正果带着你的Code飞奔吧!
查看>>
jdbc
查看>>
百度地图需要的效果-有感
查看>>
查看 NPM、Yarn 全局安装的包
查看>>
[BZOJ 2140]稳定婚姻(强连通分量)
查看>>
人工智能工程师学习路线
查看>>
Nginx入门(2)反向代理和负载均衡
查看>>