Quantcast
Channel: Alfresco Forums - Alfresco API
Viewing all 252 articles
Browse latest View live

Download a file (.txt, .jpg, .pdf) to the client computer

$
0
0

Hi

I´m working with Alfresco since two weeks ago, in a java aplication for a desk client and am using openCMIS.

At the moment I am able to upload and delete all type of the files that I need in my aplication (.txt, .jpg, .pdf), but when try to download them to the client computer I do not know how to do it. I have been reading in a lot of places but I do not see anything that be useful for me.

Can you give me some help to start or recomend a place to read about it?

Thank you very much and regards.


CMIS strange behaviour

$
0
0

Hello,

In Alfresco v4.0.0, since we are using CMIS for uploading and searching for documents, files generated in the folder named /lucene-indexes/workspace/SpacesStore grow exponentially and reach the maximum capacity of the hard disk, leaving Alfresco in an inconsistent state for working.

If Alfresco server is restarted, the space of these temporary files is released. We have also notice a very strange behaviur, _0.cfs files grow to a size of approximately 9,108,052,966 bytes, 8.5GB, and then, another one is created. Here is an example:

...
8,5G 2016-01-26 12:00 e502141f-62f7-44dc-8fca-f4a9383dddfc
8,5G 2016-01-26 11:54 82d27bbd-58d8-4bee-9fa2-c5323c67e1f4
8,5G 2016-01-26 11:47 3a923fb8-42d0-45dc-9591-0e430002c38f
8,5G 2016-01-26 11:31 44a2bab4-3f31-4997-b244-38ff81bf1ee0
8,0K 2016-01-26 12:01 IndexInfoBackup
8,0K 2016-01-26 12:01 IndexInfo
6,9G 2016-01-04 11:19 0a7a2e6d-899e-4f19-9155-9054118ec151
2,5G 2016-01-26 12:02 6afdd617-10c8-4222-ab2b-08222694e22f
1,8M 2015-12-10 16:35 8fbd7ef3-7cab-4829-b945-2ef3f53746c5
1,6M 2016-01-26 11:54 7ff72f98-f796-4d28-a8db-e3142f338357
1,6M 2016-01-26 11:31 9e8f1554-bb30-4a2a-9308-177698a251bb
1,3M 2016-01-26 12:01 1610ff01-b305-4bfb-8ac1-78048b8fc9c7
1,3M 2016-01-26 12:00 451c443a-3e92-4770-a454-1b7265d14646
1,3M 2016-01-26 11:47 d128f32b-cfb5-47a6-b803-765a471083f7
1,3M 2016-01-26 11:24 723001ac-9165-4828-80a5-9d5a908946d4
....
8,5G 2016-01-26 12:00 e502141f-62f7-44dc-8fca-f4a9383dddfc
8,5G 2016-01-26 11:54 82d27bbd-58d8-4bee-9fa2-c5323c67e1f4
8,5G 2016-01-26 11:47 3a923fb8-42d0-45dc-9591-0e430002c38f
8,5G 2016-01-26 11:31 44a2bab4-3f31-4997-b244-38ff81bf1ee0
8,3G 2016-01-26 12:05 6afdd617-10c8-4222-ab2b-08222694e22f
8,0K 2016-01-26 12:01 IndexInfoBackup
8,0K 2016-01-26 12:01 IndexInfo
6,9G 2016-01-04 11:19 0a7a2e6d-899e-4f19-9155-9054118ec151
1,8M 2015-12-10 16:35 8fbd7ef3-7cab-4829-b945-2ef3f53746c5
1,6M 2016-01-26 11:54 7ff72f98-f796-4d28-a8db-e3142f338357
1,6M 2016-01-26 11:31 9e8f1554-bb30-4a2a-9308-177698a251bb
1,3M 2016-01-26 12:01 1610ff01-b305-4bfb-8ac1-78048b8fc9c7
1,3M 2016-01-26 12:00 451c443a-3e92-4770-a454-1b7265d14646
1,3M 2016-01-26 11:47 d128f32b-cfb5-47a6-b803-765a471083f7
1,3M 2016-01-26 11:24 723001ac-9165-4828-80a5-9d5a908946d4

As you can see, the file 6afdd617-10c8-4222-ab2b-08222694e22f/_0.cfs has grown 5.8G in only 3 minutes!!!

This didn't happen when we were using Web Services API. Do you have any idea what could be happened?

Alfresco Version: Community - v4.0.0 (4003)
PostgreSQL 9.1

Thank you in advance and best regards,

Mariamm.

4.0

Most Simple REST request to ping Alfresco server

