Try "F:ip:akte". When you create an object you need to provide its ID. Because this is a folder, I suspect the ID starts with "F", not "D". When you do a query, you use the type's query name.
Pop open your workbench and look at the type definition for ip:akte and you'll know for sure. Jeff On Feb 28, 2013, at 12:06 PM, Sebastian Danninger <[email protected]> wrote: > Dear all, > > I try to create a folder with custom type. > > Map<String, String> properties = new HashMap<String, String>(); > properties.put(PropertyIds.OBJECT_TYPE_ID, "D:ip:akte"); > properties.put(PropertyIds.NAME, name); > properties.put("ip:participants", participants); > properties.put("ip:owners", owners); > Folder root = session.getRootFolder(); > Folder folder = root.createFolder(properties, null, null, null, > session.getDefaultContext()); > > I get this error: > > Exception in thread "main" > org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: > Type 'D:ip:akte' is unknown! > > but using the alfresco node browser i get: > > Search *Search Language:*solr-cmis *Search:*SELECT * FROM ip:akte > Results (0 rows) NameNodeParent > > Time ms: 1562 > > > any suggestions or is it a repository specific bug? > > > using v0.8 > > > thanks > Sebastian
