[Beginners Corner] - Re: JBOSS 4.0.5 Shutdown : Failed to initalize plugin: org.j
by jbarthel
Ok, I have a solution to this error, which works for me.
The general problem is that when JBoss AS is shutdown, the application which contains the custom RepositorySelector implementation is undeployed.
This means that other applications which are undeployed during server shutdown _after_ this, still try to access the custom RepositorySelector through the LogManager if they log during undeployment. This results in a NullPointerException, since the referenced RepositorySelector is already gone.
The NPE is thrown in jboss.Logger.getDelegate(String name) while trying to initialize the LoggerPlugin (a Log4jLoggerPlugin by default), and is caught without printing the stacktrace and printing the "failed to initalize" message instead.
In order to prevent this, the RepositorySelector of LogManager needs to be set to a DefaultRepositorySelector during undeployment of our application.
for example:
LogManager.setRepositorySelector(new DefaultRepositorySelector(defaultRepository), guard);
where defaultRepository is the default LoggerRepository and guard is the RootLogger of LogManager which I have saved during the initialization of my custom RepositorySelector
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030581#4030581
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030581
19Â years, 1Â month
[JBoss Seam] - Re: Integrate user defined Resources (suggestions needed)
by petemuir
"baz" wrote : Caused by: java.lang.NullPointerException
| | at org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:211)
| | at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:126)
| | ... 17 more
|
| This is a bug in Seam. I've fixed it in CVS, please test.
|
| anonymous wrote : After adding the @Install annotation i getCaused by: org.jboss.seam.RequiredException: In attribute requires non-null value: authorizationBean.protocolTemplate
| | | at org.jboss.seam.Component.getValueToInject(Component.java:1887)
| | | at org.jboss.seam.Component.injectAttributes(Component.java:1336)
| | | at org.jboss.seam.Component.inject(Component.java:1163)
| | |
| | when trying to inject my bean with @In.
| | But @AutoCreate is set and i have added auto-create="true" to the definition
| |
| | Here is the components.xml fragment
| | <baz:protocol-template file-name="meinFile" auto-create="true"/>
| | |
| |
|
| Well you are trying to inject a null value. Check that Resources.get... is actually returning an InputStream.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030578#4030578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030578
19Â years, 1Â month