cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Tomcat error after installing CPS

Alex1988
12-Amethyst

Tomcat error after installing CPS

Hi all,

 

We installaled CPS26 on our Dev VM's which also have the customization we use deployed in order to test our customization against the CPS26. At the moment we are faced to an error that says:

The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit. This happens while trying to create a document and seems to be caused by the createDocumentSetTypeAndAttributesWizStep.jsp in which we modified the value of a variable from true to false. 

 

Have you seen this type of error before? We already contacted PTC and they offered the solution from the following case:

https://www.ptc.com/en/support/article?n=CS174031 but without any success. 

 

Thanks. 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Alex1988,

I remember I had exactly same issue discovered while developing customization.

Same was resolved with the KB article you mentioned.

Kindly note that you need to restart Windchill Method Server & Clear Tomcat & Info*Engine cache before you try this again.

You may also need to clear browser cache as well.

 

It likely means you have too much code in your JSP.
In fact, since 2002 when JSP 2 was introduced, you shouldn't have any code at all in your JSP. 
Refactor your view to modern practices and this problem will never happen.

In such case the best option is to write some code in other JSPs and include them in your main JSP. And inlcude them using <jsp:include> and not <@ include>.
(Refer: http://www.coderanch.com/t/584222/JSP/java/code-method-jspService-HttpServletRequest-HttpServletResponse)

 

Thanks,

Shirish

View solution in original post

2 REPLIES 2

Hi @Alex1988,

I remember I had exactly same issue discovered while developing customization.

Same was resolved with the KB article you mentioned.

Kindly note that you need to restart Windchill Method Server & Clear Tomcat & Info*Engine cache before you try this again.

You may also need to clear browser cache as well.

 

It likely means you have too much code in your JSP.
In fact, since 2002 when JSP 2 was introduced, you shouldn't have any code at all in your JSP. 
Refactor your view to modern practices and this problem will never happen.

In such case the best option is to write some code in other JSPs and include them in your main JSP. And inlcude them using <jsp:include> and not <@ include>.
(Refer: http://www.coderanch.com/t/584222/JSP/java/code-method-jspService-HttpServletRequest-HttpServletResponse)

 

Thanks,

Shirish

Hi Shirish,

 

We were starting from the wrong place. In the end we got the .jsp's from the updated version and applied our customization there. It is important here to start from a clean environment and compare the jsp files from the existing customization with the ones from the updated Windchill. 

 

Your solution is correct.

 

Alex

Top Tags