数据库方言 when no Connection available

今天启动tomcat时报错了,'hibernate.dialect' must be set when no Connection available,这个错误没有连接的时候需要数据库方言,感觉可奇怪,在单位的电脑没问题,放在家里就错了,前几天没问题,今天就错了
2015-2-24 12:56:28 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;E:\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.5.0.me201003121946\tomcat\bin
2015-2-24 12:56:28 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2015-2-24 12:56:28 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 346 ms
2015-2-24 12:56:28 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2015-2-24 12:56:28 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.13
2015-2-24 12:56:29 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
log4j:WARN Please initialize the log4j system properly.
2015-2-24 12:56:32 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2015-2-24 12:57:03 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection available
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection available
at org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:107)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:138)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2163)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2159)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1383)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
... 39 more
2015-2-24 12:57:03 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2015-2-24 12:57:03 org.apache.catalina.core.StandardContext start
严重: Context [/Test20150223] startup failed due to previous errors
2015-2-24 12:57:03 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
2015-2-24 12:57:03 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2015-2-24 12:57:03 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2015-2-24 12:57:03 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/16 config=null
2015-2-24 12:57:03 org.apache.catalina.startup.Catalina start
信息: Server startup in 34874 ms

0

1个回答

好了我自己来回答。。。。。我的mysql 是6.0.11版本的,然后jar是5.1.15,主要报的错误是当没有连接时需要数据库方言,
感觉好奇怪同样的东西以前都没错,以前的是单位的电脑数据库版本好像不一样,
然后我还以为是数据库方言不对,一直在方言上修改
折腾了几个小时,然后感觉不可能没有连接呀,怎么会没有链接呢,
然后就在网上下了一个jar,然后更换配置的driver,就好了

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
数据库方言
[url]http://kidiaoer.iteye.com/blog/760137[/url]
各种数据库方言.doc
各种数据库方言,里面包括了目前所有的数据库的方言
Hibernate 数据库方言
Hibernate 数据库方言 1、所有关系型数据库都支持使用标准SQL语句 2、但数据库在语法细节上存在一些差异 3、Hibernate可根据方言自动应付底层数据库访问所存在的细节差异,将HQL有针对的转化为某一数据库所支持的SQL语句。 posted @ 2018-01-17 21:...
数据库方言大全.txt
数据库方言大全,有Oracle、DB2、SQL Server、MySQL,很有帮助哦,请下载吧!
数据库方言Dialect
使用Hibernate,在配置hibernate.cfg.xml时需指定使用数据库的方言: 例: org.hibernate.dialect.MySQL5Dialect 以下是各数据库对应的方言(Dialect): 数据库            方言(Dialect) DB2=org.hibernate.dialect.DB2Dialect DB2 AS/400=org.h
方言
电磁波的原理
No processor available, rejecting this connection是怎么回事啊?
在jbuider中启tomcat有时就会出现No processor available, rejecting this connection,这是为什么啊?原来没有,就是最近会经常出现。rn
Connection not available, Timed out waiting for 180000
[size=11px][b]亲们,我想请问这类问题是不是属于连接池设置有问题的?rn我的用户量有3000-4000,平均每天有2000-3000人同时在线,rn我的WEBSPHER的连接池设置的是rn连接超时:1800秒 rn最大连接数:180 rn最小连接数:80 rnWebContainer :最大是100,最小30。rn由于我对连接池设置数一直不清晰,所以请求亲们给矛帮助或者思路,让我知道是连接池上的问题还是需要从别的方向来解决 [/b][/size]
方言 —— 各地方言
1. 安徽 鸡:zi,洗:si; 2. 湖南 湖南:funan,
springMVC+JPA整合,数据库方言问题
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: springmvcTest] Unable to build EntityManagerFactoryrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: javax.persistence.PersistenceException: [PersistenceUnit: springmvcTest] Unable to build EntityManagerFactoryrn at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)rn at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)rn at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)rn at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)rn ... 29 morernCaused by: org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection avalablern at org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:107)rn at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:134)rn at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)rn at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)rn at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)rn at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)rn ... 34 morern2012-3-22 22:58:19 com.sun.faces.config.ConfigureListener contextInitializedrnrn各位高手,谢谢了!!!
Hibernate数据库方言选择问题
今天准备使用Hibernate配置Oracle数据库进行分页查询,在配置数据库方言的过程中遇到了问题,我本机安装的Oracle数据库版本是11.2.0.1.0,也就是11g版本,但是选择对应的版本数据库方言时,很郁闷,竟然没有对应的方言,如下所示: 可以清楚的看到Hibernate提供的Oracle数据库方言,就是没有对应的11g版本,想了想配置MySQL数据库的时候配置的是MySQLD
Hibernate中的数据库方言(Dialect)
在配置hibernate.cfg.xml时需指定使用数据库的方言: 例: "dialect">org.hibernate.dialect.MySQL5Dialect 以下是各数据库对应的方言(Dialect): 数据库 方言(Dialect) DB2 org.hibernate.dialect.DB2Dialect D
java.net.SocketException: Connection reset --> when occurs, how to resolve
[phenomenon]rnrnThere is the error occurs sometimes when our web application system is transferred into so low-speed the net entironmentrnrnjava.net.SocketException: Connection resetrnat java.net.SocketInputStream.read(Unknown Source)rnat java.io.BufferedInputStream.fill(Unknown Source)rnat java.io.BufferedInputStream.read1(Unknown Source)rnat java.io.BufferedInputStream.read(Unknown Source)rnat sun.net.www.http.ChunkedInputStream.fastRead(Unknown Source)rnat sun.net.www.http.ChunkedInputStream.read(Unknown Source)rn......rn......rnrnOur web application system is based Apache server. There is an client applet to get data from service before client-printing every time.rnBut when getting data sometimes, there is that error.rnrn[perplexed]rnrnIf you have a look at that exception stack information, you could see it is a problem relative JDK, not relative business application. Maybe is it a bug of JAVA?rnWho can teach me the following questions:rn1, Whether is it a bug of JAVA?rn2, When is this error occurred?rn3, How to avoid it, or if it is occurred, how to resolve this error?rnrnHope for your answer! Expecting!rnrn简单的用中文描述,就是在高速网络状况下没有问题,极低速网络状况下出现那个exception,什么原因?这是否是java的bug?那个exception通常在什么时候会出现?如果出现了,如何解决?rnrn请高手指教!rn
caught when processing request: Connection refused500
09:51:11 INFO org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:438) - I/O exception (java.net.ConnectException) caught when processing request: Connection refused500 [Timer-0] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refusedrn09:51:11 INFO org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:444) - Retrying requestrn501 [Timer-0] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying requestrn09:51:11 INFO org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:438) - I/O exception (java.net.ConnectException) caught when processing request: Connection refusedrn505 [Timer-0] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refusedrn09:51:11 INFO org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:444) - Retrying requestrn506 [Timer-0] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying requestrn09:51:11 INFO org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:438) - I/O exception (java.net.ConnectException) caught when processing request: Connection refusedrn510 [Timer-0] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refusedrn09:51:11 INFO org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:444) - Retrying requestrn511 [Timer-0] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying requestrn09:51:11 ERROR org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:144) - java.net.ConnectException: Connection refusedrn516 [Timer-0] ERROR org.codehaus.xfire.transport.http.HttpChannel - java.net.ConnectException: Connection refusedrnorg.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message.rnorg.codehaus.xfire.fault.XFireFault: Couldn't send message.rn at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)rn at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:30)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)rn at org.codehaus.xfire.client.Client.invoke(Client.java:336)rn at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)rn at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)rn at $Proxy8.sendMessage(Unknown Source)rn at com.cell.sender.TaskSendmsg.runTask(TaskSendmsg.java:64)rn at com.cell.sender.TaskRUN.processTask(TaskRunning.java:82)rn at com.cell.sender.TaskRUN.run(TaskRunning.java:57)rn at java.util.TimerThread.mainLoop(Timer.java:512)rn at java.util.TimerThread.run(Timer.java:462)rnCaused by: org.codehaus.xfire.XFireException: Couldn't send message.rn at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:145)rn at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)rn at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)rn ... 12 morernCaused by: java.net.ConnectException: Connection refusedrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)rn at java.net.Socket.connect(Socket.java:520)rn at java.net.Socket.connect(Socket.java:470)rn at java.net.Socket.(Socket.java:367)rn at java.net.Socket.(Socket.java:240)rn at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)rn at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)rn at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)rn at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)rn at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)rn at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)rn at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:369)rn at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)rn ... 14 morern09:51:11 ERROR com.cell.sender.TaskSendmsg.runTask(TaskSendmsg.java:71) - org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message.rn520 [Timer-0] ERROR com.cell.sender.TaskSendmsg - org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message.rnx09:51:11 ERROR com.cell.sender.TaskSendmsg.runTask(TaskSendmsg.java:102) - java.sql.SQLException: ORA-01401: inserted value too large for columnrnrn524 [Timer-0] ERROR com.cell.sender.TaskSendmsg - java.sql.SQLException: ORA-01401: inserted value too large for columnrnrn我在linux下运行一个jar,里面有访问外部接口。。但连接不了。提示这样的错误。 在linux下 ping ip 可以ping通、 但域名就ping不通。。那个高手道道这样的问题,指点下小弟。 万分感谢!!
Only SQL_DRIVER_NOPROMPT is allowed when connection pooling is enabled
这是在ISAPI 中访问ODBC 时出现的.rn可ODBC DRIVE 里的CONNECTION POOLING 选项我已经POOLING了.
'hibernate.dialect' must be set when no Connection avalable
报错:rn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection avalablern at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:545)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection avalablern at org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:107)rn at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:138)rn at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)rn at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)rnrn在另外一台电脑上能正常运行,不知为何在本台机器上无法运行。麻烦各位大牛帮忙看看,谢谢!rnrnapplicationContext.xml:rn[code=java]rnrn rn rnrn rn rn oracle.jdbc.driver.OracleDriverrn rn rn jdbc:oracle:thin:@192.168.1.4:1521:testrn rn rn systemrn rn rn systemrn rn rn rnrn rn rnrn rn rn rn rn rn rn com.innate.heavenearth.model.UserInforn com.innate.heavenearth.model.Logrn rn rn rn rn rn org.hibernate.dialect.Oracle9Dialect rn rn truern rn org.hibernate.cache.EhCacheProviderrn rn truern updatern rn rn rn rn rn rn rn rn rn rn rnrn rn rn rnrnrn[/code]
hibernate中数据库方言的错误
hibernate中数据库方言的错误
Hibernate不同数据库的链接及方言
[code="java"] org.hibernate.dialect.MySQLDialect com.mysql.jdbc.Driver jdbc:mysql://localhost/dbname?characterEncoding=gb2312 root root org.hibernate.dial...
数据库之Case When
如果我们需要在数据库中进行逻辑判断,不防用一下咱们的CaseWhen,或者Oracle的decode。加上group by 效果更佳。
【数据库】case when
select rownum as rn,a.*,case when depat_nam1 is null then parent_nam else depat_nam1 end as depat_nam
数据库case when的用法
考试题考到了,之前没接触过所以没考出来,这里后来自学了一下,已经成功了。下面给出问题描述浙江大学每门课的绩点(GPA)和成绩(SCORE)有关,在已知成绩的前提下,我们需要得到GPA的数据,我就想到了CASE WHEN的使用,但之前没怎么使用所以考试写错了,经过思考,给出代码这题目也甚是恶心呀,还得知道计算的方法,老师说可以一分一档的,我就算了,按现行的算吧。use student; update
not available
新建文档,保存后,再进入修改数据。rn存盘退出后重新进去看,发现值没有变。刷新文档时,值有所改变。rn但是一存盘回到阅读的状态时,发现内容还是旧的。rn请指教:
hibernate方言
可以快速查看hibernate所有方言,简单方便
方言是什么?
方言是什么??具体下,我大概知道是关于数据库的
方言的趣味
馄饨也叫扁肉(豫东则管它叫扁食); 湖南人说普通话将湖南说成“福南”; 广东人将“小鸭子”说成“小鸭挤” 1. 吴语区 吴语区,指的是今上海、江苏南部、浙江、安徽南部、江西东北部、福建西北角; 与吴语区相对的是,江淮语区; 囡囡(nān nān):囡囡,是吴语区、粤语区等方言区对女孩的昵称,亦有宝贝的意思; 到则:到则. 就是”非常”特别”“很”,的意思. 同 “死了” 例:开心死了
c++方言
c++方言
方言问题
import java.math.BigInteger; import java.util.Arrays; import java.util.Collections; import java.util.Scanner; public class Ping { /** * @param args */ public static void main(Stri...
Hibernate不同数据库的连接及SQL方言
Hibernate不同数据库的连接及SQL方言
【求助】jbpm数据库方言的设置问题
[size=24px][b]正在学习jbpm4.4,有个问题想请教各位大神rn数据库方言的设置rn如果我使用org.hibernate.dialect.MySQLInnoDBDialectrn则不能自动建表rn如果不使用org.hibernate.dialect.MySQLInnoDBDialectrn则在完成最后一件任务的时候(结束流程实例)rnprocessEngine.getTaskService().completeTask("30002");rn报错rnps:只是在彻底结束流程实例的时候报错,如果完成了当前任务之后后面还有任务则不会报错rn该怎么解决这个问题?rn[/b][/size]
数据库中的Connection
我在应用数据库的时候rn用到的Connection都是一样的(联接字串啥的,同一数据库,同一用户)rn而且好像也不会发生两个代码同时调用一个Connection的情况rn我现在是在每个DSet(自己做的)里边都重新声明了Connection并且Open,Close啥的,请问是不是没有这个必要?rn我可以把Connection做成静态的放在Program或者MainFrm里边么?这样做会不会有什么弊端?rn谢谢~rn庆祝可以发帖了~
使用Connection对象连接数据库
主讲内容:rn第一讲 ADO.NET简介rn第二讲 使用Connection对象rn第三讲 使用Command对象rn第四讲 Command操作数据库(2)-添加rn Command操作数据库(2)-修改rn Command操作数据库(2)-删除rn第五讲 Command操作数据库(3)-触发器调用rn Command操作数据库(3)-事务处理rn等课程
ThreadLocal存储数据库Connection
在当前的Java面试和后台开发中,多线程与线程池技术越来越重要。毫不夸张的说,如何你想进入任何一家好的网络公司并能够长足发展,多线程与线程池技术是必须要掌握的技能!
C# 数据库Connection指令
这里用到的是mysql的dll文件,其他数据库连接方法类似 <connectionStrings> <add name="sbd" connectionString="Data Source=localhost;port=3306;Initial Catalog=sbd;uid=root;pwd=sgcis;SslMode=none;" providerName="MySql.D...
windowsce下数据库connection的问题
ce下做自己的connection类rnusing System;rnusing System.Collections.Generic;rnusing System.Text;rnusing System.Data;rnusing System.Data.Common;rnusing System.Data.SqlServerCe;rn namespace Connectionrn rn public sdfconnection(string sdfcon)rn rn SqlCeConnection conn = new SqlCeConnection(sdfcon);rn conn.Open();rn conn.Close();rn rn rn这样Open和close就没有什么意义了,请问这个Open和close应该要怎么写,请高手赐教。
并发访问数据库Connection
在当前的Java面试和后台开发中,多线程与线程池技术越来越重要。毫不夸张的说,如何你想进入任何一家好的网络公司并能够长足发展,多线程与线程池技术是必须要掌握的技能!
Hibernate 不同数据库的连接及SQL方言
<!--MySql 驱动程序 eg. mysql-connector-java-5.0.4-bin.jar--> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.driver_class">com...
jfinal用SQLserver数据库的方言配置
/** * 配置插件 */ public void configPlugin(Plugins me) { // 配置C3p0数据库连接池插件 C3p0Plugin c3p0Plugin = new C3p0Plugin(getProperty("jdbcUrl"), getProperty("user"), getProperty("password"),getProperty(...
数据库学习--Hibernate方言(是什么 为什么 怎么办)
前言在部署某个项目代码时,使用maven clean package wildfly:deploy命令部署到wild服务器时总是报错(报错信息暂时无法提供了)。后经查询,是Hibernate方言的问题,花了一个多小时的时间了解了一下,稍微做了一下梳理,特此分享。(PS:本人对Hibernate的具体技术细节不是很懂,故本博文还会有后续的更新修改)知识储备HQL和SQL其实这部分应该放在第三部分讲解,
关于hibernate数据库方言设置点的疑问
初学ssh框架,对其中hibernate的数据库方言设置很是不解,原因在于我在设置数据库驱动的时候不就已经指定数据库类型了么?底层数据库访问就应该采用的是该数据库类型的访问机制与语法了。rn为什么还要多一个方言设置?感觉多此一举,或者有别的用途?求解
springMVC+hibernate动态切换SessionFactory (切换数据库方言)
最近用到多数据源动态切换,一直无法解决言的切换,参考此文后解决。 Spring3 整合Hibernate3.5 动态切换SessionFactory (切换数据库方言)
相关热词 c#串口测试应用程序 c# 匹配 正则表达式 c#防止窗体重绘 c#读写txt文件 c#挖地雷源代码 c#弹框选项 c# 移除 队列 c# 密码写入配置文件 c# 获取可用内存大小 c# 嵌入excel编辑