AnsweredAssumed Answered

Custom JSP Error

Question asked by Shlomo Katz on May 1, 2019
Latest reply on May 13, 2019 by Shlomo Katz

Hello

Environment: G&L 7.1.1

I am running the following code:

<%@ page language="java" contentType="text/html; charset=windows-1255"
pageEncoding="windows-1255"%>
<%@ taglib uri="http://aveksa.com/guiframework.tld" prefix="gui" %>
<%@ page import="com.aveksa.gui.core.MainManager" %>
<%@ page import="com.aveksa.gui.objects.user.GuiEnterpriseUser" %>
<%@ page import="com.aveksa.gui.util.*" %>
<%@ page import="com.aveksa.gui.pages.changeRequest.edit.submit.RequestFormWizard" %>
<%@ page import="com.aveksa.gui.objects.ObjectStore" %>
<%
GuiEnterpriseUser user = MainManager.getCurrentUser();
ArrayList<GuiEnterpriseUser> selfList = new ArrayList<GuiEnterpriseUser>(1);
selfList.add(user);
String formname = "TempToPerm";

%>
<script>
<%= new RequestFormWizard().getURL(request, ObjectStore.getRequestFormByName(formname), null, selfList) %>
</script>

 

When I click on https://<servername>/aveksa/custom.jsp?page=TempToPerm.jsp 

I get a blank page and the following error in AveksaServer.log

05/01/2019 10:52:36.380 ERROR (default task-219) [com.aveksa.gui.core.filters.LoginFilter]
org.apache.jasper.JasperException: JBWEB004062: Unable to compile class for JSP:

JBWEB004060: An error occurred at line: 10 in the jsp file: /custom/jsp/TempToPerm.jsp
Type mismatch: cannot convert from EnterpriseUser to GuiEnterpriseUser
7: <%@ page import="com.aveksa.gui.pages.changeRequest.edit.submit.RequestFormWizard" %>
8: <%@ page import="com.aveksa.gui.objects.ObjectStore" %>
9: <%
10: GuiEnterpriseUser user = MainManager.getCurrentUser();
11: ArrayList<GuiEnterpriseUser> selfList = new ArrayList<GuiEnterpriseUser>(1);
12: selfList.add(user);
13: String formname = "TempToPerm";


JBWEB004060: An error occurred at line: 11 in the jsp file: /custom/jsp/TempToPerm.jsp
ArrayList cannot be resolved to a type
8: <%@ page import="com.aveksa.gui.objects.ObjectStore" %>
9: <%
10: GuiEnterpriseUser user = MainManager.getCurrentUser();
11: ArrayList<GuiEnterpriseUser> selfList = new ArrayList<GuiEnterpriseUser>(1);
12: selfList.add(user);
13: String formname = "TempToPerm";
14:


JBWEB004060: An error occurred at line: 11 in the jsp file: /custom/jsp/TempToPerm.jsp
ArrayList cannot be resolved to a type
8: <%@ page import="com.aveksa.gui.objects.ObjectStore" %>
9: <%
10: GuiEnterpriseUser user = MainManager.getCurrentUser();
11: ArrayList<GuiEnterpriseUser> selfList = new ArrayList<GuiEnterpriseUser>(1);
12: selfList.add(user);
13: String formname = "TempToPerm";
14:

 

Any thoughts about resolution?

Outcomes