Workaround for java.lang.OutOfMemoryError: PermGen space in TCK5
by Richard Opalka
Hi folks,
I hope this will help you in the future.
I was dealing with java.lang.OutOfMemoryError: PermGen space error
when preparing jaxws tck5 suite for execution.
The workaround to this problem is to specify
ANT_OPTS="$ANT_OPTS -Xms128m -Xmx512m* -XX:MaxPermSize=256m*"
in $TS_HOME/bin/tsant script.
Richard
Below is the exception I was dealing with:
Executing
$TS_HOME/bin/tsant -Dbuild.vi=true clean build
in TCK5/.../jaxws directory threw the following exception:
--- Nested Exception ---
java.lang.OutOfMemoryError: PermGen space
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at com.sun.ant.taskdefs.common.DoSubdirs.execute(DoSubdirs.java:105)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
...
BUILD FAILED
The following directories failed:
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2401
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2701
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2702
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2705
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2710
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2717
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2718
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2720
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2721
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2723
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2724
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2725
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2726
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2749
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2754
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R2801
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/j2w/rpc/literal/R4003
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/document/literal/R1141
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/document/literal/R2030
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/document/literal/R2707
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/document/literal/R2709
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/document/literal/R2712
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/document/literal/R2747
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/document/literal/R2748
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/document/literal/R4002
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/document/literal/R4003
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/document/literal/swatest
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R1005
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R1006
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R1007
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R1011
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R1012
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R1014
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R1015
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R1016
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R1027
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R1141
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R11XX
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2009
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2010
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2011
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2030
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2105
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2113
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2114
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2706
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2707
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2709
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2714
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2728
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2729
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2738
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2739
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R273X
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2744
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2745
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2747
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2748
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2751
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R2753
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R4001
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R4002
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R4003
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/R97XX
/home/opalka/tck/tck5/src/com/sun/ts/tests/jaxws/wsi/w2j/rpc/literal/swatest
Total time: 52 minutes 35 seconds
--
B.Sc. Richard Opalka
Senior Software Engineer
JBoss, a division of Red Hat
Mobile: +420 731 186 942
Mail: ropalka(a)redhat.com
16 years, 10 months
[Design of JBoss Web Services] - JBWS-1922
by alessio.soldano@jboss.com
Hi Folks,
I'm working on the JBWS-1992 (http://jira.jboss.org/jira/browse/JBWS-1992). The issue description has 2 exceptions; the first one is not happening any more imho, the second one (Entry not found with name: WSEndpointRegistry) is caused by the WSEndpointRegistryDeploymentAspect missing a dependency on the WSEndpointRegistry bean.
In order for that deployment aspect to depend on this bean, this has to be moved from the stack config file (jbossws-native-config.xml for example) to the jbossws-deployer-beans.xml in the AS code base.
This however means the jbossws-jboss42 resources need to change too, since the stack conf file will not have the WSEndpointRegistry anymore.
Do you see any problem in changing the jboss42 integration resources now? And if this is ok, where is the jbossws-jboss42-config.xml in the AS42 code base? I can see it only in the 4.2.1 tag of our container integration.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136662#4136662
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136662
16 years, 10 months
[Design of JBoss Web Services] - Re: Integration metro
by thomas.diesler@jboss.com
If the metro build depends on a certain version of jax-ws, that is published in the repository. How do we verify that
| sun-jaxws=2.1.3
|
is correct?
If these jars
| <!-- Metro 3rd party thats not available through repo.jboss.com -->
|
| <fileset dir="${lib.runtime.dir}">
| <include name="jaxws-local-transport.jar"/>
| <include name="stax-utils.jar"/>
| <include name="txnannprocessor.jar"/>
| <include name="wstx-asl-3.2.1.jar"/>
| <include name="xmldsig.jar"/>
| <include name="xws-security.jar"/>
| <!-- a custom jarjar resolver package -->
| <include name="resolver.jar"/>
| </fileset>
|
are all part of jax-ws (like this one)
| [tdiesler@tddell glassfish-metro]$ find . -name wstx-asl-*.jar
| ./wsit/wsit/lib/runtime/wstx-asl-3.2.1.jar
|
they should all come from the repository.
My issue is that wsit's dependency on jax-ws should be properly defined and verified.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136575#4136575
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136575
16 years, 10 months
[Design of JBoss Web Services] - Re: Integration metro
by thomas.diesler@jboss.com
| [tdiesler@tddell glassfish-metro]$ ls wsit/wsit/lib/runtime
| activation.jar jaxb-api.jar jaxrpc-spi.jar jsr173_1.0_src.zip README-BIN.txt sjsxp-src.zip txnannprocessor.jar
| activation-src.zip jaxb-api-src.zip jaxws-api-doc.zip jsr173_api.jar resolver.jar special-README.txt txnannprocessor-src.zip
| CVS jaxb-impl.jar jaxws-api.jar jsr181-api.jar resolver-src.zip stax-ex.jar wstx-asl-3.2.1.jar
| FastInfoset.jar jaxb-impl.src.zip jaxws-api-src.zip jsr181-api.src.zip saaj-api.jar stax-ex-src.zip wstx-src-3.2.1.zip
| FastInfoset.src.zip jaxr-api.jar jaxws-local-transport.jar jsr250-api.jar saaj-api-src.zip stax-utils.jar xmldsig.jar
| http.jar jaxr-impl.jar jaxws-local-transport-src.zip mail-1.4.jar saaj-impl.jar stax-utils-src.zip xmlsec.jar
| jaxb1-impl.jar jaxrpc-api.jar jaxws-rt.jar mimepull.jar saaj-impl.src.zip streambuffer.jar xws-security.jar
| jaxb-api-doc.zip jaxrpc-impl.jar jaxws-rt.src.zip mimepull-src.zip sjsxp.jar streambuffer.src.zip xws-security.src.zip
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136566#4136566
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136566
16 years, 10 months