Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Argument Error: One or more parameters are null.

 
Julien Martin
Ranch Hand
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17639
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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!
 
Julien Martin
Ranch Hand
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic