Re: wscompile error

From: Doug Kohlert <>
Date: Wed, 25 Jun 2003 13:43:11 -0700

This is cause when too many objects need to be serialized. You should
be able to modify the file to not have
such a large method. Just break it up into smaller methods and recompile
all of the generated code. Use the -keep option to tell wscompile not to
delete the source files.

Suresh wrote:
> After compiling a config.xml file using the tool, I am seeing
> the following warning message:
> ${SOMEPATH}/ This code requires
> generating a method with more than 64k butes. Virtual machines may refuse
> the resulting class file.
> registerSerializer(mapping, SOMECLASS, serializer);
> Any idea what the error could be? I am pretty sure I do not have any long
> methods etc.
> Suresh

Doug Kohlert
Java Software Division
Sun Microsystems, Inc.
phone: 503 345-9806