boot客户管理系统登录报错HTTP Status 500 – Internal Server Error

HTTP Status 500 – Internal Server Error

Type 异常报告

消息 Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

描述 服务器遇到一个意外的情况,阻止它完成请求。

Exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))

The error may exist in com/ssm/core/dao/UserDao.xml

The error may involve com.ssm.core.dao.UserDao.findUser

The error occurred while executing a query

Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))

The error may exist in com/ssm/core/dao/UserDao.xml

The error may involve com.ssm.core.dao.UserDao.findUser

The error occurred while executing a query

Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))

org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:77)
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)
com.sun.proxy.$Proxy16.selectOne(Unknown Source)
org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:166)
org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:82)
org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
com.sun.proxy.$Proxy22.findUser(Unknown Source)
com.ssm.core.service.impl.UserServiceImpl.findUser(UserServiceImpl.java:21)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
com.sun.proxy.$Proxy23.findUser(Unknown Source)
com.ssm.core.web.controller.UserController.login(UserController.java:28)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause
org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))

The error may exist in com/ssm/core/dao/UserDao.xml

The error may involve com.ssm.core.dao.UserDao.findUser

The error occurred while executing a query

Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))

org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:150)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:77)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
com.sun.proxy.$Proxy16.selectOne(Unknown Source)
org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:166)
org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:82)
org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
com.sun.proxy.$Proxy22.findUser(Unknown Source)
com.ssm.core.service.impl.UserServiceImpl.findUser(UserServiceImpl.java:21)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
com.sun.proxy.$Proxy23.findUser(Unknown Source)
com.ssm.core.web.controller.UserController.login(UserController.java:28)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))
org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:82)
org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:68)
org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336)
org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:84)
org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:77)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
com.sun.proxy.$Proxy16.selectOne(Unknown Source)
org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:166)
org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:82)
org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
com.sun.proxy.$Proxy22.findUser(Unknown Source)
com.ssm.core.service.impl.UserServiceImpl.findUser(UserServiceImpl.java:21)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
com.sun.proxy.$Proxy23.findUser(Unknown Source)
com.ssm.core.web.controller.UserController.login(UserController.java:28)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause
java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))
org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2294)
org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2039)
org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:82)
org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:68)
org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336)
org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:84)
org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:77)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
com.sun.proxy.$Proxy16.selectOne(Unknown Source)
org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:166)
org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:82)
org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
com.sun.proxy.$Proxy22.findUser(Unknown Source)
com.ssm.core.service.impl.UserServiceImpl.findUser(UserServiceImpl.java:21)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
com.sun.proxy.$Proxy23.findUser(Unknown Source)
com.ssm.core.web.controller.UserController.login(UserController.java:28)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:835)
com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:455)
com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240)
com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:199)
org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:39)
org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:256)
org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304)
org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2290)
org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2039)
org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:82)
org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:68)
org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336)
org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:84)
org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)
org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:77)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
com.sun.proxy.$Proxy16.selectOne(Unknown Source)
org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:166)
org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:82)
org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
com.sun.proxy.$Proxy22.findUser(Unknown Source)
com.ssm.core.service.impl.UserServiceImpl.findUser(UserServiceImpl.java:21)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
com.sun.proxy.$Proxy23.findUser(Unknown Source)
com.ssm.core.web.controller.UserController.login(UserController.java:28)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

):注意 主要问题的全部 stack 信息可以在 server logs 里查看

Apache Tomcat/8.5.49

1个回答

Access denied for user 'root'@'localhost' ,报错原因不是很明显吗,连接数据库的账号密码不对,没有权限。
检查下账号吧。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
the server responded with a status of 400

