Getting DropletException while creating handleMethod
<p>I'm trying to create own handle method for registration form. It has only two fields first name and last name. Below is the sample java code.</p>

<pre><code>public class TestProfileFormHandler extends GenericFormHandler{

protected ProfileTools mProfileTools;
private MutableRepository mSampleRepository;
private String mCreateSuccessURL;
private String mCreateErrorURL;
public static final String FIRST_NAME = "firstName";
public static final String LAST_NAME = "lastName";

public boolean handleCreate(DynamoHttpServletRequest pRequest,DynamoHttpServletResponse pResponse)throws ServletException,IOException{

    MutableRepository lSampleRepository = (MutableRepository) getSampleRepository();
    MutableRepositoryItem lItem = null;
    String lFirstName = pRequest.getParameter(FIRST_NAME);
    String lLastName = pRequest.getParameter(LAST_NAME);
    try {
        Repository rep = getSampleRepository();
        RepositoryItem lRepoItem = null;

        lItem = lSampleRepository.createItem(lRepoItem.getRepositoryId(),"user");
        lItem.setPropertyValue(FIRST_NAME,lFirstName);
        lItem.setPropertyValue(LAST_NAME, lLastName);
        String lRepositoryId = lItem.getRepositoryId();
        lSampleRepository.addItem(lItem);
    } catch (RepositoryException e) {
        e.printStackTrace();
    }

    return checkFormRedirect(getCreateSuccessURL(), getCreateErrorURL(), pRequest, pResponse);

}
</code></pre>

<p>Below is the jsp : register.jsp</p>

<pre><code>&lt;dsp:page&gt;
&lt;dsp:importbean bean="/atg/userprofiling/TestProfileFormHandler"/&gt;
&lt;dsp:getvalueof id="success" param="added"/&gt;
&lt;c:if test="${success eq true}"&gt;
    Account created successfully.
&lt;/c:if&gt;
&lt;dsp:form name="registerForm" id="registerForm" method="post"&gt;
    &lt;div&gt;
        &lt;label&gt;First Name&lt;/label&gt; &lt;span&gt;*: &lt;/span&gt;
        &lt;dsp:input type="text" name="firstName" bean="TestProfileFormHandler.value.firstName" /&gt;
    &lt;/div&gt;
    &lt;div&gt;
        &lt;label&gt;Last Name&lt;/label&gt; &lt;span&gt;*: &lt;/span&gt;
        &lt;dsp:input type="text" name="lastName" bean="TestProfileFormHandler.value.lastName" /&gt;
    &lt;/div&gt;
    &lt;dsp:input type="hidden" value="/test/register.jsp?added=true" bean="TestProfileFormHandler.createSuccessURL"/&gt;
    &lt;dsp:input type="hidden" value="/test/register.jsp?added=false" bean="TestProfileFormHandler.createErrorURL"/&gt;
    &lt;dsp:input type="submit" value="Create Account" bean="TestProfileFormHandler.create"/&gt;
&lt;/dsp:form&gt;
</code></pre>

<p></p>

<p>now i'm getting <code>DropletException</code></p>

<pre><code>atg.droplet.DropletException: Can't find property: firstName in class com.tap.userprofiling.TestProfileFormHandler
at atg.droplet.DropletDescriptor.&lt;init&gt;(DropletDescriptor.java:813)
at atg.droplet.validation.ValidatingDropletDescriptorManager$ValidationDropletDescriptor.&lt;init&gt;(ValidatingDropletDescriptorManager.java:416)
at atg.droplet.validation.ValidatingDropletDescriptorManager.createDropletDescriptor(ValidatingDropletDescriptorManager.java:219)
at atg.droplet.DropletDescriptorManager.getDropletDescriptor(DropletDescriptorManager.java:1279)
at atg.droplet.DropletDescriptorManager.getDropletDescriptor(DropletDescriptorManager.java:1232)
Truncated. see log file for complete stacktrace
</code></pre>

<p>if anyone knows what's this error, please help me.</p>

<p>Thanks in advance.</p>