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

jsp compilation errors in branch issue-103-relative-urls. #113

Open
kateyang1998 opened this issue Mar 5, 2025 · 0 comments
Open

jsp compilation errors in branch issue-103-relative-urls. #113

kateyang1998 opened this issue Mar 5, 2025 · 0 comments

Comments

@kateyang1998
Copy link
Collaborator

There are 6 jsp files containing the compilation errors.

Mar 05, 2025 4:37:05 PM org.apache.jasper.JspC execute
SEVERE: org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [274] in the jsp file: [/oscarEncounter/immunization/config/ImmunizationSetDisplay.jsp]
Syntax error on token "%=", delete this token
271: }
272: s += "";
273:
274: s += "<a href="javascript:edit('" + id + "');">";
275:
276: s += "";
277:

An error occurred at line: [274] in the jsp file: [/oscarEncounter/immunization/config/ImmunizationSetDisplay.jsp]
request cannot be resolved
271: }
272: s += "";
273:
274: s += "<a href="javascript:edit('" + id + "');">";
275:
276: s += "";
277:

An error occurred at line: [274] in the jsp file: [/oscarEncounter/immunization/config/ImmunizationSetDisplay.jsp]
Syntax error, insert ";" to complete Statement
271: }
272: s += "";
273:
274: s += "<a href="javascript:edit('" + id + "');">";
275:
276: s += "";
277:

An error occurred at line: [274] in the jsp file: [/oscarEncounter/immunization/config/ImmunizationSetDisplay.jsp]
Syntax error, insert "}" to complete MethodBody
271: }
272: s += "";
273:
274: s += "<a href="javascript:edit('" + id + "');">";
275:
276: s += "";
277:

Stacktrace:
Mar 05, 2025 4:38:34 PM org.apache.jasper.JspC execute
SEVERE: org.apache.jasper.JasperException: file:/workspace/src/main/webapp/documentManager/incomingDocs.jsp (line: [236], column: [69]) According to TLD, tag [fmt:setBundle] must be empty, but is not
Mar 05, 2025 4:38:35 PM org.apache.jasper.JspC execute
SEVERE: org.apache.jasper.JasperException: file:/workspace/src/main/webapp/documentManager/MultiPageDocDisplay.jsp (line: [121], column: [69]) According to TLD, tag [fmt:setBundle] must be empty, but is not
Mar 05, 2025 4:38:37 PM org.apache.jasper.JspC execute
SEVERE: org.apache.jasper.JasperException: file:/workspace/src/main/webapp/oscarRx/ChooseAllergy2.jsp (line: [269], column: [151]) Unterminated [${] tag
Mar 05, 2025 4:39:05 PM org.apache.jasper.JspC execute
SEVERE: org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [98] in the jsp file: [/admin/adminbackupdownload.jsp]
Syntax error on token(s), misplaced construct(s)
95: Exception e = new Exception("Unable to find any files in the directory " + backuppath + ". (If this is the incorrect directory, please modify the value of backup_path in your properties file to reflect the correct directory).");
96: throw e;
97: }
98: for (int i = 0; i < contents.length; i++) {
99: bodd = bodd ? false : true;
100: if (contents[i].isDirectory() || contents[i].getName().equals("BackupClient.class") || contents[i].getName().startsWith("."))
101: continue;

An error occurred at line: [102] in the jsp file: [/admin/adminbackupdownload.jsp]
Syntax error on token "%=", @ expected
99: bodd = bodd ? false : true;
100: if (contents[i].isDirectory() || contents[i].getName().equals("BackupClient.class") || contents[i].getName().startsWith("."))
101: continue;
102: out.println("<a href="<%= request.getContextPath() %>/servlet/BackupDownload?filename=" + URLEncoder.encode(contents[i].getName()) + "'>" + contents[i].getName() + "");
103: long bytes = contents[i].length();
104: String display = FileUtils.byteCountToDisplaySize(bytes);
105:

Stacktrace:
Mar 05, 2025 4:39:51 PM org.apache.jasper.JspC execute
SEVERE: org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [160] in the jsp file: [/billing/CA/ON/viewMOHFiles.jsp]
The operator < is undefined for the argument type(s) String, void
157: String archiveElement = "";
158: if (folder == EDTFolder.INBOX || folder == EDTFolder.ARCHIVE) {
159: out.println("" + (folder == EDTFolder.INBOX ? archiveElement : "") + "" + contents[i].getName() + unzipMSG + "");
160: out.println("<a href="<%= request.getContextPath() %>/servlet/BackupDownload?filename=" + URLEncoder.encode(contents[i].getName()) + "'>Download");
161: } else {
162: out.println("" + contents[i].getName() + "");
163: }

An error occurred at line: [160] in the jsp file: [/billing/CA/ON/viewMOHFiles.jsp]
Syntax error on token "%=", @ expected
157: String archiveElement = "";
158: if (folder == EDTFolder.INBOX || folder == EDTFolder.ARCHIVE) {
159: out.println("" + (folder == EDTFolder.INBOX ? archiveElement : "") + "" + contents[i].getName() + unzipMSG + "");
160: out.println("<a href="<%= request.getContextPath() %>/servlet/BackupDownload?filename=" + URLEncoder.encode(contents[i].getName()) + "'>Download");
161: } else {
162: out.println("" + contents[i].getName() + "");
163: }

An error occurred at line: [160] in the jsp file: [/billing/CA/ON/viewMOHFiles.jsp]
Syntax error, type annotations are illegal here
157: String archiveElement = "";
158: if (folder == EDTFolder.INBOX || folder == EDTFolder.ARCHIVE) {
159: out.println("" + (folder == EDTFolder.INBOX ? archiveElement : "") + "" + contents[i].getName() + unzipMSG + "");
160: out.println("<a href="<%= request.getContextPath() %>/servlet/BackupDownload?filename=" + URLEncoder.encode(contents[i].getName()) + "'>Download");
161: } else {
162: out.println("" + contents[i].getName() + "");
163: }

An error occurred at line: [160] in the jsp file: [/billing/CA/ON/viewMOHFiles.jsp]
Syntax error, insert ")" to complete Expression
157: String archiveElement = "";
158: if (folder == EDTFolder.INBOX || folder == EDTFolder.ARCHIVE) {
159: out.println("" + (folder == EDTFolder.INBOX ? archiveElement : "") + "" + contents[i].getName() + unzipMSG + "");
160: out.println("<a href="<%= request.getContextPath() %>/servlet/BackupDownload?filename=" + URLEncoder.encode(contents[i].getName()) + "'>Download");
161: } else {
162: out.println("" + contents[i].getName() + "");
163: }

An error occurred at line: [321] in the generated java file: [/workspace/target/classes/jsp/billing/CA/ON/viewMOHFiles_jsp.java]
Syntax error, insert "else Statement" to complete IfStatement

An error occurred at line: [321] in the generated java file: [/workspace/target/classes/jsp/billing/CA/ON/viewMOHFiles_jsp.java]
Syntax error, insert "}" to complete Block

An error occurred at line: [321] in the generated java file: [/workspace/target/classes/jsp/billing/CA/ON/viewMOHFiles_jsp.java]
Syntax error, insert "}" to complete Block

Some of them are related to the <%= typo.
We will keep tracking on these issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Known Issue
Development

No branches or pull requests

1 participant