mybatis在insert一条信息,返回主键值: ** <insert id="insert" parameterType="User" useGeneratedKeys="true" keyProperty="id"> insert into users (name, password) values (#{name},#{password}); </insert>** 在mapper的实现类中,insert方法返回类型为int:__ **public int insert(User user);** angularjs前端接受数据: app.controller('SignCtrl',function ($rootScope,$scope,$resource,$location) { $scope.user={}; $scope.validUsername=true; $scope.signup = function () { var userResource = $resource('auth/signup', {}, {add:{method:'POST',responseType:"application/json;charset=UTF-8"}}); userResource.save({},$scope.user, function (res) { alert("signup success"); var user = res.data; $rootScope.user.name=$scope.user.name; $location.path("/login"); }, function (data) { alert("signup faliure"); }); }; 然后报错Failed to load resource: the server responded with a status of 400 (Bad Request) 百度了很多说法是前后端数据不匹配,但是不知道怎么改啊。大神求抱大腿!

无法打开流:HTTP请求失败! HTTP / 1.0 500内部服务器错误

<div class="post-text" itemprop="text"> <pre><code>function marketcurencylist($auth,$id) { $context = stream_context_create( array("ssl"=&gt;array( 'verify_peer'=&gt;false, 'verify_peer_name'=&gt;false, ), 'http' =&gt; array( 'method' =&gt; 'GET', 'header' =&gt; "Content-Type: application/json "."Authorization:".$auth." ", ) )); $response = file_get_contents(api_url().'market/allactivemarketslist', false, $context); return $response; } </code></pre> <blockquote> <p>failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error</p> </blockquote> </div>

Android报错闪退NoClassDefFoundError: Failed resolution of: Landroid/arch/core/internal/FastSafeIterableMap怎么解决

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前天在build.gradle文件里面升级了一下依赖,结果再没有成功打开过app,不停地报错。之前在stackoverflow问了一下,说是clean -> rebuild -> restart IDE,一点用都没有。求牛人们解答一下,否则就废了。。。 LOG: ``` 04-26 09:49:45.993 13807 13807 D AndroidRuntime: Shutting down VM 04-26 09:49:45.995 13807 13807 E AndroidRuntime: FATAL EXCEPTION: main 04-26 09:49:45.995 13807 13807 E AndroidRuntime: Process: com.runze.chatkiller, PID: 13807 04-26 09:49:45.995 13807 13807 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/arch/core/internal/FastSafeIterableMap; 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.arch.lifecycle.LifecycleRegistry.<init>(LifecycleRegistry.java:54) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.support.v4.app.SupportActivity.<init>(SupportActivity.java:47) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.support.v4.app.BaseFragmentActivityApi14.<init>(BaseFragmentActivityApi14.java:28) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.support.v4.app.BaseFragmentActivityApi16.<init>(BaseFragmentActivityApi16.java:34) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.support.v4.app.FragmentActivity.<init>(FragmentActivity.java:67) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.support.v7.app.AppCompatActivity.<init>(AppCompatActivity.java:61) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at com.runze.chatkiller.MainActivity.<init>(MainActivity.java:36) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at java.lang.Class.newInstance(Native Method) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:69) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1216) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2864) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.os.Looper.loop(Looper.java:201) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6810) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.arch.core.internal.FastSafeIterableMap" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.runze.chatkiller-X68L9eryR5FLHqiy61E0Lg==/base.apk"],nativeLibraryDirectories=[/data/app/com.runze.chatkiller-X68L9eryR5FLHqiy61E0Lg==/lib/arm64, /system/lib64]] 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:379) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312) 04-26 09:49:45.995 13807 13807 E AndroidRuntime: ... 22 more ``` build.gradle ``` apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.0" defaultConfig { applicationId "com.runze.chatkiller" minSdkVersion 14 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:cardview-v7:28.0.0' implementation 'com.android.support:support-v4:25.3.1' implementation 'com.android.support:appcompat-v7:27.0.1' implementation 'com.android.support:recyclerview-v7:27.0.1' implementation 'com.android.support:design:27.0.1' } ```

gradle依赖传递问题:gralde 5.4的版本,使用api project (':xxxxxx')依赖传递会报错

麻烦各位gradle大神帮忙看下一按,使用gralde 5.4的版本,使用api project (':xxxxxx')依赖传递会报错,报错信息为:Could not find method api() for arguments [project ':xxxxxx'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

dubbox 停止服务报错 jar已经引入

* Exception in thread "NettyServerWorker-thread-1" java.lang.NoClassDefFoundError: org/jboss/netty/util/internal/ByteBufferUtil at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.releaseExternalResources(SocketSendBufferPool.java:380) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:91) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) Exception in thread "NettyServerWorker-thread-4" at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Exception in thread "NettyServerWorker-thread-3" Caused by: java.lang.ClassNotFoundException: org.jboss.netty.util.internal.ByteBufferUtil at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) ... 8 more java.lang.NoClassDefFoundError: org/jboss/netty/util/internal/ByteBufferUtil at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.releaseExternalResources(SocketSendBufferPool.java:380) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:91) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Exception in thread "NettyServerWorker-thread-5" java.lang.NoClassDefFoundError: org/jboss/netty/util/internal/ByteBufferUtil at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.releaseExternalResources(SocketSendBufferPool.java:380) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:91) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) Exception in thread "NettyServerWorker-thread-2" at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) java.lang.NoClassDefFoundError: org/jboss/netty/util/internal/ByteBufferUtil at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.releaseExternalResources(SocketSendBufferPool.java:380) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:91) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) java.lang.NoClassDefFoundError: org/jboss/netty/util/internal/ByteBufferUtil at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.releaseExternalResources(SocketSendBufferPool.java:380) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:91) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)Disconnected from server

npm时总是报错,不能Install东西,请问这是怎么了?

F:\nodework\demo\day5>npm install ejs npm ERR! fetch failed http://r.cnpmjs.org/ejs/download/ejs-2.5.6.tgz npm WARN retry will retry, error on last attempt: Error: unable to verify the first certificate npm ERR! fetch failed http://r.cnpmjs.org/ejs/download/ejs-2.5.6.tgz npm WARN retry will retry, error on last attempt: Error: unable to verify the first certificate npm ERR! fetch failed http://r.cnpmjs.org/ejs/download/ejs-2.5.6.tgz npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "ejs" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE npm ERR! unable to verify the first certificate npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! F:\nodework\demo\day5\npm-debug.log

