cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 4.2c unable to start

vikrant
Champ in-the-making
Champ in-the-making
2013-02-01 17:21:32,303  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Replication' subsystem, ID: [Replication, default] complete
2013-02-01 17:21:34,647  ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
java.lang.NumberFormatException: Zero length BigInteger
   at java.math.BigInteger.<init>(BigInteger.java:296)
   at java.math.BigInteger.<init>(BigInteger.java:476)
   at org.alfresco.opencmis.dictionary.AbstractTypeDefinitionWrapper.convertValueFromString(AbstractTypeDefinitionWrapper.java:480)
   at org.alfresco.opencmis.dictionary.AbstractTypeDefinitionWrapper.addChoiceList(AbstractTypeDefinitionWrapper.java:641)
   at org.alfresco.opencmis.dictionary.AbstractTypeDefinitionWrapper.createPropertyDefinition(AbstractTypeDefinitionWrapper.java:416)
   at org.alfresco.opencmis.dictionary.AbstractTypeDefinitionWrapper.createOwningPropertyDefinitions(AbstractTypeDefinitionWrapper.java:246)
   at org.alfresco.opencmis.dictionary.PolicyTypeDefintionWrapper.<init>(PolicyTypeDefintionWrapper.java:91)
   at org.alfresco.opencmis.dictionary.CMISStrictDictionaryService.createTypeDefs(CMISStrictDictionaryService.java:78)
   at org.alfresco.opencmis.dictionary.CMISStrictDictionaryService.createDefinitions(CMISStrictDictionaryService.java:46)
   at org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService.init(CMISAbstractDictionaryService.java:386)
   at org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService.afterDictionaryInit(CMISAbstractDictionaryService.java:440)
   at org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService.onBootstrap(CMISAbstractDictionaryService.java:463)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
4 REPLIES 4

bisana
Champ on-the-rise
Champ on-the-rise
Check ur database connection
Also when u post give more information, such as is it fresh installation or upgradation

juddm
Champ in-the-making
Champ in-the-making
I had the same problem when I changed a dynamic model.  After shutting tomcat down I found I was unable to restart.  No doubt a problem with my model but I quickly found myself in a catch 22 as I was unable to delete the model because I was unable to start tomcat.  Little information is available in order to delete the model from the db directly - so I'm a little lost as to possible next steps other than to start from scratch.

Anyone got any ideas or did vikrant solve this issue ?

It doesn't seem to be a very good idea to use dynamic models when prototyping. see: http://forums.alfresco.com/forum/general/non-technical-alfresco-discussion/changing-dynamic-models-0...

Mike

juddm
Champ in-the-making
Champ in-the-making
I found a solution to this problem which was deleting the object from the database.  I am on the postgresql - so if anyone stumbles upon this thread - here is what worked for me.  Given the lack of documentation and my experience with Alfresco - I'd recommend only following this if you are desperately stuck!

1. Make a backup of the database - in case something goes wrong

pg_dump alfresco -U alfresco -h localhost > ~/alfresco-backup.sql


You can restore this later if needed by the following:

psql -U postgres -h localhost
drop database alfresco;
create database alfresco;
alter database alfresco owner to alfresco;
\q

psql -d alfresco -U alfresco -h localhost < ~/alfresco-backup.sql


2. Find the problem content type

My assumption based on my experience was this was caused by a problem dynamic model.  I found in table alf_qname that "dictionaryModel" was id 317.  So I search my alf_node for type_qname_id = 317

select * from alf_node where type_qname_id in (317);

3. Delete all child / related records


delete from alf_node_assoc where target_node_id in (select id from alf_node where type_qname_id in (317));
delete from alf_node_aspects where node_id in (select id from alf_node where type_qname_id in (317));
delete from alf_child_assoc where parent_node_id in (select id from alf_node where type_qname_id in (317));
delete from alf_node_properties where node_id in (select id from alf_node where type_qname_id in (317));


and finally:


delete from alf_node where type_qname_id in (317);


Hopefully, this will get you out of a hole if you need it.

Regards,

Mike

bisana
Champ on-the-rise
Champ on-the-rise
Thanks Mike
I am going to book mark this post