$
0
0

Hello,

I'm developping a Windows 10 Apps and I need to know if the app can join the alfresco server or not.

I Need to test the connectivity between my App and the Alfresco server. Unfortunaly i can't use ping in UWP so I would like to call the most simple REST request to test if my App can succefully call the Alfresco server.

What is the most simple REST request I can do ??

Thx in advance. Regards.

SearchService Strange Behaviour

$
0
0

Hi everybody,

I'm a newbie of Alfresco, so...

I'm developing a custom search, using the SearchService and/or the NodeService APIs.

I've this strange behaviour:

I've a node id: 891aae0d-9c2f-41c3-a70d-9022d4147e33

If I search for the node with this ID (I expect that only one must be returned)
using the "LANGUAGE_LUCENE" and as query @sys\:node-uuid:"891aae0d-9c2f-41c3-a70d-9022d4147e33"
the resultset is formed by only one record as I expected.

BUT, If I search for the node using the "LANGUAGE_FTS_ALFRESCO"
and as query ID:"workspace\://SpacesStore/891aae0d-9c2f-41c3-a70d-9022d4147e33"
the resultset contains the same item but twice!!! (ResultSet size = 2 and items are equal!!!)

What's wrong? Could you explain me if it's my fault?

---

P.S. before you asking me why I search for a node using the search service,
I tell you that actually I have a first condition plus some node IDs put in OR sequence:
(TYPE:"ts:booklet" AND t1:%s) OR (ID:... OR ID:... OR ID:...)
where t1 is a custom template.

I discovered that something was wrong with the number of items of a ResultSet,
so I tested using only one ID, and I got this strange behaviour.

Thanks in advance

Davide!

5.0.d

Custom version label behavior

$
0
0

Hello, i have document that have 3 versions (1.1, 2.0, 3.0). 3.0 - current version. When i revert document into 2.0 the current version becomes 3.1, but I want to become the current version 2.0. How to do that. Help please.

5.0.d

CMIS document browsing per folder

$
0
0

Hi all.

I recently started working on CMIS, and I have a requirement to allow the user to browse through a site for files.
Now I have been able to list the files of a single container (folder), however what I need is the ability to list all files within that Site that have a specific type.

I found this forum topic : https://forums.alfresco.com/forum/developer-discussions/alfresco-api/how-download-individual-files-alfresco-cmis-using-c-0 but is does not fully fulfill my need.

In the end this files will be listed in a dialog box for the user to select one.

You help is much appreciated.

4.2

Mark if post is useful!

DarkRedd
"Little death makes life more meaningful"
Alfresco version 4.2.2

CMIS export error

$
0
0

Hello guys,

Why I get error when export CMIS?

Error :

org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: null
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:487)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:629)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:119)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:751)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:95)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:469)
at org.activiti.designer.kickstart.eclipse.navigator.CmisUtil.uploadProcess(CmisUtil.java:214)
at org.activiti.designer.kickstart.eclipse.ui.wizard.diagram.ExportKickstartProcessWizard.exportProcess(ExportKickstartProcessWizard.java:189)
at org.activiti.designer.kickstart.eclipse.ui.wizard.diagram.ExportKickstartProcessWizard$1.run(ExportKickstartProcessWizard.java:88)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

Thank you

Get Content using CMIS API

$
0
0

Team,

I am new to Alfresco and downloaded Alfresco Community Version 5. I created a site and folder within site. Also, created plain text content within folder. I can see content in browser.

How can I get/retrieve content using CMIS API?

Thanks,
Kuin

5.0.d

Questions on the usage of Alfresco object "site"?

$
0
0

I am new to Alfresco. Following are the things that I am working on: Alfresco 5.0.d community edition, Java CMIS API
In CMIS, I find object like folder, document, relationships, etc. I could not find anything like "site".

Now, we would like to use Alfresco as a default document repository for our j2ee application.

There could be scenarios where some of our clients might have two instances of our application running with different data, but both of them want to use the same Alfresco server.

Our application would always use a single "alfresco user" to access Alfresco. This will be stored either in our configuration file or in our database.

With this, I am trying to come up with a strategy to organize/store our documents in Alfresco.

With my amateur knowledge, I find more than one options:
- default repository, no "sites", but a (top-level) folder for each application instance, then so on
- default repository, a "site" for each application instance, etc.
- a repository for each application instance, no "sites", etc.

Please share your recommendations for me.

5.0.d

Alfresco 5.02 CMIS with Record Module

$
0
0

Hi!

I am trying to get this done, but get error invalid column for cmis:document:rma:dispositionAction

