cancel
Showing results for 
Search instead for 
Did you mean: 

3.4.c hangs during startup

nobby
Champ on-the-rise
Champ on-the-rise
Hi everyone,

I just installed 3.4.c on Debian.

The startup stalls at the following log entry:


==> tomcat/logs/catalina.out <==
17:23:55,148 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
17:23:55,149 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
17:23:55,224 User:System INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
17:23:55,224 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
17:23:55,225 User:System INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]

Tomcat doesn't answer any requests.

TIA for any hints!

– Andreas
10 REPLIES 10

muralie39
Champ on-the-rise
Champ on-the-rise
The server may hang because of so many reasons…

     start alfresco server & start jconsole and check the memory, threads & cpu utilization ….


check the property in the cache-strategies.properties file


cache.strategy=read-write

nobby
Champ on-the-rise
Champ on-the-rise
I attached the debugger. It looks like the Tomcat main thread hangs here:


Thread [main] (Suspended)   
   ClassLoader.defineClass1(String, byte[], int, int, ProtectionDomain, String, boolean) line: not available [native method]   
   WebappClassLoader(ClassLoader).defineClassCond(String, byte[], int, int, ProtectionDomain, boolean) line: 632   
   WebappClassLoader(ClassLoader).defineClass(String, byte[], int, int, ProtectionDomain) line: 616   
   WebappClassLoader(ClassLoader).defineClass(String, byte[], int, int) line: 466   
   GeneratedMethodAccessor74.invoke(Object, Object[]) line: not available   
   DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25   
   Method.invoke(Object, Object…) line: 597   
   Injector.inject(String, byte[]) line: 181   
   Injector.inject(ClassLoader, String, byte[]) line: 85   
   AccessorInjector.prepare(Class, String, String, String…) line: 87   
   OptimizedAccessorFactory.get(Field) line: 165   
   Accessor$FieldReflection<BeanT,ValueT>.optimize(JAXBContextImpl) line: 253   
   SingleElementLeafProperty<BeanT>.<init>(JAXBContextImpl, RuntimeElementPropertyInfo) line: 81   
   GeneratedConstructorAccessor88.newInstance(Object[]) line: not available   
   DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27   
   Constructor<T>.newInstance(Object…) line: 513   
   PropertyFactory.create(JAXBContextImpl, RuntimePropertyInfo) line: 124   
   ClassBeanInfoImpl<BeanT>.<init>(JAXBContextImpl, RuntimeClassInfo) line: 171   
   JAXBContextImpl.getOrCreate(RuntimeClassInfo) line: 481   
   JAXBContextImpl.getOrCreate(RuntimeTypeInfo) line: 500   
   ArrayElementNodeProperty<BeanT,ListT,ItemT>(ArrayElementProperty<BeanT,ListT,ItemT>).<init>(JAXBContextImpl, RuntimeElementPropertyInfo) line: 108   
   ArrayElementNodeProperty<BeanT,ListT,ItemT>.<init>(JAXBContextImpl, RuntimeElementPropertyInfo) line: 58   
   GeneratedConstructorAccessor53.newInstance(Object[]) line: not available   
   DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27   
   Constructor<T>.newInstance(Object…) line: 513   
   PropertyFactory.create(JAXBContextImpl, RuntimePropertyInfo) line: 124   
   ClassBeanInfoImpl<BeanT>.<init>(JAXBContextImpl, RuntimeClassInfo) line: 171   
   JAXBContextImpl.getOrCreate(RuntimeClassInfo) line: 481   
   JAXBContextImpl.getOrCreate(RuntimeTypeInfo) line: 500   
   ArrayElementNodeProperty<BeanT,ListT,ItemT>(ArrayElementProperty<BeanT,ListT,ItemT>).<init>(JAXBContextImpl, RuntimeElementPropertyInfo) line: 108   
   ArrayElementNodeProperty<BeanT,ListT,ItemT>.<init>(JAXBContextImpl, RuntimeElementPropertyInfo) line: 58   
   GeneratedConstructorAccessor53.newInstance(Object[]) line: not available   
   DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27   
   Constructor<T>.newInstance(Object…) line: 513   
   PropertyFactory.create(JAXBContextImpl, RuntimePropertyInfo) line: 124   
   ClassBeanInfoImpl<BeanT>.<init>(JAXBContextImpl, RuntimeClassInfo) line: 171   
   JAXBContextImpl.getOrCreate(RuntimeClassInfo) line: 481   
   JAXBContextImpl.<init>(Class[], Collection<TypeReference>, Map<Class,Class>, String, boolean, RuntimeAnnotationReader, boolean, boolean) line: 315   
   ContextFactory.createContext(Class[], Collection<TypeReference>, Map<Class,Class>, String, boolean, RuntimeAnnotationReader, boolean, boolean) line: 139   
   ContextFactory.createContext(Class[], Map<String,Object>) line: 117   
   NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]   
   NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39   
   DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25   
   Method.invoke(Object, Object…) line: 597   
   ContextFinder.newInstance(Class[], Map, String) line: 202   
   ContextFinder.find(Class[], Map) line: 363   
   JAXBContext.newInstance(Class[], Map<String,?>) line: 574   
   JAXBDataBinding.createJAXBContextAndSchemas(Set<Class<?>>, String) line: 438   
   JAXBDataBinding.initialize(Service) line: 264   
   JaxWsServiceFactoryBean(ReflectionServiceFactoryBean).buildServiceFromClass() line: 376   
   JaxWsServiceFactoryBean.buildServiceFromClass() line: 523   
   JaxWsServiceFactoryBean(ReflectionServiceFactoryBean).initializeServiceModel() line: 439   
   JaxWsServiceFactoryBean(ReflectionServiceFactoryBean).create() line: 195   
   JaxWsServiceFactoryBean.create() line: 163   
   JaxWsServerFactoryBean(AbstractWSDLBasedEndpointFactory).createEndpoint() line: 100   
   JaxWsServerFactoryBean(ServerFactoryBean).create() line: 117   
   JaxWsServerFactoryBean.create() line: 167   
   EndpointDefinitionParser$SpringEndpointImpl(EndpointImpl).getServer(String) line: 346   
   EndpointDefinitionParser$SpringEndpointImpl(EndpointImpl).doPublish(String) line: 259   
   EndpointDefinitionParser$SpringEndpointImpl(EndpointImpl).publish(String) line: 209   
   EndpointDefinitionParser$SpringEndpointImpl(EndpointImpl).publish() line: 404   
   NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]   
   NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39   
   DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25   
   Method.invoke(Object, Object…) line: 597   
   DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).invokeCustomInitMethod(String, Object, RootBeanDefinition) line: 1529   
   DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).invokeInitMethods(String, Object, RootBeanDefinition) line: 1468   
   DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).initializeBean(String, Object, RootBeanDefinition) line: 1398   
   DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).doCreateBean(String, RootBeanDefinition, Object[]) line: 512   
   DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).createBean(String, RootBeanDefinition, Object[]) line: 450   
   AbstractBeanFactory$1.getObject() line: 290   
   DefaultListableBeanFactory(DefaultSingletonBeanRegistry).getSingleton(String, ObjectFactory) line: 222   
   DefaultListableBeanFactory(AbstractBeanFactory).doGetBean(String, Class<T>, Object[], boolean) line: 287   
   DefaultListableBeanFactory(AbstractBeanFactory).getBean(String) line: 189   
   DefaultListableBeanFactory.preInstantiateSingletons() line: 557   
   XmlWebApplicationContext(AbstractApplicationContext).finishBeanFactoryInitialization(ConfigurableListableBeanFactory) line: 842   
   XmlWebApplicationContext(AbstractApplicationContext).refresh() line: 416   
   ContextLoaderListener(ContextLoader).createWebApplicationContext(ServletContext, ApplicationContext) line: 261   
   ContextLoaderListener(ContextLoader).initWebApplicationContext(ServletContext) line: 192   
   ContextLoaderListener(ContextLoaderListener).contextInitialized(ServletContextEvent) line: 47   
   ContextLoaderListener.contextInitialized(ServletContextEvent) line: 63   
   StandardContext.listenerStart() line: 4350   
   StandardContext.startInternal() line: 4816   
   StandardContext(LifecycleBase).start() line: 140   
   StandardHost(ContainerBase).addChildInternal(Container) line: 810   
   StandardHost(ContainerBase).addChild(Container) line: 788   
   StandardHost.addChild(Container) line: 558   
   HostConfig.deployDirectory(String, File, String) line: 1051   
   HostConfig.deployDirectories(File, String[]) line: 977   
   HostConfig.deployApps() line: 507   
   HostConfig.start() line: 1322   
   HostConfig.lifecycleEvent(LifecycleEvent) line: 307   
   LifecycleSupport.fireLifecycleEvent(String, Object) line: 119   
   StandardHost(LifecycleBase).fireLifecycleEvent(String, Object) line: 89   
   StandardHost(LifecycleBase).setState(LifecycleState, Object) line: 325   
   StandardHost(LifecycleBase).setState(LifecycleState) line: 305   
   StandardHost(ContainerBase).startInternal() line: 1036   
   StandardHost.startInternal() line: 773   
   StandardHost(LifecycleBase).start() line: 140   
   StandardEngine(ContainerBase).startInternal() line: 1028   
   StandardEngine.startInternal() line: 278   
   StandardEngine(LifecycleBase).start() line: 140   
   StandardService.startInternal() line: 429   
   StandardService(LifecycleBase).start() line: 140   
   StandardServer.startInternal() line: 662   
   StandardServer(LifecycleBase).start() line: 140   
   Catalina.start() line: 592   
   NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]   
   NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39   
   DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25   
   Method.invoke(Object, Object…) line: 597   
   Bootstrap.start() line: 290   
   NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]   
   NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39   
   DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25   
   Method.invoke(Object, Object…) line: 597   
   DaemonLoader.start() line: 177   

