質問編集履歴
1
プログラムの追記、エラーの詳細追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,61 @@
|
|
14
14
|
|
15
15
|
```
|
16
16
|
|
17
|
+
java.sql.SQLIntegrityConstraintViolationException: Column 'user_id' cannot be null
|
18
|
+
|
19
|
+
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117)
|
20
|
+
|
21
|
+
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
|
22
|
+
|
23
|
+
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
|
24
|
+
|
25
|
+
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:955)
|
26
|
+
|
27
|
+
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1094)
|
28
|
+
|
29
|
+
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1042)
|
30
|
+
|
31
|
+
at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1345)
|
32
|
+
|
33
|
+
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:1027)
|
34
|
+
|
17
|
-
|
35
|
+
at DB.DAO.regAttendance(DAO.java:180)
|
36
|
+
|
37
|
+
at login.AttendanceInfomation.doPost(AttendanceInfomation.java:60)
|
38
|
+
|
39
|
+
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
|
40
|
+
|
41
|
+
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
42
|
+
|
43
|
+
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
|
44
|
+
|
45
|
+
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
|
46
|
+
|
47
|
+
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
|
48
|
+
|
49
|
+
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
|
50
|
+
|
51
|
+
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
|
52
|
+
|
53
|
+
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
|
54
|
+
|
55
|
+
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
|
56
|
+
|
57
|
+
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
|
58
|
+
|
59
|
+
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
|
60
|
+
|
61
|
+
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
|
62
|
+
|
63
|
+
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
|
64
|
+
|
65
|
+
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
|
66
|
+
|
67
|
+
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
|
68
|
+
|
69
|
+
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
|
70
|
+
|
71
|
+
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
|
18
72
|
|
19
73
|
```
|
20
74
|
|
@@ -96,7 +150,7 @@
|
|
96
150
|
|
97
151
|
|
98
152
|
|
99
|
-
|
153
|
+
dao.regAttendance(dto.getUserid());
|
100
154
|
|
101
155
|
}
|
102
156
|
|