cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication problem browsing spaces - No SecureContext

guillaumeb
Champ in-the-making
Champ in-the-making
Hi,

I am trying out the Alfresco with JBoss release on a Win 2003 Server machine.
I have created a space and managed to create a couple of content pieces (html + txt + pdf).
The PDF creation failed.

I am not even sure it is related with the content creation but I get the following errors when I browse through the spaces, even the default ones (from install):
A funny thing is that it does work sometimes though.

I login with admin/admin account and it seems to be an authentification issue at the space level.

Also, the <machine_name>_A/alfresco share is not created at server startup, which means I also have a CIFS problem there.

Anyone had similar issues?


2005-12-07 12:40:48,765 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco]] Exception while invoking expression #{BrowseBean.clickSpace}
javax.faces.el.EvaluationException: Exception while invoking expression #{BrowseBean.clickSpace}
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
   at javax.faces.component.UICommand.broadcast(UICommand.java:86)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
   at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
   at org.apache.myfaces.portlet.MyFacesGenericPortlet.processAction(MyFacesGenericPortlet.java:221)
   at org.alfresco.web.app.portlet.AlfrescoFacesPortlet.processAction(AlfrescoFacesPortlet.java:146)
   at org.jboss.portal.portlet.invocation.DispatcherInterceptor.invokeAction(DispatcherInterceptor.java:110)
   at org.jboss.portal.portlet.invocation.DispatcherInterceptor.invoke(DispatcherInterceptor.java:191)

Caused by: net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:477)
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:355)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:37)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
   at $Proxy72.getProperty(Unknown Source)
   at org.alfresco.web.bean.repository.Repository.getNameForNode(Repository.java:132)
   at org.alfresco.web.bean.BrowseBean.updateUILocation(BrowseBean.java:1326)
   at org.alfresco.web.bean.BrowseBean.clickSpace(BrowseBean.java:900)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
   … 71 more
2005-12-07 12:40:48,781 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco]] Root cause: A valid SecureContext was not provided in the RequestContext
net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:477)
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:355)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:37)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
   at $Proxy72.getProperty(Unknown Source)
   at org.alfresco.web.bean.repository.Repository.getNameForNode(Repository.java:132)
   at org.alfresco.web.bean.BrowseBean.updateUILocation(BrowseBean.java:1326)
   at org.alfresco.web.bean.BrowseBean.clickSpace(BrowseBean.java:900)

3 REPLIES 3

fselendic
Champ in-the-making
Champ in-the-making
Same problem here, Alfresco 1.1 JBoss bundle, installed on Linux.

This error happens ocasionally (but rather frequently) when browsing through spaces. From what I can tell, it happens more when entering some spaces for the first time after starting Alfresco.


javax.portlet.PortletException: Exception while invoking expression #{BrowseBean.clickSpace}

caused by:
javax.faces.el.EvaluationException: Exception while invoking expression #{BrowseBean.clickSpace}

caused by:
net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext

kevinr
Star Contributor
Star Contributor
We'll take a look at this problem, thanks for reporting it. I expect there will be a bug fix release to solve this and other problems some time next week.

Thanks,

Kevin

kevinr
Star Contributor
Star Contributor
OK I think i've found the problem and fixed it. Will be available in the next nightly build/release or you can extract the code from our public SVN server if you prefer.

r2029 | kevinr | 2005-12-12 18:02:07 +0000 (Mon, 12 Dec 2005) | 3 lines
Changed paths:
   M /alfresco/HEAD/root/projects/web-client/source/java/org/alfresco/web/app/portlet/AlfrescoFacesPortlet.java

Cheers,

Kevin
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.