Python爬取出现Internal Server Error问题

``` import re import urllib.request fh=open('C:\\Users\\Hear-H\\Desktop\\汽车企业数据\\新建文件夹\\298.txt','w',encoding='utf-8') area='<li><span>公司地区</span>(.*?)</li>' area1=area.encode('utf-8') time='<span>成立时间</span>(.*?)</li>' time1=time.encode('utf-8') address='<span>地址</span>(.*?)</li>' address1=address.encode('utf-8') client='<p id=\"maintypicClient\">(.*?)</p>' product='<p id=\"product\">(.*?)</p>' i=0 pat='<a target=\"_blank\" href=\"(http://i.gasgoo.com/supplier/.*?)\">' headers=('User-Agent','Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36') opener=urllib.request.build_opener() opener.addheaders=[headers] while i<100: i+=1 url="http://i.gasgoo.com/supplier/c-298/index-"+str(i)+".html" web=opener.open(url).read().decode('utf-8') rst=re.compile(pat).findall(web) rst1=list() for a in rst: if a not in rst1: rst1.append(a) rst1.pop(0) for b in rst1: pat1=b+'\">(.*?)</a>' name=re.compile(pat1).findall(web) name_d=''.join(name) url1=b website1=opener.open(url1).read().decode('utf-8').encode('utf-8') website2=opener.open(url1).read().decode('utf-8') result1=re.compile(area1).findall(website1) for c in result1: result1_d=c.decode('utf-8') result2=re.compile(time1).findall(website1) for d in result2: result2_d=d.decode('utf-8') result3=re.compile(address1).findall(website1) for e in result3: result3_d=e.decode('utf-8') result4=re.compile(client).findall(str(website2)) result4_d=''.join(result4) result5=re.compile(product).findall(str(website2)) result5_d=''.join(result5) print(name_d+'?'+result1_d+'?'+result2_d+'?'+result3_d+'?'+result4_d+'?'+result5_d+'\n') fh1=fh.write(name_d+'?'+result1_d+'?'+result2_d+'?'+result3_d+'?'+result4_d+'?'+result5_d+'\n') fh.close ``` 就是我在爬取汽车企业数据网站的时候出现了HTTPError: Internal Server Error的问题,但是我上网查的时候一般说Internal Server Error出现的时候都会有500之类的数字提示,这里也没有,所以请问各位大佬一下,出现这种情况是不是只能用代理了呢?或者还有其他的方法 ``` Traceback (most recent call last): File "<ipython-input-1-7c05d0a2c578>", line 1, in <module> runfile('C:/Users/Hear-H/Desktop/汽车企业数据/汽车企业数据挖掘.py', wdir='C:/Users/Hear-H/Desktop/汽车企业数据') File "D:\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile execfile(filename, namespace) File "D:\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile exec(compile(f.read(), filename, 'exec'), namespace) File "C:/Users/Hear-H/Desktop/汽车企业数据/汽车企业数据挖掘.py", line 39, in <module> website1=opener.open(url1).read().decode('utf-8').encode('utf-8') File "D:\Anaconda\lib\urllib\request.py", line 531, in open response = meth(req, response) File "D:\Anaconda\lib\urllib\request.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "D:\Anaconda\lib\urllib\request.py", line 569, in error return self._call_chain(*args) File "D:\Anaconda\lib\urllib\request.py", line 503, in _call_chain result = func(*args) File "D:\Anaconda\lib\urllib\request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) HTTPError: Internal Server Error ```

BoneCP 数据库连接池连接报错

