AnsweredAssumed Answered

FacesContext bug?

Question asked by char on Jun 18, 2008
Latest reply on Apr 15, 2010 by amarendra.thakur

my environment:
1) Started Jboss 4.2.2 with Alfresco
2) Started other JBoss 4.2.2 with Web application, which tries to invoke the repository-service of alfresco.

I get an exception here:
18:10:34,648 ERROR [[downloadContent]] Servlet.service() para servlet downloadContent lanzó excepción
java.lang.IllegalArgumentException: FacesContext must not be null
        at org.springframework.util.Assert.notNull(
        at org.springframework.web.jsf.FacesContextUtils.getWebApplicationContext(
        at org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(
        at org.alfresco.web.bean.repository.Repository.getServiceRegistry(
        at org.alfresco.web.bean.repository.Preferences.getNodeService(
        at org.alfresco.web.bean.repository.Preferences.getValue(
        at javax.servlet.http.HttpServlet.service(

The workaround is to start the alfresco web-client before invoking the remote service. But this is not what i would like our clients to do everytime they reboot the servers….

I found a connection to this bug report:

And downloaded the nightly build SDK 3.0 to exchange the webservice-client.jar of my web-application, but the bug still appears.

Any ideas?

Thx in advance!