开发者

java.rmi.ServerException: RuntimeException

When trying to access an ejb from a client , I get this exception :

java.rmi.ServerException: RuntimeException; nested exception is:   
java.lang.NullPointerException
at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:421)
at org.jboss.ej开发者_运维技巧b.plugins.LogInterceptor.invoke(LogInterceptor.java:209)

I can't figure for the life of me, what's wrong and where !


I reckon that the EJB has an interceptor specified, hence every call the client makes goes via that interceptor. It looks like someone has set up some logging to be done for each call. So you need to go look at the LogInterceptor class - line 421 and figure out what problem it has. Probably it's not correctly initialised.

Then have severe words with the author - surely an Interceptor should be more robust than this. It should default to some sane behaviour and not obstruct the work, or at least should report a sensible error message.


I think the easiest thing is to look at the JBoss source code for LogInterceptor.java for the particular version of JBoss that you're running (part of the magic of OSS).

Note that I found this but it appears to be out-of-date, or at least doesn't correspond to the source that you're running.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