cancel
Showing results for 
Search instead for 
Did you mean: 

Big file not uploaded via CMIS

painkiller
Champ in-the-making
Champ in-the-making
Hi guys,
i'm using CMIS to transfer documents on Alfresco community (4.0.d). For small files there aren't problem, but when i try to tranfer big file (150 mb>) Alfresco return a Internal server error.
In catalina.out there is an Java heap space error.
http://sangosthi.blogspot.it/2010/01/alfresco-is-taking-too-much-memory.html
Looking for this problem in internet i found this work around, but for me it doesn't work !!!
hints???
2 REPLIES 2

mikemars
Champ in-the-making
Champ in-the-making
Hi,

How are you connecting to Alfresco? AtomPub or WebServices?

If you are using the old AtomPub url: http://your.server:8080/alfresco/s/cmis then you will have issues with large files.

Connecting using WebServices or the current AtomPub url http://your.server:8080/alfresco/cmisatom then you should be fine.

painkiller
Champ in-the-making
Champ in-the-making
I try to replace /alfresco/service/cmis with /alfresco/cmisatom but my logic does not work anymore. It seems like .getParent() does not return the parent of my object. In this way i can't retrive the root folder from which to start to upload my files. Is it normal? have i to change all my logic Smiley Indifferent ???

I do this to retrive a session:
Map<String, String> parameter = new HashMap<String, String>();

// user credentials
parameter.put(SessionParameter.USER, "admin@user");
parameter.put(SessionParameter.PASSWORD, "user");

// connection settings
parameter.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/cmisatom");
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());

// set the alfresco object factory
parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");

// create session
SessionFactory factory = SessionFactoryImpl.newInstance();
Session session = factory.getRepositories(parameter).get(0).createSession();

but when i try to retrive the object using.
object = session.getObjectByPath(nameFolder);
where nameFolder is an existing path on tenant, it throws an exception

org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Object Info is missing!

What should i do?
[EDIT]i see that if log in with (admin,admin) so getObjectByPath return correct folder, but if log in in a tenant with user and password of  tenant (admin@tenat.com, tenant) it throws the exception!!. is this a permission problem?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.