javax.servlet.ServletException: BeanUtils.populate

2003-08-01 Thread Yan, Charlene
All,

I have been strugling with this for a while.  I looked at the archive and found 
similar questions but no answers there.

I have a form that has two fields - a bean and a String field.
My jsp displays the two fields.  I was able to get to the JSP by calling 
ssoXref.do?operation=showSsoXref.  But when I click on look up button on the page.  It 
throws the exception --javax.servlet.ServletException: BeanUtils.populate.  

My action and struts-config are attached below.  THANKS FOR ANY INSIGHT ON THIS...  
Charlene
  
  

=
public class SsoXrefForm extends TlnActionForm
{
  private TlnSsoXref tlnSsoXref = new TlnSsoXref();

  private String searchSwbId = "";

  public String getSearchSwbId()
  {
return searchSwbId;
  }

  public void setSearchSwbId(String newSearchSwbId)
  {
searchSwbId = newSearchSwbId;
  }

  public TlnSsoXref getTlnSsoXref()
  {
return tlnSsoXref;
  }

  public void setTlnSsoXref(TlnSsoXref newTlnSsoXref)
  {
tlnSsoXref = newTlnSsoXref;
  }
}

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ include file="/include/incPageStart.jsp" %>







<%=crumbName%>




function handleSubmit(action) {
document.forms[0].operation.value=action;
alert("operation is " + document.forms[0].operation.value);
return true;
  }










  

















  <%=crumbName%>



  

Swb ID: *


 
    

  

  

Swb ID: *






  



Auth Class: *



  


  
Expiration 
Date: *






  
Maintained 
By: *





 
 
  










<%@ include file="/include/incPageEnd.jsp" %>



=

public class SsoXrefAction extends TlnAction
{
  private DateFormat formatter = 
DateFormat.getDateInstance(java.text.DateFormat.MEDIUM);
  
  public SsoXrefAction()
  {
  }

  public ActionForward showSsoXref(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response) {
 System.out.println("Inside showSsoXref");
SsoXrefForm ssoXrefForm = (SsoXrefForm) form;
return mapping.findForward("showSsoXref");
  
   }

   public ActionForward lookup(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
{
System.out.println("Am I here?");
SsoXrefForm ssoXrefForm = (SsoXrefForm) form;
try
{
TlnSsoXref tlnSsoXref = 
getTlnSsoXref(ssoXrefForm.getSearchSwbId(), "");
if(tlnSsoXref != null) {
ssoXrefForm.setTlnSsoXref(tlnSsoXref);
} else {
ssoXrefForm.setTlnSsoXref(new TlnSsoXref());
setErrors(request, "error.ssoXref.norFound"); 
}

} catch (Throwable t) {
t.printStackTrace();
return mapping.findForward("error");
}
return mapping.findForward("lookupSsoXref");
}

  private TlnSsoXref getTlnSsoXref(String swbId, String customerId)
throws Throwable
{
TlnSsoXref tlnSsoXref = null;;
Criteria criteria = new Criteria();
criteria.addEqualTo("swbId", swbId);
criteria.addEqualTo("customerId", customerId);
Query query = QueryFactory.newQuery(TlnSsoXref.class, criteria);
try
{
PersistenceBroker broker = getBroker();
tlnSsoXref = (TlnSsoXref)broker.getObjectByQuery(query);
} catch (Throwable t) {
throw t;
}
return tlnSsoXref;
 

javax.servlet.ServletException: BeanUtils.populate

2003-09-27 Thread krishnamohan
Hi, 
I am writing a small page based on struts guidelines for creating map-backed
forms. I am using struts 1.1. I have a jsp in which I have some dynamic
fields. I used a for loop for these,currently. In the ActionForm, I have
declared a HashMap for collecting values of these fields. However, when I
submit the page, I am getting the error- javax.servlet.ServletException:
BeanUtils.populate Root cause: java.lang.IllegalArgumentException: No bean
specified. Pl. help me understand what went wrong. 


The following is the jsp page
<%@ page language="java" session="true"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

 


 
 
 

  
  
<% for (int i=0; i <=2; i++) { String name = "value(foo-" + i + ")"; %>
  

<%} %>   
   

The following is the ActionForm class 

package com.trx.kms.questionbank; import
javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.HashMap;
import java.util.Map;
import java.util.Iterator;


public final class CreateQuestionForm extends ActionForm{ 
private String questionName=null;
private String questionDesc=null;
private String submit=null; 
private String reset=null; 
private final Map values = new HashMap(); 


public void setValue(String key, Object value) {
values.put(key, value); } 
public Object getValue(String key) {
return values.get(key); } 
public String getQuestionDesc() {
return questionDesc; }
public String getQuestionName() {
return questionName; }
public void setQuestionDesc(String string) {
questionDesc = string; } 
public void setQuestionName(String string) {
questionName = string; } 
public String getReset() {
return reset; } 
public String getSubmit() {
return submit; }
public void setReset(String string) {
reset = string; } 
public void setSubmit(String string) {
submit = string; } 


public String getQuestions()
{
StringBuffer sb = new StringBuffer();
if ((values!=null && !values.isEmpty())) {
Iterator it = values.keySet().iterator();
while (it.hasNext()) {
String paramName = (String)it.next();
String paramValue = (String)values.get(paramName);
sb.append(paramName);
sb.append(paramValue);
} } return sb.toString(); 
} 


public void reset(ActionMapping mapping, HttpServletRequest request) {
this.questionName=null; 
this.questionDesc=null; 
} 


public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
ActionErrors errors = new ActionErrors();
return errors; } } 


The following is the action class 


package com.trx.kms.questionbank;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Iterator;

public final class CreateQuestionAction extends Action { 
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws
IOException, ServletException { 
String questions=((CreateQuestionForm)form).getQuestions(); 
ActionErrors errors = new ActionErrors();
if (!errors.isEmpty()) {
saveErrors(request, errors);
return (new ActionForward(mapping.getInput())); }
return (mapping.findForward("success")); }
}



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



javax.servlet.ServletException: BeanUtils.populate

2003-06-19 Thread Julie CARDON
Hi, 

I use DynaForm whith indexed properties, and contrary to many messages on this list 
this doesn't work








 
   


 
 ...
   
  

This is ok.

But if i remove the size attribute of  I have a 

javax.servlet.ServletException: BeanUtils.populate  caused by an  
java.lang.ArrayIndexOutOfBoundsException


could somebody explain me my error?

I used Tomcat 4.1.18, JDK 1.4.1_01-b01 and jakarta-struts-1.1-b2

Thanks



javax.servlet.ServletException: BeanUtils.populate

2001-09-11 Thread Govindaraj, Suresh

Hi,

I am getting the following error. I know that there is something wrong with
my bean, Is there a better way to debug this?
 Is there a way to narrow down to the exact line(or attribute) that's
causing this problem. 

2001-09-11 11:11:09 - path="/topaz" :action:  Populating bean properties
from this request 2001-09-11 11:11:09 - Ctx( /topaz ): Exception in: R(
/topaz + /claimReview/patientVisitInfo.do + null) -
javax.servlet.ServletException: BeanUtils.populate

at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)  at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
61) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)  at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)  at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Thanks,

