Re: [Hibernate] org.hibernate.HibernateException: Not able to obtain connection
You should ask this question in the user forum: http://forum.hibernate.org/ On 9/13/05, 梁炳場 [EMAIL PROTECTED] wrote: At 1st, Hibernate can retrieve records when getUserProfileList is run. After addition of record and then getUserProfileList is run again. The following error messages display. Why is it so?? Is the configuration not okay? org.apache.jasper.JasperException: org.hibernate.HibernateException: Not able to obtain connection org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.RuntimeException: org.hibernate.HibernateException: Not able to obtain connection com.erp.hibernate.UserProfileService.getUserProfileList(UserProfileService.java:182) org.apache.jsp.user.addUserProfile_jsp._jspService(org.apache.jsp.user.addUserProfile_jsp:120) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Can I post general questions here?
I would check the forum: http://forum.hibernate.org/ Patrick On Tue, 1 Mar 2005 13:24:40 -0800 (PST), J. Jeff Roberts [EMAIL PROTECTED] wrote: I know that firebird-devel is only for people working on the code of the project itself, but I don't see a more general list for Hibernate. Where should I post questions about problems I'm having getting Hibernate 3.0 to work with Firebird 1.5.2 ? Thanks, -Jeff __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
[Hibernate] Could someone please reopen HB-1390?
I just wanted to bring to the developer's attention that HB-1390 has not actually been applied to Hibernate 2, just Hibernate 3. The issue is erroneously marked as a duplicate. I know Hibernate 3 is the focus, but this is fix goes a long way towards making SchemaUpdate that much better working with Postgresql. http://opensource.atlassian.com/projects/hibernate/browse/HB-1390 Thanks, Patrick --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
[Hibernate] Re: Sequence query on Postgresql
On Fri, 28 Jan 2005 14:03:24 -0500, Patrick Burleson [EMAIL PROTECTED] wrote: I opened two JIRA requests regarding sequence selects (with provided patches) for the Postgresql Dialect. They have both been closed, with only Hibernate 3 getting the fix. Gavin closed the Hibernate 2 one after he added the sequence queries to a bunch of dialects. Then Michael Gloegl closed the Hibernate 3 one noticing Gavin had already done the fix. I just don't want the fix for Hibernate 2 to fall through the cracks. It would be really nice to see this in 2.1.8 as it will put to an end all the problems I have with SchemaUpdate on Postgresql. The issues in question are: http://opensource.atlassian.com/projects/hibernate/browse/HHH-95 and http://opensource.atlassian.com/projects/hibernate/browse/HB-1390 Thanks, Patrick Well, since I see 2.1.8 it out, I'm guessing this didn't make it in. Are there more releases planned in the 2.1.x line? Thanks, Patrick --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
[Hibernate] Sequence query on Postgresql
I opened two JIRA requests regarding sequence selects (with provided patches) for the Postgresql Dialect. They have both been closed, with only Hibernate 3 getting the fix. Gavin closed the Hibernate 2 one after he added the sequence queries to a bunch of dialects. Then Michael Gloegl closed the Hibernate 3 one noticing Gavin had already done the fix. I just don't want the fix for Hibernate 2 to fall through the cracks. It would be really nice to see this in 2.1.8 as it will put to an end all the problems I have with SchemaUpdate on Postgresql. The issues in question are: http://opensource.atlassian.com/projects/hibernate/browse/HHH-95 and http://opensource.atlassian.com/projects/hibernate/browse/HB-1390 Thanks, Patrick --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Proxy Code for MSSQL Driver for Hibernate
Christian Bauer wrote: On 09 Feb (11:57), Eric Pugh wrote: There have been at least two instances where the usage of Microsofts JDBC driver has conflicted with Hibernate. Thats why the driver should be fixed, not wrapped. Use a different driver or file a bug report at MS. They have 50B in cash, should be easy to get someone to fix it. I think the MS Driver is actually the Data-Direct driver. You could file a bug report with them and it might get fixed faster. --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Version Jars Update
Eric Pugh wrote: Thanks.. The confirmation that they all match between IBiblio and the local repo is good! On to the HibernateExt updates! Eric To be more accurate, I should have said The two ant jars in question match exactly. Although I could run the gauntlet and compare them all. Might make that tonight's project. :-) Patrick --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] more cvs repository
The last I read on this a little while back was that SF is limiting access to anonymous logins...that you will get connection issues. I just keep trying and I eventually get through. Plus the SF anonymous CVS servers are a day behind the developer access servers. I don't know if that has changed, but if it hasn't, that could explain what you are seeing. Thanks, Patrick At 05:17 AM 10/13/2003, khote wrote: Any news on when the hibernate direcectory will be available on sourceforge? I've already downloaded the nightly tarball, that's not the issue. It's been at least a week. I filed a report on sourceforge as well. Anybody in particular I can contact about this, to find out when? I'm unfortunately being held up on my project because of a bug in it ... blah blah, you've all been there before. --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] some performnace metric for the dirty check during hibernate flush.
At 02:29 AM 9/16/2003 -0700, jiesheng zhang wrote: ---test logic 1. load some (n) number of objects in memory. 2. begin tranaction. 3. // do not do anything here. 4. commit. Then calculate the time consumed from step 2 and 4. test code - List ps=new ArrayList(10010); for (int i=1000; i2100; i++) { Parent p1=(Parent)session.load(Parent.class, new Long(i)); p1.getValues().size(); } long startTime=System.currentTimeMillis(); Transaction tx=session.beginTransaction(); tx.commit(); long endTime=System.currentTimeMillis(); System.out.println(total time(in ms):+(endTime-startTime)); -The performance metics- objects in memory time (in ms) for dirty check (3 experiments) 1 741, 751,821 2000200, 230, 230 1000201, 191, 190, 100 30, 30, 30 1 10, 10, 10 jason This is a lot better than your original statements to the list. You were originally quoting 1 second per object for transaction commit. Now you are doing 1 in less than a second. Also, you would need to test to see how long just the .beginTransaction() and .commit() methods are taking, disregarding a dirty check. In other words, don't load any objects. Just do the last part of your code and see what you get. Patrick --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] bad performance during flush and help is needed.
At 08:15 PM 9/12/2003 +1000, Gavin King wrote: Forget about the 500 transactions. The problem is this: with 300-500 objects in the session cache, a single transaction( with an single object inserted) takes about one second. It simply does *not* take a second to dirty check 500 objects, dude. Nowhere even close. If you think you can prove that it does, send my the code to demonstrate this. It would have to be some kind of bug. I certainly agree. I have had 100,000 objects in a Collection (I am assuming internally Hibernate is doing about the same), and looped over them doing all sorts of math and creating new objects and that code took less than a half a second. There must be something else going on. Patrick --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] CVS Problems
At 01:51 PM 9/10/2003 -0700, Schnitzer, Jeff wrote: From: Michael Gloegl [mailto:[EMAIL PROTECTED] when trying to connect to the CVS I constantly get EOF from Server and Connection Reset by Peer errors. Is anyone else having such problems in the moment? Yes. I was getting them yesterday too. (using anonymous cvs) Jeff Schnitzer [EMAIL PROTECTED] I think it has to do with SF.net throttling the amount of pserver connections to the non-developer access CVS Server. I got it for a long time, and then I go through finally. It just takes time, keep trying. Patrick --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] DBCP Connection Pooling (OT)
At 08:40 AM 8/29/2003 -0400, Serge Knystautas wrote: Put the other shoe on... jakarta developers have the same set of bosses/wives/children who don't accept explanations of needing to write docs. Actually, my boss gets quite irate if I don't document things so that someone can come in and use our software. But I also see your point, as I have a wife who would rather have me spending time with her than my computer. :-) If anything, I think it's a tribute to how good of a job the Hibernate committers are for doing this. As having been one of those lothesome Jakarta committers, who has told so many people that if they want something fix/doc'd to fix/doc it, I really appreciate how much Max, Gavin, Christian, et al do. I think I my implicit idea was how much I appreciate how well Hibernate is documented. I have found only one place where the docs didn't live up to reality. (And I might even submit a patch to them to make it clearer) This implies you'd prefer people didn't donate source code unless they are prepared to doc it and meet other requirements. I would rather have the code in contention and then quickly dropped rather than never had that opportunity. I agree that value(docs) = value(code), so you try to help when you can. I agree that having the opportunity to have access to code with no docs is much better than that code having never been available. I greatly appreciate the contributions of the Jakarta projects and use them a lot in my personal projects. I just get very frustrated when there aren't docs or the docs are wrong. Cause then convincing my boss that we should use it becomes that much harder. Patrick --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Nested Transaction
At 08:19 PM 8/29/2003 +0530, Prasad Iyer wrote: What can I say? Thanks Sir for your valuable time. regards prasad chandrasekaran I sense great sarcasm there, but Christian's response is pretty good. If you start a transaction and create a parent, then create children, and one of the children fails, you rollback the transaction and the parent object won't be created either. And that's not a Hibernate thing. That's a RDBMS thing. Hibernate just provides a nice interface into it. An example would be (Please excuse any syntax or API errors, doing this one from memory): try { Session session = SessionFactory.getSession(); Transaction tx = session.startTransaction(); Parent parent = new Parent(); set values of Parent Child child = new Child(); set values of Child parent.getChildren().add(child); tx.commit(); } catch(Exception e) { if( tx != null ) { tx.rollback(); } } finally { session.close(); } If you haven't already done so, I would look into a SQL book. I found the following one quite helpful: http://www.amazon.com/exec/obidos/tg/detail/-/0201703092/qid=1062203306/sr=8-3/ref=sr_8_3/103-7047765-0401466?v=glances=booksn=507846 Did that help you answer your question? Thanks, Patrick --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] DBCP Connection Pooling (OT)
At 05:16 AM 8/29/2003 +1000, Gavin King wrote: I think its better to direct these questions to the dbcp guys; dbcp is, as is usual for Jakarta stuff, extremely undocumented - but _someone_ must know the answers to these questions. So you to have noticed how most Jakarta projects aren't documented well...funny, Torque's lack of good docs is what got me looking at Hibernate. :-) (Yes, I realize Torque is now apart of Apache DB, but it came from an even worse documented project in Jakarta, Turbine) mini-rant And to those in those projects who say If you don't like the docs, then write some yourself, I have this to say: It's hard to explain to my boss why I am staring at source code writing docs when I am supposed to be trying to evaluate a product for our usage. So in my case, bad docs get you dropped from contention pretty quickly. And the core developers (or people with the time) or the only ones that can write the documentation needed by normal people like me. /mini-rant Thanks, Patrick --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Where to put hibernate.cfg.xml
It needs to be in the CLASSPATH somewhere. I put mine in WEB-INF/classes and it seems to work well. Thanks, Patrick --- Yin Shi [EMAIL PROTECTED] wrote: Hi, I am using WSAD5 and Hibernate2, I do not know where to put the .cfg.xml file, because I tried to put it in every directory, they are not working at all. Do you know where to put it? I just have a Web Project, inside the Java Source, I have a java class Cat.java (setter/getter), and a servlet to get the Hibernate session, when I call Configuration conf = new Configuration().configure().addClass(net.sf.hibernate.examples.quickstart.Cat.class); , it always gives me an error message saying that 3100cb4a Configuration I net.sf.hibernate.cfg.Configuration Configuration resource: /hibernate.cfg.xml 3100cb4a Configuration W net.sf.hibernate.cfg.Configuration /hibernate.cfg.xml not found 3100cb4a WebGroup E SRVE0026E: [Servlet Error]-[/hibernate.cfg.xml not found]: net.sf.hibernate.HibernateException: /hibernate.cfg.xml not found at net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:708) This is my cfg.xml -- ?xml version='1.0' encoding='utf-8'? !DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate Configuration DTD//EN C:\hibernate-configuration-2.0.dtd hibernate-configuration session-factory property name=hibernate.connection.driver_classCOM.ibm.db2.jdbc.net.DB2Driver/property property name=hibernate.connection.urljdbc:db2:JDO/property property name=hibernate.connection.usernameadmin/property property name=hibernate.connection.passwordadmin/property property name=show_sqltrue/property property name=use_outer_jointrue/property property name=dialectnet.sf.hibernate.dialect.DB2Dialect/property !-- Mapping files -- mapping resource=Cat.hbm.xml/ /session-factory /hibernate-configuration So could anyone help me? Thanks a lot! __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Log4J for debugging hibernate
Here is the log4j Short Manual from the Log4j site. It covers the .properties file in it. Log4j is quite easy to configure and after reading these docs you should be up and running in a few minutes. http://jakarta.apache.org/log4j/docs/manual.html Thanks, Patrick --- Prasad Iyer [EMAIL PROTECTED] wrote: Hi, Can anybody give me log4j.properties file for debugging Hibernate+tapestry module plus any other required configuration if required please. I am stuck. I don't know Log4J. Help would be highly appreciated. regards prasad chandrasekaran --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel