Glen Urban's Notes/Domino/XPages Blog

 
alt

Glen Urban

 
Glen Urban is a XPages / Lotus Notes/Domino developer/system admin located in the North East of England. He works for IBM Advanced Business Partner FoCul.

XPage: Unresolved compilation problem: The code for the static initializer is exceeding the 65535 bytes limit

Glen Urban  February 3 2011 02:27:18 PM
When adding an XPage front-end to an existing Notes client application I came across the following error message previewing the XPage:
"Unresolved compilation problem: The code for the static initializer is exceeding the 65535 bytes limit".

The original Notes form had lots of fields on. My new XPage worked at first but I hit the error as I added more fields. It looks as though I hit a Java limitation. Splitting the XPage fields onto separate Custom Controls resolved the problem.