MVsb Code too large

8 views
Skip to first unread message

rao...@gmail.com

unread,
Apr 30, 2013, 11:37:51 AM4/30/13
to spif...@googlegroups.com

Hello ,

I am trying to add data to CrayonColorsServlet.java by replacing >1000 strings. It gives "Code too large" error.

I am trying to read into CRAYON_COLORS array from a .properties file. I am running into problems here:

The data is not showed in MVsb.

static{
 
        COLOR_CODES = new ArrayList<String[]>();
        try{
            FileReader fr = new FileReader("Crayon.properties");
            BufferedReader br = new BufferedReader(fr);
            String line = br.readLine();
            while (line != null) {            
                COLOR_CODES.add(new String[]{line});              
            }           
           
        }catch (Exception e){
            throw new IllegalStateException("Couldn't load array file");
        }
       
    }

Please help.

regards.

AM Mohan Rao

Zack Grossbart

unread,
Apr 30, 2013, 11:57:06 AM4/30/13
to spif...@googlegroups.com
Hello Rao,

This sounds like you may be loading too many options for the simple
properties mechanism the CrayonColorsServlet uses. That servlet is just an
example and doesn't scale up to larger data sets. You might look into a
memory cache or a database mechanism to make this scale higher.

Thanks,
Zack
--
You received this message because you are subscribed to the Google Groups
"Spiffy UI" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to spiffy-ui+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages