commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28438] New: - java.lang.OutOfMemoryError in BetWixt
Date Fri, 16 Apr 2004 17:45:43 GMT
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


Mime
View raw message