Search:

Type: Posts; User: colin_young; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.11 seconds.

  1. Well, really I'm doing 50 at a time (the exact...

    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...
  2. Thanks for that tip. I took a look at how I was...

    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...
  3. I agree that it's probably the configuration of...

    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...
  4. Performance problems getting worse over time

    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,...
  5. Replies
    3
    Views
    911

    One would think... According to the log,...

    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...
  6. Replies
    3
    Views
    911

    Problems with Hibernate

    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"...
  7. Replies
    10
    Views
    5,323

    Turns out I didn't get the classpath exactly...

    Turns out I didn't get the classpath exactly right. I needed to do:

    -classpath .;FeedImport.jar

    to the command line (I missed the '.').
  8. Replies
    10
    Views
    5,323

    That's a good point about the loop -- I didn't...

    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...
  9. Replies
    10
    Views
    5,323

    I've managed to solve the problem (finally!). I...

    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...
  10. Replies
    10
    Views
    5,323

    I'm using Spring 1.2.6, and I do have the...

    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)
    {...
  11. Replies
    10
    Views
    5,323

    I've added all the hibernate jars (and I mean all...

    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...
  12. Replies
    10
    Views
    5,323

    I've put all the hibernate jars into the correct...

    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...
  13. Replies
    10
    Views
    5,323

    Problems with Hibernate and jar

    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...
  14. I've been having similar problems with creating...

    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...
  15. Replies
    2
    Views
    905

    Actually, my mapping files are included in the...

    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).
    ...
  16. Replies
    2
    Views
    905

    Problems creating jar

    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...
  17. Replies
    2
    Views
    863

    Just to close things up, it turns out that (as...

    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...
  18. Replies
    3
    Views
    1,020

    I don't believe it...I think (I'll need to look...

    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...
  19. Replies
    3
    Views
    1,020

    Confusion about jdbcTemplate

    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...
  20. Replies
    2
    Views
    863

    Getting logging to work

    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):

    ...
  21. Replies
    1
    Views
    586

    As it turns out, the problem was one of my...

    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...
  22. Replies
    1
    Views
    586

    Odd problems with Hibernate

    (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...
  23. That was it exactly -- I had a mapping of Long...

    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...
  24. IllegalArgumentException hibernate 3 Id property setter

    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...
  25. You were right about the problem being in...

    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...
Results 1 to 25 of 29
Page 1 of 2 1 2