You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/04/16 19:45:43 UTC

DO NOT REPLY [Bug 28438] New: - java.lang.OutOfMemoryError in BetWixt

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28438>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28438

java.lang.OutOfMemoryError in BetWixt 

           Summary: java.lang.OutOfMemoryError in BetWixt
           Product: Commons
           Version: 1.0 Alpha
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Betwixt
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jianwshen@yahoo.com
                CC: jianwshen@yahoo.com


BetWixt has java.lang.OutOfMemoryError issue when registry two linked classes.

There is the scenario:
  
There are two classes LookupHeader and LookupLine.

LookupHeader has a list to hold LookupLine.

LookupLine has two methods to set and get LookupHeader.

The run time error message is:
java.lang.OutOfMemoryError
Exception in thread "main"

Please help to solve this bug.  

Here is the sample Java code:

import java.util.ArrayList;
import java.util.List;
public class LookupHeader 
{
    protected String lookupTypeKey;
    protected List lookupValueList;

    public String getLookupTypeKey()
    {
        return lookupTypeKey;
    }

    public void setLookupTypeKey(String key)
    {
        this.lookupTypeKey = key;
    }

    public List getLookupValues()
    {
        return lookupValueList;
    }

    public void addLookupValue(LookupLine line)
    {
        if (lookupValueList == null)
        {
            lookupValueList = new ArrayList();
        }
        lookupValueList.add(line);
    }
}

public class LookupLine 
{
    protected Long lookupValueId;
    protected LookupHeader lookupHeader;

    public Long getLookupValueId()
    {
        return lookupValueId;
    }

    public void setLookupValueId(Long value)
    {
        this.lookupValueId = value;

    }

    public LookupHeader getLookupHeader()
    {

        return lookupHeader;
    }

    public void setLookupHeader(LookupHeader header)
    {
        this.lookupHeader = header;
    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org