Hola a todos, Estoy realizando una librería en java que implemente una seríe de funciones genéricas y me he encontrado con un problema, después de buscar bastante por el foro en castellano y en inglés no he encontrado nada, cierto es que con mi nivel de inglés eso es fácil
ops: . Bueno, basta de charla, el problema que tengo es que cuando intento realizar una búsqueda, por una ruta relativa, de un archivo de alfresco me da error pero si lo hago con una carpeta me la encuentra perfectamente y si la búsqueda la realizo por id también me encuentra perfectamente la carpeta y el archivo. ¿Alguien tiene alguna idea de cuál puede ser el problema?Os dejo el código de búsqueda por si os sirve de ayuda.MediaElementImpl elemento = new MediaElementImpl();
String mensaje = StringUtils.EMPTY;
try {
authenticate();
} catch (AuthenticationFault e1) {
log.error(Constantes.MENSAJE_ERROR_AUTENTIFICACION
+ e1.getMessage());
mensaje = Constantes.MENSAJE_ERROR_AUTENTIFICACION;
throw new MediaLibraryException(mensaje);
}
ContentServiceSoapBindingStub contentService = WebServiceFactory
.getContentService();
Reference ref = new Reference();
ref.setPath(relativePath);
ref.setStore(store);
// Read the content from the respository
try {
AuthenticationResult authenticationResultado = new AuthenticationResult(
AuthenticationUtils.getAuthenticationDetails()
.getSessionId(), AuthenticationUtils
.getAuthenticationDetails().getTicket(),
AuthenticationUtils.getAuthenticationDetails()
.getUserName());
—————-> Content[] readResult = contentService.read(new Predicate(
—————-> new Reference[] { ref }, store, null), QNames.PROP_CONTENT);
Content content = readResult[0];
elemento = (MediaElementImpl) rellenarElemento(elemento, content,
authenticationResultado, null);
} catch (RemoteException e) {
log.error(Constantes.MENSAJE_ERROR_BUSCAR_ELEMENTO_ID
+ e.getMessage());
mensaje = Constantes.MENSAJE_ERROR_BUSCAR_ELEMENTO_ID;
throw new MediaLibraryException(mensaje);
}
return elemento;Al realizar la línea marcada es cuando falla.Muchas gracias por el tiempo que me dedicais