AnsweredAssumed Answered

Liferay portlet using JSR-170 to extract Alfresco content

Question asked by sethokayba on Apr 3, 2008
Hi,
I need to develop a Liferay portlet. This one must extract the content of alfresco. So i tried to look into the Alfresco SDK to get some inspiration but no one of the project is running.

Any suggestions please ???

I tried to execute the FirstJCRClient.java given with the ALfresco SDK but i had pleinty errors :

18:15:49,203 INFO [admin.patch.PatchExecuter] Checking for patches to apply …

18:15:49,312 INFO [admin.patch.PatchExecuter] No patches were required.

18:15:49,625 ERROR [openoffice.connection.SocketOpenOfficeConnection] disconnected unexpectedly

18:15:49,859 ERROR [alfresco.ftp.protocol] FTP Socket error

java.net.BindException
: Address already in use: JVM_Bind

at java.net.PlainSocketImpl.socketBind(
Native Method)

at java.net.PlainSocketImpl.bind(
PlainSocketImpl.java:359)

at java.net.ServerSocket.bind(
ServerSocket.java:319)

at java.net.ServerSocket.<init>(
ServerSocket.java:185)

at java.net.ServerSocket.<init>(
ServerSocket.java:141)

at org.alfresco.filesys.ftp.FTPNetworkServer.run(
FTPNetworkServer.java:372)

at java.lang.Thread.run(
Thread.java:595)

18:15:49,859 INFO [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_09-b01; maximum heap size 63.563MB

18:15:49,859 WARN [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 63.563MB is less than recommended 512MB

18:15:49,859 INFO [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 1.4.0 (build-105) schema 21 - Installed version 2.9.0 (B 683) schema 116

Exception in thread "main"
javax.jcr.LoginException: Alfresco Repository failed to authenticate credentials: Bad credentials presented: Bad credentials presented

at org.alfresco.jcr.repository.RepositoryImpl.login(
RepositoryImpl.java:213)

at org.alfresco.jcr.repository.RepositoryImpl.login(
RepositoryImpl.java:238)

at org.alfresco.sample.FirstJCRClient.main(
FirstJCRClient.java:61)

Caused by:
org.alfresco.repo.security.authentication.AuthenticationException: Bad credentials presented

at org.alfresco.repo.security.authentication.AuthenticationComponentImpl.authenticate(
AuthenticationComponentImpl.java:69)

at org.alfresco.repo.security.authentication.AuthenticationServiceImpl.authenticate(
AuthenticationServiceImpl.java:104)

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:585)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(
AopUtils.java:335)

at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(
ReflectiveMethodInvocation.java:181)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:148)

at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(
DelegatingIntroductionInterceptor.java:116)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)

at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(
MethodSecurityInterceptor.java:80)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)

at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(
ExceptionTranslatorMethodInterceptor.java:41)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)

at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(
AuditComponentImpl.java:210)

at org.alfresco.repo.audit.AuditComponentImpl.audit(
AuditComponentImpl.java:156)

at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(
AuditMethodInterceptor.java:61)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)

at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(
TransactionInterceptor.java:96)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
JdkDynamicAopProxy.java:176)

at $Proxy21.authenticate(Unknown Source)

at org.alfresco.jcr.repository.RepositoryImpl.login(
RepositoryImpl.java:209)

… 2 more

Caused by:
net.sf.acegisecurity.BadCredentialsException: Bad credentials presented

at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.getUserFromBackend(
DaoAuthenticationProvider.java:393)

at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.authenticate(
DaoAuthenticationProvider.java:225)

at net.sf.acegisecurity.providers.ProviderManager.doAuthentication(
ProviderManager.java:159)

at net.sf.acegisecurity.AbstractAuthenticationManager.authenticate(
AbstractAuthenticationManager.java:49)

at org.alfresco.repo.security.authentication.AuthenticationComponentImpl.authenticate(
AuthenticationComponentImpl.java:63)

… 25 more

org.alfresco.repo.security.authentication.AuthenticationException
: Bad credentials presented

at org.alfresco.repo.security.authentication.AuthenticationComponentImpl.authenticate(
AuthenticationComponentImpl.java:69)

at org.alfresco.repo.security.authentication.AuthenticationServiceImpl.authenticate(
AuthenticationServiceImpl.java:104)

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:585)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(
AopUtils.java:335)

at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(
ReflectiveMethodInvocation.java:181)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:148)

at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(
DelegatingIntroductionInterceptor.java:116)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)

at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(
MethodSecurityInterceptor.java:80)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)

at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(
ExceptionTranslatorMethodInterceptor.java:41)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)

at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(
AuditComponentImpl.java:210)

at org.alfresco.repo.audit.AuditComponentImpl.audit(
AuditComponentImpl.java:156)

at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(
AuditMethodInterceptor.java:61)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)

at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(
TransactionInterceptor.java:96)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
JdkDynamicAopProxy.java:176)

at $Proxy21.authenticate(Unknown Source)

at org.alfresco.jcr.repository.RepositoryImpl.login(
RepositoryImpl.java:209)

at org.alfresco.jcr.repository.RepositoryImpl.login(
RepositoryImpl.java:238)

at org.alfresco.sample.FirstJCRClient.main(
FirstJCRClient.java:61)

Caused by:
net.sf.acegisecurity.BadCredentialsException: Bad credentials presented

at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.getUserFromBackend(
DaoAuthenticationProvider.java:393)

at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.authenticate(
DaoAuthenticationProvider.java:225)

at net.sf.acegisecurity.providers.ProviderManager.doAuthentication(
ProviderManager.java:159)

at net.sf.acegisecurity.AbstractAuthenticationManager.authenticate(
AbstractAuthenticationManager.java:49)

at org.alfresco.repo.security.authentication.AuthenticationComponentImpl.authenticate(
AuthenticationComponentImpl.java:63)

… 25 more


can anyone help please !!

Outcomes