Sun GlassFish Enterprise Server v3 发行说明

com.sun.xml.wss.NonceManager.getInstance 抛出 null 指针异常(问题 11138)

描述

在启用 GlassFish 消息安全提供者的情况下测试 JAX-RPC Web 服务,会在服务器日志中抛出以下异常:


[#|2009-11-23T11:16:58.375+0005|SEVERE|glassfishv3.0|
javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=25;_
ThreadName=http-thread-pool-8080-(2);|caught
throwable
java.lang.RuntimeException: com.sun.enterprise.security.jauth.AuthException

nonce 属性的默认值不起作用。

有关更多信息,请参见问题报告

解决方法

要在 JAX-RPC Web 服务中使用消息安全,则需要在配置中禁用 nonce 属性。请参见问题报告以获取解决方法的完整步骤。