facebook

Opening hbm.xml files causes Unhandled event loop exception

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #331379 Reply

    Vishal Popat
    Participant

    I have hbm.xml files which I try to open with MyEclipse Hibernate Mapping Editor which causes the following error:
    Unhandled event loop exception
    Java heap space

    And the following stacktrace

    
    java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOfRange(Arrays.java:3209)
        at java.lang.String.<init>(String.java:215)
        at java.lang.StringBuffer.toString(StringBuffer.java:585)
        at java.io.BufferedReader.readLine(BufferedReader.java:302)
        at java.io.BufferedReader.readLine(BufferedReader.java:362)
        at org.eclipse.core.runtime.content.XMLContentDescriber.readXMLDecl(XMLContentDescriber.java:175)
        at org.eclipse.core.runtime.content.XMLContentDescriber.describe2(XMLContentDescriber.java:73)
        at org.eclipse.core.runtime.content.XMLContentDescriber.describe(XMLContentDescriber.java:68)
        at org.eclipse.ant.internal.core.contentDescriber.AntBuildfileContentDescriber.describe(AntBuildfileContentDescriber.java:104)
        at org.jboss.tools.common.ant.model.AntEntityRecognizer.getEntityName(AntEntityRecognizer.java:35)
        at org.jboss.tools.common.model.loaders.impl.ModelEntityRecognizer$EntityRecognizerWrapper.getEntityName(ModelEntityRecognizer.java:158)
        at org.jboss.tools.common.model.loaders.impl.ModelEntityRecognizer.getEntityName(ModelEntityRecognizer.java:38)
        at org.jboss.tools.common.model.filesystems.impl.FolderImpl.getEntityProperties(FolderImpl.java:211)
        at org.jboss.tools.common.model.filesystems.impl.FolderImpl.createFileObject(FolderImpl.java:220)
        at org.jboss.tools.common.model.filesystems.impl.FolderImpl._loadChild(FolderImpl.java:194)
        at org.jboss.tools.common.model.filesystems.impl.FolderImpl.loadChildren(FolderImpl.java:154)
        at org.jboss.tools.common.model.filesystems.impl.FolderImpl.loadChildren(FolderImpl.java:146)
        at org.jboss.tools.common.model.impl.RegularObjectImpl.getChildByPathPart(RegularObjectImpl.java:118)
        at org.jboss.tools.common.model.filesystems.impl.FolderImpl.getChildByPathPart(FolderImpl.java:928)
        at org.jboss.tools.common.model.impl.XModelObjectImpl.getChildByPath(XModelObjectImpl.java:308)
        at org.jboss.tools.common.model.impl.XModelObjectImpl.getChildByPath(XModelObjectImpl.java:313)
        at org.jboss.tools.common.model.util.EclipseResourceUtil.findResourceInFileSystem(EclipseResourceUtil.java:387)
        at org.jboss.tools.common.model.util.EclipseResourceUtil.getObjectByResource(EclipseResourceUtil.java:108)
        at org.jboss.tools.common.model.util.EclipseResourceUtil.createObjectForResource(EclipseResourceUtil.java:299)
        at org.jboss.tools.common.model.markers.XMarkerManager.reload(XMarkerManager.java:75)
        at org.jboss.tools.common.model.markers.XMarkerManager.reload(XMarkerManager.java:66)
        at org.jboss.tools.common.model.markers.XMarkerManager.<init>(XMarkerManager.java:39)
        at org.jboss.tools.common.model.markers.XMarkerManager.getInstance(XMarkerManager.java:30)
        at org.jboss.tools.common.model.ui.navigator.LabelDecoratorImpl.getErrorState(LabelDecoratorImpl.java:71)
        at org.jboss.tools.common.model.ui.navigator.LabelDecoratorImpl.decorateImage(LabelDecoratorImpl.java:40)
        at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage(DecoratingLabelProvider.java:94)
        at org.eclipse.jface.viewers.DecoratingLabelProvider.updateLabel(DecoratingLabelProvider.java:356)
    

    I am using MyEclipse 10.6 on MacOSX

    Does anyone have any ideas of why this happening?

    #331411 Reply

    support-swapna
    Moderator

    vishalpopat,

    Sorry that you are seeing this issue.

    Can you please try increasing the memory settings in myeclipse.ini file ?

    The myeclipse.ini file can be found in the same folder as your MyEclipse executable. Open it in any text editor and change the values based on the size of your workspace. For instance, the following settings may be preferable to the defaults.
    Code:
    -vmargs
    -Xmx768m
    -XX:MaxPermSize=384m

    Let us know how it works for you.

    #331420 Reply

    Vishal Popat
    Participant

    @support-swapna wrote:

    vishalpopat,
    -Xmx768m
    -XX:MaxPermSize=384m
    /quote]

    The above settings didnt work but these did
    -Xmx1500m
    -XX:MaxPermSize=1000m

    The above settings seem rather high, doesnt it? Could there be something else that is causing high mem usage?

    #331427 Reply

    support-swapna
    Moderator

    vishalpopat,

    If you are using a 64-bit machine, more space must be allocated.

    You can monitor your heap status and check what operations trigger a bump in the heap status. Please do the following –

    1. Open MyEclipse IDE, from menu options click on Window > Preferences > General. On the right hand pane, tick the checkbox for “Show heap status”. This will add the heap status monitor and garbage collector to the IDE staus bar.
    2. Run the garbage collector.

    Let us know if you see any issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Opening hbm.xml files causes Unhandled event loop exception

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