select * from cmis:document where rma:dispositionAction = 'True'

I need list document that are flag as Completed under record management ( Disposition Schedule)

Eg.
Disposition Schedule
Completed: No
Disposition as of Date: (None)

Also, how can I run this http://localhost:8080/alfresco/service/cmis/type/cmis:policy/descendants with Alfresco 5.02

This does not work

Appreciate your advice, as I am new to CMIS.

Thank you.

Regards.

David

Auto Version

$
0
0

I have to control versioning while updating the content but i could not able to reach. I tired in the following approach but it is not working me. Can anyone tel me how do achieve ?

1)var existingFile = destNode.childByNamePath(filename);
if (existingFile !== null)
{
// File already exists, decide what to do
if (existingFile.hasAspect("cm:versionable") && overwrite)
{

existingFile.properties["cm:autoVersionOnUpdateProps"]=false;
existingFile.properties["cm:autoversion"]=false;
existingFile.ensureVersioningEnabled(false, false);
// Upload component was configured to overwrite files if name clashes
existingFile.properties.content.write(content,false,true);

// Extract the metadata
// (The overwrite policy controls which if any parts of
// the document's properties are updated from this)
extractMetadata(existingFile);

// Record the file details ready for generating the response
model.document = existingFile;

return;
}

2) If i add sys:temporary aspect i can able to controll but it is deleting from archive

Thanks,
Aruna

browsing as guest threw CMIS

$
0
0

Hello,

I am using ROLE_TICKET in my local CMIS session (implementation of org.apache.chemistry.opencmis ) to authenticate to Alfresco.

But when I want to access as guest, creating a ticket for guest, I cannot open a session because org/alfresco/api/opencmis/OpenCMIS.get web script needs to be user authenticated to be executed.

I don't know if it is secure to let guest to execute this script ?

Is there a way to browse the repository as guest from CMIS api ?

Thanks in advance,

David

4.2.f

Property 'cm:title' doesn't exist!

$
0
0

Hi

I Have uppgraded ALfresco version to alfresco-community-installer-201602-win-x64.exe
I have problem in getting folder folder from Alfreco
Folder is created in My Files> Shared> Urudjbeni

My code looks like this

Map<String, String> parameter =new HashMap<String, String>();
 
// user credentials
parameter.put(SessionParameter.USER, config.getALFRESCO_USR());
parameter.put(SessionParameter.PASSWORD, config.getALFRESCO_PASS());
 
// connection settings
parameter.put(SessionParameter.ATOMPUB_URL, config.getSERVICE_URL());
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
 
// Set the alfresco object factory
// Used when using the CMIS extension for Alfresco for working with
// aspects
parameter.put(SessionParameter.OBJECT_FACTORY_CLASS,"org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
 
// default factory implementation
SessionFactory factory = SessionFactoryImpl.newInstance();
List<Repository> repositories = factory.getRepositories(parameter);
log.info("ALFRESCO repository :{}", repositories.get(0).getId());
 
session = repositories.get(0).createSession();
log.info("ALFRESCO session created :{}", session);
 
urudjbeni =(Folder) session.getObjectByPath("/Shared/Urudjbeni");
log.info("ALFRESCO urudjbeni folder:{}", urudjbeni);
 

Tried with alfresco-opencmis-extension 0.2 and alfresco-opencmis-extension 0.3
This code was normally working before (on community version 4)

Exception that I'am getting is

Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Property 'cm:title' doesn't exist!
at org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl.convertProperty(ObjectFactoryImpl.java:240)
at org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl.convertProperties(ObjectFactoryImpl.java:263)
at org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl.convertProperties(AlfrescoObjectFactoryImpl.java:206)
at org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.initialize(AbstractCmisObject.java:108)
at org.alfresco.cmis.client.impl.AlfrescoFolderImpl.initialize(AlfrescoFolderImpl.java:46)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.<init>(FolderImpl.java:68)
at org.alfresco.cmis.client.impl.AlfrescoFolderImpl.<init>(AlfrescoFolderImpl.java:39)
at org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl.convertObject(AlfrescoObjectFactoryImpl.java:297)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:424)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:398)
at hr.igvu.dms.service.impl.Alfresco.init(Alfresco.java:80)
at hr.igvu.dms.service.impl.Alfresco.<init>(Alfresco.java:52)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
... 25 more
5.1.x

Not able to read aspect properties using CMIS?

$
0
0

I am able to read the document using its path. I can see that it is the object that I am interested in.
On the folder that this document is, I have created a rule to add the aspect to any thing that comes in.
Now, in share, when I look at this document, by editing its properties, I see all the cm:document properties as well as my aspect properties with values.

