URGENT: XPages: Error 500: exceeding the 65535 bytes limit

Hi,

I’d like to query you for this problem:

I’ve 2 XPages with hundreads of fields, it compile just fine, but on the web I get a Error 500 (HTTP Web Server: Command Not Handled Exception ).

Checking the session log:

javax.servlet.ServletException: Unresolved compilation problem:

The code for the static initializer is exceeding the 65535 bytes limit

at com.ibm.xsp.webapp.FacesServlet.handleError(FacesServlet.java:416)

at com.ibm.xsp.webapp.FacesServlet.renderErrorPage(FacesServlet.java:315)

at com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:144)

at com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:131)

Deleting soooome fields solve the error, but all fields are mandatory! so this is a no go solution.

at the moment we can’t split the XPages.

any ideas?

(Server Domino last patch)

PS: the only post found on this error is about another product:

http://www-01.ibm.com/support/docview.wss?rs=0&q1=static+initializer+is+exceeding+the+65535&uid=swg21400481&loc=en_US&cs=utf-8&cc=us&lang=en

Subject: no ideas?

no ideas?

Subject: Please open a PMR.

Although I am not sure why a form would need 100s of fields in it. There might be a better way to achieve the same result.

Subject: I know

I concurr with you, but …it’s better if I can solve the error.

thank you

Subject: founded it!

the error is caused by xspBuilder:

it made a class to big!

see the java Class specifications.

With a little hack on the *.java i’ve solved it

Subject: XPages: Error 500: exceeding the 65535 bytes limit

Eros, would you mind sharing your solution. I am having the same problem.