dev@glassfish.java.net

OOM error testing Security configs from WSIT tutorial on GF

From: Tom Amiro <Tom.Amiro_at_Sun.COM>
Date: Mon, 11 Sep 2006 14:50:25 -0400

Hi,

When I was testing the procedures in the Security Chapter 5 of the
WSIT tutorial with Friday's candidate for Milestone 2 build on
GF v2 b16, the examples worked but the server.log shows a "runaway"
problem.

While I was working through the Symmetric Binding and Reliable Messaging
configuration,
NetBeans threw an Out of Memory error. I exited NetBeans and bounced
Glassfish.
Afterward, things seem OK, the configuration worked. I went on to the
Security
Policy with Asymmetric Binding configuration and it worked, but I
noticed that
the server.log (tail -f) was filling up with the below error. It didn't
stop on exiting NetBeans.
My guess is that Glassfish would have given the OOM again if this continued.

> Sending heartbeat message for sequence
> uuid:55880969-96e1-4125-bf3b-e3c87f564642|#]
>
> [#|2006-09-11T13:44:24.568-0400|WARNING|sun-appserver-pe9.1|javax.enterprise.system.stream.err|_ThreadID=116;_ThreadName=Thread-130;_RequestID=91f671a2-5a23-4c78-aa40-2eb6746ae317;|
> Exception in thread "Thread-130" |#]
>
> [#|2006-09-11T13:44:24.569-0400|WARNING|sun-appserver-pe9.1|javax.enterprise.system.stream.err|_ThreadID=116;_ThreadName=Thread-130;_RequestID=91f671a2-5a23-4c78-aa40-2eb6746ae317;|java.lang.NullPointerException
> at
> org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:1048)
> at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
> at sun.misc.Service$LazyIterator.hasNext(Service.java:249)
> at
> javax.xml.ws.addressing.AddressingBuilderFactory.newInstance(AddressingBuilderFactory.java:93)
> at
> javax.xml.ws.addressing.AddressingBuilder.newInstance(AddressingBuilder.java:56)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ProtocolMessageSender.addAddressingHeaders(ProtocolMessageSender.java:297)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ProtocolMessageSender.sendAckRequested(ProtocolMessageSender.java:260)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ClientOutboundSequence$AckRequestedSender.run(ClientOutboundSequence.java:529)
> |#]
>
> [#|2006-09-11T13:44:26.570-0400|INFO|sun-appserver-pe9.1|javax.enterprise.system.stream.out|_ThreadID=117;_ThreadName=Thread-131;|
> Sending heartbeat message for sequence
> uuid:d7399f80-1cac-46f1-a08f-7e7c03dca797|#]
>
> [#|2006-09-11T13:44:26.571-0400|WARNING|sun-appserver-pe9.1|javax.enterprise.system.stream.err|_ThreadID=117;_ThreadName=Thread-131;_RequestID=455a9be6-9069-402f-8967-c517d158af31;|
> Exception in thread "Thread-131" |#]
>
> [#|2006-09-11T13:44:26.572-0400|WARNING|sun-appserver-pe9.1|javax.enterprise.system.stream.err|_ThreadID=117;_ThreadName=Thread-131;_RequestID=455a9be6-9069-402f-8967-c517d158af31;|java.lang.NullPointerException
> at
> org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:1048)
> at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
> at sun.misc.Service$LazyIterator.hasNext(Service.java:249)
> at
> javax.xml.ws.addressing.AddressingBuilderFactory.newInstance(AddressingBuilderFactory.java:93)
> at
> javax.xml.ws.addressing.AddressingBuilder.newInstance(AddressingBuilder.java:56)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ProtocolMessageSender.addAddressingHeaders(ProtocolMessageSender.java:297)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ProtocolMessageSender.sendAckRequested(ProtocolMessageSender.java:260)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ClientOutboundSequence$AckRequestedSender.run(ClientOutboundSequence.java:529)
> |#]
>
> [#|2006-09-11T13:44:26.573-0400|INFO|sun-appserver-pe9.1|javax.enterprise.system.stream.out|_ThreadID=118;_ThreadName=Thread-132;|
> Sending heartbeat message for sequence
> uuid:fd483bcf-ea52-4fc5-9683-b9b6c0db8a8d|#]
>
> [#|2006-09-11T13:44:26.573-0400|WARNING|sun-appserver-pe9.1|javax.enterprise.system.stream.err|_ThreadID=118;_ThreadName=Thread-132;_RequestID=37b173b1-5d1d-42cd-af30-7882eedb284a;|
> Exception in thread "Thread-132" |#]
>
> [#|2006-09-11T13:44:26.574-0400|WARNING|sun-appserver-pe9.1|javax.enterprise.system.stream.err|_ThreadID=118;_ThreadName=Thread-132;_RequestID=37b173b1-5d1d-42cd-af30-7882eedb284a;|java.lang.NullPointerException
> at
> org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:1048)
> at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
> at sun.misc.Service$LazyIterator.hasNext(Service.java:249)
> at
> javax.xml.ws.addressing.AddressingBuilderFactory.newInstance(AddressingBuilderFactory.java:93)
> at
> javax.xml.ws.addressing.AddressingBuilder.newInstance(AddressingBuilder.java:56)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ProtocolMessageSender.addAddressingHeaders(ProtocolMessageSender.java:297)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ProtocolMessageSender.sendAckRequested(ProtocolMessageSender.java:260)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ClientOutboundSequence$AckRequestedSender.run(ClientOutboundSequence.java:529)
> |#]
>
> [#|2006-09-11T13:44:26.575-0400|INFO|sun-appserver-pe9.1|javax.enterprise.system.stream.out|_ThreadID=119;_ThreadName=Thread-133;|
> Sending heartbeat message for sequence
> uuid:55880969-96e1-4125-bf3b-e3c87f564642|#]
>
> [#|2006-09-11T13:44:26.576-0400|WARNING|sun-appserver-pe9.1|javax.enterprise.system.stream.err|_ThreadID=119;_ThreadName=Thread-133;_RequestID=ee972005-346a-475c-80f2-975626d7f07f;|
> Exception in thread "Thread-133" |#]
>
> [#|2006-09-11T13:44:26.576-0400|WARNING|sun-appserver-pe9.1|javax.enterprise.system.stream.err|_ThreadID=119;_ThreadName=Thread-133;_RequestID=ee972005-346a-475c-80f2-975626d7f07f;|java.lang.NullPointerException
> at
> org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:1048)
> at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
> at sun.misc.Service$LazyIterator.hasNext(Service.java:249)
> at
> javax.xml.ws.addressing.AddressingBuilderFactory.newInstance(AddressingBuilderFactory.java:93)
> at
> javax.xml.ws.addressing.AddressingBuilder.newInstance(AddressingBuilder.java:56)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ProtocolMessageSender.addAddressingHeaders(ProtocolMessageSender.java:297)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ProtocolMessageSender.sendAckRequested(ProtocolMessageSender.java:260)
> at
> com.sun.xml.ws.rm.jaxws.runtime.client.ClientOutboundSequence$AckRequestedSender.run(ClientOutboundSequence.java:529)
> |#]

Next I played around a little. After exiting and restarting both NB and
GF, on
running the ServletClient the server.log shows

   Wrong WSHandlerResolver: null

The browser shows the correct result from the add operation
initiated by the client servlet, but the repeating NPE is no longer
happening
in the server.log.

This problem wasn't seen with WSIT Milestone 1, but then
many things have changed: WSIT, GF, NetBeans, and the
NetBeans WSIT module.

Has anyone ever seen this problem and/or have any ideas on how
to get to the bottom of it?

Tom