Skip to main content

.WebServiceException: Method Parameter foo cannot be null

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
fhorta
Offline
Joined: 2009-12-22

Recently I migrated my application from jboss5.1 to Glassfish 3.1.2. Despite other problems I`ve found, now I cannot pass a null parameter to my web method anymore. And it was not a problem in Jboss. What should I do? Is there a flag to allow null parameter through my web melhod.
(My application uses icefaces3.0.1 and JSF 2.0; the WS is a EJB project, also in the same server for now) tks

error:
javax.xml.ws.WebServiceException: Method Parameter: toDate cannot be null. This is BP 1.1 R2211 violation.