fixBug PropertyNotFoundException#64
fixBug PropertyNotFoundException#64DKARAGODIN wants to merge 1 commit intoapache:masterfrom DKARAGODIN:master
Conversation
During deploy on clean Wildfly 19 installation there were the foollowing exception: org.hibernate.PropertyNotFoundException: Could not locate setter method for property [org.apache.roller.weblogger.pojos.WeblogEntryComment#emptyString] Adding missing <transient> element for emptyString property in orm descriptor fixes the problem.
|
@snoopdave do you remember why emptyString is used here instead of listValue=""? Maybe we can remove the method (org.apache.roller.weblogger.pojos.WeblogEntryComment#getEmptyString) again. roller/app/src/main/webapp/WEB-INF/jsps/editor/Comments.jsp Lines 213 to 214 in 19f7f12 |
|
No, unfortunately, I don't know. I only build this project once and tried it for couple hours. When I discovered the issue and created this pull request I remember that I browsed commit history and conclude that somebody simply forgot to add the line to orm descriptor. I did not analyze weather it could be removed altogether. |
|
@DKARAGODIN i would like to remove it if possible, i am only waiting for @snoopdave maybe he remembers why he added the getEmptyString method. It does seem to work for me when I set listValue="" without a method call. I just want to make sure that we don't remove a workaround which was probably there for a reason. |
|
I do not remember why I had to add that weird and annoying |
|
@snoopdave thanks for the info. I ran a quick test and the checkboxes seem work fine without the method call. @DKARAGODIN since you contributed the original fix, would you like to change it so that: roller/app/src/main/webapp/WEB-INF/jsps/editor/Comments.jsp Lines 213 to 223 in 19f7f12 all 3 checkboxes use listValue="" and remove the following method ? feel free to force push a new commit to this PR. If you don't want to or don't have time its completely fine. |
|
I think I can't do it. I deleted forked repository from which i suggested this PR. |
|
no worries. I can close this PR no problem. I am going to create a new one this weekend for this issue, unless someone else already created one. If you want to give it another try feel free to do so. |
During deploy on clean Wildfly 19 installation there were the foollowing exception:
org.hibernate.PropertyNotFoundException: Could not locate setter method for property [org.apache.roller.weblogger.pojos.WeblogEntryComment#emptyString]
Adding missing element for emptyString property in orm descriptor fixes the problem.