aspose file tools*
The moose likes JSF and the fly likes Argument Error: One or more parameters are null. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Argument Error: One or more parameters are null." Watch "Argument Error: One or more parameters are null." New topic
Author

Argument Error: One or more parameters are null.

Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hello,
I get the following error:

I use the Sun's RI (v 1.1) together with Jboss 4.0.3

Here is my backing bean:



Here is my jsp:



Here is my DD:



exception report:


Can anyone help please? I am stuck and all I can say is that the exception report is not very helpful...

Thanks in advance,

Julien.
[ August 15, 2006: Message edited by: Julien Martin ]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21



This looked interesting. It might narrow the problem down to a specific part of the page.

Helpful hint: use the "id" attribute on your controls. Otherwise you get a useless randomly generated ID back in the error messages and it's much harder to locate the offending element.

I also started using Facelets, since one of their selling points was better JSF error messages. A nice bonus was it finally made Tiles useful to me!


Customer surveys are for companies who didn't pay proper attention to begin with.
Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hello,
The problem comes from here:



I keep resetting the label of si_1 instead of setting it for si_2 and si_3.

Julien.
Rajibul islam
Greenhorn

Joined: Jan 06, 2009
Posts: 3
I got this error..

Argument Error: Parameter text is null
java.lang.NullPointerException: Argument Error: Parameter text is null
at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.writeText(HtmlResponseWriter.java:545)
at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRendererUtils.renderSelectOptions(HtmlRendererUtils.java:443)

At last I find out I have one drop down that is populated by one list. but i saw that one item of that list itemLabel is null. every time it tries to render but it cant. so I suggest make sure your itemLabel may not set by null value. for addintional info i gave here sample code..

<td >
<t:selectOneMenu id="drpGroup" forceId="true" value="#{editStore.store.zoneNumber}" styleClass="inp">
<s:selectItems value="#{editStore.zoneList}"
var="zone" itemValue="#{zone.number}" itemLabel="#{zone.name}" />
</t:selectOneMenu>

make sure "#{zone.name}" never contain any null value for not getting this error.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Argument Error: One or more parameters are null.