cancel
Showing results for 
Search instead for 
Did you mean: 

FacesContext bug?

char
Champ in-the-making
Champ in-the-making
Hello,

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(Assert.java:113)
        at org.springframework.web.jsf.FacesContextUtils.getWebApplicationContext(FacesContextUtils.java:50)
        at org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(FacesContextUtils.java:81)
        at org.alfresco.web.bean.repository.Repository.getServiceRegistry(Repository.java:435)
        at org.alfresco.web.bean.repository.Preferences.getNodeService(Preferences.java:107)
        at org.alfresco.web.bean.repository.Preferences.getValue(Preferences.java:79)
        at org.alfresco.web.app.Application.getLanguage(Application.java:622)
        at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:334)
        at org.alfresco.web.app.servlet.BaseServlet.servletAuthenticate(BaseServlet.java:137)
        at org.alfresco.web.app.servlet.BaseServlet.servletAuthenticate(BaseServlet.java:117)
        at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:100)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

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: https://issues.alfresco.com/browse/ALFCOM-979%3bjsessionid=50379F217B349652FF4776C510444E55?page=com...

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!
1 REPLY 1

amarendra_thaku
Champ in-the-making
Champ in-the-making
Hello Char,

I am also getting the same error.At this point of time the only solution is to login in to alfresco application once before invoking the repository-service of alfresco

Well i may let u inform abt the possible solution if i get any.

Thanks & Regards
Amarendra Thakur
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.