Suresh
Topaz Development Team, QuadraMed 
Phone - (W) x6107,  Direct 510-337-6107
(H) 510-440-9088
e-mail : [EMAIL PROTECTED] 




javax.servlet.ServletException: BeanUtils.populate

2001-11-02 Thread Sudha

Hello.


I get the following error


2001-11-02 18:34:42,855 533668 [Thread-4] ERROR
(gui.framework.ExceptionHandler)  - Handling exception
javax.servlet.ServletException with template error.htm
2001-11-02 18:34:42,855 533668 [Thread-4] ERROR
(gui.framework.ExceptionHandler)  - Exception-Message: BeanUtils.populate
2001-11-02 18:34:42,865 533678 [Thread-4] ERROR
(gui.framework.ExceptionHandler)  - Stacktrace:
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:486)
at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:19
10)
at
de.einsurance.gui.framework.ExtendedActionServlet.processPopulate(ExtendedAc
tionServlet.java:79)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1521)
at
de.einsurance.gui.framework.ExtendedActionServlet.process(ExtendedActionServ
let.java:51)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:484)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:432)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
5)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:831)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:161)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:477)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:517)
at java.lang.Thread.run(Thread.java:484)

when I use the below entry in struts-config.xml file.






Could anyone of u can help me out?

Best Regards

Sudha


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: javax.servlet.ServletException: BeanUtils.populate

2003-09-27 Thread Gaurav Gupta
Is it Krishna Mohan , previously with MTC India ??

sorry for botheration



-Original Message-
From: krishnamohan [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 3:56 PM
To: [EMAIL PROTECTED]
Subject: javax.servlet.ServletException: BeanUtils.populate


Hi,
I am writing a small page based on struts guidelines for creating map-backed
forms. I am using struts 1.1. I have a jsp in which I have some dynamic
fields. I used a for loop for these,currently. In the ActionForm, I have
declared a HashMap for collecting values of these fields. However, when I
submit the page, I am getting the error- javax.servlet.ServletException:
BeanUtils.populate Root cause: java.lang.IllegalArgumentException: No bean
specified. Pl. help me understand what went wrong.


The following is the jsp page
<%@ page language="java" session="true"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

 






 
 
<% for (int i=0; i <=2; i++) { String name = "value(foo-" + i + ")"; %>
 

<%} %>  
  

The following is the ActionForm class

package com.trx.kms.questionbank; import
javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.HashMap;
import java.util.Map;
import java.util.Iterator;


public final class CreateQuestionForm extends ActionForm{
private String questionName=null;
private String questionDesc=null;
private String submit=null;
private String reset=null;
private final Map values = new HashMap();


public void setValue(String key, Object value) {
values.put(key, value); }
public Object getValue(String key) {
return values.get(key); }
public String getQuestionDesc() {
return questionDesc; }
public String getQuestionName() {
return questionName; }
public void setQuestionDesc(String string) {
questionDesc = string; }
public void setQuestionName(String string) {
questionName = string; }
public String getReset() {
return reset; }
public String getSubmit() {
return submit; }
public void setReset(String string) {
reset = string; }
public void setSubmit(String string) {
submit = string; }


public String getQuestions()
{
StringBuffer sb = new StringBuffer();
if ((values!=null && !values.isEmpty())) {
Iterator it = values.keySet().iterator();
while (it.hasNext()) {
String paramName = (String)it.next();
String paramValue = (String)values.get(paramName);
sb.append(paramName);
sb.append(paramValue);
} } return sb.toString();
}


public void reset(ActionMapping mapping, HttpServletRequest request) {
this.questionName=null;
this.questionDesc=null;
}


public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
ActionErrors errors = new ActionErrors();
return errors; } }


The following is the action class


package com.trx.kms.questionbank;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Iterator;

public final class CreateQuestionAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws
IOException, ServletException {
String questions=((CreateQuestionForm)form).getQuestions();
ActionErrors errors = new ActionErrors();
if (!errors.isEmpty()) {
saveErrors(request, errors);
return (new ActionForward(mapping.getInput())); }
return (mapping.findForward("success")); }
}



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javax.servlet.ServletException: BeanUtils.populate

2003-09-28 Thread krishnamohan
Hi Gaurav,

It's me.   Are you working on Struts?

Thanks,
Krishna

