Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A syntax error in JSP compile should consistently output error JSPG0077E #23425

Closed
epj opened this issue Nov 21, 2022 · 3 comments · Fixed by #23660
Closed

A syntax error in JSP compile should consistently output error JSPG0077E #23425

epj opened this issue Nov 21, 2022 · 3 comments · Fixed by #23660
Assignees
Labels
in:Web Components release bug This bug is present in a released version of Open Liberty release:23001 team:Sirius

Comments

@epj
Copy link
Contributor

epj commented Nov 21, 2022

Describe the bug
JSPG0077E needs to be output to messages.log and console.log in all cases of a JSP Syntax Error (JspCoreException). This message will be missing if the syntax error is hit in a JSP that previously wasn't compiled and precompile is disabled.

Steps to Reproduce
Have a war containing a jsp with this line in it:
<%="hello jsp">
Attempting to call it, without precompile, results in a HTTP 500 error, but nothing is logged if it hadn't previously compiled on the server.

Expected behavior
The following message is output to messages.log and console.log from a JSP syntax error if precompile is enabled. This message is missing without precompile if the servlet did not previously exist.

[WARNING ] Unexpected exception while processing jsp /xxxx.jsp
/xxxx.jsp(2,1) JSPG0077E: End of file reached while processing scripting element "yyyyy">^M
at Line: 1 Col: 1

Diagnostic information:

  • OpenLiberty Version: all
  • Affected feature(s): jsp-2.2, jsp-2.3
  • Java Version: all
  • server.xml configuration: see above
  • If it would be useful, upload the messages.log file found in $WLP_OUTPUT_DIR/messages.log
@epj epj added in:Web Components release bug This bug is present in a released version of Open Liberty team:Sirius labels Nov 21, 2022
@epj epj self-assigned this Nov 21, 2022
@epj epj added this to General Issues in Web Tier Team via automation Nov 21, 2022
@pnicolucci
Copy link
Member

@epj are these messages in console.log and messages.log?

@epj
Copy link
Contributor Author

epj commented Nov 22, 2022

Yes. I'll update the text above to clarify.

@e30532
Copy link

e30532 commented Dec 6, 2022

@epj could you tell me the liberty version which will include the fixed code?

@epj epj closed this as completed in #23660 Jan 3, 2023
Web Tier Team automation moved this from General Issues to Completed Tasks Jan 3, 2023
@mbroz2 mbroz2 changed the title A syntax error in JSP compile should consistantly output error JSPG0077E A syntax error in JSP compile should consistently output error JSPG0077E Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:Web Components release bug This bug is present in a released version of Open Liberty release:23001 team:Sirius
Projects
Archived in project
Web Tier Team
  
Completed Tasks
Development

Successfully merging a pull request may close this issue.

4 participants