请教 Bonecp 连接池经常报 [com.jolbox.bonecp.ConnectionHandle(229)] [ERROR] Failed to acquire connection. Sleeping for 7000ms. Attempts left: 5 java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) at com.jolbox.bonecp.ConnectionHandle.obtainInternalConnection(ConnectionHandle.java:211) at com.jolbox.bonecp.ConnectionHandle.<init>(ConnectionHandle.java:170) at com.jolbox.bonecp.PoolWatchThread.fillConnections(PoolWatchThread.java:101) at com.jolbox.bonecp.PoolWatchThread.run(PoolWatchThread.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [com.jolbox.bonecp.ConnectionHandle(215)] [INFO ] Successfully re-established connection to DB

MongoDB迁移之后,启动报错 WT_PANIC: WiredTiger library panic

软件运行环境为 Centos 7.4 执行如下命令后报错(mongodb是备份的数据库): ./mongod --storageEngine wiredTiger --auth --dbpath /data/mongo_data/mongodb/ --unixSocketPrefix=/data/mongo_data/ --bind_ip=0.0.0.0 --logpath /data/mongo_data/logs/mongodb.out --quiet & 详细错误,启动异常错误为如下 2018-10-25T10:17:15.030+0800 W - [initandlisten] Detected unclean shutdown - /data/mongo_data/mongodb/mongod.lock is not empty. 2018-10-25T10:17:15.030+0800 W STORAGE [initandlisten] Recovering data from the last clean checkpoint. 2018-10-25T10:17:15.030+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=11G,session_max=20000,eviction=(threads_max=4),statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0), 2018-10-25T10:17:15.034+0800 E STORAGE [initandlisten] WiredTiger (0) [1540433835:34734][16529:0x7f1cc3334cc0], file:WiredTiger.wt, connection: read checksum error for 4096B block at offset 94208: block header checksum of 3534655478 doesn't match expected checksum of 351635639 2018-10-25T10:17:15.034+0800 E STORAGE [initandlisten] WiredTiger (0) [1540433835:34762][16529:0x7f1cc3334cc0], file:WiredTiger.wt, connection: WiredTiger.wt: encountered an illegal file format or internal value 2018-10-25T10:17:15.034+0800 E STORAGE [initandlisten] WiredTiger (-31804) [1540433835:34770][16529:0x7f1cc3334cc0], file:WiredTiger.wt, connection: the process must exit and restart: WT_PANIC: WiredTiger library panic 2018-10-25T10:17:15.034+0800 I - [initandlisten] Fatal Assertion 28558 2018-10-25T10:17:15.043+0800 I CONTROL [initandlisten] 0xf75549 0xf12271 0xef60f1 0xd93f8a 0x13ab369 0x13ab525 0x13ab9c4 0x12fe3d2 0x131811c 0x1315ef8 0x1316d52 0x1340b4b 0x13aa50b 0x13780ab 0x133e207 0xd7e61c 0xd7c3a8 0xa7dc5d 0x7f57a2 0x7fa739 0x7f1cc186f445 0x7f3549 ----- BEGIN BACKTRACE ----- {"backtrace":[{"b":"400000","o":"B75549"},{"b":"400000","o":"B12271"},{"b":"400000","o":"AF60F1"},{"b":"400000","o":"993F8A"},{"b":"400000","o":"FAB369"},{"b":"400000","o":"FAB525"},{"b":"400000","o":"FAB9C4"},{"b":"400000","o":"EFE3D2"},{"b":"400000","o":"F1811C"},{"b":"400000","o":"F15EF8"},{"b":"400000","o":"F16D52"},{"b":"400000","o":"F40B4B"},{"b":"400000","o":"FAA50B"},{"b":"400000","o":"F780AB"},{"b":"400000","o":"F3E207"},{"b":"400000","o":"97E61C"},{"b":"400000","o":"97C3A8"},{"b":"400000","o":"67DC5D"},{"b":"400000","o":"3F57A2"},{"b":"400000","o":"3FA739"},{"b":"7F1CC184D000","o":"22445"},{"b":"400000","o":"3F3549"}],"processInfo":{ "mongodbVersion" : "3.0.6", "gitVersion" : "1ef45a23a4c5e3480ac919b28afcba3c615488f2", "uname" : { "sysname" : "Linux", "release" : "3.10.0-693.el7.x86_64", "version" : "#1 SMP Tue Aug 22 21:09:27 UTC 2017", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "7F7AA372EDE22BA34234ADA10A8AF2E665681140" }, { "b" : "7FFFF8CC1000", "elfType" : 3, "buildId" : "7FB8E16CEA1B913E2703A6E4159FB468CD1E3507" }, { "b" : "7F1CC2F18000", "path" : "/lib64/libpthread.so.0", "elfType" : 3, "buildId" : "F4C04BCE85D2D269D0A2AF4972FC69805B50345B" }, { "b" : "7F1CC2CA6000", "path" : "/lib64/libssl.so.10", "elfType" : 3, "buildId" : "ED0AC7DEB91A242C194B3DEF27A215F41CE43116" }, { "b" : "7F1CC2845000", "path" : "/lib64/libcrypto.so.10", "elfType" : 3, "buildId" : "BC0AE9CA0705BEC1F0C0375AAD839843BB219CB1" }, { "b" : "7F1CC263D000", "path" : "/lib64/librt.so.1", "elfType" : 3, "buildId" : "D33989EC31EFE745EB0D3B68A92D19E77D7DDFDA" }, { "b" : "7F1CC2439000", "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "5CDB5A56336E7E2BD14FFA189411E44A834AFCD8" }, { "b" : "7F1CC2132000", "path" : "/lib64/libstdc++.so.6", "elfType" : 3, "buildId" : "9589AE0FDA6AEB1183EBA1C62A328F933E7817FD" }, { "b" : "7F1CC1E30000", "path" : "/lib64/libm.so.6", "elfType" : 3, "buildId" : "F4CAE74047F9AA2D5A71FDEC67C4285D75753EBA" }, { "b" : "7F1CC1C1A000", "path" : "/lib64/libgcc_s.so.1", "elfType" : 3, "buildId" : "531AA1391EA4E1489D5EF11AA5DC2FFD9E2BDFEE" }, { "b" : "7F1CC184D000", "path" : "/lib64/libc.so.6", "elfType" : 3, "buildId" : "CB4B7554D1ADBEF2F001142DD6F0A5139FC9AA69" }, { "b" : "7F1CC3134000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "D266B1F6650927E18108323BCCA8F7B68E68EB92" }, { "b" : "7F1CC1600000", "path" : "/lib64/libgssapi_krb5.so.2", "elfType" : 3, "buildId" : "DA322D74F55A0C4293085371A8D0E94B5962F5E7" }, { "b" : "7F1CC1318000", "path" : "/lib64/libkrb5.so.3", "elfType" : 3, "buildId" : "B69E63024D408E400401EEA6815317BDA38FB7C2" }, { "b" : "7F1CC1114000", "path" : "/lib64/libcom_err.so.2", "elfType" : 3, "buildId" : "A3832734347DCA522438308C9F08F45524C65C9B" }, { "b" : "7F1CC0EE1000", "path" : "/lib64/libk5crypto.so.3", "elfType" : 3, "buildId" : "A48639BF901DB554479BFAD114CB354CF63D7D6E" }, { "b" : "7F1CC0CCB000", "path" : "/lib64/libz.so.1", "elfType" : 3, "buildId" : "EA8E45DC8E395CC5E26890470112D97A1F1E0B65" }, { "b" : "7F1CC0ABD000", "path" : "/lib64/libkrb5support.so.0", "elfType" : 3, "buildId" : "6FDF5B013FD2739D304CFB9D723DCBC149EE03C9" }, { "b" : "7F1CC08B9000", "path" : "/lib64/libkeyutils.so.1", "elfType" : 3, "buildId" : "2E01D5AC08C1280D013AAB96B292AC58BC30A263" }, { "b" : "7F1CC06A0000", "path" : "/lib64/libresolv.so.2", "elfType" : 3, "buildId" : "2BDC2B6FF0B2C204CCE34D139A9EADA0272EB070" }, { "b" : "7F1CC0479000", "path" : "/lib64/libselinux.so.1", "elfType" : 3, "buildId" : "A88379F56A51950A33198890D37F5F8AEE71F8B4" }, { "b" : "7F1CC0217000", "path" : "/lib64/libpcre.so.1", "elfType" : 3, "buildId" : "9CA3D11F018BEEB719CDB34BE800BF1641350D0A" } ] }} mongod(_ZN5mongo15printStackTraceERSo+0x29) [0xf75549] mongod(_ZN5mongo10logContextEPKc+0xE1) [0xf12271] mongod(_ZN5mongo13fassertFailedEi+0x61) [0xef60f1] mongod(+0x993F8A) [0xd93f8a] mongod(__wt_eventv+0x489) [0x13ab369] mongod(__wt_err+0x95) [0x13ab525] mongod(__wt_panic+0x24) [0x13ab9c4] mongod(__wt_bm_read+0x72) [0x12fe3d2] mongod(__wt_bt_read+0x1AC) [0x131811c] mongod(__wt_btree_tree_open+0x58) [0x1315ef8] mongod(__wt_btree_open+0xD02) [0x1316d52] mongod(__wt_conn_btree_get+0x19B) [0x1340b4b] mongod(__wt_session_get_btree+0x41B) [0x13aa50b] mongod(__wt_metadata_open+0x2B) [0x13780ab] mongod(wiredtiger_open+0xCD7) [0x133e207] mongod(_ZN5mongo18WiredTigerKVEngineC1ERKSsS2_bb+0x30C) [0xd7e61c] mongod(+0x97C3A8) [0xd7c3a8] mongod(_ZN5mongo23GlobalEnvironmentMongoD22setGlobalStorageEngineERKSs+0x30D) [0xa7dc5d] mongod(_ZN5mongo13initAndListenEi+0x422) [0x7f57a2] mongod(main+0x139) [0x7fa739] libc.so.6(__libc_start_main+0xF5) [0x7f1cc186f445] mongod(+0x3F3549) [0x7f3549] ----- END BACKTRACE ----- 2018-10-25T10:17:15.043+0800 I - [initandlisten] ***aborting after fassert() failure