-Original Message-
From: Gaurav Gupta [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 4:18 PM
To: 'Struts Users Mailing List'
Subject: RE: javax.servlet.ServletException: BeanUtils.populate


Is it Krishna Mohan , previously with MTC India ??

sorry for botheration



-Original Message-
From: krishnamohan [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 3:56 PM
To: [EMAIL PROTECTED]
Subject: javax.servlet.ServletException: BeanUtils.populate


Hi,
I am writing a small page based on struts guidelines for creating map-backed
forms. I am using struts 1.1. I have a jsp in which I have some dynamic
fields. I used a for loop for these,currently. In the ActionForm, I have
declared a HashMap for collecting values of these fields. However, when I
submit the page, I am getting the error- javax.servlet.ServletException:
BeanUtils.populate Root cause: java.lang.IllegalArgumentException: No bean
specified. Pl. help me understand what went wrong.


The following is the jsp page
<%@ page language="java" session="true"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

 






 
 
<% for (int i=0; i <=2; i++) { String name = "value(foo-" + i + ")"; %>
 

<%} %>  
  

The following is the ActionForm class

package com.trx.kms.questionbank; import
javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.HashMap;
import java.util.Map;
import java.util.Iterator;


public final class CreateQuestionForm extends ActionForm{
private String questionName=null;
private String questionDesc=null;
private String submit=null;
private String reset=null;
private final Map values = new HashMap();


public void setValue(String key, Object value) {
values.put(key, value); }
public Object getValue(String key) {
return values.get(key); }
public String getQuestionDesc() {
return questionDesc; }
public String getQuestionName() {
return questionName; }
public void setQuestionDesc(String string) {
questionDesc = string; }
public void setQuestionName(String string) {
questionName = string; }
public String getReset() {
return reset; }
public String getSubmit() {
return submit; }
public void setReset(String string) {
reset = string; }
public void setSubmit(String string) {
submit = string; }


public String getQuestions()
{
StringBuffer sb = new StringBuffer();
if ((values!=null && !values.isEmpty())) {
Iterator it = values.keySet().iterator();
while (it.hasNext()) {
String paramName = (String)it.next();
String paramValue = (String)values.get(paramName);
sb.append(paramName);
sb.append(paramValue);
} } return sb.toString();
}


public void reset(ActionMapping mapping, HttpServletRequest request) {
this.questionName=null;
this.questionDesc=null;
}


public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
ActionErrors errors = new ActionErrors();
return errors; } }


The following is the action class


package com.trx.kms.questionbank;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Iterator;

public final class CreateQuestionAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws
IOException, ServletException {
String questions=((CreateQuestionForm)form).getQuestions();
ActionErrors errors = new ActionErrors();
if (!errors.isEmpty()) {
saveErrors(request, errors);
return (new ActionForward(mapping.getInput())); }
return (mapping.findForward("success")); }
}



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-29 Thread Mick Knutson
I have an error that I have been working on for 3 solid days. i have 
searched the archives, but can't find my issue resolved anywhere.
I have an array of objects (ContactDto[]) that I need to display. I actually 
have the full list I send in (userContacts), and the list of objects 
selected in the alertForm (alertContacts).
I can display the form for an initial addAlert() just fine. I have not 
gotten any further.
I do not seem t even get to my add() method ever. And even if I turn the log 
level to debug, I do not seem to get any more information on the stacktrace.

Please help me on this as I am very frustrated and confused.

StackTrace for alertForm Load, and then submission:
==
10:59:25,965 INFO  [AlertActions] userContacts[] length: 3
10:59:25,975 INFO  [AlertActions] 
==
10:59:25,975 INFO  [AlertActions] Must be a new alert then
10:59:25,985 INFO  [AlertActions] 
==
10:59:25,985 INFO  [AlertActions] alertDto: {alertId= userId=1 subject= 
startDate=null reoccurring= gracePeriodDays= gracePeriodHours=
endingDate=Thu May 29 10:59:24 CEST 2003 startingLocation=null 
endingLocation=null status= safeConfirm= details= noteToContactees=}
10:59:25,995 INFO  [AlertActions] 
==
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,984 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11:00:55,504 INFO  [SecurityContextFilter] processing request /alert.do
11:00:55,544 ERROR [SecurityContextFilter] Exception
javax.servlet.ServletException: BeanUtils.populate
   at 
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098)
   at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
   at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:53)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
   at 
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
   at 
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilter.java:46)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
   at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
   at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
   at org.mortbay.http.HttpServer.service(HttpServer.java:863)
   at org.jboss.jetty.Jetty.service(Jetty.java:460)
   at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
   at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
   at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
   at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
   at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
   at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

alertActions.java::add(...): (LookupDispatchAction)
=
   public ActionForward add( ActionMapping mapping
 , ActionForm form
 , HttpServletRequest request
 , HttpServletResponse response
 )
   throws Exception
   {
   log.info( &qu

URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread Mick Knutson
I have an error that I have been working on for 3 solid days. i have 
searched the archives, but can't find my issue resolved anywhere.
I have an array of objects (ContactDto[]) that I need to display. I actually 
have the full list I send in (userContacts), and the list of objects 
selected in the alertForm (alertContacts).
I can display the form for an initial addAlert() just fine. I have not 
gotten any further.
I do not seem t even get to my add() method ever. And even if I turn the log 
level to debug, I do not seem to get any more information on the stacktrace.

Please help me on this as I am very frustrated and confused.

StackTrace for alertForm Load, and then submission:
==
10:59:25,965 INFO  [AlertActions] userContacts[] length: 3
10:59:25,975 INFO  [AlertActions] 
==
10:59:25,975 INFO  [AlertActions] Must be a new alert then
10:59:25,985 INFO  [AlertActions] 
==
10:59:25,985 INFO  [AlertActions] alertDto: {alertId= userId=1 subject= 
startDate=null reoccurring= gracePeriodDays= gracePeriodHours=
endingDate=Thu May 29 10:59:24 CEST 2003 startingLocation=null 
endingLocation=null status= safeConfirm= details= noteToContactees=}
10:59:25,995 INFO  [AlertActions] 
==
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,984 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11:00:55,504 INFO  [SecurityContextFilter] processing request /alert.do
11:00:55,544 ERROR [SecurityContextFilter] Exception
javax.servlet.ServletException: BeanUtils.populate
   at 
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098)
   at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
   at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:53)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
   at 
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
   at 
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilter.java:46)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
   at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
   at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
   at org.mortbay.http.HttpServer.service(HttpServer.java:863)
   at org.jboss.jetty.Jetty.service(Jetty.java:460)
   at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
   at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
   at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
   at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
   at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
   at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

