0 Replies Latest reply: Jun 7, 2012 2:32 AM by 942166 RSS

    javax.servlet.jsp.JspException: Can't insert page '/common/MenuFiles.jsp' :

    942166
      Hi,
      I am using WebLogic 11g.
      In my application am getting following exception in my console

      ####<Jun 4, 2012 2:03:47 AM CDT> <Error> <HTTP> <cuscmas1.hillscte.com> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1338793427049> <BEA-101017> <[ServletContext@2141448872[app:amsatms module:/paws path:/paws spec-version:null]] Root cause of ServletException.
      javax.servlet.jsp.JspException: Can't insert page '/common/MenuFiles.jsp' : Connection reset
      at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.processException(InsertTag.java:956)
      at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:884)
      at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
      at jsp_servlet._tdms._common.__tdmspage._jsp__tag1(__tdmspage.java:530)
      at jsp_servlet._tdms._common.__tdmspage._jspService(__tdmspage.java:427)
      at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

      Previously I was used OC4J, in that I didnt get any error.
      My MenuFiles.jsp is
      <%@ page import="com.hillspet.atms.common.constants.IATMSConstants" %>
      <%@ page import="com.hillspet.atms.common.constants.AnimalConstants" %>
      <%@ page import="com.hillspet.atms.common.constants.IATMSAccessConstants" %>
      <%@ page import="com.hillspet.atms.collectionkit.util.ICollectionKitConstants" %>
      <%@ page import="com.cte.common.IConstants" %>
      <%@ page import="com.cte.common.dto.UserDTO,com.hillspet.atms.common.util.ATMSUtil" %>
      <%@ page import="java.util.ArrayList" %>

      <%@page import="com.hillspet.ahms.animal.util.IAHMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil, com.hillspet.ahms.animal.dto.AnimalBaseDTO"%>
      <%@page import="com.hillspet.ahms.animal.util.IAHMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil, com.hillspet.ahms.animal.dto.AnimalBaseDTO"%>
      <%@ page import="com.cte.common.dto.UserDTO, com.cte.common.IConstants,     com.hillspet.admin.common.util.HillspetUtil, java.util.ArrayList, com.cte.common.ums.dto.RoleListEntryDTO,java.util.Arrays,java.util.Collections"%>
      <%@page import="com.hillspet.tdms.common.util.ITLMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil"%>



      <%
      boolean isInternal = false;
      if(session.getAttribute("ANIMAL_BASE_DTO")!=null ){
           AnimalBaseDTO animalSummaryDetailsDTO = (AnimalBaseDTO) session.getAttribute("ANIMAL_BASE_DTO");
           if(animalSummaryDetailsDTO.getIsExternal()==0){
                isInternal = true;
           }
      }
      %>

      <%
      UserDTO dto = (UserDTO) session.getAttribute(IConstants.USER_OBJECT);
           ArrayList userPermissionsList = dto.getUserPermissionList();
      boolean isAdmin = dto.getRoleList().contains("" + IATMSConstants.ATMS_ADMIN_ROLE_ID);
      //System.out.println("User Permission list is :" + dto.getUserPermissionList());
           java.util.ArrayList rolesList = dto.getRoleList();

           boolean isEUUser = HillspetUtil.checkEUAccess(request, dto);

           ArrayList atmsRolesList=new ArrayList(Arrays.asList ("126","125","109","108","107","106","105","114","103","102","101","100","99","98","97","96","95","93","90","89","88","87","86","67","111","85","83","73","84","116","113", "127","128","130","132","133","134","135","136"));
      boolean displayATMSMenus = !Collections.disjoint(rolesList, atmsRolesList);
      %>

      <script>
           var breadcrumb = "<%=IATMSConstants.SEARCH_AND_VIEW%>";


      /*
      Initialize and render the MenuBar when its elements are ready
      to be scripted.
      */

      YAHOO.util.Event.onContentReady("vmenu", function () {

      /*
      Instantiate a MenuBar: The first argument passed to the
      constructor is the id of the element in the page
      representing the MenuBar; the second is an object literal
      of configuration properties.
      */

      var oMenuBar = new YAHOO.widget.MenuBar("vmenu", {
      autosubmenudisplay: true,
      hidedelay: 750,
      lazyload: true });

      /*
      Define an array of object literals, each containing
      the data necessary to create a submenu.
      */

      var aSubmenuData = [


                          <%
                                    if(rolesList.contains("67") || rolesList.contains("84") || rolesList.contains("118") || rolesList.contains("111") || rolesList.contains("90") || rolesList.contains("83") || rolesList.contains("85") || rolesList.contains("88") || rolesList.contains("82") || displayATMSMenus){
                          %>

                          {
      id: "Tab1",
      itemdata: [
      <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.CREATE_ANIMNAL_PERMISSION)) {%>
      { text: "Add Animal", url: "addAnimalGeneralInfoAction.do" },
                                              <%}%>
                                                        <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.CREATE_ANIMNAL_PERMISSION)) {%>
      { text: "Record Manual Feeding", url: "saveChangeDietAction.do?command=view",disabled:true },
                                                   <%}%>
                                                   <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_ANIMNAL_PERMISSION)) {%>
                                         { text: "Search Animals", url: "animalSearchAction.do?command=view" },
                                              <%}%>
                                         <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_IMAGES)) {%>
                                         { text: "Search Images",url: "animalImageSearchAction.do?command=view" },
                                         <%}%>
                                         <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_IMAGES)) {%>
                                         { text: "Capture Images",url: "captureImageAction.do?command=view" },
                                         <%}
                                         if(!rolesList.contains("95") && !rolesList.contains("98")){ %>

                                              { text: "Animal Panels", url: "animalpanelList.do?command=view&searchFlag=fromMenu" },

      <% }
                                              if (dto.getUserPermissionList().contains(
      AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)|| dto.getUserPermissionList().contains(
      AnimalConstants.AR_VIEW_LIST_OF_RECOMMENDATION_PERMISSION)) {

      %>

                     { text: "Animal Recommendation",
      submenu: {
      id: "subtab11",
      itemdata: [
      <%
      if (dto.getUserPermissionList().contains(AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)) {
      %>
      { text: "Recommend Animals", url: "recommendedAnimal.do?command=view" },
      //{ text: "Reserve / Un-reserve", url: "../ATMS/reserveUnreserve.html"},
      <%}%>
      <%
                                              if (dto.getUserPermissionList().contains(
      AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)|| dto.getUserPermissionList().contains(
      AnimalConstants.AR_VIEW_LIST_OF_RECOMMENDATION_PERMISSION)) {

      %>
      { text: "View Recommendations", url: "recommendedAnimalList.do?command=view"},
      <%}%>
      ]

      }
      },

                          <%} else {%>
                               { text: "Animal Recommendation", url: "#" , disabled: true},

                               <%}%>


                                         { text: "Move Animal",
                                         submenu: {
      id: "subtab15",
      itemdata: [
                                                                  <% if( isInternal ){%>
      { text: "Change Location", url: "manageAnimalLocationAction.do?command=viewHistory" },
                                                                  <%}%>
      <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.ANML_DISPOSITION_PERMISSION)) {%>
                                                                  { text: "Adoption Record", url: "animalDispositionAction.do?command=view" },
                                                                  <%}%>
      ]

      }
                                         },



      ]
      },

      {
      id: "Tab2",
      itemdata: [
                                         <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SCHEDULE_FMT)) {%>
      { text: "Schedule Facility Maintenance Task ", url: "scheduleFMTActionForward.do?command=forward", disabled: false },
                                              <%}%>
                                         <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SCHEDULE_GROUP_TASK) || rolesList.contains("99")) {%>
                                         { text: "Schedule Task", url: "groupTaskSearchAction.do?command=view" },
                                         <% } %>
                                         { text: "Daily Task List",
                                         submenu: {
      id: "subtab21",
      itemdata: [

                                                                  { text: "Animal Care Task", url: "viewDailyTaskListAction.do?command=view&id=1&actSubTab=1"},


                                         <%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
                                                        <%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
                                                        { text: "Test Collections", url: "viewSMSmpleCollections.do?command=view&identifier=fromMenu" },
                                                        <% } %>
                                                        <%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
                                                        { text: "Health Collections", url: "viewBioHealthSmplCollections.do?command=view&identifier=fromMenu" },
                                                        <%}%>
                                         <%}%>




                                                             <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.DAILY_TASK_LIST_MEDICAL_TESTS)) {%>
      { text: "Medical Test", url: "viewDailyTaskListAction.do?command=view&id=2"},
      <%}%>
                                                             <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.DAILY_TASK_LIST_MEDICAL_EXAMS)) {%>
                                                                  { text: "Medical Exams", url: "viewDailyTaskListAction.do?command=view&id=3"},
                                                                       <%}%>
                                                                  { text: "Status Phenotype", url: "viewDailyTaskListAction.do?command=view&id=6"},
                                                                  { text: "Surgery/Procedure", url: "viewDailyTaskListAction.do?command=view&id=4"},
                                                                  { text: "Facility Maintenance ",submenu: {
                               id: "subtab777",itemdata: [
                                                                            { text: "Facility Maintenance Task",url: "viewDailyTaskListAction.do?command=view&id=5" },
                                                                            { text: "Search FMT Images",url: "searchFMTImageAction.do?command=view" }]
                                                                       }
                                                             },

                                                                  { text: "Record Group ACTs", url: "RecordWeightFecalScoreAction.do?command=view"},
      ]

      }
                                         },
                                         { text: "Administer Medication", url: "recordMedicationAdministrationAction.do?command=forward" },
                                              <%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.RECORD_OBSERVATION_PERMISSION)) {%>
                                         { text: "Observations",
                                                   submenu: {
      id: "subtab222",
      itemdata: [
                                                                  { text: "Search Observations",url: "recordObservationsAction.do?command=view" },
                                                                  { text: "Record Observations",url: "addAnimalObservationAction.do?command=add&page=record&source=monitor" },
      ]

           }

                                              },
                                         <%}%>


                                         { text: "Shared Feed Diet Assignment", url: "RecordWeightFecalScoreAction.do?command=viewDefaultDiet" },
                                         <%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.TRCL_PRINT_LABELS_LIST) || HillspetUtil.checkAccess(request,IATMSAccessConstants.HRCL_PRINT_LABELS_LIST)) {%>
                                         { text: "Print Labels",
                                         submenu: {
      id: "subtab211",
      itemdata: [
                                                                  <%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.TRCL_PRINT_LABELS_LIST)) {%>
                                                                  { text: "Test Collections", url: "printLabelsAction.do?command=viewTests"},
                                                                  <%}%>
                                                                  <%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.HRCL_PRINT_LABELS_LIST)) {%>
      { text: "Health Collections", url: "printLabelsAction.do?command=viewHealthCols"},
                                                                  <%}%>


      ]

      }
                                         },
                                         <%}%>
                                         //{ text: "Controlled Drug Inventory", url: "#" , disabled: true},

      ]
      },

                               <%}%>


      <%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES )||
                                         HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || !dto.getRoleList().contains("123") && !dto.getRoleList().contains("82") ) {%>
      {
      id: "Tab3",
      itemdata: [

      { text: "Sample Management",
      submenu: {
      id: "subtab41",
      itemdata: [
                                         <%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES )||
                                         HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || !dto.getRoleList().contains("131") ) {%>
      { text: "Samples Pending Receipt",
                                              submenu: {
                                                   id: "subtabRecieve",
                                                        itemdata: [
                                                             <%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES)) {%>
                                                        { text: "Biological Test Collections", url: "fetchLabLocationDetailsAction.do?command=forward" , disabled: false},
                                                        <%}%>
                                                             <%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
                                                        { text: "Biological Health Collections", url: "recieveTestSamplesAction.do?command=forward" , disabled: false},
                                                        <%}%>
                                                        <%if(!dto.getRoleList().contains("706")) {%>
                                                        { text: "Non Biological Collections", url: "receiveNonBiologicalSamplesAction.do?command=viewNBSamples"}
                                                        <% } %>
                                                        ]
                                              }
                                         },
                                              <%}%>




      <%
      if(HillspetUtil.checkAccess(request,IATMSAccessConstants.LAB_SM_VIEW_RECEIVED_NON_BIO_SMPLS)||HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_HEALTH_SAMPLES) || HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_TEST_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
      { text: "Samples Received",
                                              submenu: {
                                                   id: "subtabRecieved",
                                                        itemdata: [
      <%
      if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_TEST_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>

                                                        { text: "Biological Test Collections", url: "recievedTestSamplesAction.do?command=forward" , disabled: false},
      <%}%>
      <%
      if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") ) {%>
                                                        { text: "Biological Health Collections", url: "receivedBioTestSamplesAction.do?command=forward" , disabled: false},
      <%}%>
      <%
      if(HillspetUtil.checkAccess(request,IATMSAccessConstants.LAB_SM_VIEW_RECEIVED_NON_BIO_SMPLS) ) {%>
                                                        { text: "Non Biological Collections", url: "receivedNonBiologicalSamplesAction.do?command=viewNBSamples"}
      <%}%>

                                                        ]
                                              }
                                         },
      <%}%>

                                    <%if(HillspetUtil.checkAccess(request,"VIEW_SAMPLE_BATCHES") || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")||dto.getRoleList().contains("706")) {%>
      { text: "Sample Batches", url: "viewSampleBatches.do?command=view" , disabled: false},
                                         <%}%>
                                         <%     if (dto.getUserPermissionList().contains("OUTSIDE_LAB_SAMPLES_LIST") || dto.getRoleList().contains("131") || dto.getRoleList().contains("706")){ %>
                     { text: "External Lab Samples", url: "outsideLabSamplesAction.do?command=view" , disabled: false},
                                         <% } %>

                               <%
                                              if (dto.getUserPermissionList().contains(
      ICollectionKitConstants.GENERATE_CK_TEMPLATE) ) { %>
                               { text: "Sample Collection Kits",
      submenu: {
      id: "subtab421",
      itemdata: [
                                         <%
                                              if (dto.getUserPermissionList().contains(
      ICollectionKitConstants.GENERATE_CK_TEMPLATE)){ %>
      { text: "Generate Collection Kits", url: "ckCreateTemplateAction.do?command=goToGenerateCkKits" , disabled: false},
                                         <% } %>
                               <%
                                              if (dto.getUserPermissionList().contains(
      ICollectionKitConstants.GENERATE_CK_TEMPLATE) ){ %>
                               { text: "Search & View", url: "ckCreateTemplateAction.do?command=goToCKSearch&fromMenu=true" },
                               <%}%>

                               ]

      }
      },
                               <%}%>
      <%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SMIN_VIEW_SAMPLE_INVENTORY) ||
                                              HillspetUtil.checkAccess(request,IATMSAccessConstants.VIEW_FORMULA_INVENTORY) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || dto.getRoleList().contains("131")) {%>
      { text: "Sample Information",
                                              submenu: {
                                                   id: "subtabSampleInventory",
                                                        itemdata: [
                                                        <%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SMIN_VIEW_SAMPLE_INVENTORY) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
                                                        { text: "Biological Samples", url: "sampleInventoryAction.do?command=view" , disabled: false},
                                                        <%}%>
                                                        <%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.VIEW_FORMULA_INVENTORY)) {%>
                                                        { text: "Non Biological Samples", url: "viewInventory.do?command=view&fromLab=Y" , disabled: false},
                                                        <%}%>
      <% if ( HillspetUtil.checkAccess(request,"PENDING_ANALYSIS_REQUEST_LIST") ||
                HillspetUtil.checkAccess(request,"PENDING_ANALYSIS_REQUEST_READ") ) {
      %>
      { text: "Collected Samples New Request", url: "pendingAnalysisReqAction.do?command=view" , disabled: false },
      <%}%>

                                                        ]
                                              }
                                         },
                                         <%}%>

      ]