I have a web service implemented with Spring WS stack over a JBoss 5.1 GA.
The service has configured as one of the interceptors the security interceptor:
The content of securityPolicy.xml file is the following one:
The problem is that since I set the nonceRequired attribute to true, always the first invocation sent to the service returns a NullPointerException:
On following invocations exception is never found again.
It seems related to the nonce cache, as it in first invocation the cache is not created yet and instead of validating any input nonce, it returns this exception.
Is there any way to avoid this problem? The environment on which the app is installed restarts everyday so always users get this error once a day.
I attach the full appContext file of the web service in case it helps.
Thanks a lot and regards.