cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiloliddin Karimov <HKari...@central.nbu.com>
Subject xmlForm: java.lang.ArrayStoreException
Date Thu, 19 Dec 2002 16:20:19 GMT
Hi all,

I am trying to use int array on MyBean attribute (I about xmlForm):
When I try NextPage after I choose some more item (by xf:selectMany) I get
error:

java.lang.ArrayStoreException at java.lang.System.arraycopy(Native Method)
at org.apache.cocoon.components.xmlform.Form.setValue(Form.java:256) at
org.apache.cocoon.components.xmlform.Form.populate(Form.java:433) at
org.apache.cocoon.acting.AbstractXMLFormAction.act(AbstractXMLFormAction.jav
a:287) at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:136) at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83) at  
...


my bean some like:

public class MyBean {

  private int intAttrArray[];
  private HashMap allInt;  // for xf:selectMany
  ...

  public VendorAccount () {
    vendorProduct = new int[] { };
    allInt = new HashMap();
    allInt.put( "1", "Product 001" );  // String.valueOf(1)
    ...
  }
  public int[] getMyIntArray() { return intAttrArray; }
  public void setMyIntArray( int[] v ) { intAttrArray = v; }
  ...



Regards,
Hill

Cocoon 2.1 -dev, Tomcat 4.0, Java 1.4, WinXP

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message