• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IllegalArgumentException

 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am getting following exception in my jsp.

Servlet.service() for servlet action threw exception
java.lang.IllegalArgumentException: Null property value for 'locationKey'

I get this exception when I click "save" button on my jsp. locationKey itself is an object of class "LocationKey" and a member of class "Location".

this is how I pass it to jsp

<html:hidden name="addressMaintenanceForm" property="location.locationKey" />
<html:hidden name="addressMaintenanceForm" property="location.locationKey.phoneNumber.number" />
<html:hidden name="addressMaintenanceForm" property="location.locationKey.phoneNumber.exchange" />
<html:hidden name="addressMaintenanceForm" property="location.locationKey.phoneNumber.areaCode" />
<html:hidden name="addressMaintenanceForm" property="location.locationKey.phoneNumber.extension" />

phoneNumber is an object and member of LocationKey and then phoneNumber has strings "number", exchange, areaCode and extension.

Can anyone please help.
Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic