2 dselyh DSELYH 于 2016.09.22 10:26 提问

jsp分页运行执行到链接数据库时出现这种问题,求解决

2016-9-22 10:16:03 com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin
警告: ConnectionID:4 Prelogin error: host localhost port 1434 Error reading prelogin response:

at com.microso

ft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnectio
n
.java:1368)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection
.java:1355)
at com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:1532)
at com.micro
soft.sqlserver.jdbc.SQLServerConnection.Prelogin(SQLServerConnection.
java:1133)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnec
tion.java:1054)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.jav
a:833)

at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.

j
ava:716)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:841)

at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.Driv

erManager.getConnection(DriverManager.java:185)
at cn.jbit.easyb
uy.dao.BaseDao.getConnection(BaseDao.java:29)
at cn.jbit.easybuy
.dao.impl.easybuy_commenDaoImpl.getPageCommentInfo(easybuy_comm
enDaoImpl.java:19)
at cn.jbit.easybuy.biz.impl.easybuy_commentBizImpl.getPageCommentInfo(easybuy_com
mentBizImpl.java:17)
at cn.jbit.easybuy.wed.PageServlet.doGet(PageServlet.java:106)
at javax.servlet.
http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet
.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.ca
talina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
lterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
n.java:208)
at cn.jbit.easybuy.util.EncodeFilter.doFilter(EncodeFilter.java:23)
at org.apach
e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
lterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
n.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java
:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.j
ava:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:1
16)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
a
t org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Process
or.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractP
rotocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:31
5)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java
:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908

1个回答

caozhy
caozhy   Ds   Rxr 2016.09.22 10:38

检查下防火墙的1433端口是否允许访问、sql server是否启用远程访问和tcp/ip设置。

Csdn user default icon
上传中...
上传图片
插入图片