• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Argument Error: One or more parameters are null.

 
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Saloon Keeper
Posts: 28114
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Normally trees don't drive trucks. Does this tiny ad have a license?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic