[jboss-user] [JBoss Microcontainer] - MC - Better error reporting?

jaikiran pai do-not-reply at jboss.com
Wed Apr 14 08:25:37 EDT 2010


jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion

"MC - Better error reporting?"

To view the discussion, visit: http://community.jboss.org/message/537391#537391

--------------------------------------------------------------
 I haven't (yet) looked at the code responsible for logging this, so I can't propose any changes on that front. But I can make some general suggestions about the messages (with the previously posted logs as an example):

1)

DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "jboss.ejb3:module=myapp,component=MyNoInterfaceSFSB,service=EjbEncFactory" is missing the following dependencies:
    Dependency "jboss.naming:component=MyNoInterfaceSFSB,module=myapp" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **")

So this is saying that a service is missing a dependency which was expected to be in Installed state but is actually in "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **"

What does "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **" mean in the context of that message? Maybe it should be:

Dependency "jboss.naming:component=MyNoInterfaceSFSB,module=myapp" (should be in state "Installed", but is actually missing)


2) This one is more of formatting the error messages - In its current form multiple deployments which are missing dependencies are logged together like:


 
DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "jboss.ejb3:module=myapp,component=MyNoInterfaceSFSB,service=EjbEncFactory" is missing the following dependencies:
    Dependency "jboss.naming:component=MyNoInterfaceSFSB,module=myapp" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **")
  Deployment "jboss.ejb3:module=myapp,component=MyNoInterfaceSLSB,service=EjbEncFactory" is missing the following dependencies:
    Dependency "jboss.naming:component=MyNoInterfaceSLSB,module=myapp" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSLSB,module=myapp' **")
  Deployment "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3" is missing the following dependencies:
    Dependency "jboss.ejb3:component=MyNoInterfaceSFSB,module=myapp,service=EjbEncFactory" (should be in state "Installed", but is actually in state "Described")
  Deployment "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3" (should be in state "Installed", but is actually in state "Instantiated")
...


When this gets logged, it's very difficult to distinguish the different deployments. It just "appears" like some random text dumped out on the console. Maybe each deployment should be separated by an empty line, so that each one stands out:


DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "jboss.ejb3:module=myapp,component=MyNoInterfaceSFSB,service=EjbEncFactory" is missing the following dependencies:
    Dependency "jboss.naming:component=MyNoInterfaceSFSB,module=myapp" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **")
  
  
  Deployment "jboss.ejb3:module=myapp,component=MyNoInterfaceSLSB,service=EjbEncFactory" is missing the following dependencies:
    Dependency "jboss.naming:component=MyNoInterfaceSLSB,module=myapp" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSLSB,module=myapp' **")
  
  
  Deployment "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3" is missing the following dependencies:
    Dependency "jboss.ejb3:component=MyNoInterfaceSFSB,module=myapp,service=EjbEncFactory" (should be in state "Installed", but is actually in state "Described")
  Deployment "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3" (should be in state "Installed", but is actually in state "Instantiated")


3) The other section "Deployments in ERROR":


DEPLOYMENTS IN ERROR:
  Deployment "jboss.naming:component=MyNoInterfaceSLSB,module=myapp" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSLSB,module=myapp' **
  Deployment "jboss.naming:component=MyNoInterfaceSFSB,module=myapp" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **
  Deployment "jboss.ejb3:component=MyNoInterfaceSLSB,module=myapp,service=EjbEncFactory" is in error due to the following reason(s): Described
  Deployment "jboss.ejb3:component=MyNoInterfaceSFSB,module=myapp,service=EjbEncFactory" is in error due to the following reason(s): Described


This section (atleast in this specific deployment) is confusing and redundant. The message:

  Deployment "jboss.naming:component=MyNoInterfaceSLSB,module=myapp" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSLSB,module=myapp' **



is trying to say that jboss.naming:component=MyNoInterfaceSLSB,module=myapp has not been deployed (i.e. is missing). This was already conveyed in the earlier "Deployments missing dependencies" section. Why repeat it again? Also the ** NOT FOUND Depends...", as in the earlier case, is confusing.

The other message:

Deployment "jboss.ejb3:component=MyNoInterfaceSLSB,module=myapp,service=EjbEncFactory" is in error due to the following reason(s): Described

This too has already been conveyed (in a slightly different form) in the earlier "Deployments missing dependencies" section. So why repeat again?  :) 






--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/537391#537391]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100414/9b55c05f/attachment.html 


More information about the jboss-user mailing list