Well, really I'm doing 50 at a time (the exact number is of course a property that I can set in the configuration file). It was originally doing 1 at a time and trying to fix that was how I managed...
Type: Posts; User: colin_young; Keyword(s):
Well, really I'm doing 50 at a time (the exact number is of course a property that I can set in the configuration file). It was originally doing 1 at a time and trying to fix that was how I managed...
Thanks for that tip. I took a look at how I was handling flushing the session and it turns out that somewhere along the line I managed to remove the call to flush from one section of the code, and...
I agree that it's probably the configuration of Hibernate, but I want to cover all possibilities. I won't be able to post the code until later today since it is located on another machine I won't...
I have a program that uses Spring, Hibernate and MySql. When running a process that inserts or updates a number of entities, we are experiencing a gradual slowdown on object loading. At the start,...
One would think...
According to the log, Hibernate is finding the mappings and figuring out the correct classes to map. At least that's how I read it. The NullPointerException I'm getting isn't...
I'm having some problems with configuring Hibernate 3.2.2.GA (if it matters, I'm using Maven 2 to manage the dependencies).
Here's the error:
Exception in thread "main"...
Turns out I didn't get the classpath exactly right. I needed to do:
-classpath .;FeedImport.jar
to the command line (I missed the '.').
That's a good point about the loop -- I didn't think to look there, and I'm not entirely certain that I should be loading the object inside the loop in any case (although without the code in front of...
I've managed to solve the problem (finally!). I didn't have the hibernate.properties file in my jar and hibernate was looking for that. My understanding was that by using Spring to configure...
I'm using Spring 1.2.6, and I do have the hibernate3.jar available (the error appears to be coming from within Hibernate).
Update from feeds:
public static void main(String[] args)
{...
I've added all the hibernate jars (and I mean all of them) to the directory that's got my jar in it. I've attached my directory listing, the log file and my Spring configuration (renamed to .xml.txt...
I've put all the hibernate jars into the correct location and it's still failing, although failing in a different manner. At least now I've got some direction, so I can start tweaking the logging to...
I've packaged my application as a jar and I've run into some problems trying to execute it. I'm including the tail end of the log file:
22:34:54,296 DEBUG CachedIntrospectionResults:87 - Class...
I've been having similar problems with creating and executing jars as documented here: http://forum.springframework.org/showthread.php?t=24245
I've been able to get a bit farther by putting all...
Actually, my mapping files are included in the jar along with the Spring configuration (which I'd love to be able to store outside the jar, but I'm going to get the basic setup working first).
...
I'm trying to create a jar file for a command-line program that makes use of the Spring framework. I'm getting the following error (from my log file, this is the only error line):
22:11:56,890...
Just to close things up, it turns out that (as usual) the problem wasn't Spring at all (or even my messed-up log4j.properties file), but rather in my unit tests I decided that bypassing the Spring...
I don't believe it...I think (I'll need to look at the code tonight when I have access to the computer it's on) that I am directly creating my objects in the unit tests rather than using a Spring...
I'm attempting to follow the instructions in "Spring In Action" for jdbc data access, and I'm a bit confused about the proper way to do it. The book defines the class like this:
public class...
I'm trying to view the log output from Spring, but I'm not getting anything in my log file (although the log file is being created). I am using a log4j.properties file (partial extract):
...
As it turns out, the problem was one of my properties was defined as int in the mapping file and the setter was int, but the getter was long (or the other way around). Once I fixed that up, I'm back...
(Mapping files and spring config at end of message, the code is running in a JUnit test and I've only got a single test so I don't think I need to worry about sessions/setup being carried across...
That was it exactly -- I had a mapping of Long and a setter taking a long. I could have sworn that when I first created the mapping file they were all int however, but I've changed so many things...
I'm getting an IllegalArgumentException in my JUnit test (code below). The message indicates that the exception occurs when Spring is attempting to set dealTypeId, which is identified in the hbm file...
You were right about the problem being in DealTypeDaoImpl. I needed to modify the config to:
<bean id="dealTypeDao" class="com.travelgator.EntityUpdate.dao.DealTypeDaoImpl">
<property...