关于oracle8.0.5的jdbc驱动使用(200分)

U

urus

Unregistered / Unconfirmed
GUEST, unregistred user!
环境为nt4.0中文版,tomcat3.1
oracle jdbc驱动为classes111.zip(for oracle8 jdk1.1.X)
在jdk1.2.2 jdk1.1.7 jdk1.1.8下链接oracle数据库
conn = DriverManager.getConnection ("jdbc:eek:racle:eek:ci8:mad:","system","manager");出错
出错信息如下
java.lang.IllegalStateException: Response has already been committed
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.lang.RuntimeException.(RuntimeException.java:50)
at java.lang.IllegalStateException.(IllegalStateException.java:48)
at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:157)
at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
天哪,快帮帮我吧
 
hehe,看来不是这句惹的祸,是因为你把response commit以后又有输出或commit又
一遍。
把全部source贴上来看看。
 
jdbc:eek:racle:thin:mad:123.123.123.123:1521:abc
123.123.123.123 is the oracle db ip
1521 is the prot
abc is your service name
then
use connection with your user and pswd
 
('jdbc:eek:racle:thin:MIB_DATA/MIB_DATA@142.148.12.90:1521:TestDB','user','pass');
It will make it safe. But from Exception error, I think you have failed before get connection.
 
urus:请继续讨论
 
我已经解决了,换个环境,呵呵
 
urus:那么请结束问题吧。
 
接受答案了.
 
顶部