On Jul 28, 2009, at 4:18 AM, Simon Laws wrote:
On Mon, Jul 27, 2009 at 3:48 PM, Simon
Laws<[email protected]> wrote:
OK, I've been looking at the perm gen this afternoon. Not getting
very
far with it:-(
Simon
I've checked in the fixes I made in 1.x in the hope that it will help
(shouldn't do any harm). This may help a bit but I'm still getting
perm gen failures. I'm running with OSGi and suffering from too much
information, too many classloaders to check etc. It would be worth
doing some testing with the non-OSGi version of the tests to see if
this shows up anything unusual.
Running otests, I see a fair number of errors like the following:
Running client.ASM_5003_TestCase
Implementation language set to: _Java
SCA Node API ClassLoader: sun.misc.launcher$appclassloa...@33056f
at javax.xml.ws.Service.create(Service.java:680)
at client.BaseJAXWSTestCase.invokeTest(BaseJAXWSTestCase.java:217)
at client.BaseJAXWSTestCase.testDummy(BaseJAXWSTestCase.java:175)
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.junit.runners.model.FrameworkMethod
$1.runReflectiveCall(FrameworkMethod.java:44)
at
org
.junit
.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
15)
at
org
.junit
.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:
41)
at
org
.junit
.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org
.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
28)
at
org
.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at
org
.junit
.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at
org
.junit
.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at
org
.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
28)
at
org
.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at
org
.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:
62)
at
org
.apache
.maven
.surefire
.suite
.AbstractDirectoryTestSuite
.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org
.apache
.maven
.surefire
.suite
.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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
.maven
.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:
345)
at
org
.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:
1009)
Caused by: java.lang.ClassNotFoundException:
com.sun.xml.ws.spi.ProviderImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:34)
... 34 more
Jul 28, 2009 8:51:06 AM org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0
Jul 28, 2009 8:51:06 AM
org.apache.tuscany.sca.endpoint.impl.EndpointRegistryImpl removeEndpoint
INFO: Remove endpoint - Endpoint: URI = TestClient/
TestClient_0002TestClient#service-binding(TestInvocation/TestInvocation)
Jul 28, 2009 8:51:06 AM org.apache.tuscany.sca.http.jetty.JettyServer
removeServletMapping
INFO: Removed Servlet mapping: /TestClient/TestInvocation
Jul 28, 2009 8:51:06 AM
org.apache.tuscany.sca.endpoint.impl.EndpointRegistryImpl removeEndpoint
INFO: Remove endpoint - Endpoint: URI = TestClient/
TestClient_0002TestClient#service-binding(TestInvocation/TestInvocation)
Jul 28, 2009 8:51:06 AM
org.apache.tuscany.sca.endpoint.impl.EndpointRegistryImpl removeEndpoint
INFO: Remove endpoint - Endpoint: URI = TestComponent1/
TestComposite14TestComponent1/TestComposite71TestComponent1#service-
binding(Service1/Service1)
>>> Intent : {http://docs.oasis-open.org/ns/opencsa/sca/
200903}confidentiality
- No JMS connection factories are defined.Will not listen for any JMS
messages
- No JMS connection factories are defined.Will not listen for any JMS
messages
Exception received - detail: Provider com.sun.xml.ws.spi.ProviderImpl
not found
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.698
sec <<< FAILURE!
Is that expected?
otests run to completion. Is that because of my failures, which are
unique to my environment? Or because I run with the following
MAVEN_OPTS:
MAVEN_OPTS="-Xmx1024m -Xms512m -XX:MaxPermSize=512m -XX:
+HeapDumpOnOutOfMemoryError"
--kevan