cancel
Showing results for 
Search instead for 
Did you mean: 

limitation on hbj control in jsp ?

Former Member
0 Kudos
191

Has anyone experienced this wierd situation before.

I have a few hbj controls on my java iview. I am implementing a purchase order transaction (ME23N) as a java iview. Surely there are going to be a lot of hbj controls. Now I have reached a stage where it seems I cannot add any more. I get this error message. I have no idea why this is happening.

Error Message :

Caused by: java.lang.VerifyError: (class: pagelet/_sapportalsjsp_Form, method: doContent signature: (Lcom/sapportals/portal/prt/component/IPortalComponentRequest;Lcom/sapportals/portal/prt/component/IPortalComponentResponse;)V) Illegal target of jump or branch

Thanks for your help in advance

Sunil

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This is actually a problem not with the jsp size but with the service method in the generated servlet. This is a limit stated in the JVM specs here http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#88659 for all methods. I'm not sure what JVM version this document is for but I think it still holds true. This will be a problem until the jspc's become a little smarter about segmenting the service method. One workaround is to segment your jsp into multiple jsp's and use the <jsp:include> tag to combine them. This also promotes reuse if done well.

former_member81750
Active Participant
0 Kudos

Sunil

I had written a blog about this you can find it over here

Also look at the last comment in the blog.

Cheers

Pankaj

darrell_merryweather
Active Contributor
0 Kudos

Hi

This is because of the limitation of JSP pages to only 64k. Therefore, when you use a lot of HTMLb elements in your pages, the Java compiler cannot compile the page. Therefore, I would recommend using the Java API's of the GUI elements to perform the rendering instead of using the JSP