alertActions.java::add(...): (LookupDispatchAction)
=
   public ActionForward add( ActionMapping mapping
 , ActionForm form
 , HttpServletRequest request
 , HttpServletResponse response
 )
   throws Exception
   {
   log.info( &qu

Re: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread Mick Knutson
Sorry, but this is urgent to me, and am very sorry to imply anything toward, 
or against anyone else.

I am having this error when I submit the form. I can display the form 
seemingly fine. I have about 19 forms that are fairly similiar currently, 
and they all submit just fine.
I have gone through this with a fine tooth comb, but am not seeing any 
differences in the Husted.com examples for LookupDispatchAction. I also see 
other people that have the error, but seem to have much more stack trace, 
and I have no idea what the cause would/should actually be.
So, I have started to remove items from the form, like the multi-select, but 
that did not seem to help.


From: "David Graham" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: URGENT: javax.servlet.ServletException: BeanUtils.populate
Date: Thu, 29 May 2003 12:34:23 -0600
FYI, marking posts as URGENT is generally considered rude as it implies 
your question is more important than everyone elses.  The error message 
indicates a problem populating your form bean from the request parameters.  
Are having the problem when submitting the form or displaying it?  Is your 
form control named correctly?

David

I have an error that I have been working on for 3 solid days. i have 
searched the archives, but can't find my issue resolved anywhere.
I have an array of objects (ContactDto[]) that I need to display. I 
actually have the full list I send in (userContacts), and the list of 
objects selected in the alertForm (alertContacts).
I can display the form for an initial addAlert() just fine. I have not 
gotten any further.
I do not seem t even get to my add() method ever. And even if I turn the 
log level to debug, I do not seem to get any more information on the 
stacktrace.

Please help me on this as I am very frustrated and confused.

StackTrace for alertForm Load, and then submission:
==
10:59:25,965 INFO  [AlertActions] userContacts[] length: 3
10:59:25,975 INFO  [AlertActions] 
==
10:59:25,975 INFO  [AlertActions] Must be a new alert then
10:59:25,985 INFO  [AlertActions] 
==
10:59:25,985 INFO  [AlertActions] alertDto: {alertId= userId=1 subject= 
startDate=null reoccurring= gracePeriodDays= gracePeriodHours=
endingDate=Thu May 29 10:59:24 CEST 2003 startingLocation=null 
endingLocation=null status= safeConfirm= details= noteToContactees=}
10:59:25,995 INFO  [AlertActions] 
==
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,984 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11:00:55,504 INFO  [SecurityContextFilter] processing request /alert.do
11:00:55,544 ERROR [SecurityContextFilter] Exception
javax.servlet.ServletException: BeanUtils.populate
   at 
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098)
   at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
   at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:53)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
   at 
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
   at 
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilter.java:46)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
  

Re: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread David Graham
I couldn't find any HTML field called alertContacts in your JSP.  If you 
want alertContacts to hold the selected values, you need to have a form 
control called alertContacts.

I normally populate the list from a collection I store in the session or 
request and use a form bean property to save what the user submitted.

David

Sorry, but this is urgent to me, and am very sorry to imply anything 
toward, or against anyone else.

I am having this error when I submit the form. I can display the form 
seemingly fine. I have about 19 forms that are fairly similiar currently, 
and they all submit just fine.
I have gone through this with a fine tooth comb, but am not seeing any 
differences in the Husted.com examples for LookupDispatchAction. I also see 
other people that have the error, but seem to have much more stack trace, 
and I have no idea what the cause would/should actually be.
So, I have started to remove items from the form, like the multi-select, 
but that did not seem to help.


From: "David Graham" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: URGENT: javax.servlet.ServletException: BeanUtils.populate
Date: Thu, 29 May 2003 12:34:23 -0600
FYI, marking posts as URGENT is generally considered rude as it implies 
your question is more important than everyone elses.  The error message 
indicates a problem populating your form bean from the request parameters. 
 Are having the problem when submitting the form or displaying it?  Is 
your form control named correctly?

David

I have an error that I have been working on for 3 solid days. i have 
searched the archives, but can't find my issue resolved anywhere.
I have an array of objects (ContactDto[]) that I need to display. I 
actually have the full list I send in (userContacts), and the list of 
objects selected in the alertForm (alertContacts).
I can display the form for an initial addAlert() just fine. I have not 
gotten any further.
I do not seem t even get to my add() method ever. And even if I turn the 
log level to debug, I do not seem to get any more information on the 
stacktrace.

Please help me on this as I am very frustrated and confused.

StackTrace for alertForm Load, and then submission:
==
10:59:25,965 INFO  [AlertActions] userContacts[] length: 3
10:59:25,975 INFO  [AlertActions] 
==
10:59:25,975 INFO  [AlertActions] Must be a new alert then
10:59:25,985 INFO  [AlertActions] 
==
10:59:25,985 INFO  [AlertActions] alertDto: {alertId= userId=1 subject= 
startDate=null reoccurring= gracePeriodDays= gracePeriodHours=
endingDate=Thu May 29 10:59:24 CEST 2003 startingLocation=null 
endingLocation=null status= safeConfirm= details= noteToContactees=}
10:59:25,995 INFO  [AlertActions] 
==
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,984 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11:00:55,504 INFO  [SecurityContextFilter] processing request /alert.do
11:00:55,544 ERROR [SecurityContextFilter] Exception
javax.servlet.ServletException: BeanUtils.populate
   at 
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098)
   at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
   at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:53)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
   at 
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebAppl

Re: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread Mick Knutson
I tried ommitting that global forward, but then /alert was not found and I 
got a 404 error.
What should I have done/do?


From: "James Mitchell" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: URGENT: javax.servlet.ServletException: BeanUtils.populate
Date: Thu, 29 May 2003 14:43:08 -0400
One other thing I noticed, you've got a potential circular reference in
/alert by specifying the input as /alert.do.
--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org


