• Error while registering property groups

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #11440  by osDubai
 
Hi,

After installing Open KM 5.1.6 created my cnd and xml file, but when I tried to register the property groups following error appeared on the screen.

Application error
Class: javax.jcr.RepositoryException
Message: The following nodetype change contains non-trivial changes.Up until now only trivial changes are supported. (see javadoc for org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff): org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff[ nodeTypeName={http://www.openkm.org/group/1.0}carregistration, mixinFlagDiff=NONE, supertypesDiff=NONE, propertyDifferences=[ org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... ewalStatus, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... alDocument, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... tingEntity, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... umentTitle, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... minderDate, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... alDocument, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... NoticeDate, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... lateNumber, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... alDocument, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... ocumentRef, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... .IssueDate, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... utOriginal, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... ExpiryDate, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... ocumentRef, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... ocumentref, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... aldocument, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... expirydate, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... latenumber, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... noticedate, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... umenttitle, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... ocumentref, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... aldocument, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... aldocument, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... .issuedate, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... tingentity, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... minderdate, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... ewalstatus, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... utoriginal, type=TRIVIAL, operation=ADDED] ], childNodeDifferences=[ ] ]


Please provide your input, this error does not give me enough indication to what could be the issue.
P.S. the cnd and xml files are attached.

Many thanks,
Kahtan
Attachments
(2.07 KiB) Downloaded 562 times
 #11454  by jllort
 
The message is clear
Code: Select all
Message: The following nodetype change contains non-trivial changes.
You've tried changing the type of some property groups to others, for example list to multiple list or similar .. or removing some property etc... which changes have you done only explain one.
 #11464  by pavila
 
For example:
Code: Select all
[itemName={http://www.openkm.org/group/property/1.0}carregistration.RenewedDocumentRef, type=MAJOR, operation=REMOVED]
This change is maked ad MAJOR because you want to REMOVE an previously registered Group Property.
 #11499  by osDubai
 
Hi,

Thanks for your response, I was not intending to remove or add any property group. Actually my first attempt to register my propertygroups.cnd file gave me error and I though none was registered, then added some changes to the file (made all property groups in small letters), and here I am, the system is giving me errors about adding and removing property groups.

- Other than the OKM Wiki, where can I find more details and documentation about dealing with property groups?
- Could you please check the attached .cnd and .xml files and tell me if there is any issue with them?

Thanks,
Kahtan
 #11504  by osDubai
 
I am setting this up on a testing environment before going to production before end of July.

A questions comes up based on these errors, what is the procedure to amend the property groups if needed in future, what if I have to add some fields or hide some, is there any document to describe such thing.

Thanks,
 #11505  by osDubai
 
Hi,

Now, I have tried following steps:

- Deleted the two databases from MSSQL.
- Set hibernate.hbm2ddl=create in OpenKM.cfg
- Deleted Repository folder
- Started the system
- DB were created successfully
- I was able to create a folder and document successfully
- Now, when I try to register the property groups the system does not give any result or errer.

Not sue what the issue is.

Thanks,
 #11509  by jllort
 
If you register test property groups - metadata - with comes OpenKM will run without problems.

The rules on property groups are easy:
1- So can add newsly always.
2- You never can delete a property field, because it's mandatory for historic purpose reasons.
3- You can hide all property group ( entire group ) but not a single property group field.
4- You can change any field type to other for example input to checkbox. The only restriction is multiple select to other type.

I suggest register test properties which comes by default and create your own property group for testing purpose.
 #11515  by osDubai
 
Thanks,

The issue is resolved now, it was a very silly mistake in the xml file; instead of typing:
Code: Select all
 <property-group label="Contracts" name="okg:contracts">
It was:
Code: Select all
 <property-group label="Contracts" name="okp:contracts">
The difference is only one letter :oops:

And hence the system was not reading the new group.

Best,

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.