• 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

Not sure why I'm getting an IllegalArgumentException

 
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm getting an IllegalArgumentException. The error occurs when I'm calling the following line w/in my servlet.



The code is below for the servlet. It seems to call the getHome() ok... but when it gets to create() it crashes.

I'm also putting in my EJB and the xdoclet tags so you can see what I'm doing w/that.



This is the exact Exception stack I get.



Here's my EJB

 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this bean part of CMR? I remember there is some restriction on collection object cannot be null. Try to create empty list in the method and see if it works.
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FYI - this error actually ended up being a typo when I was registering the ejb in the web client. Finally found it after much digging.
 
reply
    Bookmark Topic Watch Topic
  • New Topic