Я хочу знать, что не так в этом коде.Список, который имеет другой список
У меня есть список дат, а второй список содержит другие значения. Я пытаюсь поместить всю дату в список «daStock» и другие значения (строка, категория, продолжительность) в списке «stockss». У меня есть таблица на моей странице jsp. Я хочу, чтобы каждый дисплей даты со своими значениями.
<%@page import="model.Stock"%>
<%@page import="model.Operateur"%>
<%@page import="model.Descriptionarret"%>
<%@page import="model.Categoriearret"%>
<%@page import="web.Operation"%>
<%@page import="web.UhtBeans"%>
<%@page import="model.Ligne"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Iterator"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html >
<head >
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="MWH Team 2" />
<script type="text/javascript" src="fichier/jquery-1.10.2.js"></script>
<script type="text/javascript" src="jquery-ui-1.11.0/jquery-ui.js"></script>
<script type="text/javascript" src="fichier/ajax_js.js"></script>
<script type="text/javascript" src="fichier/calendrier.js"></script>
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="fichier/design.css" />
<link href="./fichier/bootstrap.min.css" rel="stylesheet">
<link href="./fichier/Site.css" rel="stylesheet">
<link rel="stylesheet" href="jquery-ui-1.11.0/jquery-ui.css">
<title>UHT</title>
<script language="javascript">
function showList() {
var select = document.getElementById('liste');
if(select.value == "l1") {
document.getElementById('l1').setAttribute('style','visibility:inline');
} else if(select.value == "l2") {
document.getElementById('l2').setAttribute('style','visibility:inline');
} else {
document.getElementById('l3').setAttribute('style','visibility:inline');
}
}
</script>
</head>
<body >
<script language="JavaScript" type="text/javascript">
function getsupport ()
{
document.SupportForm.submit() ;
}
</script>
<%
Operateur p = new Operateur();
String info="";
String info1="";
String info2="";
if (session.getAttribute("oppp")==null){%>
\t <SCRIPT LANGUAGE='JavaScript'>
window.alert('Veuillez vous identifier');
window.location.href='Connexion.jsp';
</SCRIPT>
<% } else {
\t p = (Operateur) session.getAttribute("oppp");
\t if (p.getIsadmin().equals("false"))
\t {
\t \t info = p.getNomoperateur();
\t \t info2="Operateur";
\t \t info1="opera";
\t }
\t else
\t {
\t
\t \t info = p.getNomoperateur();
\t \t info2="Administrateur";
\t \t info1="admin";
\t }
}
%>
<script language="JavaScript" type="text/javascript">
function getsupport ()
{
document.SupportForm.submit() ;
}
</script>
<div style="padding-bottom:30px; margin-top:-10px; background-color: green; background-image: url('./fichier/occpp.png');
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
" >
\t \t <div> <label style="margin-left:1150px; margin-top:30px; margin-right: 2px; color:#ffffff; font-family: Calibri, sans-serif; "><%=info %><br/><%=info2 %></label></div>
<p style="color:#ffffff; font-size:36px; font-family: Coolvetica Rg;" align="center">Cute Process UHT</p>
</div>
<div class="row-offcanvas row-offcanvas-left">
<div id="sidebar" class="sidebar-offcanvas" style="margin-top:18px; ">
<form name="SupportForm" method="post" action="controle">
<input type="hidden" name="Adminpanel4" />
<ul class="nav nav-pills nav-stacked">
<li><a href="#">Acceuil</a></li>
<li class="active"><a href="Index.jsp">Saisie des Données</a></li>
<li class="active"><a href="Resultats.jsp">Resultats</a></li>
<li id="Adminpanel" ><a href="Ligne.jsp">Gestion des Lignes</a></li>
<li id="Adminpanel1"><a href="Categorie.jsp">Gestion des Categories</a></li>
<li id="Adminpanel2"><a href="Arret.jsp">Gestion des Arrêts</a></li>
<li id="Adminpanel3"><a href="Operateur.jsp">Gestion des Operateurs</a></li>
<li><a href="javascript:getsupport()">Deconnexion</a></li>
</ul>
</form>
</div>
<button class="sidebar-trigger" data-toggle="offcanvas" style="margin-top:18px;"></button>
<div id="main">
<div class=" container-fluid body-content " style="margin-top:10px; ">
<%
UhtBeans uhtBs;
Operation opp = new Operation();
uhtBs = new UhtBeans();
uhtBs.setListeLi(opp.allLigne());
uhtBs.setListeCat(opp.allCategorie());
uhtBs.setListeArr(opp.allArret());
%>
\t \t <input type="hidden" name="isSent" id="InputisSent" />
\t \t <input type="hidden" id="oop" value="<%=info1 %>" /></td>
\t \t
\t \t \t <br /><br />
\t \t \t <center>
<h2 align="center" class="button green center" data-toggle="collapse" data-target="#Gestion1" >List</h2>
<br><br>
\t <center id="Gestion1" class="collapse">
\t \t
\t \t <div id="affichage" style="overflow:auto;">
\t <script type="text/javascript">
var tableToExcel = (function() {
var uri = 'data:application/vnd.ms-excel;base64,'
, template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>'
, base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) }
, format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p]; }) }
return function(table, name) {
if (!table.nodeType) table = document.getElementById(table)
var ctx = {worksheet: name || 'Worksheet', table: table.innerHTML}
window.location.href = uri + base64(format(template, ctx))
}
})()
</script>
<div id="export" ><input type="button" onclick="tableToExcel('testTable2', 'W3C Example Table')" value=" Export to Excel ">
</div>
<p></p>
\t \t <center>
\t \t
\t \t <table border="1" id="testTable2" border="1" width=100% class="table table-hover">
\t <thead>
\t <tr align="center" >
\t \t <th width="50%">Postes</th>
\t \t <th>Poste1 (22h-06h)</th>
\t \t <th>Poste2 (06h-14h)</th>
\t \t <th>Poste3 (14h-22h)</th>
\t \t <th>Total Journé</th>
\t </tr>
\t </thead>
\t
\t <%
\t UhtBeans ub = new UhtBeans();
\t UhtBeans ub1 = new UhtBeans();
\t ub.setListDateSt(opp.allDateStock());
\t ub1.setListSt(opp.allStock());
\t request.setAttribute("DateStock", ub);
\t request.setAttribute("stock", ub1);
\t
UhtBeans stockss;
UhtBeans daStock;
daStock = (UhtBeans) request.getAttribute("DateStock");
if(request.getAttribute("stock") != null){
\t stockss =(UhtBeans) request.getAttribute("stock");
\t
}else {
\t Operation opers = new Operation();
\t stockss = new UhtBeans();
\t stockss.setListSt(opers.allStock());
}
%>
\t \t \t <%
\t \t \t Iterator<Stock> listDat = daStock.getListDateSt().iterator();
\t \t \t while(listDat.hasNext()){
\t \t Stock sd =listDat.next();
\t \t \t \t Iterator<Stock> lists = stockss.getListSt().iterator();
\t \t \t \t while(lists.hasNext()){
\t \t \t Stock s =lists.next();
\t \t \t
\t \t \t %>
\t <tr>
\t \t <th bgcolor="green" class="Date"><%=s.getDate() %></th>
\t </tr>
\t <tr align="center" bgcolor="cyan">
\t \t <th>DIAGRAMME TEMPS</th>
\t \t <th>Durée(min)</th>
\t \t <th>Durée(min)</th>
\t \t <th>Durée(min)</th>
\t \t <th>Durée(min)</th>
\t </tr>
\t <tbody id="colonne">
\t <tr align="center">
\t \t <th bgcolor="yellow">Temps Calendrier</th>
\t \t <%int d=480; %>
\t \t <th id="d" class="Duree"><%=d %></th>
\t \t <th ></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t
\t <tr align="right">
\t \t <th bgcolor="red">Temps non disponible</th>
\t \t <th class="Duree" id="d11"><%
\t \t \t \t System.out.println("ID DU CATEGORIE EST : "+s.getCategorie());
\t \t
\t \t if (s.getCategorie().equals("0")){
\t \t \t
\t \t %>
\t \t <%=s.getDuree() %>
\t \t \t
\t \t \t <%} %>
\t \t </th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t
\t </tr>
\t
\t <tr align="center">
\t \t <th bgcolor="yellow">Temps Disponible</th>
\t \t <%int d2;
\t \t d2=d; %>
\t \t <th><%=d2 %></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="right">
\t \t <th bgcolor="red">Temps disponible non utilisé</th>
\t \t <th class="Duree">
\t \t <%System.out.println("ID De TDNU EST : "+ s.getCategorie());
\t \t if(s.getCategorie().equals("1")){
\t \t \t %><%=s.getDuree()%>
\t \t \t <%} %>
\t \t </th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="center">
\t \t <th bgcolor="yellow">Temps d'ouverture</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="right">
\t \t <th bgcolor="red">Préventif et révision équipement</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="right">
\t \t <th bgcolor="red">Autres arrêts planifiés non OP</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="center">
\t \t <th bgcolor="yellow">Temps operationnel</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="right">
\t \t <th bgcolor="red">Nettoyage</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="right">
\t \t <th bgcolor="red">Autres arrêts OP planifiés</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="center">
\t \t <th bgcolor="yellow">Temps de production</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="right">
\t \t <th bgcolor="red">Arrêts organisationnels</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="right">
\t \t <th bgcolor="red">Arrêts techniques</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="right">
\t \t <th bgcolor="red">Arrêts technologiques</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="center">
\t \t <th bgcolor="yellow">Running time</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <tr align="center">
\t \t <th bgcolor="yellow">Temps net de production</th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t \t <th></th>
\t </tr>
\t <%
\t \t }}
\t \t \t \t %>
\t </tbody>
\t
\t <tr><th colspan="5"><br></th></tr>
\t <tr align="center" bgcolor="cyan">
\t <th>INDICATEURS DU CUTE</th>
\t <th colspan="4">Valeur</th>
\t </tr>
\t <tr align="center" bgcolor="green">
\t <th>Efficacité de production (PE)</th>
\t <th></th>
\t <th></th>
\t <th></th>
\t <th></th>
\t </tr>
\t <tr align="center" bgcolor="green">
\t <th>Efficacité operationnelle (OE)</th>
\t <th></th>
\t <th></th>
\t <th></th>
\t <th></th>
\t </tr>
\t <tr align="center" bgcolor="green">
\t <th>Efficacité énèrgetique (EE)</th>
\t <th></th>
\t <th></th>
\t <th></th>
\t <th></th>
\t </tr>
\t <tr align="center" bgcolor="green">
\t <th>Maintenance planifiée (PM)</th>
\t <th></th>
\t <th></th>
\t <th></th>
\t <th></th>
\t </tr>
\t <tr align="center" bgcolor="green">
\t <th>Nettoyage planifié (CIP)</th>
\t <th></th>
\t <th></th>
\t <th></th>
\t <th></th>
\t </tr>
\t <tr align="center" bgcolor="green">
\t <th>Arrêts techniques (th)</th>
\t <th></th>
\t <th></th>
\t <th></th>
\t <th></th>
\t </tr>
\t <tr align="center" bgcolor="green">
\t <th>Arrêts technologiques (TOD)</th>
\t <th></th>
\t <th></th>
\t <th></th>
\t <th></th>
\t </tr>
\t <tr align="center" bgcolor="green">
\t <th>Utilisation operationnelle (OU)</th>
\t <th></th>
\t <th></th>
\t <th></th>
\t <th></th>
\t </tr>
\t <tr>
</table>
\t \t \t </center>
\t
</div>
\t </center>
\t \t
\t
\t \t \t \t <script>
\t \t \t \t $('#InputOperateurMail').on("click", function() {
\t \t \t \t \t // $('#CC').val($(this).val());
\t \t \t \t \t
\t \t \t \t \t $('#CC').val($('#CC').val()+";"+$(this).val());
\t \t \t \t \t
\t \t \t \t });
\t \t \t \t
\t \t \t \t $("#InputDate").datepicker({
\t \t \t \t changeMonth: true,
\t \t \t \t changeYear: true
\t \t \t \t }); \t \t \t \t
\t \t \t \t //Le script Ajaaaaaaaaaaaaaaaaaax
\t $(document).ready(function() {
\t \t
\t \t if ($("#oop").val()!="admin")
\t \t {
\t \t \t \t $("#Adminpanel").hide();
\t \t \t \t $("#Adminpanel1").hide();
\t \t \t \t $("#Adminpanel2").hide();
\t \t \t \t $("#Adminpanel3").hide();
\t \t \t \t $("#export").hide();
\t
\t \t }
\t \t
\t \t var selectionCount = 1;
\t $('#Ajouter').on("click", function() {
\t \t
\t $.ajax({
\t type: "GET",
\t url: "controle?action=Ajouter",
\t data: {
\t \t
\t \t Date: $("#InputDate").val(),
\t \t NomCat: $("#InputNomCat").val(),
\t \t Arret: $("#InputArrets option:selected").val(),
\t \t Ligne: $("#InputLigne").val(), \t \t
\t Duree: $("#InputDuree").val(),
\t },
\t success: function (result) {
\t $("#affichage").html(result);
\t }
\t });
\t });
\t
\t
\t \t \t \t
\t
\t //Modifier
\t $('#Modifier').on("click", function() {
\t $.ajax({
\t type: "GET",
\t url: "controle?action=Modifier",
\t data: {
\t \t Date: $("#InputDate").val(),
\t \t NomCat: $("#InputNomCat").val(),
\t \t Arret: $("#InputArrets").val(),
\t \t Ligne: $("#InputLigne").val(), \t \t
\t Duree: $("#InputDuree").val(),
\t
\t },
\t success: function (result) {
\t $("#affichage").html(result);
\t }
\t });
\t });
\t //Supprimer
\t $('#Supprimer').on("click", function() {
\t $.ajax({
\t type: "GET",
\t url: "controle?action=Supprimer",
\t data: {
\t \t Date: $("#InputDate").val(),
\t \t NomCat: $("#InputNomCat").val(),
\t \t Arret: $("#InputArrets").val(),
\t \t Ligne: $("#InputLigne").val(), \t \t
\t Duree: $("#InputDuree").val(),
\t
\t },
\t success: function (result) {
\t $("#affichage").html(result);
\t }
\t });
\t });
\t //Recherche
\t $('#Rechercher').on("click", function() {
\t \t
\t \t $("#Retourner").attr('type', 'submit');
\t \t $("#Rechercher").attr('type', 'hidden');
\t $.ajax({
\t type: "GET",
\t url: "controle?action=Rechercher",
\t data: {
\t \t Date: $("#InputDate").val(),
\t
\t },
\t success: function (result) {
\t $("#affichage").html(result);
\t }
\t });
\t });
\t
\t //retourner Affichage
\t \t \t \t \t $('#Retourner').on("click", function() {
\t \t \t \t \t \t $("#Retourner").attr('type', 'hidden');
\t \t \t $("#Rechercher").attr('type', 'submit');
\t \t \t \t \t \t \t \t \t
\t \t \t \t \t \t $.ajax({
\t \t \t \t \t \t type: "GET",
\t \t \t \t \t \t url: "controle?action=Retourner",
\t \t \t \t \t \t
\t \t \t \t \t \t success: function (result) {
\t \t \t \t \t \t $("#affichage").html(result);
\t \t \t \t \t \t }
\t \t \t \t \t \t });
\t \t \t \t \t \t });
//Vider les Inputs
\t \t $('#Vider').on("click", function() {
\t \t \t $("#InputDate").val("");
\t \t $("#InputNomCat").val("");
\t \t $("#InputArrets").val("");
\t \t $("#InputLigne").val("");
\t \t $("#InputDuree").val(""); \t \t
\t \t });
\t
\t //Affichage des valeurs dans les Inputs
\t
\t
\t \t \t \t \t \t \t \t
\t $('#affichage').on("click", 'tbody tr', function() {
\t if ($(this).hasClass('selected')) {
\t
\t selectionCount++;
\t selectionCount = 1;
\t }
\t if (selectionCount == 1) {
\t \t
\t \t
\t $(".selected").removeClass("selected");
\t
\t $(this).addClass("selected"); \t
\t
\t var Date = $('.selected').find(".Date").text().trim();
\t var NomCat = $('.selected').find(".NomCat").text().trim();
\t var Arret = $('.selected').find(".Arret").text().trim();
\t var Ligne = $('.selected').find(".Ligne").text().trim();
\t var Duree = $('.selected').find(".Duree").text().trim();
\t
\t //changement du couleur
\t $('#colonne tr').css('background','white');
\t
\t $("#InputDate").val(Date) ;
\t $("#InputNomCat").val(NomCat);
\t $("#InputArrets").val(Arret);
\t $("#InputLigne").val(Ligne);
\t $("#InputDuree").val(Duree);
\t
\t }
\t });
\t //Affichage des valeurs dans les Inputs
\t
\t \t
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t var i=1;
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t $("#espacefournisseur").hide(); \t \t \t \t \t
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t $("#espaceF").click(function() { \t \t \t \t \t
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t if(i % 2 == 0)
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t { $("#espacefournisseur").hide("slow");
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t i=i+1;
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t }else
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t { $("#espacefournisseur").show("slow");
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t i=i+1;
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t }});
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t
\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t
\t \t \t \t });
\t \t \t \t
\t \t \t \t
\t \t \t \t
\t \t \t \t </script>
<!-- Date Pickeeeeeeeer! -->
<!-- Tableau obligatoire ! C'est lui qui contiendra le calendrier ! -->
<table class="ds_box" cellpadding="0" cellspacing="0" id="ds_conclass" style="display: none;">
<tr>
<td id="ds_calclass"></td>
</tr>
</table>
<script type="text/javascript" src="fichier/bootstrap.js"></script>
<script src="fichier/Site.js"></script>
</div>
</div>
</div>
</body>
</html>
Ошибка
SEVERE: Servlet.service() for servlet [jsp] in context with path [/Stage-UHT1] threw exception [An exception occurred processing JSP page /Resultats.jsp at line 222
219: <%
220: Iterator<Stock> listDat = daStock.getListDateSt().iterator();
221: while(listDat.hasNext()){
222: Stock sd =listDat.next();
223: Iterator<Stock> lists = stockss.getListSt().iterator();
224: while(lists.hasNext()){
225: Stock s =lists.next();
Stacktrace:] with root cause
java.lang.ClassCastException: java.lang.String cannot be cast to model.Stock
at org.apache.jsp.Resultats_jsp._jspService(Resultats_jsp.java:310)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
UhtBeans CLASS
package web;
import java.util.ArrayList;
import java.util.List;
import model.Categoriearret;
import model.Descriptionarret;
import model.Ligne;
import model.Operateur;
import model.Stock;
public class UhtBeans {
private Ligne ligne = new Ligne() ;
private Categoriearret categorie = new Categoriearret();
private Descriptionarret arret = new Descriptionarret();
private Stock stock = new Stock();
private Operateur operateur = new Operateur();
private boolean login;
private ArrayList<Ligne> listeLi = new ArrayList<Ligne>();
private ArrayList<Categoriearret> listeCat = new ArrayList<Categoriearret>();
private ArrayList<Descriptionarret> listeArr = new ArrayList<Descriptionarret>();
private ArrayList<Stock> listSt = new ArrayList<Stock>();
private ArrayList<Stock> listDateSt = new ArrayList<Stock>();
private ArrayList<Operateur> listOp = new ArrayList<Operateur>();
public ArrayList<Stock> getListDateSt() {
\t return listDateSt;
}
public void setListDateSt(List<Stock> listDateSt) {
\t this.listDateSt = (ArrayList<Stock>) listDateSt;
}
//Operateur
public Operateur getOperateur() {
\t return operateur;
}
public void setOperateur(Operateur operateur) {
\t this.operateur = operateur;
}
public ArrayList<Operateur> getListOp() {
\t return listOp;
}
public void setListOp(List<Operateur> listOp) {
\t this.listOp = (ArrayList<Operateur>) listOp;
}
//Stock
public Stock getStock() {
\t return stock;
}
public void setStock(Stock stock) {
\t this.stock = stock;
}
public ArrayList<Stock> getListSt() {
\t return listSt;
}
public void setListSt(List<Stock> list) {
\t this.listSt = (ArrayList<Stock>) list;
}
//Arrêt
public Descriptionarret getArret() {
\t return arret;
}
public void setArret(Descriptionarret arret) {
\t this.arret = arret;
}
public ArrayList<Descriptionarret> getListeArr() {
\t return listeArr;
}
public void setListeArr(List<Descriptionarret> listeArr) {
\t this.listeArr = (ArrayList<Descriptionarret>)listeArr;
}
//Categories
public Categoriearret getCategorie() {
\t return categorie;
}
public void setCategorie(Categoriearret categorie) {
\t this.categorie = categorie;
}
public ArrayList<Categoriearret> getListeCat() {
\t return listeCat;
}
public void setListeCat(List<Categoriearret> listCat) {
\t this.listeCat = (ArrayList<Categoriearret>)listCat;
}
//Lignes
public Ligne getLigne() {
\t return ligne;
}
public void setLigne(Ligne ligne) {
\t this.ligne = ligne;
}
public ArrayList<Ligne> getListeLi() {
\t return listeLi;
}
public void setListeLi(List<Ligne> listeLi) {
\t this.listeLi = (ArrayList<Ligne>)listeLi;
}
public boolean isLogin() {
\t return login;
}
public void setLogin(boolean login) {
\t this.login = login;
}
}
В чем проблема? – Marv
Добро пожаловать в StackOverflow, не могли бы вы сообщить нам, в чем проблема, с которой вы столкнулись? – Panther
Я добавил ошибку ниже – iEagle01