The class it's trying to load is this:

org.alfresco.repo.cmis.ws.CmisPropertyIntegerDefinitionType$JaxbAccessorF_minValue

Any hints? TIA!

– Andreas

mrogers
Star Contributor
Star Contributor
Is there any errors in your alfresco.log rather than catalina.out?

And what version of Java are you using?

nobby
Champ on-the-rise
Champ on-the-rise
Is there any errors in your alfresco.log rather than catalina.out?

I have switched from the installer to the WAR installation in Tomcat 7.0.4. The app doesn't seem to generate an alfresco.log file (where can I configure that?), but here is the last chunk of messages in the syslog. Setting the log level to DEBUG didn't seem to show anything more interesting.


Jan 18 23:53:02 aldebaran jsvc.exec[28595]: 23:53:02,793 User:System WARN  [repo.dictionary.DictionaryRepositoryBootstrap] StoreRef 'workspace://SpacesStore' does not exist
Jan 18 23:53:05 aldebaran jsvc.exec[28595]: 23:53:05,976 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
Jan 18 23:53:06 aldebaran jsvc.exec[28595]: 23:53:06,084 User:System INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
Jan 18 23:53:06 aldebaran jsvc.exec[28595]: 23:53:06,085 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
Jan 18 23:53:06 aldebaran jsvc.exec[28595]: 23:53:06,086 User:System INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
Jan 18 23:53:07 aldebaran jsvc.exec[28595]: 23:53:07,646 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
Jan 18 23:53:07 aldebaran jsvc.exec[28595]: 23:53:07,647 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
Jan 18 23:53:07 aldebaran jsvc.exec[28595]: 23:53:07,760 User:System INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
Jan 18 23:53:07 aldebaran jsvc.exec[28595]: 23:53:07,763 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
Jan 18 23:53:07 aldebaran jsvc.exec[28595]: 23:53:07,763 User:System INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]

