Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

ValueChangeEvent's getNewValue() returning null when making changes to db query string  RSS feed

Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running into an error condition on the Alfresco based application's UI web page with the error message -
javax.faces.el.EvaluationException: Exception while invoking expression #{mycode.changeDisplayResults}
at org.apache.myfaces.el.MethodBindingImpl.invoke(


Caused by: java.lang.NullPointerException
at org.alfresco.web.bean.mycode.changeDisplayResultsEra(

This would happen if I make the changes in the SavedSearchResultDataMgr class which does the jdbc database query. The changes are –

By the way, I added a new column in the CODE_LIST_TABLE table – NEWCOL differentiate between code lists to be displayed on the dropdown based on certain business logic.

In my investigation I found that, in the method –

If I change back the query string back to it's original state without " and newcol= 'ABC'" +
the drop-down for Reason field on the screen will display all the required rows including the new values I added to the table.

ValueChangeEvent object - event is not null altogether as ValueChangeEvent.getOldValue() returning value.
Here's the part of the jsp page -

Any idea about this problem?

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!