python爬虫时出现internal server error

我使用python爬取一个网站的大量帖子,大概有几百万吧 但是很奇怪,每隔不定的数量就会中止 并且挺频繁,中止原因是,Internal Server Error 严重影响了我的进度。。。 求教各位大神! PS:我是用腾讯云服务器主机和PC一起跑的,PC也遇到过很多次这样的问题,感觉可能和使用服务器电脑没关系。。。 ![图片说明](https://img-ask.csdn.net/upload/201608/30/1472517951_899147.png)

web项目在eclipse用jetty跑没问题,但是放在tomcat就启动不了了

很蛋疼啊,我又是个小白,项目在eclipse用jetty:run一点问题都没有,放在tomcat目录下启动就不行了, [org.quartz.impl.StdSchedulerFactory]Quartz scheduler version: null.null.null [org.quartz.core.QuartzScheduler]JobFactory set to: org.springframework.scheduli ng.quartz.AdaptableJobFactory@23a0053 6761 [localhost-startStop-1] INFO o.a.c.w.s.f.ReflectionServiceFactoryBean - Cr eating Service {http://test.ws.demo.web.jeecgframework.org/}JeecgWServiceImplSer vice from class org.jeecgframework.web.demo.ws.test.JeecgWServiceI 7166 [localhost-startStop-1] INFO org.apache.cxf.endpoint.ServerImpl - Setting the server's publish address to be /JeecgWService 7204 [localhost-startStop-1] INFO o.a.c.w.s.f.ReflectionServiceFactoryBean - Cr eating Service {http://test.ws.demo.web.jeecgframework.org/}JeecgWDemoServiceImp lService from class org.jeecgframework.web.demo.ws.test.JeecgWServiceI 7211 [localhost-startStop-1] INFO org.apache.cxf.endpoint.ServerImpl - Setting the server's publish address to be /JeecgWDemoService [org.jeecgframework.core.timer.DataBaseSchedulerFactoryBean]Starting Quartz Sche duler now [org.quartz.core.QuartzScheduler]Scheduler schedulerFactory_$_NON_CLUSTERED star ted. 二月 27, 2017 4:12:53 下午 org.apache.catalina.core.StandardContext startInterna l 严重: Error listenerStart 二月 27, 2017 4:12:53 下午 org.apache.catalina.core.StandardContext startInterna l 严重: Context [/jeecg] startup failed due to previous errors [org.quartz.core.QuartzScheduler]Scheduler schedulerFactory_$_NON_CLUSTERED paus ed. [org.jeecgframework.core.timer.DataBaseSchedulerFactoryBean]Shutting down Quartz Scheduler [org.quartz.core.QuartzScheduler]Scheduler schedulerFactory_$_NON_CLUSTERED shut ting down. [org.quartz.core.QuartzScheduler]Scheduler schedulerFactory_$_NON_CLUSTERED paus ed. [org.quartz.core.QuartzScheduler]Scheduler schedulerFactory_$_NON_CLUSTERED shut down complete. [com.alibaba.druid.pool.DruidDataSource]{dataSource-1} closed 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesJdbc 严重: The web application [/jeecg] registered the JDBC driver [com.alibaba.druid .proxy.DruidDriver] but failed to unregister it when the web application was sto pped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesJdbc 严重: The web application [/jeecg] registered the JDBC driver [com.mysql.jdbc.Dr iver] but failed to unregister it when the web application was stopped. To preve nt a memory leak, the JDBC Driver has been forcibly unregistered. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [Aband oned connection cleanup thread] but has failed to stop it. This is very likely t o create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [Multi cast Heartbeat Receiver Thread] but has failed to stop it. This is very likely t o create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [Multi cast Heartbeat Sender Thread] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [net.s f.ehcache.CacheManager@44d1a3c3] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [Repli cation Thread] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [Repli cation Thread] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [etern alCache.data] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [dictC ache.data] but has failed to stop it. This is very likely to create a memory lea k. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [sched ulerFactory_Worker-1] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [sched ulerFactory_Worker-2] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [sched ulerFactory_Worker-3] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [sched ulerFactory_Worker-4] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [sched ulerFactory_Worker-5] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [sched ulerFactory_Worker-6] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [sched ulerFactory_Worker-7] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [sched ulerFactory_Worker-8] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [sched ulerFactory_Worker-9] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.loader.WebappClassLoader clearRef erencesThreads 严重: The web application [/jeecg] appears to have started a thread named [sched ulerFactory_Worker-10] but has failed to stop it. This is very likely to create a memory leak. 二月 27, 2017 4:12:53 下午 org.apache.catalina.startup.HostConfig deployDirector y 信息: Deploying web application directory D:\apache-tomcat-7.0.53\webapps\docs 二月 27, 2017 4:12:53 下午 org.apache.catalina.startup.HostConfig deployDirector y 信息: Deploying web application directory D:\apache-tomcat-7.0.53\webapps\exampl es 二月 27, 2017 4:12:53 下午 org.apache.catalina.startup.HostConfig deployDirector y 信息: Deploying web application directory D:\apache-tomcat-7.0.53\webapps\host-m anager 二月 27, 2017 4:12:53 下午 org.apache.catalina.startup.HostConfig deployDirector y 信息: Deploying web application directory D:\apache-tomcat-7.0.53\webapps\manage r 二月 27, 2017 4:12:53 下午 org.apache.catalina.startup.HostConfig deployDirector y 信息: Deploying web application directory D:\apache-tomcat-7.0.53\webapps\ROOT 二月 27, 2017 4:12:53 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8080"] 二月 27, 2017 4:12:53 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 二月 27, 2017 4:12:53 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 19626 ms

Laravel 4.1.x中具有相同ID的单选按钮

<div class="post-text" itemprop="text"> <p>I have this code:</p> <pre><code>&lt;div class="form-group {{ (isset($errors) AND $errors-&gt;has('indicacao_interna')) ? 'has-error' : '' }}"&gt; {{ Form::label('indicacao_interna', 'Indicação Interna', array('class' =&gt; 'col-lg-4 control-label')) }} &lt;div class="col-lg-3"&gt; &lt;div&gt; &lt;label class='radio-inline'&gt;{{ Form::radio('indicacao_interna', 1, oldRadio('indicacao_interna', 1, true)) }} Sim&lt;/label&gt; &lt;label class='radio-inline'&gt;{{ Form::radio('indicacao_interna', 0, oldRadio('indicacao_interna', 0, true)) }} Não&lt;/label&gt; @include('partials.validators.message_field', array('field' =&gt; 'indicacao_interna')) &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>And it generates this code:</p> <pre><code>&lt;div class="form-group "&gt; &lt;label for="indicacao_interna" class="col-lg-4 control-label"&gt;Indicação Interna&lt;/label&gt; &lt;div class="col-lg-3"&gt; &lt;div&gt; &lt;label class="radio-inline"&gt;&lt;input checked="checked" name="indicacao_interna" type="radio" value="1" id="indicacao_interna"&gt; Sim&lt;/label&gt; &lt;label class="radio-inline"&gt;&lt;input name="indicacao_interna" type="radio" value="0" id="indicacao_interna"&gt; Não&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>As you can see, the radio button have the <strong>same id</strong>. This is wrong, right?</p> <p>And... why the radio generate same id? Not just a name?</p> <hr> <ul> <li>Laravel 4.1</li> <li>Apache 2.4</li> <li>PHP 5.4.17</li> </ul> <hr> <p><em>Sorry for my english... thanks</em></p> </div>

Zookeeper+activemq + leveldb 搭建消息集群消息丢失,为什么啊?

Activemq搭建集群共3台服务器分别为A,B,C,当A为Master时,并往A发消息,由于没有及时去消费,当A挂了,并B选举为Master时,之前发给A的消息全部丢失了,为什么配置了LevelDB高可用,消息还是会丢失了? Queue和Topic都测试了,也设置了持久化,为什么挂掉的服务器消息没有复制到下一个选举的Master去?

java.io.IOException: APR error: -730054

求教怎么解决! 百度到的一个方法是清空.ser文件。。可是我找不到.ser文件啊。。

由于导入错误,go竞赛检测器无法运行。 ports runtime / race:在GOROOT或GOPATH中找不到软件包“ runtime / race”

<div class="post-text" itemprop="text"> <p>my os is ubuntu18.04. <br> my go compiler is gccgo.<br> GOROOT is /usr/local/go<br> it is report as:<br> package testmain imports runtime/race: cannot find package "runtime/race" in any of:<br> /usr/local/go/src/runtime/race (from $GOROOT)<br> /home/lzx/tiny_distributed_system/src/runtime/race (from $GOPATH)</p> </div>

Postfix用ip地址代替域名

<div class="post-text" itemprop="text"> <p>I have virtual server without domain name yet. On server is Ubuntu LAMP installed. I will have domain name later. I can access on server via public static ip address. I want make only simple sending email from php script from this server. I want use Postfix. But I read that Postfix needs FQDN. Before I start install and configure Postfix I want know if is possible <b> use ip address instead domain name</b> for Postfix. Very thanks.</p> </div>

JS json在PHP上收到解密错误

<div class="post-text" itemprop="text"> <p>I sent a JSON string from Javascript and received it on PHP, however my PHP script is not receiving it as JSON.</p> <p>The JS generates this output:</p> <pre><code>{"id_own":"Metztli Alonso","tick":"123456","ticket":"TID","comm":"test viernes nnuevo formato php","NQueues":"AMX-GI-Administracion-Interna","NCauses":"Capacitacion"} </code></pre> <p>But the PHP receives this:</p> <pre><code>id_own=Metztli+Alonso&amp;tick=123456&amp;ticket=TID&amp;NQueues=AMX-GI-Administracion-Interna&amp;NCauses=Capacitacion&amp;comm=test+viernes+nnuevo+formato+php </code></pre> <p>JS </p> <p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>//var obj = { id_own: f.id_own.value, tick: f.Ticket.value, ticket: TTYPE, comm: f.comments.value, NQueues: f.que.value, NCauses: f.cau.value }; //Sample data var obj = { id_own: "Metztli Alonso", tick: "123456", ticket: "TID", comm: "test viernes nnuevo formato php", NQueues: "AMX-GI-Administracion-Interna", NCauses: "Capacitacion" }; const myJSON = JSON.stringify(obj); alert(myJSON); const xhr = new XMLHttpRequest(); xhr.open("POST","http://*****/dev_insert.php"); xhr.setRequestHeader("Content-Type","application/json"); xhr.send(myJSON);</code></pre> </div> </div> <p>PHP</p> <pre><code>&lt;?php echo "&lt;br&gt;"; echo "mensaje de js"; $requestPayload = file_get_contents("php://input"); var_dump ($requestPayload); </code></pre> </div>

sdk packages无法下载

![图片说明](https://img-ask.csdn.net/upload/201704/12/1491990622_260519.png)

php加密密码然后验证不起作用[重复]

<div class="post-text" itemprop="text"> <div class="question-status question-originals-of-duplicate"> <p>This question already has an answer here:</p> <ul> <li> <a href="/questions/3446216/what-is-the-difference-between-single-quoted-and-double-quoted-strings-in-php" dir="ltr">What is the difference between single-quoted and double-quoted strings in PHP?</a> <span class="question-originals-answer-count"> 10 answers </span> </li> </ul> </div> <p>So this is how I encrypt my password.</p> <pre><code>$password_encrypted = password_hash($password, PASSWORD_DEFAULT); </code></pre> <p>And this is how I get the value and check it:</p> <pre><code>&lt;?php include("config.php"); session_start(); if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $myusername = mysqli_real_escape_string($db,$_POST['uname']); $mypassword = mysqli_real_escape_string($db,$_POST['psw']); $result = mysqli_query( $db, "SELECT password FROM interna_dostop WHERE up_name = '$myusername'"); $row = mysqli_fetch_array($result); $hash = $row['password']; echo $hash; echo $mypassword; echo $myusername; if (password_verify('$mypassword','$hash')) { header('Location: another.php'); exit; } else { echo 'Invalid password.'; } } ?&gt; </code></pre> <p>Now here is the funny part. This returns false. But if I enter in password_verify ('mypass', 'encrypted_pass') I get true? </p> <p>Any ideas?</p> </div>

PHP - ORA-01747:user.table.column,table.column或列规范无效

<div class="post-text" itemprop="text"> <p>I'm trying to update a table called RAC_PV at my oracle database but the query is returning that error when i run my application. I thing everyting is right because i run the same query on sqldeveloper (but with manual values) and when i change the variable $preco_medio to a number like 1, it works on the application. Here's my code:</p> <pre><code>$preco_medio = number_format(($v_interna_real / $encargo + $vipe_real) / $v_interna_t + $vipe_t , 2, ",", ".") ; sc_exec_sql("update RAC_PV set PRECO_MEDIO = $preco_medio where rac_anopv = {ano} and rac_mespv = {mes} and codempresa = $id_empresa and codpainel = 6 and cod_prod1 = '$id_produto'"); </code></pre> <p>My table name and the column names are right and checked, my variables like {ano}, {mes}, $id_produto and $preco_medio are all corretly seted. This sc_exec_sql("query here") works fine. Maybe the problem is in the $preco_medio ? I've never used that number_format but when a echo this the number shows right for me like 3,123.03 .</p> <p>Can anyone help me?</p> </div>

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

再不跳槽,应届毕业生拿的都比我多了!

跳槽几乎是每个人职业生涯的一部分,很多HR说“三年两跳”已经是一个跳槽频繁与否的阈值了,可为什么市面上有很多程序员不到一年就跳槽呢?他们不担心影响履历吗? PayScale之前发布的**《员工最短任期公司排行榜》中,两家码农大厂Amazon和Google**,以1年和1.1年的员工任期中位数分列第二、第四名。 PayScale:员工最短任期公司排行榜 意外的是,任期中位数极小的这两家公司,薪资...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

数据库——玩转SQL语句(以MySQL为例)

一、前言 照着大学的SQL server来学

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

华为初面+综合面试(Java技术面)附上面试题

华为面试整体流程大致分为笔试,性格测试,面试,综合面试,回学校等结果。笔试来说,华为的难度较中等,选择题难度和网易腾讯差不多。最后的代码题,相比下来就简单很多,一共3道题目,前2题很容易就AC,题目已经记不太清楚,不过难度确实不大。最后一题最后提交的代码过了75%的样例,一直没有发现剩下的25%可能存在什么坑。 笔试部分太久远,我就不怎么回忆了。直接将面试。 面试 如果说腾讯的面试是挥金如土...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

程序员写出这样的代码,能不挨骂吗?

当你换槽填坑时,面对一个新的环境。能够快速熟练,上手实现业务需求是关键。但是,哪些因素会影响你快速上手呢?是原有代码写的不够好?还是注释写的不够好?昨夜...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

HTTP与HTTPS的区别

面试官问HTTP与HTTPS的区别,我这样回答让他竖起大拇指!

程序员毕业去大公司好还是小公司好?

虽然大公司并不是人人都能进,但我仍建议还未毕业的同学,尽力地通过校招向大公司挤,但凡挤进去,你这一生会容易很多。 大公司哪里好?没能进大公司怎么办?答案都在这里了,记得帮我点赞哦。 目录: 技术氛围 内部晋升与跳槽 啥也没学会,公司倒闭了? 不同的人脉圈,注定会有不同的结果 没能去大厂怎么办? 一、技术氛围 纵观整个程序员技术领域,哪个在行业有所名气的大牛,不是在大厂? 而且众所...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

01、Java入门(Getting Started);02、集成开发环境(IDE);03、项目结构(Eclipse JavaProject);04、类和对象(Classes and Objects);05:词法结构(Lexical Structure);06:数据类型和变量(Data Type and Variables);07:运算符(Operators);08:控制流程语句(Control Flow Statements);

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

立即提问
相关内容推荐