And what version of Java are you using?

Tomcat 7.0.4 (same issues with the Alfresco installer)
Debian Lenny
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

Thanks for your feedback!

– Andreas

nobby
Champ on-the-rise
Champ on-the-rise
BTW, Alfresco has generated the DB tables (worked with MySQL and PostgreSQL) and some directories in alf_data:

contentstore
contentstore.deleted
lucene-indexes

– Andreas

muralie39
Champ on-the-rise
Champ on-the-rise
can follow the supported stackes…. it will help much more to resolve this type issuses  && raise this issue in jira

dataguy12
Champ in-the-making
Champ in-the-making
I experienced exactly this problem:
Alfresco 3.4d
Windows 64-bit

Scanning through past logs, I determine that the reason has to do with starting Open office because that's what came after the point where it hangs.

True enough, the culprit in my case is a hanging soffice.exe-32 process.
Once I killed the process, and restarted Alfresco, it went all the way to completion and Alfresco is responsive again.

sunnysharma
Champ in-the-making
Champ in-the-making
Faced the same problem on:
Red Hat 4.1.2 (64 bit)
Alfresco 3.4d

Killed all the processes related to soffice and it worked.

darkstar1
Confirmed Champ
Confirmed Champ
Hi all. I'm having this same issue and I don't have libre/open offiice enabled.
It just hangs. Top is showing me that the java process (alfresco) is consuming 100% cpu