I would like to read the properties of the aspect. I am using plain CMIS api, not the OpenCMIS extension.
When I do that, I see the regular properties only (as a result of the call object.getProperties()), not the properties of my aspect.
Similarly, getSecondaryTypes() call gives null.

As I said earlier, in share ui, I am able to see all the aspect properties, when click edit properties on the object.

Following is my code snippet:

Document object =(Document) cmisSession.getObjectByPath(path2Object);if(object !=null){
	log.info("\tName            ["+ object.getName()+"]");
	log.info("\tDescription     ["+ object.getDescription()+"]"); 
	List<Property<?>> properties = object.getProperties();if(properties !=null){for(int index=0; index<properties.size(); index++){
			Property aProperty = properties.get(index);
	        log.info("/t P QueryName    ["+ aProperty.getQueryName()+"]");
	        log.info("/t P Value        ["+ aProperty.getValueAsString()+"]");}}  
	List<SecondaryType> aspects = object.getSecondaryTypes();if(aspects !=null){for(int index=0; index<aspects.size(); index++){
			SecondaryType aspect = aspects.get(index);
			log.info("/t P QueryName          ["+ aspect.getQueryName());
			log.info("/t P Discription        ["+ aspect.getDescription()); }} }

Alfresco 5.0.d. community edition (64-bit) / CMIS / Java 1.7
Libraries used

org.apache.chemistry.opencmis
chemistry-opencmis-client-api
0.12.0

org.apache.chemistry.opencmis
chemistry-opencmis-client-impl
0.12.0

org.alfresco.cmis.client
alfresco-opencmis-extension
0.3

5.0.d

Problems with ' in filename

$
0
0

Hello,

I'm using CmisSync with Alfresco Community and I've some problems with files with "'" in the name.

Indeed, I've this error :

2016-03-01 08:45:34,533 [9] ERROR CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - Could not download file: C:\Users\anynomised\CmisSync\anynomised\55-Installation serveurs\Serveur\Résolution problème\Manuel de l\u2019utilisateur de HP Array Configuration Utility-c00709070.pdf

I try to solve it with the developer of CmisSync (https://github.com/aegif/CmisSync/issues/657) but we've found that there is 3 patterns depending on the method of uploading the file :

Pattern 1: Uploading via CMIS Workbench to https://www.alfresco.com/cmis results in cmis:name ’
Pattern 2: Uploading via Share drag-and-drop to your Alfresco 5.1 results in cmis:name '
Pattern 3: Uploading via ? to your Alfresco 5.1 results in cmis:name \u2019

Can you explain it and help us ?

Thank you

5.1.x

Client : Windows 8.1. / CmisSync 2.6.5.0.
Server : Alfresco Community v5.1.0 (r115432-b1) schema 9010, Alfresco Share v5.1.c-E


Get CmisObject from Custom model query - EXCEPTION: TransientCmisObject

$
0
0

Hi everyone,

I'm tring to get a CustomModel document serching it from "name"

and i'm getting the following exception:

java.lang.NoClassDefFoundError: org/apache/chemistry/opencmis/client/api/TransientCmisObject

I try with the newest CMIS versions (10, 11 ,13 )

		protected CmisObject searchDocumentByName(String fileName ){String queryString ="select * from kd:doc where "+PropertyIds.NAME+" = '"+fileName+"'";
    	ItemIterable<QueryResult> results = getSession().query(queryString,false); 
		CmisObject checkingDocument =null;for(QueryResult qResult : results){String objectId ="";
    		PropertyData<?> propData = qResult.getPropertyById("cmis:objectId");// Atom Pub bindingif(propData !=null){
    			objectId =(String) propData.getFirstValue();}else{
    			objectId = qResult.getPropertyValueByQueryName("d.cmis:objectId");// Web Services binding}
    		checkingDocument = getSession().getObject(getSession().createObjectId(objectId));}return checkingDocument;}

I'm using the Alfresco Community v5.0.0

5.1.x

CmisStorageException

$
0
0

I am facing below issue with CMIS v1.1. It is random issue and coming with
Document org.apache.chemistry.opencmis.client.api.Folder.createDocument() API.

org.apache.chemistry.opencmis.commons.exceptions.CmisStorageException: Expected 1910037 bytes but retrieved 0 bytes!

I am using chemistry OpenCMIS 0.10.0 jar.
I am also specifying content stream length as below
contentStream = new ContentStreamImpl(file.getAbsolutePath(), BigInteger.valueOf(bytes.length), mimeType,
new ByteArrayInputStream(bytes));

Immediate help will be appreciated.

Thanks,
Diksha

4.2.d

Retrieves tags in CMIS query

$
0
0

Hi

I'm using DotCMIS to access Alfresco documents and I want to retrieve documents and theirs tags in a query.
I have already done a simple query to retrieve my documents (SELECT d.* FROM cmis:document d WHERE IN_FOLDER('@folderID')) and it's working and after I call rest api to retrieve tags for each documents.
But I have some horrible performances for few documents, that is not possible ...

Now I looking for a way to do it faster :)
I have found this query : select d.*, o.* from cmis:document as d join cm:taggable as o on d.cmis:objectid = o.cmis:objectid
But it doesn't work in my case, CMIS error.

