cancel
Showing results for 
Search instead for 
Did you mean: 

openCMIS getFolder Error. Object Info is missing!

iruizdeeguilaz
Champ in-the-making
Champ in-the-making
I have an Alfresco Comunnity Release 4.0.d.

I have done a lof of things with openCMIS without problems… (upload docs, searchs…)

Today I have made some changes in the Alfreso adding a Multi-Tenant Configuration…

I have defined two tenants called myTenantA and myTenantb, and a dynamic model for the myTenantA  and it works  fine,I only see my types on myTenantA (neither myTenantb nor original space whithout tenant login).

I was able to create from opencmis a document of that specficic type and ok… but after a while it started to send back and error….

<strong>
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Object Info is missing!
</strong>

my code:

SessionFactory factory = SessionFactoryImpl.newInstance();
           Map<String, String> parameters = new HashMap<String, String>();
           // user credentials
           parameters.put(SessionParameter.USER, "xxxx@myTenantA");  /// tenant myTenantA
           parameters.put(SessionParameter.PASSWORD, "xxxxx");
           // connection settings
           parameters.put(SessionParameter.ATOMPUB_URL,  "http://ip:8080/alfresco/cmisatom" );
           parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
           // para los aspectos
           parameters.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
           // create session
           session =  factory.getRepositories(parameters).get(0).createSession();
           Folder root = session.getRootFolder();
               ———————————

here when it tries to get a folder is when it fails…

it seems to be a probem with getObjectInfo()… but I don't know why

I am be able to make sqls from opencmis like this

ItemIterable<QueryResult> results = session.query("SELECT * FROM cmis:folder WHERE cmis:name='testdata'", false);


the things what I was doing in the time that it started to fail were changing the webclient.properties between the data dictionary/messages and data dyctionary/web client extension spaces because i couldn't see the properties of my metadata changed properly on Explorer ( I dind`t get it but it isn´t a big problem)

I have deleted the tenats and defined them again (in other root contentstore dir) and I have suffer the same situation… after a time it started to fail in the same thing….

is there any way to check if there is any inonsistency o something worg with CMIS (server side) or the tenants? because I can get a folder if y my SessionParameter.USER use the user without @
do you recommend me to try with other way to work with Alfresco in order to upload, search and do that kind of things in a java app?


thanks so much





3 REPLIES 3

iruizdeeguilaz
Champ in-the-making
Champ in-the-making
I have fond a important thing about my error

I changed the SessionParameter.ATOMPUB_URL to http://Ip:8080/alfresco/s/cmis and then I was able to getFolder

But I need  to use http://ip:8080/alfresco/cmisatom in order to upload big documents

I don't know why but after coming back to http://ip:8080/alfresco/cmisatom the error has vanished.

why could be this???

I have reciently done a reload on the following url http://hostSmiley Tongueort/alfresco/faces/jsp/admin/webclientconfig-console.jsp
but I am pretty sure that it dind´t solve the problem because I tried iy before… Smiley Sad

if you have any idea it would be very appreciated




iruizdeeguilaz
Champ in-the-making
Champ in-the-making
I am having the same problems as yesterday

I have change the places of the properties (webclient and webclient_en..) because I could´t see the metadata properly, after saving them in the extension folder it works. Just after changing it, the java appplication (epncmis client) started to fail….

I have tried to reload it in order to refresh it on  http://hostSmiley Tongueort/alfresco/faces/jsp/admin/webclientconfig-console.jsp but id doesn't work.

I tested to use SessionParameter.ATOMPUB_URL to http://Ip:8080/alfresco/s/cmis and it works

but http://ip:8080/alfresco/cmisatom doesn't work yet

so my question would be, is there any way to refresh it??? I suppose that it must be a problem with the changes.

I have fond when exacltly my client (openCMIS) starts to fail and how to solve it

it isn't when I change the properties… it is when I restart the tomcat

and the way to solve it is just enabling the tenant again on http://IP:8080/alfresco/faces/jsp/admin/tenantadmin-console.jsp

it sounds strange to me because my app is able to create the session and it fails when it tries to get information, but enabling the tenant again I am able to solve the fail

any idea what is happening?

maybe it is because I am using a community environment 4.0.d?

I hope that in the production environment where we will have an eterprise release we won't have this problem.