Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JBoss: What does the warning EJBTHREE-1246 from the InterceptorRegistry mean?

Tags:

I am currently developing an EJB 3.0 based application on the JBoss AS 5.0.0.GA and just recently the following warning showed up in the server log:

09:50:19,735 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
09:50:19,735 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
09:50:19,735 WARN  [InterceptorRegistry] applicable interceptors is non-existent for ...
...

The warnings are generated as soon as an EJB (a stateless session bean) is injected into a backing bean of my JSF web-application. The beans do work without problems though, but I still would like to know where that warning comes from and what I can do to avoid it.

I have already searched a bit around, but haven't found a good answer (some say, bean developers do not have to worry, but its a warning, so I'd like to have a better solution):

  • http://www.jboss.com/index.html?module=bb&op=viewtopic&t=147292
  • http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180366
  • http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140136
  • JBoss JIRA Issue about the warning (Not that helpful in my opinion)

So has anyone an explanation what causes the warning (in terms of a bean developer, not application server developer) and what to do to avoid it?

Update: I've just upgraded JBoss to 5.0.1.GA (Download, Release-Notes) but unfortunatly the warning still appears.

like image 915
Simon Lehmann Avatar asked Jan 29 '09 09:01

Simon Lehmann


2 Answers

As far as I understand all the available sources on this warning, it is nothing a user of JBoss 5 can do anything about and is essentially just a reminder for the developers of JBoss that they use their own classes wrong.

Following the advice from the developers, I am now ignoring it by changing my logging configuration in conf/jboss-log4j.xml. I've just added:

<category name="org.jboss.ejb3.interceptors">
    <priority value="ERROR" />
</category>
like image 140
Simon Lehmann Avatar answered Oct 09 '22 09:10

Simon Lehmann


Even the JBoss EJB3 tutorial/documentation says you can safely ignore these warnings. Well if everyone can ignore these don't log them! It's frustrating to see this issue isn't being fixed.

like image 34
Richard Kettelerij Avatar answered Oct 09 '22 10:10

Richard Kettelerij