Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP OutOfMemory(WTP OutOfMemory)
WTP OutOfMemory [message #511839] Wed, 03 February 2010 08:23 Go to next message
Michael is currently offline MichaelFriend
Messages: 7
Registered: February 2010
Junior Member
Using Eclipse Galileo http://www.eclipse.org/downloads/download.php?file=/technolo gy/epp/downloads/release/galileo/SR1/eclipse-jee-galileo-SR1 -win32.zip with WTP (including the CXF incubation Update) and Apache CXF ends on specific wsdl files with an "OutOfMemory: Java Heap Space" exception.

The usage of the command line tool wsdl2java of Apache CXF without the WTP GUI works without any problems after increasing the memory using -Xmx in the batch file wsdl2java.bat but the webservice generation using this way it quite hard.

Any ideas how to increase the maximum memory for the WTP GUI to avoid the Java Heap Space exception? (Currently I am not using M5 of the WTP tool). The -Xmx parameter in the batch file doesn't take any effect for the WTP GUI

regards
Michael
Re: WTP OutOfMemory [message #511913 is a reply to message #511839] Wed, 03 February 2010 12:16 Go to previous messageGo to next message
Wolfgang Knauf is currently offline Wolfgang KnaufFriend
Messages: 63
Registered: July 2009
Member
Hi Michael,

did you try to modify this parameter in "eclipse.ini"? It defaults to "-Xmx256m"
(at least in Eclipse 3.5).

Best regards

Wolfgang

Am 03.02.2010 09:23, schrieb Michael:

>
> Any ideas how to increase the maximum memory for the WTP GUI to avoid
> the Java Heap Space exception? (Currently I am not using M5 of the WTP
> tool). The -Xmx parameter in the batch file doesn't take any effect for
> the WTP GUI
>
> regards
> Michael
Re: WTP OutOfMemory [message #511921 is a reply to message #511913] Wed, 03 February 2010 12:38 Go to previous messageGo to next message
Michael is currently offline MichaelFriend
Messages: 7
Registered: February 2010
Junior Member
Hi Wolfgang

Yes, thats one of the first things i've tried but without success

regards
Michael
Re: WTP OutOfMemory [message #512131 is a reply to message #511921] Thu, 04 February 2010 05:13 Go to previous messageGo to next message
Sarika Sinha is currently offline Sarika SinhaFriend
Messages: 131
Registered: February 2010
Location: Bangalore, India
Senior Member
Are you using Galileo with WTP 3.2 M5? To use 3.2 M5, you should use M5 versions of all WPT - i.e Helios code. You can try following in the ini file :
-Xmx512m
-Xms256m
-XX:PermSize=512m
-XX:MaxPermSize=512m


Sarika Sinha
JDT Programmer
Re: WTP OutOfMemory [message #512171 is a reply to message #512131] Thu, 04 February 2010 09:58 Go to previous messageGo to next message
Michael is currently offline MichaelFriend
Messages: 7
Registered: February 2010
Junior Member
Currently am using the WTP which was integrated in the Galileo Package

Eclipse Java EE IDE for Web Developers:
Build id: 20090920-1017

Eclipse Faceted Project Framework:
Version: 3.1.1.v200908111817-37718s733L3J555J5H

CXF Web Services (Incubation)
Version: 0.4.2.v200909110610-37c6EdfOdTWUv0huqCz-RnOsYm
Build id: 20090911111021

The settings in the ini file are:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715. jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200 .v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXPermSize
512M
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx512m


The thrown exception is:

04.02.2010 10:49:06 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default frontend jaxws
04.02.2010 10:49:06 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default databinding jaxb
04.02.2010 10:49:06 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default frontend jaxws
04.02.2010 10:49:06 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default databinding jaxb
04.02.2010 10:49:06 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default databinding xmlbeans
04.02.2010 10:49:09 org.apache.cxf.common.injection.ResourceInjector invokePostConstruct
WARNUNG: method annotated by @PostConstruct throws exception when invoked
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.cxf.common.injection.ResourceInjector.invokePostC onstruct(ResourceInjector.java:302)
at org.apache.cxf.common.injection.ResourceInjector.construct(R esourceInjector.java:86)
at org.apache.cxf.bus.spring.Jsr250BeanPostProcessor.postProces sAfterInitialization(Jsr250BeanPostProcessor.java:71)
at org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyBeanPostProcessorsAfterInitialization( AbstractAutowireCapableBeanFactory.java:313)
at org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1181)
at org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:427)
at org.springframework.beans.factory.support.AbstractBeanFactor y$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBe anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:15 5)
at org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBea nFactory.preInstantiateSingletons(DefaultListableBeanFactory .java:291)
at org.springframework.context.support.AbstractApplicationConte xt.refresh(AbstractApplicationContext.java:352)
at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:88)
at org.apache.cxf.bus.spring.SpringBusFactory.createApplication Context(SpringBusFactory.java:102)
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringB usFactory.java:93)
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringB usFactory.java:86)
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringB usFactory.java:64)
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringB usFactory.java:53)
at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:58)
at org.apache.cxf.tools.common.toolspec.AbstractToolContainer.g etBus(AbstractToolContainer.java:186)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDL ToJavaContainer.java:123)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDL ToJavaContainer.java:232)
at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(Tool Runner.java:83)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:1 03)
at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java: 173)
Caused by: java.lang.NoSuchMethodError: org.apache.cxf.ws.policy.AssertionBuilderRegistry.register(L org/apache/cxf/ws/policy/AssertionBuilder;)V
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.reg isterBuilders(WSSecurityPolicyLoader.java:91)
at org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader.reg ister(WSSecurityPolicyLoader.java:75)
... 30 more
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.text.MessageFormat.applyPattern(MessageFormat.java:415)
at java.text.MessageFormat.<init>(MessageFormat.java:350)
at java.text.MessageFormat.format(MessageFormat.java:811)
at com.sun.tools.xjc.generator.bean.field.Messages.format(Messa ges.java:57)
at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:117)
at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:76)
at sun.reflect.GeneratedConstructorAccessor24.newInstance(Unkno wn Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
at com.sun.tools.xjc.generator.bean.field.GenericFieldRenderer. generate(GenericFieldRenderer.java:64)
at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer. generate(DefaultFieldRenderer.java:75)
at com.sun.tools.xjc.generator.bean.BeanGenerator.generateField Decl(BeanGenerator.java:744)
at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClass Body(BeanGenerator.java:532)
at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:234)
at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(Bean Generator.java:174)
at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(Schem aCompilerImpl.java:251)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(Schem aCompilerImpl.java:85)
at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding .initialize(JAXBDataBinding.java:218)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateType s(WSDLToJavaContainer.java:536)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDL ToJavaContainer.java:187)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDL ToJavaContainer.java:232)
at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(Tool Runner.java:83)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:1 03)
at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java: 173)



For now this exception is only thrown with Apache CXF (current version:2.2.6). >>Axis2 seems to have no problems with it<<. For Axis2 i used the default configuration:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715. jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200 .v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
Re: WTP OutOfMemory [message #513502 is a reply to message #512171] Wed, 10 February 2010 12:19 Go to previous messageGo to next message
Michael is currently offline MichaelFriend
Messages: 7
Registered: February 2010
Junior Member
I assume nobody knows a workaround for this problem, right?
Re: WTP OutOfMemory [message #514764 is a reply to message #513502] Tue, 16 February 2010 15:08 Go to previous message
David Carver is currently offline David CarverFriend
Messages: 174
Registered: July 2009
Senior Member
If you are still having a problem, please open a bug against the JAX-WS component in the WTP Incubator.
Previous Topic:XSLT: no stylesheet instruction?
Next Topic:XML editor performance inconsistency
Goto Forum:
  


Current Time: Tue Mar 19 05:36:02 GMT 2024

Powered by FUDForum. Page generated in 0.03219 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top