论坛首页 海阔天空论坛

关于No suitable driver

浏览 9836 次
精华帖 (0) :: 良好帖 (1) :: 灌水帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2008-03-03  
今天搭建新的开发系统,在全部设置完成以后,启动服务,结果系统爆出“No suitable driver”异常,怎么可能啊,我这二天已经搭建了3套这样的系统了,怎么会出这个问题呢,于是按照报的错误进行分析,没有合适的驱动程序,难道是驱动没有放到lib下,结果发现里面有阿,而且打开文件也发现了这个文件,那就奇怪了,实在是想不通阿,把缓存删除了好几遍,还是不行,在自己分析,实在无法找到原因了,于是google了一下,发现了下面的问题描述:
Often the answer is given that the correct driver is not loaded. This may be the case, but more typically, the JDBC database URL passed is not properly constructed. When a Connection request is issued, the DriverManager asks each loaded driver if it understands the URL sent. If no driver responds that it understands the URL, then the "No Suitable Driver" message is returned.
也就是说这个提示不一定是他的原本意思,jdbc连接不上也可能报,在自己分析jdbcurl,哈哈哈,发现了一个自己粗心造成的错误,报数据库名称的_写成-了,可怜的错误提示阿,害得我弄了那么长时间,自己坚决不能写这样的程序,否则还不挨骂阿
论坛首页 海阔天空版

跳转论坛:
Global site tag (gtag.js) - Google Analytics