• PropertyGroup OKM-009006(getMetaData): Application internal

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
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.
 #48534  by owenclements
 
5.1.7 (build: 7085) with Community Extensions 5.1

After creating Document, adding property group, setting property group values, and saving successfully through Web Services.
In the OpenKM UI,
when selecting the document, I get the following error.
Code: Select all
OKM-009006(getMetaData): Application internal error
null
Here is the stack...to the thrower
Code: Select all
2012-06-20 09:15:52,982 DEBUG [com.openkm.api.OKMPropertyGroup] getProperties: [{label=Grant #:, name=okp:grantsandcompliance.grantnumber, value=1234567, data=, width=100px, height=25px, readonly=false, type=text, validators=[]}, {label=Accounting Unit:, name=okp:grantsandcompliance.acctunit, value=010020030, data=, width=100px, height=25px, readonly=false, type=text, validators=[]}, {label=Document Type:, name=okp:grantsandcompliance.documenttype, width=150px, height=25px, readonly=false, type=simple, data=, options=[{label=Application, value=application, selected=true}, {label=Award, value=award, selected=false}, {label=Letter, value=letter, selected=false}, {label=Report(Programmatic), value=reportp, selected=false}, {label=Report(Financial), value=reportf, selected=false}, {label=Other, value=other, selected=false}], validators=[]}, {label=Start Date:, name=okp:grantsandcompliance.startdate, value=1/1/2012, data=, width=100px, height=25px, readonly=false, type=date, validators=[]}, {label=End Date:, name=okp:grantsandcompliance.enddate, value=10/1/2012, data=, width=100px, height=25px, readonly=false, type=date, validators=[]}, {label=Received Date:, name=okp:grantsandcompliance.receivedate, value=6/12/2012, data=, width=100px, height=25px, readonly=false, type=date, validators=[]}, {label=Active:, name=okp:grantsandcompliance.active, width=150px, height=25px, readonly=false, type=simple, data=, options=[{label=Yes, value=yes, selected=true}, {label=No, value=no, selected=false}], validators=[]}, {label=Notes:, name=okp:grantsandcompliance.notes, value=note, data=, width=100px, height=25px, readonly=false, type=text, validators=[]}]
2012-06-20 09:15:52,982 ERROR [com.openkm.servlet.frontend.PropertyGroupServlet] 
java.lang.NullPointerException
at com.openkm.util.GWTUtil.copy(GWTUtil.java:872)
at com.openkm.servlet.frontend.PropertyGroupServlet.getProperties(PropertyGroupServlet.java:216)
The metadata property values are saved correctly in the repository, they can be queried successfully through Web Services and the UI.

Any idea why UI doesn't show them? Is this by design, or fixed in a later build?

If I create it all through the UI it works fine.

Any idea where to look for the difference?

Thanks
 #48552  by jllort
 
You are using a very old version of OpenKM. The version 5.1.7 was released at 2011-07-14, consider this application totally deprecated. I suggest thinking on migration.

Seems it is caused by wrong date value. Looking in the old code https://sourceforge.net/p/openkm/code/H ... TUtil.java ( line 872 ) -> it is trying to convert value to date using ISO8601. I suspect might be something wrong in the field value.

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.