AnsweredAssumed Answered

context initialization failed: NullPointerException

Question asked by decolnets on Jul 9, 2009
Latest reply on Sep 17, 2009 by pim
Hi all,

I'm a quite new in alfresco and I use the Community 3.2 on a Windows XP.
I'd like to use the active directory of my enterprise for the authentication on this system.

For that, I configure alfresco to use kerberos with a realm connected to the AD.

But I received an error during initialization and I don't know exactly witch component is wrong and why?

The log file on startup give me this error:

09-juil.-2009 13:54:57 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
09-juil.-2009 13:54:57 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 483 ms
09-juil.-2009 13:54:58 org.apache.catalina.core.StandardService start
INFO: D´┐¢marrage du service Catalina
09-juil.-2009 13:54:58 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
09-juil.-2009 13:54:59 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
13:55:04,698  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
13:55:04,714  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
13:55:04,714  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco-global.properties]
13:55:04,776  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:55:15,184  WARN  [authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server supports anonymous bind ldap://expadc004.hopital.erasme.local:389
13:55:15,199  INFO  [authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server does not fall back to anonymous bind for a string uid and password at ldap://expadc004.hopital.erasme.local:389
13:55:15,199  INFO  [authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server does not fall back to anonymous bind for a simple dn and password at ldap://expadc004.hopital.erasme.local:389
13:55:15,215  INFO  [authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server does not fall back to anonymous bind for known principal and invalid credentials at ldap://expadc004.hopital.erasme.local:389
13:55:15,965  WARN  [impl.acegi.ACLEntryVoter] Bean property 'authenticationService' no longer required on 'ACLEntryVoter'.
13:55:15,981  WARN  [impl.acegi.ACLEntryAfterInvocationProvider] Bean property 'authenticationService' no longer required.
Added passthru server [expadc004.hopital.erasme.local:192.168.162.5:Offline:0,0]
Passthru server online, [expadc004.hopital.erasme.local:192.168.162.5:Online:0,0]
13:55:27,044  INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
13:55:28,826  INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
13:55:31,779 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [default]
13:55:31,810 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:55:33,482 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [default] complete
13:55:33,701 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:\Alfresco\alf_data
13:55:33,810 User:System INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
13:55:34,060 User:System INFO  [admin.patch.PatchExecuter] No patches were required.
13:55:34,060 User:System INFO  [repo.module.ModuleServiceImpl] Found 1 module(s).
13:55:34,107 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'org.alfresco.module.vti' version 1.2.
13:55:34,295 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [default]
13:55:34,310 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:55:34,514 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [managed, alfrescoNtlm1]
13:55:34,529 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:55:34,857 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [managed, alfrescoNtlm1] complete
13:55:34,904 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [default] complete
13:55:34,904 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [default]
13:55:34,920 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:55:34,967 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [default] complete
13:55:34,967 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [default]
13:55:34,982 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:55:34,998 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [default] complete
13:55:35,107 User:System INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_12-b04; maximum heap size 493,063MB
13:55:35,107 User:System WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493,063MB is less than recommended 512MB
13:55:35,107 User:System INFO  [service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.2.0 (2039) schema 2019 - Installed version 3.2.0 (2039) schema 2019
13:55:35,310 User:System INFO  [cmis.dictionary.CMISAbstractDictionaryService] Initialized CMIS Dictionary. Types:162, Properties:248
13:55:35,451 User:System INFO  [module.vti.VtiServer] Vti server started successfully on port: 7070
13:55:35,451 User:System ERROR [web.context.ContextLoader] Context initialization failed
java.lang.NullPointerException
        at org.alfresco.repo.security.authentication.AbstractAuthenticationComponent.getSystemUserName(AbstractAuthenticationComponent.java:304)
        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:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy58.getSystemUserName(Unknown Source)
        at org.alfresco.module.vti.handler.alfresco.VtiPathHelper.onBootstrap(VtiPathHelper.java:482)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:617)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:69)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
09-juil.-2009 13:55:35 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
09-juil.-2009 13:55:35 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de d´┐¢marrage du contexte [/alfresco] suite aux erreurs pr´┐¢c´┐¢dentes
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
09-juil.-2009 13:55:36 org.apache.catalina.startup.HostConfig deployWAR
INFO: D´┐¢ploiement de l'archive mobile.war de l'application web
13:55:37,483  INFO  [alfresco.config.JBossEnabledWebApplicationContext] Refreshing org.alfresco.config.JBossEnabledWebApplicationContext@8c970a: display name [Root WebApplicationContext]; startup date [Thu Jul 09 13:55:37 CEST 2009]; root of context hierarchy
13:55:37,858  INFO  [alfresco.config.JBossEnabledWebApplicationContext] Bean factory for application context [org.alfresco.config.JBossEnabledWebApplicationContext@8c970a]: org.springframework.beans.factory.support.DefaultListableBeanFactory@162f992
13:55:38,811  INFO  [web.scripts.DeclarativeRegistry] Registered 24 Web Scripts (+0 failed), 26 URLs
13:55:38,826  INFO  [web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 198.25928ms)
13:55:38,951  INFO  [web.scripts.DeclarativeRegistry] Registered 42 Web Scripts (+0 failed), 44 URLs
13:55:38,967  INFO  [web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 131.16779ms)
13:55:39,014  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
09-juil.-2009 13:55:39 org.apache.catalina.startup.HostConfig deployWAR
INFO: D´┐¢ploiement de l'archive share.war de l'application web
log4j:WARN No appenders could be found for logger (org.quartz.core.QuartzSchedulerThread).
log4j:WARN Please initialize the log4j system properly.
13:55:41,702  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
09-juil.-2009 13:55:41 org.apache.catalina.startup.HostConfig deployWAR
INFO: D´┐¢ploiement de l'archive studio.war de l'application web
Exception in thread "AlfrescoJbpmJobExecutor:192.168.50.191:1" java.lang.NullPointerException
        at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:80)

Do you have any idea to help me?

May thanks

Sébastien

Outcomes