Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8066841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:07:08+00:00 2026-06-05T12:07:08+00:00

I have a dynaAction form setup that is submitted to a lookupDispatchAction. The problem

  • 0

I have a dynaAction form setup that is submitted to a lookupDispatchAction. The problem is that the page loads fine but on submit the application throws a [BeanUtils.populate] with root cause java.lang.IllegalArgumentException: No bean specified that for the moment I cannot seem to catch the stack dump doesn’t indicate where in code this is being caused. It was only through undoing the modified code that I was able to identify the cause as the part of code in the jsp printed below. At the moment I am trying to see if I can get more info from the debugger but so far research has hinted at probable causes none of which has helped.
Below are the relevant parts of code (with the stack trace skipped to keep this post reasonable:
struts-config.xml:

 <form-bean name="MonthlyInvoiceForm" type="com.myapp.form.accounting.MonthlyInvoiceForm">
                <form-property name="idMonthInvoice" type="java.lang.Long"/>
                <form-property name="creationDate" type="java.util.Date"/>
                <form-property name="adresse" type="com.myapp.model.component.CustomerAddress"/>
                <form-property name="extras" type="com.myapp.accounting.customer.ExtraInvoiceForm[]"/>
                <form-property name="creationLoc" initial="Home" type="java.lang.String"/>
                <form-property name="totalHT" type="java.math.BigDecimal"/>
                <form-property name="totalTTC" type="java.math.BigDecimal"/>
                <form-property name="prefix" type="java.lang.Integer"/>
                <form-property name="number" type="java.lang.String"/>
                <form-property name="person" type="java.lang.String"/>
                <form-property name="strTotalHT" type="java.lang.String"/>
                <form-property name="strTotalTTC" type="java.lang.String"/>
                <form-property name="customerName" type="java.lang.String"/>
                <form-property name="strIdCustomer" type="java.lang.String"/>
                <form-property name="strCreationDate" type="java.lang.String"/>
        </form-bean> 

And the form itself has the following setup:

public class MonthlyInvoiceForm extends BaseDynaForm implements ModelForm<MonthlyInvoice>{

@Override
public void reset(ActionMapping mapping, HttpServletRequest request) {
    ExtraInvoiceForm[] extraForms = new ExtraInvoiceForm[1];
    this.set("extras", extraForms);

    CustomerAddress caddress = new CustomerAddress();
    this.set("adresse", caddress);

    BigDecimal tmpTRD = new BigDecimal(BigInteger.ZERO);
    this.set("totalHT", tmpTRD);


    BigDecimal tmpTRM = new BigDecimal(BigInteger.ZERO);
    this.set("totalTTC", tmpTRM);
}

@Override
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest request) {
    ActionErrors errors = new ActionErrors();

    ExtraInvoiceForm[] extraInvoiceForms = (ExtraInvoiceForm[]) this.get("extras");
    LinkedList<String> credits = new LinkedList<String>(); 
    LinkedList<String> reductions = new LinkedList<String>(); 

    for(ExtraInvoiceForm eif: extraInvoiceForms) {
        eif.validate(errors);

        if(!eif.isBlank()) {
            if(eif.getOperation().equals(ExtraCostInvoice.CREDITOPERATION)) {
                if(credits.contains(eif.getDescription()))
                    errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("invoice.duplicate.credit", eif.getDescription()));
                else
                    credits.add(eif.getDescription());
            } else {
                if(reductions.contains(eif.getDescription()))
                    errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("invoice.duplicate.reduction", eif.getDescription()));
                else
                    reductions.add(eif.getDescription());
            }
        }
    }


    if (StringUtils.isEmpty(this.get("strCreationDate").toString()))
        errors.add("strCreationDate",new ActionError("field.required"));

    if (StringUtils.isEmpty(this.get("creationLoc").toString()))
        errors.add("creationLoc",new ActionError("field.required"));



    return errors;
}

@Override
public void populateModel(MonthlyInvoice model) throws Exception {
    DateTimeFormatter fmt = DateTimeFormat.forPattern("dd MMMM yyyy");
    DateTime crDate;


    crDate = new DateTime(fmt.withLocale(Locale.FRENCH).parseDateTime(this.get("strCreationDate").toString()));
    this.set("creationDate",BaseForm.jodaToSqlDate(crDate));

    PropertyUtils.copyProperties(model, this);
}

The jsp:

<html:form action="/toInvoiceCustomerMissions"> 
/*This is the part of code in the jsp which causes the error*/
<c:forEach var="extras" items="${MonthlyInvoiceForm.map.extras}" varStatus="vs">
                    <tr>
                        <td align="center">
                                                    <html:text indexed="true" name="extras" property="description" size="40" maxlength="100" /></td>
                        <td align="center">
                                                    <html-el:radio indexed="true" name="extras" property="operation"
                            value="<%= ExtraCostInvoice.CREDITOPERATION %>"
                            onclick="setPercentSymbol(${vs.index}, false); calcCustomerAmount();" />Déduction
                                                    <html-el:radio indexed="true" name="extras" property="operation"
                            value="<%= ExtraCostInvoice.REDUCTIONOPERATION %>"
                            onclick="setPercentSymbol(${vs.index}, true); calcCustomerAmount();" />Réduction
                                                    <html-el:radio indexed="true" name="extras" property="operation"
                            value="<%= ExtraCostInvoice.SUPPLEMENTOPERATION %>"
                            onclick="setPercentSymbol(${vs.index}, false); calcCustomerAmount();" />Supplément
                        </td>
                        <td align="center">
                                                    <html:text indexed="true" name="extras"
                            property="strAmount" size="7" maxlength="6" onchange="calcCustomerAmount();" />
                                                    <input type="text" id="extraSymbol<c:out value='${vs.index}'/>" value="&euro;"
                            readonly="readonly" size="1" style="border: none">
                                                </td>
                    </tr>
                </c:forEach>
</html:form>

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:07:11+00:00Added an answer on June 5, 2026 at 12:07 pm

    Solved it. Turns out that you also need to iterate through every element of the allocated array and initialise it in the reset method; in this case the ExtraInvoiceForm[] extraInvoiceForms had to have every element initialised.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a (rather complex) app that works fine on iOS 4 but fails on
I have a form with a field that may have zero to multiple values
Have a look at one of my websites: moskah.com The problem is that it
Have a fun issue with sharepoint calendar view filtering. That code works fine: SPSecurity.RunWithElevatedPrivileges(delegate()
I have a Struts 1.3 and Hibernate 3.1 application that uses an open-session-in-view pattern
Have started playing with Xcode 4.2, and created a single page application using storyboard
Have some text files that I need to break out the individual words. But
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
have 2 questions : A computer with 32-bit address uses 2-level page table (9
have a nice day. I got problem when trying to create an image from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.