- Original Message -
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 29, 2003 2:26 PM
Subject: URGENT: javax.servlet.ServletException: BeanUtils.populate
> I have an error that I have been working on for 3 solid days. i have
> searched the archives, but can't find my issue resolved anywhere.
> I have an array of objects (ContactDto[]) that I need to display. I
actually
> have the full list I send in (userContacts), and the list of objects
> selected in the alertForm (alertContacts).
> I can display the form for an initial addAlert() just fine. I have not
> gotten any further.
> I do not seem t even get to my add() method ever. And even if I turn the
log
> level to debug, I do not seem to get any more information on the
stacktrace.
>
> Please help me on this as I am very frustrated and confused.
>
>
> StackTrace for alertForm Load, and then submission:
> ==
> 10:59:25,965 INFO  [AlertActions] userContacts[] length: 3
> 10:59:25,975 INFO  [AlertActions]
> ==
> 10:59:25,975 INFO  [AlertActions] Must be a new alert then
> 10:59:25,985 INFO  [AlertActions]
> ==
> 10:59:25,985 INFO  [AlertActions] alertDto: {alertId= userId=1 subject=
> startDate=null reoccurring= gracePeriodDays= gracePeriodHours=
> endingDate=Thu May 29 10:59:24 CEST 2003 startingLocation=null
> endingLocation=null status= safeConfirm= details= noteToContactees=}
> 10:59:25,995 INFO  [AlertActions]
> ==
> 10:59:45,944 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,944 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,954 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,954 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,984 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 11:00:55,504 INFO  [SecurityContextFilter] processing request /alert.do
> 11:00:55,544 ERROR [SecurityContextFilter] Exception
> javax.servlet.ServletException: BeanUtils.populate
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098)
> at
>
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:816)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
> at
>
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionSer
vlet.java:53)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:342)
> at
>
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContex
tFilter.java:102)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
> at
>
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilte
r.java:46)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:286)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler

Re: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread Mick Knutson
I actually have:


  
  
  
in the JSP, and I also tried using "alertContacts" as well as the name.



From: "David Graham" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: javax.servlet.ServletException: BeanUtils.populate
Date: Thu, 29 May 2003 12:57:32 -0600
I couldn't find any HTML field called alertContacts in your JSP.  If you 
want alertContacts to hold the selected values, you need to have a form 
control called alertContacts.

I normally populate the list from a collection I store in the session or 
request and use a form bean property to save what the user submitted.

David

Sorry, but this is urgent to me, and am very sorry to imply anything 
toward, or against anyone else.

I am having this error when I submit the form. I can display the form 
seemingly fine. I have about 19 forms that are fairly similiar currently, 
and they all submit just fine.
I have gone through this with a fine tooth comb, but am not seeing any 
differences in the Husted.com examples for LookupDispatchAction. I also 
see other people that have the error, but seem to have much more stack 
trace, and I have no idea what the cause would/should actually be.
So, I have started to remove items from the form, like the multi-select, 
but that did not seem to help.


From: "David Graham" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: URGENT: javax.servlet.ServletException: BeanUtils.populate
Date: Thu, 29 May 2003 12:34:23 -0600
FYI, marking posts as URGENT is generally considered rude as it implies 
your question is more important than everyone elses.  The error message 
indicates a problem populating your form bean from the request 
parameters.  Are having the problem when submitting the form or 
displaying it?  Is your form control named correctly?

David

I have an error that I have been working on for 3 solid days. i have 
searched the archives, but can't find my issue resolved anywhere.
I have an array of objects (ContactDto[]) that I need to display. I 
actually have the full list I send in (userContacts), and the list of 
objects selected in the alertForm (alertContacts).
I can display the form for an initial addAlert() just fine. I have not 
gotten any further.
I do not seem t even get to my add() method ever. And even if I turn the 
log level to debug, I do not seem to get any more information on the 
stacktrace.

Please help me on this as I am very frustrated and confused.

StackTrace for alertForm Load, and then submission:
==
10:59:25,965 INFO  [AlertActions] userContacts[] length: 3
10:59:25,975 INFO  [AlertActions] 
==
10:59:25,975 INFO  [AlertActions] Must be a new alert then
10:59:25,985 INFO  [AlertActions] 
==
10:59:25,985 INFO  [AlertActions] alertDto: {alertId= userId=1 subject= 
startDate=null reoccurring= gracePeriodDays= gracePeriodHours=
endingDate=Thu May 29 10:59:24 CEST 2003 startingLocation=null 
endingLocation=null status= safeConfirm= details= noteToContactees=}
10:59:25,995 INFO  [AlertActions] 
==
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,984 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11:00:55,504 INFO  [SecurityContextFilter] processing request /alert.do
11:00:55,544 ERROR [SecurityContextFilter] Exception
javax.servlet.ServletException: BeanUtils.populate
   at 
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098)
   at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
   at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:53)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http

RE: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread Mick Knutson
OK, it seems that when I removed the dates all together, then the submit 
works.
It did not work when I changed them to java.sql.Date objects.

So I am very confused now, as java.util.Date works on all my other forms. 
What am I suppose to use and why does java.util.Date _not_ work on this 
form, but does on 15 others?



---
Thanks...
Mick Knutson
---




From: "Steve Raeburn" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: URGENT: javax.servlet.ServletException: BeanUtils.populate
Date: Thu, 29 May 2003 12:20:56 -0700
I think it's your dates that might be the problem.

BeanUtils does not have a supplied converter for java.util.Date. Try using
java.sql.Date
You may need a helper method on your form that returns a correctly 
formatted
SQL date (-mm-dd).

Steve

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread James Mitchell
What is the value of button.add from your resource bundle?

--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org



- Original Message -
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 29, 2003 2:26 PM
Subject: URGENT: javax.servlet.ServletException: BeanUtils.populate


> I have an error that I have been working on for 3 solid days. i have
> searched the archives, but can't find my issue resolved anywhere.
> I have an array of objects (ContactDto[]) that I need to display. I
actually
> have the full list I send in (userContacts), and the list of objects
> selected in the alertForm (alertContacts).
> I can display the form for an initial addAlert() just fine. I have not
> gotten any further.
> I do not seem t even get to my add() method ever. And even if I turn the
log
> level to debug, I do not seem to get any more information on the
stacktrace.
>
> Please help me on this as I am very frustrated and confused.
>
>
> StackTrace for alertForm Load, and then submission:
> ==
> 10:59:25,965 INFO  [AlertActions] userContacts[] length: 3
> 10:59:25,975 INFO  [AlertActions]
> ==
> 10:59:25,975 INFO  [AlertActions] Must be a new alert then
> 10:59:25,985 INFO  [AlertActions]
> ==
> 10:59:25,985 INFO  [AlertActions] alertDto: {alertId= userId=1 subject=
> startDate=null reoccurring= gracePeriodDays= gracePeriodHours=
> endingDate=Thu May 29 10:59:24 CEST 2003 startingLocation=null
> endingLocation=null status= safeConfirm= details= noteToContactees=}
> 10:59:25,995 INFO  [AlertActions]
> ==
> 10:59:45,944 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,944 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,954 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,954 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,984 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 11:00:55,504 INFO  [SecurityContextFilter] processing request /alert.do
> 11:00:55,544 ERROR [SecurityContextFilter] Exception
> javax.servlet.ServletException: BeanUtils.populate
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098)
> at
>
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:816)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
> at
>
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionSer
vlet.java:53)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:342)
> at
>
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContex
tFilter.java:102)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
> at
>
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilte
r.java:46)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:286)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
> at
>
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:507)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
> at org.mortbay.http.HttpServer.service(HttpServer.java:863)
> at org.jboss.jetty.Jetty.service(Jetty.java:460)
> at
org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
> at
> org.mortb

