坦白的联通

网上看到新闻联通也在搞SNS

http://www.u-powerbook.com/

敲了下链接

type Exception report

message 

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

exception 

org.apache.jasper.JasperException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause 

org.hibernate.exception.GenericJDBCException: Cannot open connection
	org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
	org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
	org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
	org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:420)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
	org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105)
	org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561)
	org.hibernate.loader.Loader.doQuery(Loader.java:661)
	org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
	org.hibernate.loader.Loader.doList(Loader.java:2145)
	org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
	org.hibernate.loader.Loader.list(Loader.java:2024)
	org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
	org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:308)
	org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
	org.hibernate.impl.SessionImpl.list(SessionImpl.java:1106)
	org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
	com.power.dao.MagazineDAO.findTest(MagazineDAO.java:168)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:231)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause 

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]无法打开用户默认数据库。登录失败。
	com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
	com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
	com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
	com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
	com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)
	com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
	com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
	com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
	com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
	com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
	java.sql.DriverManager.getConnection(Unknown Source)
	java.sql.DriverManager.getConnection(Unknown Source)
	org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
	org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105)
	org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561)
	org.hibernate.loader.Loader.doQuery(Loader.java:661)
	org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
	org.hibernate.loader.Loader.doList(Loader.java:2145)
	org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
	org.hibernate.loader.Loader.list(Loader.java:2024)
	org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
	org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:308)
	org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
	org.hibernate.impl.SessionImpl.list(SessionImpl.java:1106)
	org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
	com.power.dao.MagazineDAO.findTest(MagazineDAO.java:168)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:231)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


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

异常就这么直接的展现,太不专业了吧

好像通讯电信企业的web应用都很容易把异常的堆栈点出来

有这么一行信息

com.power.dao.MagazineDAO.findTest(MagazineDAO.java:168)

这不会是个test版本吧

相关推荐