Welcome, Guest. Please Login or Register
WebLab - An SOA Platform for media mining. News:
Documentation has been updated, see here for more information
  HomeHelpSearchLoginRegister
 
Pages: 1
Send Topic Print
[Resolved] OutOfMemoryError (Read 15 times)
marco
Junior WebLab Member
**
Offline

I Love WebLab

Posts: 17
Sunderland (UK)
Gender: male
[Resolved] OutOfMemoryError
06.03.2009 at 15:34:39
 
Dear All,

The JWebServiceClient (version 2.0-SNAPSHOT) is throwing an OutOfMemoryError exception. Afterwards, it crashes and I cannot recover the output of my web service (the service and the client are running under Windows XP).

The exception message appears below. Do you have any ideas to fix this problem?


Exception in thread "Thread-4" java.lang.OutOfMemoryError: Java heap space
       at java.lang.StringCoding$StringEncoder.encode(Unknown Source)
       at java.lang.StringCoding.encode(Unknown Source)
       at java.lang.String.getBytes(Unknown Source)
       at com.eads.weblab.checker.sax.SaxUriLocator.locate(SaxUriLocator.java:50)
       at com.eads.weblab.jwebserviceclient.ui.soapmessage.SoapMessageTabbedPane.update(S
oapMessageTabbedPane.java:191)
       at java.util.Observable.notifyObservers(Unknown Source)
       at com.eads.weblab.jwebserviceclient.model.message.MessageSoap.fireIntervalChanged
(MessageSoap.java:286)
       at com.eads.weblab.jwebserviceclient.model.message.MessageSoap.fireAllChanged(Mess
ageSoap.java:302)
       at com.eads.weblab.jwebserviceclient.model.services.Service.run(Service.java:51)


Back to top
 
« Last Edit: 20.07.2009 at 17:20:25 by Yann Mombrun »  
  IP Logged
Yann Mombrun
WebLab Administrator
*****
Offline

I Love WebLab

Posts: 58
Val de Reuil, France
Gender: male
Re: JWebServiceClient - OutOfMemoryError
Reply #1 - 09.03.2009 at 13:38:40
 
The output is probably a very big document. The JWebServiceClient does not have enough memory.

You just need to change the start.bat:  you might replace -Xmx256m by a -Xmx512m for instance.
Back to top
 
 
WWW   IP Logged
Pages: 1
Send Topic Print