Re: URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread David Graham
FYI, marking posts as URGENT is generally considered rude as it implies your 
question is more important than everyone elses.  The error message indicates 
a problem populating your form bean from the request parameters.  Are having 
the problem when submitting the form or displaying it?  Is your form control 
named correctly?

David

I have an error that I have been working on for 3 solid days. i have 
searched the archives, but can't find my issue resolved anywhere.
I have an array of objects (ContactDto[]) that I need to display. I 
actually have the full list I send in (userContacts), and the list of 
objects selected in the alertForm (alertContacts).
I can display the form for an initial addAlert() just fine. I have not 
gotten any further.
I do not seem t even get to my add() method ever. And even if I turn the 
log level to debug, I do not seem to get any more information on the 
stacktrace.

Please help me on this as I am very frustrated and confused.

StackTrace for alertForm Load, and then submission:
==
10:59:25,965 INFO  [AlertActions] userContacts[] length: 3
10:59:25,975 INFO  [AlertActions] 
==
10:59:25,975 INFO  [AlertActions] Must be a new alert then
10:59:25,985 INFO  [AlertActions] 
==
10:59:25,985 INFO  [AlertActions] alertDto: {alertId= userId=1 subject= 
startDate=null reoccurring= gracePeriodDays= gracePeriodHours=
endingDate=Thu May 29 10:59:24 CEST 2003 startingLocation=null 
endingLocation=null status= safeConfirm= details= noteToContactees=}
10:59:25,995 INFO  [AlertActions] 
==
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,944 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,954 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10:59:45,984 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11:00:55,504 INFO  [SecurityContextFilter] processing request /alert.do
11:00:55,544 ERROR [SecurityContextFilter] Exception
javax.servlet.ServletException: BeanUtils.populate
   at 
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098)
   at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
   at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:53)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
   at 
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
   at 
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilter.java:46)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
   at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
   at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
   at org.mortbay.http.HttpServer.service(HttpServer.java:863)
   at org.jboss.jetty.Jetty.service(Jetty.java:460)
   at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
   at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
   at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
   at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
   at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
   at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

alertActions.java::add(...): (LookupDispatchAction

Re: URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread Mick Knutson
Add Record


From: "James Mitchell" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: URGENT: javax.servlet.ServletException: BeanUtils.populate
Date: Thu, 29 May 2003 14:31:27 -0400
What is the value of button.add from your resource bundle?

--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org


- Original Message -
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 29, 2003 2:26 PM
Subject: URGENT: javax.servlet.ServletException: BeanUtils.populate
> I have an error that I have been working on for 3 solid days. i have
> searched the archives, but can't find my issue resolved anywhere.
> I have an array of objects (ContactDto[]) that I need to display. I
actually
> have the full list I send in (userContacts), and the list of objects
> selected in the alertForm (alertContacts).
> I can display the form for an initial addAlert() just fine. I have not
> gotten any further.
> I do not seem t even get to my add() method ever. And even if I turn the
log
> level to debug, I do not seem to get any more information on the
stacktrace.
>
> Please help me on this as I am very frustrated and confused.
>
>
> StackTrace for alertForm Load, and then submission:
> ==
> 10:59:25,965 INFO  [AlertActions] userContacts[] length: 3
> 10:59:25,975 INFO  [AlertActions]
> ==
> 10:59:25,975 INFO  [AlertActions] Must be a new alert then
> 10:59:25,985 INFO  [AlertActions]
> ==
> 10:59:25,985 INFO  [AlertActions] alertDto: {alertId= userId=1 subject=
> startDate=null reoccurring= gracePeriodDays= gracePeriodHours=
> endingDate=Thu May 29 10:59:24 CEST 2003 startingLocation=null
> endingLocation=null status= safeConfirm= details= noteToContactees=}
> 10:59:25,995 INFO  [AlertActions]
> ==
> 10:59:45,944 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,944 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,954 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,954 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,984 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 11:00:55,504 INFO  [SecurityContextFilter] processing request /alert.do
> 11:00:55,544 ERROR [SecurityContextFilter] Exception
> javax.servlet.ServletException: BeanUtils.populate
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098)
> at
>
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:816)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
> at
>
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionSer
vlet.java:53)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:342)
> at
>
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContex
tFilter.java:102)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
> at
>
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilte
r.java:46)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:286)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
> at
>
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.ja

Re: URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread James Mitchell
One other thing I noticed, you've got a potential circular reference in
/alert by specifying the input as /alert.do.

--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org



- Original Message -
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 29, 2003 2:26 PM
Subject: URGENT: javax.servlet.ServletException: BeanUtils.populate