Somebody have an idea how to do it ?

4.2

start new process instance through Alfresco One API

$
0
0

I'm using the following rest call to start a new process instance : http://localhost:8080/alfresco/api/-default-/public/workflow/versions/1/processes
I receive the following error:
Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255) ### The error may involve org.activiti.engine.impl.persistence.entity.HistoricTaskInstanceEntity.insertHistoricTaskInstance-Inline ### The error occurred while setting parameters ### SQL: insert into ACT_HI_TASKINST ( ID_, PROC_DEF_ID_, PROC_INST_ID_, EXECUTION_ID_, NAME_, PARENT_TASK_ID_, DESCRIPTION_, OWNER_, ASSIGNEE_, START_TIME_, CLAIM_TIME_, END_TIME_, DURATION_, DELETE_REASON_, TASK_DEF_KEY_, FORM_KEY_, PRIORITY_, DUE_DATE_, CATEGORY_, TENANT_ID_ ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) ### Cause: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)"

The process contains a start event a human task and end event, everything works fine using the rest api included in activiti-rest.war file !
There is no clear documentation on how to make the process run on alfresco although it works fine in activiti !!

CmisObjectNotFoundException: Type is unknown

$
0
0

My environment and details are:
CMIS libraries and API

http://vm-alfresco:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom

I also tried with CMIS 1.0 URL

<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-api</artifactId>
<version>0.13.0</version>
</dependency>
 
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-impl</artifactId>
<version>0.13.0</version>
</dependency>

My code:

SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
Map<String, String> parameter =new HashMap<String, String>();
parameter.put(SessionParameter.USER,this.user);
parameter.put(SessionParameter.PASSWORD,this.password);
parameter.put(SessionParameter.ATOMPUB_URL,this.host);
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
...List<Repository> repositories =new ArrayList<Repository>();
repositories = sessionFactory.getRepositories(parameter);
...log.info("Alfresco Repositories");
cmisRepository = repositories.get(0);
parameter.put(SessionParameter.REPOSITORY_ID, cmisRepository.getId());//SessionFactoryImpl.newInstance(); Session session = factory.getRepositories(parameter).get(0).createSession();
cmisSession = sessionFactory.createSession(parameter); 
... HashMap<String, Object> cmisDocumentProperties =new HashMap<String, Object>();
cmisDocumentProperties.put(PropertyIds.OBJECT_TYPE_ID,"cmis:document, D:salo:mlodocument, P:salo:documentProperties");
... byte[] content = document.getBData();
InputStream stream =new ByteArrayInputStream(content);
ContentStream contentStream = cmisSession.getObjectFactory().createContentStream(
document.getFileName(), Long.valueOf(content.length), document.getMimeType(), stream);
Document insertedDocument = categoryFolder.createDocument(cmisDocumentProperties, contentStream, VersioningState.MAJOR);

Exception is shown below

org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Type 'cmis:document, D:salo:lodocument, P:salo:documentProperties' is unknown!
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:484)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:645)
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getTypeDefinitionInternal(AbstractAtomPubService.java:911)
org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:94)
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:148)
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:127)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getTypeDefinition(SessionImpl.java:770)
at org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl.convertProperties(ObjectFactoryImpl.java:356)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:1091)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:77)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:451)
at com.services.impl.AlfrescoCMISOpenWSProxyAdapter.insert(AlfrescoCMISOpenWSProxyAdapter.java:481)

In the model, I have defined a type D:salo:lodocument extending type cmis:document. This D:salo:lodocument has a mandatory aspect defined, which is P:salo:documentProperties.

When I read a document/image from Alfresco (version 5.0.c) server, it returns all these properties good. The document also has the aspect in the secondary types.

I googled about this problem and the results pointed to few threads who had the same/similar issue. So far, none of them helped me.

Am I missing something here?

Thank you.

5.0.c
Viewing all 252 articles
Browse latest View live