facebook

Hibernate 3 errors and OutOfMemory heap errors with ME 5.0GA

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #256986 Reply

    mangelo123
    Participant

    This is going to be a tough one to explain. I am going to give it the best effort I can.

    I’ve recently installed MyEclipse 5.0GA. All of my projects were still intact. One of my applications has to change servers so I tried a test deployment with ME 5.0GA. That is where the fun begain. Hibernate was blowing up saying ‘no row with given id….” when I can see the row in the table. This was tested with Hibernate 3.0.5 and deployed with MyEclipse 5.0GA with JDK 1.5.0_02 running on Tomcat.

    Now prior to this test the application worked flawlessly! I am using log4j to watch for errors. After this deploy with MyEclipse is when the errors started.

    I went back and reinstalled Eclipse 3.1 with MyEclipse 4.1.1GA and everything is back to normal. The workspace is the same for both versions of MyEclipse therefore I am using the EXACT SAME CODE! If I deploy with the different versions of MyEclipse I get runtime errors with 5.x and no errors when deployed with 4.1.1.

    This is very confusing and frustrating because I cannot use 5.0GA with all of its new features!! 😳

    I know this is not enough information to get this bug tracked down. It has taken me days to narrow it down this far. Just ask and I’ll provide more information.

    Thanx

    Mike.

    #256989

    mangelo123
    Participant

    I forgot to mention when deployed with MyEclipse 5.0GA I would also get OutOfMemory errors while trying to run the application. I DO NOT get these errors when running a deployment created with MyEclispe 4.1.1GA

    #257027

    Scott Anderson
    Participant

    Mike,

    Sorry to hear your having this problem, but we’ll dig in and get it sorted out. First, let’s start with the out of memory problems, because that can cause lots of other issues. Please make sure you’re starting Eclipse with a commandline similar to the following:

    
    eclipse.exe -product com.genuitec.myeclipse.product.ide -vmargs -Duser.language=en -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M  -Dosgi.splashLocation="<path-to-myeclipse>\eclipse\MyEclipseSplash.bmp
    

    If it’s your server that’s complaining of an out of memory condition, the add the following arguments to the ‘VM Arguments panel on the ‘JDK’ preference page for it:
    -Xms128M -Xmx512M

    Between those two, the memory problems should disappear. Once that’s taken care of, let’s try to work on the rest if it’s still an issue (since it may be caused by the memory problems).

    #257079

    mangelo123
    Participant

    Ok. Thanx for the tip. I actually tried this before I got your reply and the memory issue has not be resolved.

    I actually have narrowed my problem down to this. I don’t know where to go from here. I have gotten my application to run just fine locally in Windows. I’ve got it to run on Tomcat 5.5.17, 5.0.X and Geronimo. When I deploy on Linux, I continually get the Hiberate error :”No row with given id…” or something like that. I know the rows exist because I can do a select and see them.

    Thanx again.

    Mike.

    #257097

    Haris Peco
    Member

    Mike,

    Please, can you send use log error (I want see where you got ‘no row with given id…’) and can you explain me

    – you deploy application on tomcat 5.5.17 on linux and windows – it is okay on Windows and fail on linux – Is it correct ?
    – you use version hibernate 3.0.5 – ist it correct for MyEclipse 4.1.1 and MyEclipse 5.0 and do you use own hibernate libraries or MyEclipse hibernate libraries
    – what is your database version ?
    – can you send DDL for your table (which return error) and hibernate mapping (hbm.xml) ?

    Thanks
    Peco

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Hibernate 3 errors and OutOfMemory heap errors with ME 5.0GA

You must be logged in to post in the forum log in