-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: hibernate.cfg.xml
PostPosted: Thu Feb 14, 2008 9:23 am 
Newbie

Joined: Thu May 24, 2007 3:01 am
Posts: 11
Hi All,

I am using Hibernate3 + Oracle.
In my hibernate.cfg.xml, i have these pool configurations. Its working fine till yesterday.

<!-- configuration pool via c3p0-->
<property name="c3p0.acquire_increment">3</property>
<property name="c3p0.idle_test_period">900</property>
<property name="c3p0.max_size">50</property>
<property name="c3p0.min_size">5</property>
<property name="c3p0.timeout">3600</property>

From today whenever i am restarting the apache tomcat server 5.0, i got this exception,

java.lang.ExceptionInInitializerError
at com.mchange.v2.c3p0.PoolConfig.<clinit>(PoolConfig.java:93)

at org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:84)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:397)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1933)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1216)
at com.low.hibernate.util.HibernateUtil.<clinit>(Unknown Source)
at com.low.dao.hibernate.HibernateDAOFactory.getCurrentSession(Unknown Source)
at com.low.dao.hibernate.HibernateDAOFactory.instantiateDAO(Unknown Source)
at com.low.dao.hibernate.HibernateDAOFactory.getLkSyspropDAO(Unknown Source)
at com.low.util.DataUtil.getSysProperty(Unknown Source)
at com.low.generic.LOWContextListener.setSystemProperties(Unknown Source)
at com.low.generic.LOWContextListener.contextInitialized(Unknown Source)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
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:585)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
at java.util.Properties.loadConvert(Properties.java:492)
at java.util.Properties.load(Properties.java:331)
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.<init>(BasicMultiPropertiesConfig.java:53)
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.<init>(BasicMultiPropertiesConfig.java:39)
at com.mchange.v2.cfg.MultiPropertiesConfig.read(MultiPropertiesConfig.java:64)
at com.mchange.v2.cfg.MultiPropertiesConfig.readVmConfig(MultiPropertiesConfig.java:73)
at com.mchange.v2.log.MLog.<clinit>(MLog.java:48)
... 59 more
If i comment these pool configs, i don't get this exception.
Its in linux enviornment.

In windows enviornement i never get this exception.

Thank you,

Regards,
Siva


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 14, 2008 9:43 am 
Regular
Regular

Joined: Thu Sep 22, 2005 1:53 pm
Posts: 88
Location: Rio de Janeiro
Please post the whole file as you use it in the linux environment

I allready had a similar problem when I tried to use Linux and got the source
through SVN.

_________________
DonĀ“t forget to rate!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 14, 2008 10:12 am 
Newbie

Joined: Thu May 24, 2007 3:01 am
Posts: 11
Hi,

I got this source from cvs using ant. Now i commented the connection
pool.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="SessionFactory">
<property name="hibernate.bytecode.use_reflection_optimizer">false</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">test</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@xx.xx.x.x:xxxx:DCOT</property>
<property name="hibernate.connection.username">test</property>
<property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
<property name="hibernate.show_sql">false</property>
<!-- configuration pool via c3p0-->
<!-- property name="c3p0.acquire_increment">3</property>
<property name="c3p0.idle_test_period">900</property>
<property name="c3p0.max_size">50</property>
<property name="c3p0.min_size">5</property>
<property name="c3p0.timeout">3600</property -->
<!-- Hibernate Mapping-->
<mapping resource="com/dcot/hibernate/Queries.hbm.xml" />
<mapping resource="com/dcot/hibernate/Borrower.hbm.xml" />
<mapping resource="com/dcot/hibernate/Residence.hbm.xml" />
<mapping resource="com/dcot/hibernate/ContactPoint.hbm.xml" />
<mapping resource="com/dcot/hibernate/VwSalesTeamStatistics.hbm.xml" />
<!--mapping resource="com/dcot/hibernate/ConstructionRefinanceData.hbm.xml" />
<mapping resource="com/dcot/hibernate/RateAdjustment.hbm.xml" />
<mapping resource="com/dcot/hibernate/GovernmentMonitoring.hbm.xml" />
<mapping resource="com/dcot/hibernate/Appraiser.hbm.xml" /-->
</session-factory>
</hibernate-configuration>

Thank you,

Regards,
Siva


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.