cancel
Showing results for 
Search instead for 
Did you mean: 

Problem running alfresco FirstFoundationClient.java:

alestudent
Champ in-the-making
Champ in-the-making
Hi,
i'm a new alfresco user and i have a problem with alfresco SDK.
When i run SDK FirstFoundationClient eclipse project, i have this kind of error:

12:21:23,764 UserSmiley Frustratedystem WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
12:21:26,570 UserSmiley Frustratedystem INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
12:21:29,984 UserSmiley Frustratedystem INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
12:21:32,261 UserSmiley Frustratedystem WARN  [node.index.FullIndexRecoveryComponent] The indexes are not synchronized with the database.
12:21:32,276 UserSmiley Frustratedystem WARN  [repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path '../alf_data'.  'dir.root' should be overridden to point to a specific folder.
12:21:32,276 UserSmiley Frustratedystem INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ..\alf_data
12:21:32,307 UserSmiley Frustratedystem ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 5 stores.
12:21:32,307 UserSmiley Frustratedystem INFO  [repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
12:21:32,307 UserSmiley Frustratedystem ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
12:21:32,307 UserSmiley Frustratedystem ERROR [repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
Exception in thread "main" org.alfresco.error.AlfrescoRuntimeException: Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:312)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:72)
   at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:178)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:236)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:185)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:182)
   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:241)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
   at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:55)
   at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:69)


I LOOK AT ALSO AT http://issues.alfresco.com/browse/AR-1570 BUT WITHOUT RESULTS.
CAN SOMEONE HELP ME PLEASE?
2 REPLIES 2

jbarmash
Champ in-the-making
Champ in-the-making
Looks like you did not configure your file repository properly.  Alfresco stores metadata inside a database, and the files themselves on the file system. 

I'd suggest you point dir.root at a absolute location (by default it's pointint to a relative location). 

http://wiki.alfresco.com/wiki/Repository_Configuration

ruizja
Champ in-the-making
Champ in-the-making
Hi,
i'm a new alfresco user and i have a problem with alfresco SDK.
When i run SDK FirstFoundationClient eclipse project, i have this kind of error:

12:21:23,764 UserSmiley Frustratedystem WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
12:21:26,570 UserSmiley Frustratedystem INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
12:21:29,984 UserSmiley Frustratedystem INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
12:21:32,261 UserSmiley Frustratedystem WARN  [node.index.FullIndexRecoveryComponent] The indexes are not synchronized with the database.
12:21:32,276 UserSmiley Frustratedystem WARN  [repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path '../alf_data'.  'dir.root' should be overridden to point to a specific folder.
12:21:32,276 UserSmiley Frustratedystem INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ..\alf_data
12:21:32,307 UserSmiley Frustratedystem ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 5 stores.
12:21:32,307 UserSmiley Frustratedystem INFO  [repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
12:21:32,307 UserSmiley Frustratedystem ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
12:21:32,307 UserSmiley Frustratedystem ERROR [repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
Exception in thread "main" org.alfresco.error.AlfrescoRuntimeException: Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:312)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:72)
   at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:178)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:236)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:185)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:182)
   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:241)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
   at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:55)
   at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:69)


I LOOK AT ALSO AT http://issues.alfresco.com/browse/AR-1570 BUT WITHOUT RESULTS.
CAN SOMEONE HELP ME PLEASE?

Hi,

To solve this, I edited the file custom-repository.properties, inside SDK FirstFoundationClient/source/alfresco.extension with my correct path of Alfresco data:

dir.root=C:\\Alfresco\\alf_data

I hope that you will help,
Javier