Why are am i getting out of memory error when i use codenameone result processor? -



Why are am i getting out of memory error when i use codenameone result processor? -

i trying utilize result processor extract info hashmap result result = result.fromcontent(co); system.out.println(co.tostring()); system.out.println(result.get("//propertytype[text()='image'/..").tostring());

when run, output. out of memory error not come after , there no other code running.

{

"picture": { "propertyname": "picture", "propertytype": "image", "propertyvalue": "/var/folders/_j/xsgymcmd1lsc5zqtg65ctlsm0000gn/t/temp7922678673908500238s.png" }, "documenttype": { "propertyname": "documenttype", "propertytype": "text", "propertyvalue": "accident" } } {picture={propertyname=picture, propertytype=image, propertyvalue=/var/folders/_j/xsgymcmd1lsc5zqtg65ctlsm0000gn/t/temp7922678673908500238s.png}, documenttype={propertyname=documenttype, propertytype=text, propertyvalue=accident}}

java.lang.outofmemoryerror: java heap space @ java.util.arrays.copyof(arrays.java:2367) @ java.lang.abstractstringbuilder.expandcapacity(abstractstringbuilder.java:130) @ java.lang.abstractstringbuilder.ensurecapacityinternal(abstractstringbuilder.java:114) @ java.lang.abstractstringbuilder.append(abstractstringbuilder.java:587) @ java.lang.stringbuffer.append(stringbuffer.java:332) @ com.codename1.processing.resulttokenizer.getpredicate(resulttokenizer.java:124) @ com.codename1.processing.resulttokenizer.next(resulttokenizer.java:137) @ com.codename1.processing.resulttokenizer.tokenize(resulttokenizer.java:77) @ com.codename1.processing.result._internalgetasarray(result.java:860) @ com.codename1.processing.result._internalget(result.java:556) @ com.codename1.processing.result.get(result.java:540) @ com.ixzdore.icomplain.complainmanager.savecomplainobject(complainmanager.java:23) @ userclasses.statemachine.oneditorsave(statemachine.java:299) @ generated.statemachinebase.processcommand(statemachinebase.java:228) @ com.codename1.ui.util.uibuilder.processcommandimpl(uibuilder.java:1634) @ com.codename1.ui.util.uibuilder.access$100(uibuilder.java:85) @ com.codename1.ui.util.uibuilder$formlistener.actionperformed(uibuilder.java:2757) @ com.codename1.ui.util.eventdispatcher.fireactionevent(eventdispatcher.java:345) @ com.codename1.ui.form.actioncommandimpl(form.java:1305) @ com.codename1.ui.form.dispatchcommand(form.java:1271) @ com.codename1.ui.sidemenubar$commandwrapper$showwaiter.run(sidemenubar.java:1381) @ com.codename1.ui.display.processserialcalls(display.java:1075) @ com.codename1.ui.display.edtloopimpl(display.java:1019) @ com.codename1.ui.display.mainedtloop(display.java:925) @ com.codename1.ui.runnablewrapper.run(runnablewrapper.java:120) @ com.codename1.impl.codenameonethread.run(codenameonethread.java:176)

an out of memory indicates recursion. map contain reference or 1 of children?

in case code maintain digging deeper , deep , end in loop. suggest stopping debugger breakpoint , inspect children of map see none of them recurse infinitely.

codenameone

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -