cancel
Showing results for 
Search instead for 
Did you mean: 

Erreurs SDK

aitbenmouh
Champ in-the-making
Champ in-the-making
Hello,

When i run the project "FoundationClient" in the eclipse i get this exception if someone can help thinks  :

mars 17, 2013 5:04:18 PM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
mars 17, 2013 5:04:30 PM org.activiti.engine.impl.jobexecutor.JobExecutor start
INFO: Starting up the JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor].
mars 17, 2013 5:04:30 PM org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable run
INFO: JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor] starting to acquire jobs
Exception in thread "main" org.alfresco.repo.security.authentication.AuthenticationException: 02170002 Failed to authenticate
   at org.alfresco.repo.security.authentication.AbstractChainingAuthenticationService.authenticate(AbstractChainingAuthenticationService.java:211)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy61.authenticate(Unknown Source)
   at org.alfresco.sample.FirstFoundationClient.doExample(FirstFoundationClient.java:88)
   at org.alfresco.sample.FirstFoundationClient$1.execute(FirstFoundationClient.java:73)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:304)
   at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:77)
15 REPLIES 15

mitpatoliya
Star Collaborator
Star Collaborator
make sure you are pointing to the correct alf_data in your alfresco_golbal.properties file and
you are using correct admin user name password for authentication.

Think you for the answer in my  alfresco_golbal.properties file i copied the one i have already in my alfresco installation, that works because im able to connect to the alfresco share in local but sdk can't connect with the some configuration !. this what my file content :

version of sdk is : 4.2.c and my local installation is too alfresco community 4.2.C


###############################
## Common Alfresco Properties #
###############################

dir.root=C:/Alfresco/alf_data

alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http

### database connection properties ###
db.driver=org.postgresql.Driver
db.username=alfresco
db.password=lhoussain
db.name=alfresco
db.url=jdbcSmiley Tongueostgresql://localhost:5432/${db.name}

### FTP Server Configuration ###
ftp.enabled=true
ftp.port=21

### RMI service ports ###
alfresco.rmi.services.port=50500
avm.rmi.service.port=0
avmsync.rmi.service.port=0
attribute.rmi.service.port=0
authentication.rmi.service.port=0
repo.rmi.service.port=0
action.rmi.service.port=0
deployment.rmi.service.port=0

### External executable locations ###
ooo.exe=C:/Alfresco/libreoffice/App/libreoffice/program/soffice.exe
ooo.enabled=true
ooo.port=8100
img.root=C:\\Alfresco\\imagemagick
img.coders=${img.root}\\modules\\coders
img.config=${img.root}\\config
img.gslib=${img.root}\\lib
img.exe=${img.root}\\convert.exe
swf.exe=C:/Alfresco/swftools/pdf2swf.exe
swf.languagedir=C:/Alfresco/swftools/japanese

jodconverter.enabled=false
jodconverter.officeHome=C:/Alfresco/libreoffice/App/libreoffice
jodconverter.portNumbers=8100

### Initial admin password ###
alfresco_user_store.adminpassword=c8a15a3871121dcc14c4674662c21fe5

### E-mail site invitation setting ###
notification.email.siteinvite=false

### License location ###
dir.license.external=C:/Alfresco

### Solr indexing ###
index.subsystem.name=solr
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443

### BPM Engine ###
system.workflow.engine.jbpm.enabled=false


mitpatoliya
Star Collaborator
Star Collaborator
there will be one more alfresco-global.properties file in your SFK FirstFoundation example.
That property file will be used in the example not the one which is there in your installation.
So I am talking aobut that

Yess i its not the some file, but when im checking in wiki i found the this (If you already have a working installation on your machine, you can just overwrite the example application's local alfresco-global.properties file with the contents of your working alfresco-global.properties file.)

its in wiki here http://wiki.alfresco.com/wiki/Alfresco_SDK_4.0#Downloading_and_Installing_the_SDK .

Rsolved it was just a problem with my configuration file and before run the project you have to compile it with ANt

aitbenmouh
Champ in-the-making
Champ in-the-making
Now i made some changes in my file and i have this error 02180001 Ensure that the 'dir.root' property is pointing to the correct data location it somes thats it can't find the dorectory even i verified that it point to my local data directory how i can fix this again thinks .

mitpatoliya
Star Collaborator
Star Collaborator
Hey your dir.root in both the alfresco-global.properties file is pointing to C:/Alfresco/alf_data

and your actual alf_data is also at that location right?
what is the change you have done?

Yess the both are pointing to the some root alfresco-global.properties file C:/Alfresco/alf_data but i have this error (02180001 Ensure that the 'dir.root' property is pointing to the correct data location.) !!

The change done is that i reset the configuration of the file and i put just this : 

###############################
## Common Alfresco Properties #
###############################

dir.root=C:\Alfresco\alf_data

alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http

### database connection properties ###
db.driver=org.postgresql.Driver
db.username=alfresco
db.password=lhoussain
db.name=alfresco
db.url=jdbcSmiley Tongueostgresql://localhost:5432/${db.name}

but eclipse can't find the root directory !!

Rsolved it was just a problem with my configuration file and before run the project you have to compile it with ANt