我java端查到数据后,并且把所有的图片加载成流的形式,返回到Flex端,报出了以下错误,实在不懂怎么着手解决;[BlazeDS]Javaheapspacejava.lang.OutOfMemoryError:Javaheapspaceatja...
我java端查到数据后,并且把所有的图片加载成流的形式,返回到Flex端,报出了以下错误,实在不懂怎么着手解决;
[BlazeDS]Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.grow(Unknown Source)
at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at java.io.DataOutputStream.write(Unknown Source)
at flex.messaging.io.amf.Amf3Output.writeAMFByteArray(Amf3Output.java:786)
at flex.messaging.io.amf.Amf3Output.writePrimitiveArray(Amf3Output.java:659)
at flex.messaging.io.amf.Amf3Output.writeAMFArray(Amf3Output.java:460)
at flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:217)
at flex.messaging.io.amf.Amf3Output.writeObjectProperty(Amf3Output.java:283)
at flex.messaging.io.amf.Amf3Output.writePropertyProxy(Amf3Output.java:629)
at flex.messaging.io.amf.Amf3Output.writeCustomObject(Amf3Output.java:559)
at flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:231)
at flex.messaging.io.amf.Amf3Output.writeObjectArray(Amf3Output.java:881)
at flex.messaging.io.amf.Amf3Output.writeAMFArray(Amf3Output.java:472)
at flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:217)
at flex.messaging.io.ArrayCollection.writeExternal(ArrayCollection.java:99)
at flex.messaging.io.amf.Amf3Output.writePropertyProxy(Amf3Output.java:621)
at flex.messaging.io.amf.Amf3Output.writeArrayCollection(Amf3Output.java:503)
at flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:213)
at flex.messaging.messages.AbstractMessage.writeExternalBody(AbstractMessage.java:727)
at flex.messaging.messages.AbstractMessage.writeExternal(AbstractMessage.java:455)
at flex.messaging.messages.AsyncMessage.writeExternal(AsyncMessage.java:143)
at flex.messaging.messages.AcknowledgeMessage.writeExternal(AcknowledgeMessage.java:97)
at flex.messaging.messages.AcknowledgeMessageExt.writeExternal(AcknowledgeMessageExt.java:57)
at flex.messaging.io.amf.Amf3Output.writePropertyProxy(Amf3Output.java:621)
at flex.messaging.io.amf.Amf3Output.writeCustomObject(Amf3Output.java:559)
at flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:120)
at flex.messaging.io.amf.Amf0Output.writeObject(Amf0Output.java:229)
at flex.messaging.io.amf.AmfMessageSerializer.writeObject(AmfMessageSerializer.java:200)
at flex.messaging.io.amf.AmfMessageSerializer.writeBody(AmfMessageSerializer.java:189)
at flex.messaging.io.amf.AmfMessageSerializer.writeMessage(AmfMessageSerializer.java:145)
展开