> I have an error that I have been working on for 3 solid days. i have
> searched the archives, but can't find my issue resolved anywhere.
> I have an array of objects (ContactDto[]) that I need to display. I
actually
> have the full list I send in (userContacts), and the list of objects
> selected in the alertForm (alertContacts).
> I can display the form for an initial addAlert() just fine. I have not
> gotten any further.
> I do not seem t even get to my add() method ever. And even if I turn the
log
> level to debug, I do not seem to get any more information on the
stacktrace.
>
> Please help me on this as I am very frustrated and confused.
>
>
> StackTrace for alertForm Load, and then submission:
> ==
> 10:59:25,965 INFO  [AlertActions] userContacts[] length: 3
> 10:59:25,975 INFO  [AlertActions]
> ==
> 10:59:25,975 INFO  [AlertActions] Must be a new alert then
> 10:59:25,985 INFO  [AlertActions]
> ==
> 10:59:25,985 INFO  [AlertActions] alertDto: {alertId= userId=1 subject=
> startDate=null reoccurring= gracePeriodDays= gracePeriodHours=
> endingDate=Thu May 29 10:59:24 CEST 2003 startingLocation=null
> endingLocation=null status= safeConfirm= details= noteToContactees=}
> 10:59:25,995 INFO  [AlertActions]
> ==
> 10:59:45,944 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,944 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,954 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,954 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 10:59:45,984 INFO  [PropertyMessageResources] Initializing,
> config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
> 11:00:55,504 INFO  [SecurityContextFilter] processing request /alert.do
> 11:00:55,544 ERROR [SecurityContextFilter] Exception
> javax.servlet.ServletException: BeanUtils.populate
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098)
> at
>
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:816)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
> at
>
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionSer
vlet.java:53)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:342)
> at
>
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContex
tFilter.java:102)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
> at
>
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilte
r.java:46)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:286)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
> at
>
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:507)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
> at org.mortbay.http.HttpServer.service(HttpServer.java:863)
> at org.jboss.jetty.Jetty.service(Jetty.java:460)
> at
org.mortbay.h

Re: URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread Denis Avdic
I see that you are returning a value of userId in user contacts property 
in your JSP.   Now, I am not familiar with DynaForms, but you have the 
field defined as ContactDto type.  Could this be the problem?  Since you 
are returning a string and it is expecting a ContactDto type?
Can anyone confirm this or am I wrong?
I usually store the collection in one property (userContacts) and return 
the value in another property (returnedUserContacts).

Mick Knutson wrote:

I have an error that I have been working on for 3 solid days. i have 
searched the archives, but can't find my issue resolved anywhere.
I have an array of objects (ContactDto[]) that I need to display. I 
actually have the full list I send in (userContacts), and the list of 
objects selected in the alertForm (alertContacts).
I can display the form for an initial addAlert() just fine. I have not 
gotten any further.
I do not seem t even get to my add() method ever. And even if I turn 
the log level to debug, I do not seem to get any more information on 
the stacktrace.

Please help me on this as I am very frustrated and confused.


==
Thanks in advance for you help!

Mick knutson

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread Mick Knutson
I have tried adding java.lang.String[], and com.ContactDto[] and they 
both give the same error even after restarting the server.



From: Denis Avdic <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: URGENT: javax.servlet.ServletException: BeanUtils.populate
Date: Thu, 29 May 2003 14:52:57 -0400
I see that you are returning a value of userId in user contacts property in 
your JSP.   Now, I am not familiar with DynaForms, but you have the field 
defined as ContactDto type.  Could this be the problem?  Since you are 
returning a string and it is expecting a ContactDto type?
Can anyone confirm this or am I wrong?
I usually store the collection in one property (userContacts) and return 
the value in another property (returnedUserContacts).

Mick Knutson wrote:

I have an error that I have been working on for 3 solid days. i have 
searched the archives, but can't find my issue resolved anywhere.
I have an array of objects (ContactDto[]) that I need to display. I 
actually have the full list I send in (userContacts), and the list of 
objects selected in the alertForm (alertContacts).
I can display the form for an initial addAlert() just fine. I have not 
gotten any further.
I do not seem t even get to my add() method ever. And even if I turn the 
log level to debug, I do not seem to get any more information on the 
stacktrace.

Please help me on this as I am very frustrated and confused.


==
Thanks in advance for you help!

Mick knutson

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread Steve Raeburn
I think it's your dates that might be the problem.

BeanUtils does not have a supplied converter for java.util.Date. Try using
java.sql.Date

You may need a helper method on your form that returns a correctly formatted
SQL date (-mm-dd).

Steve


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread Steve Raeburn
Firstly, if you have java.util.Dates in your ActionForm, then BeanUtils
*will* throw an exception, so you need to at least change the dates in your
ActionForm (to Strings). I think the other values will work because there
are converters for Long etc., but I'm not sure this is best practice.

As I understand it, you should only ever use String and boolean properties
in an ActionForm because we're talking about an HTML form buffer here, not a
business object. I've been looking for the definitve reference on this -
I've found it before, but I can't find it right now.

Anyway, you've got only two options. Define your date fields as String or
java.sql.Date in your action form. If you do the latter then your users will
have to enter dates in the SQL date format which is -mm-dd, and
BeanUtils will cope. If you want them to be able to enter more user friendly
formats you must use Strings or find/create your own BeanUtils converter. I
haven't looked at that.

Ok, so now your field definition for your ActionForm looks like this:

  

Form validation will work correctly (using validator) because it uses String
parsing to validate date formats and if there is an error then the exact
String the user enters will be redisplayed for them to correct. (Another
reason to use Strings & booleans only).

This is where it gets messy (at least for me). In the Action I use BeanUtils
to bulk copy most of my properties from the ActionForm, but copy over the
Dates by parsing the Strings and setting my transfer bean manually. I don't
claim this to be elegant, but it works.

 TestBean myBean = new TestBean();

  // Get a Map of your form
  Map map = BeanUtils.describe(myBean);

  // Remove the problematic properties
  map.remove("startDate");

  // Auto-populate (with conversions) all the other properties
  BeanUtils.populate(myBean, map);

  // Manually set the other properties
  // Note: I'm using a fixed format here for simplicity,
  // You should probably condsider parsing based on your
  // Locale or your user's Locale
  SimpleDateFormat df = new SimpleDateFormat("MM/dd/"); /
  try {
java.util.Date date =
   df.parse(BeanUtils.getProperty(form, "startDate"));
   myBean.setStartDate(date);
  } catch (ParseException e) {
   errors.add(
   ActionErrors.GLOBAL_ERROR,
   new ActionError("errors.date", "Date"));
  }

An alternative might be to split the date into three fields then you could
either combine these in your Action or use a helper on your ActionForm to
return a SQL formatted Date. A helper method could also be used to parse a
single field, returning a value that BeanUtils can cope with.

If anyone knows a better way of handling Dates from forms then please share
because this feels clunky and I don't like clunk.

