#1112 Hide or remove AOP Error Messages at server startup

1.2
open-fixed
nobody
JFireBase (268)
5
2010-10-20
2010-10-20
jfirechief
No

DO NOT EDIT OR ANSWER THIS ISSUE. SEE THE ORIGINAL ISSUE INSTEAD:
https://www.jfire.org/modules/bugs/view.php?id=1776
ORIGINAL REPORTER: daniel

When the server starts many ERROR messages on System.err appear like
"Could not find class (e.g. org.nightlabs.jfire.serverinit.ServerInitDependency that org.nightlabs.jfire.serverinit.ServerInitManager) references. It may not be in your classpath and you may not be getting field ans constructor weavin for this class."

These error messages suggest to users that errors happen during server start. But in fact these errors can be ignored. Either fix the JFire AOP integration so that the messages don't appear or try to hide them so that they don't show up at server start.

Discussion

  • jfirechief

    jfirechief - 2010-10-20
    • labels: --> JFireBase
    • milestone: --> 1.2
    • status: open --> open-fixed
     
  • jfirechief

    jfirechief - 2010-10-20

    ORIGINAL COMMENT BY fitas_java, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1776

    we can not switch off the logging messages conventionally using the category config inside Jboss-Log4J.xml.

    apparently there are alot of people complaining about those errors in the Jboss Forum as it can been seen from here

    http://community.jboss.org/message/280063#280063

    the main reason because the Aspectizer code prints directly on the stack

    code such as

    System.err.println("[warn] AOP Instrumentor failed to transform " + clazz.getName()); e.printStackTrace(); etc etc ...

    can be seen everywhere inside the instrumentor source code.

    the special flag suppressTransformationErrors does not work as well, because the instrumentor is supposed to print on stack when the flag is set to true and throws the exception when it s set on false.

     
  • jfirechief

    jfirechief - 2010-10-20

    ORIGINAL COMMENT BY fitas_java, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1776

    a modified patched version of Instrumentor was required to be deployed on JBoss Server.

    initially JBoss AOP Developers has designated the flag SuppressTransformationErrors to switch on / off the verbose messages.

    the code did not respect that convention on was using the method printStack() on every error, so now I have redirected and modified the code to output to Log4J debug channel Logger.

    so I have coded that way if the the flag SuppressTransformationErrors is set to true then all exceptions are ignored and if otherwise everything will be outputed.

     

Log in to post a comment.