当前位置: 代码迷 >> JDBCException的解决方案
 
  • 各位大神,这个异常是什么原因

    求助各位大神,这个错误是什么原因org.apache.jasper.JasperException:CouldnotcreateHibernatetransaction;nestedexceptionisJDBCException'>net.sf.hibernate.JDBCException:Cannotopenconnection。这个项目是别人做的,我拿来跑都跑不起,数据库什么的都已经附加好...

    257
    热度
  • 请问:java.sql.SQLException: 关闭的连接

    请教:java.sql.SQLException:关闭的连接各位大侠:我用hibernate和oracle开发的基于apachejames的邮件系统。系统部署在服务器(tomcat)上后一直运行正常。但昨天突然出现错误,用户无法登录系统。分析日志发现抛出大量java.sql.SQLException:关闭的连接的异常。[2012-08-2705:40:49]com.csc.mail.jsh.db....

    4226
    热度
  • S2SH加个变量就报错解决思路

    S2SH加个变量就报错S2SH做的一个下载的功能可是我在model里加个变量就报错怎么回事,我就加个privateStringfileUrl; publicvoidsetFileUrl(StringfileUrl){ this.fileUrl=fileUrl; } publicStringgetFileUrl(){ returnfileUrl; } 一夜没睡头疼死了都弄不好,我做上传的时候也...

    4105
    热度
  • hibernate错误(有关问题很急小女子在此谢过大家了。)

    hibernate异常(问题很急,小女子在此谢过大家了。)问题很急,小女子在此谢过大家了。问题描述:数据成功插入数据库,但程序抛了如下异常。数据库:sqlserver2000其中主键是:uniqueidentifiler下面要报错信息:Hibernate:insertintobom_parent(BomId,ParentId,ParentScrap,SharingPartId)values(?,?...

    8163
    热度
  • hibernate 地图映射的有关问题

    hibernatemap映射的问题映射文件:测试代码:报错:user_addressmap表不存在具体错误:Hibernate:insertintouser(name,gender,age)values(?,?,?)Hibernate:insertintouser_addressMap(userId,key_,address)values(?,?,?)Hibernate:insertintouse...

    19
    热度
  • java中联接SQLSqlserver

    java中连接SQLSqlserver项目中需要连接多个服务器,数据库都是SQLServer只是版本不同。publicstaticBooleanchangeDataSource(Mapmap){ DriverManagerDataSourcebasicDS=(DriverManagerDataSource)createBean("dataSourceTrends"); basicDS.setU...

    87
    热度
  • spring调整hibernate时SQL语句无法插入

    spring整合hibernate时SQL语句无法插入崩溃了,在用spring整合hibernate测试时,总提示错误。但hibernate生成的SQL语句可以生成,却无法保存进数据库。Hibernate:insertinto_user(name)values(?)异常提示为:org.hibernate.exception.SQLGrammarException:couldnotinsert:[c...

    82
    热度
  • hibernate中两个级联表,一个student表跟一个book表,student表中有主键id,是book表中的外键;在用Student的类无法得到set集

    hibernate中两个级联表,一个student表和一个book表,student表中有主键id,是book表中的外键;在用Student的类无法得到set集查询的代码 Sessionsession=bo.HibernateSessionFactory.getSession(); Sessionsession=bo.HibernateSessionFactory.getSession();...

    92
    热度
  • spring与hibernate的有关问题?

    spring与hibernate的问题????org.hibernate.exception.ConstraintViolationException:couldnotinsert:[com.bjsxt.model.User] atorg.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94) atorg.h...

    37
    热度
  • hibernate测试出错No suitable driver found for jdbc:oracle:thin:@localhost:1521:orcl

    hibernate测试报错Nosuitabledriverfoundforjdbc:oracle:thin:@localhost:1521:orcl学习hibernate,执行save方法报错。org.hibernate.exception.JDBCConnectionException:Cannotopenconnection atorg.hibernate.exception.SQLState...

    291
    热度
  • 垃圾的hibernate,该如何解决

    垃圾的hibernatehibernate一直以来都以其自动化而闻名于世,我也看过hibernateinaction,确实写的不错。然而今天我不得不说他很垃圾,我写了个程序,一直都报错,从晚上8点到现在,我都不知道具体错在哪儿,如果是好的框架,总该告我哪儿有问题,哪儿可以解决,但是我却丝毫没有看出来。贴上代码,大家帮我看看。Users.hbm.xml<?xmlversion="1.0"?&g...

    199
    热度
  • sturts1+Spring+Hibernate+Oracle运行出错解决思路

    sturts1+Spring+Hibernate+Oracle运行出错Javacode2012-03-2617:11:23,468WARN[org.hibernate.util.JDBCException'>JDBCExceptionReporter]-SQLError:0,SQLState:null2012-03-2617:11:23,468ERROR[org.hibernate.util.JD...

    58
    热度
  • java web程序,使用了hibernate对数据库操作,但是报这个错,一直解决不了,该如何处理

    javaweb程序,使用了hibernate对数据库操作,但是报这个错,一直解决不了Javacode2011-9-2416:16:27org.hibernate.cfg.Environment<clinit>信息:Hibernate3.3.2.GA2011-9-2416:16:27org.hibernate.cfg.Environment<clinit>信息:hiberna...

    268
    热度
  • Spring+Hibernate小错误

    Spring+Hibernate小异常org.springframework.transaction.CannotCreateTransactionException:CouldnotopenHibernateSessionfortransaction;nestedexceptionisorg.hibernate.exception.GenericJDBCException:Cannotopenc...

    94
    热度
  • hibernate “could not execute query” “Table 'user.tab_employee' doesn't exist”,该如何处理

    hibernate“couldnotexecutequery”“Table'user.tab_employee'doesn'texist”hibernate测试报了堆错!哥哥们帮忙看看呀!小弟刚学,不会解决这些!INFO:Serverstartupin4843mslog4j:WARNNoappenderscouldbefoundforlogger(org.hibern...

    554
    热度
  • 启动项目时 Initializing Spring root WebApplicationContext 无法连接数据库,该怎么解决

    启动项目时InitializingSpringrootWebApplicationContext无法连接数据库错误代码如下:信息:InitializingSpringrootWebApplicationContext[2015-10-0817:24:21][INFO][com.mchange.v2.log.MLog(<clinit>:80)]-MLogclientsusinglog4j...

    521
    热度
  • Spring配置两个不同的数据源 关于数据库方言的有关问题(急)

    Spring配置两个不同的数据源关于数据库方言的问题(急)项目中使用两个数据(Mysql和Sqlserver),在程序中动态的切换数据源来查询不同数据库表中的数据,现在的问题是:(默认的数据源是Mysql的:org.hibernate.dialect.MySQLDialect)查询数据列表(分页)没有问题但当我查询Sqlserver中的数据时(也是分页,普通的查询没有问题),就出错了,经过排除最后...

    318
    热度
  • ssh框架查询报could not execute query错,该怎么解决

    ssh框架查询报couldnotexecutequery错org.hibernate.exception.GenericJDBCException:couldnotexecutequery atorg.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126) atorg...

    31
    热度
  • 为何一直报id找不到的错啊

    为什么一直报id找不到的错啊?Stringsql="SELECTu.name,u.type,u.sex,u.age,u.imgurl,p.blood_type,p.address,date_format(v.begin_date,'%Y-%m-%d%H:%i:%s')ASbegin_date,date_format(v.end_date,'%Y-%m-%d%H:%i:%s')ASend_date,...

    28
    热度
  • org.hibernate.exception.SQLGrammarException,该怎么处理

    org.hibernate.exception.SQLGrammarException我配置了hibernate,并生成实体类,但是在操作数据时,感觉生成的语句很奇怪都不像正常的语句的。hibernate.cfg.xml:<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEhibernate-configurationPUBLIC "-//...

    141
    热度