[ 
https://jira.nuxeo.com/browse/NXS-901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=109020#comment-109020
 ] 

Anahide Tchertchian commented on NXS-901:
-----------------------------------------

stack trace server-side:
{code}
Caused by: java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:2734)
        at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
        at java.util.ArrayList.add(ArrayList.java:351)
        at net.sf.json.JSONArray._fromJSONTokener(JSONArray.java:1154)
        at net.sf.json.JSONArray.fromObject(JSONArray.java:147)
        at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:358)
        at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:1124)
        at net.sf.json.JSONObject._fromString(JSONObject.java:1313)
        at net.sf.json.JSONObject.fromObject(JSONObject.java:182)
        at net.sf.json.JSONObject.fromObject(JSONObject.java:151)
        at 
org.nuxeo.studio.core.readers.AbstractJSONResourceReader.loadResources(AbstractJSONResourceReader.java:48)
        at 
org.nuxeo.studio.core.impl.RegistryLoader.loadRegistries(RegistryLoader.java:128)
        at 
org.nuxeo.studio.core.impl.RegistryLoader.loadRegistries(RegistryLoader.java:49)
        at 
org.nuxeo.studio.core.impl.DefaultProject.createUserRegistries(DefaultProject.java:201)
        at 
org.nuxeo.studio.core.impl.DefaultProject.getUserRegistries(DefaultProject.java:193)
        at 
org.nuxeo.studio.core.impl.DefaultProject.getModel(DefaultProject.java:210)
        at 
org.nuxeo.studio.servlet.StudioServiceImpl.getProject(StudioServiceImpl.java:145)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
{code}

> Fix OutOfMemoryError when using bad json in registry
> ----------------------------------------------------
>
>                 Key: NXS-901
>                 URL: https://jira.nuxeo.com/browse/NXS-901
>             Project: Nuxeo Studio
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Anahide Tchertchian
>             Fix For: 2.5.1
>
>         Attachments: org.nuxeo.studio.client.features.operations.Operation
>
>
> Sometimes the registries loading fails because the json content is badly 
> formed. It issues an OutOfMemoryError, problem is probably on json lib side.
> need to see if problem can be worked around in studio code or if bug is fixed 
> in a newer version of this library

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
ECM-tickets@lists.nuxeo.com
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to