Steve

> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: May 29, 2003 12:24 PM
> To: [EMAIL PROTECTED]
> Subject: RE: URGENT: javax.servlet.ServletException: BeanUtils.populate
>
>
> Do you mean change m dynaForm to java.sql.Date types, then use a
> DateUtil in
> my Action Class to convert them? (to what then?)
>
>
> >From: "Steve Raeburn" <[EMAIL PROTECTED]>
> >Reply-To: <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: URGENT: javax.servlet.ServletException: BeanUtils.populate
> >Date: Thu, 29 May 2003 12:20:56 -0700
> >
> >I think it's your dates that might be the problem.
> >
> >BeanUtils does not have a supplied converter for java.util.Date.
> Try using
> >java.sql.Date
> >
> >You may need a helper method on your form that returns a correctly
> >formatted
> >SQL date (-mm-dd).
> >
> >Steve
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: again ArrayList and javax.servlet.ServletException: BeanUtils.populate exception

2002-09-27 Thread thorsten_soebirk

Hi,

I think the problem is that your  and  tags both 
reference the "folders" property. Judging by your code, the  tag is 
doing what you expect i.e. getting the list of folders the user can select from. 
However, your  tag is telling Struts to try to assign the selected 
folder back to the form bean by calling setFolders (albeit indirectly via 
BeanUtils.populate), but setFolders is expecting an ArrayList rather than  a single 
item from a list which your submit is sending back as a String.

I suspect what you need to do is introduce an additional property called e.g. 
selectedFolder into your form bean. Your jsp would then look like this:

   
 
   

...and you will need corresponding setter and getter methods in the bean. You can then 
also have getSelectedFolder() return a default value.

Regards,
Thorsten

> Hi,
>   I'm looking for any hint or advice. I've got code like this 
> on my jsp 
> page:
> 
>   
> 
>   
> 
> property "folders" is a property of my "ModulePathForm" bean:
> 
> /* ModulePathForm.java */
> public class ModulePathForm extends ActionForm{
> 
> private ArrayList folders;
> 
> public ModulePathForm() {
> super();
> folders = new ArrayList();
> }
> 
> public ArrayList getFolders() {
> return this.folders;
> }
>
> public void setFolders(ArrayList folders) {
> this.folders = folders;
> }
> }
> 
> the values from the bean are shown, but when I click Submit, 
> I get this 
> exception:
> 
> javax.servlet.ServletException: BeanUtils.populate
>   at 
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
>   at 
> org.apache.struts.action.ActionServlet.processPopulate(ActionS
> ervlet.java:2061)
>   at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1563)
>   at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
> 
> .
> root cause:
> 
> java.lang.IllegalArgumentException: argument type mismatch

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: again ArrayList and javax.servlet.ServletException: BeanUtils.populate exception

2002-09-27 Thread Martin Grebac

  No, it doesn't work also. I get the same exception everytime.

  I want to have the possibility to select multiple folders, so I did 
what you suggested: added property selectedFolders of type String[], so 
I added this code to my ModulePathForm:

private String[] selectedFolders;

public String getSelectedFolders(int index) {
return this.selectedFolders[index];
}
   
public String[] getSelectedFolders() {
return this.selectedFolders;
}
   
public void setSelectedFolders(int index, String selectedFolders) {
this.selectedFolders[index] = selectedFolders;
}
   
public void setSelectedFolders(String[] selectedFolders) {
this.selectedFolders = selectedFolders;
}

and the jsp page looks the same as you wrote:

   
  
   

 I really don't know where is the problem. Really appreciate any other 
hints.
 
 Thanks,
  Martin



[EMAIL PROTECTED] wrote:

>Hi,
>
>I think the problem is that your  and  tags both 
>reference the "folders" property. Judging by your code, the  tag is 
>doing what you expect i.e. getting the list of folders the user can select from. 
>However, your  tag is telling Struts to try to assign the selected 
>folder back to the form bean by calling setFolders (albeit indirectly via 
>BeanUtils.populate), but setFolders is expecting an ArrayList rather than  a single 
>item from a list which your submit is sending back as a String.
>
>I suspect what you need to do is introduce an additional property called e.g. 
>selectedFolder into your form bean. Your jsp would then look like this:
>
>   
> 
>   
>
>...and you will need corresponding setter and getter methods in the bean. You can 
>then also have getSelectedFolder() return a default value.
>
>Regards,
>Thorsten
>
>  
>
>>Hi,
>>  I'm looking for any hint or advice. I've got code like this 
>>on my jsp 
>>page:
>>
>>  
>>
>>  
>>
>>property "folders" is a property of my "ModulePathForm" bean:
>>
>>/* ModulePathForm.java */
>>public class ModulePathForm extends ActionForm{
>>
>>private ArrayList folders;
>>
>>public ModulePathForm() {
>>super();
>>folders = new ArrayList();
>>}
>>
>>public ArrayList getFolders() {
>>    return this.folders;
>>}
>>   
>>public void setFolders(ArrayList folders) {
>>this.folders = folders;
>>}
>>}
>>
>>the values from the bean are shown, but when I click Submit, 
>>I get this 
>>exception:
>>
>>javax.servlet.ServletException: BeanUtils.populate
>>  at 
>>org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
>>  at 
>>org.apache.struts.action.ActionServlet.processPopulate(ActionS
>>ervlet.java:2061)
>>  at 
>>org.apache.struts.action.ActionServlet.process(ActionServlet.j
>>ava:1563)
>>  at 
>>org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
>>
>>.
>>root cause:
>>
>>java.lang.IllegalArgumentException: argument type mismatch
>>
>>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>




Re: again ArrayList and javax.servlet.ServletException: BeanUtils.populate exception

2002-09-27 Thread Eddie Bush

It will be examined and addressed in due time.  If you have time to "get 
hacking on it" (wrt the source that is) and happen to be able to fix it, 
you should attach a "diff -u" of your changes to the bug so that it can 
be easily patched by a committer.

Martin Grebac wrote:

> Hi,
> so here is the Bugid:
>
>
>13075
>
> . May I expect something's gonna happen with it, or will it die in the 
> deeps of the bug database ;O))
>
> Martin 


-- 
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: