IOS
eddir / ios Goto Github PK
View Code? Open in Web Editor NEWСтуденческий проект по разработке системы дистанционного образования на чистом Java
Студенческий проект по разработке системы дистанционного образования на чистом Java
IOS
Describe the bug
При входе сервер неправильно понимает то, что ввёл пользователь. Ввод отображается с битыми символами.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Команда должна распознаваться
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
Невозможно сохранить новую модель. При попытке сделать это появляется ошибка.
To Reproduce
Запустить код:
Topic topic = new Topic();
topic.setTitle("fg");
try {
(new TopicRepository()).save(topic);
} catch (InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e) {
e.printStackTrace();
}
Expected behavior
Модель сохраняется в базе данных в виде новой строчки в таблице.
Screenshots
C:\Users\eddir\.jdks\openjdk-16\bin\java.exe "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.2\lib\idea_rt.jar=49820:C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.2\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\eddir\IdeaProjects\IOS\target\classes;C:\Users\eddir\.m2\repository\org\sql2o\sql2o\1.6.0\sql2o-1.6.0.jar;C:\Users\eddir\.m2\repository\mysql\mysql-connector-java\8.0.23\mysql-connector-java-8.0.23.jar;C:\Users\eddir\.m2\repository\com\google\protobuf\protobuf-java\3.11.4\protobuf-java-3.11.4.jar рф.пинж.ios.IOS
[INFO] Подключение к бд MySQL...
[INFO] Подключение к бд готово
[INFO] Запуск сервера по адресу 127.0.0.1:77 .
[DEBUG] Соединение установлено.
[INFO] Регистрация клиента.
[DEBUG] insert into topics(id,title,created_at) VALUES(:id,:title,:created_at) ON DUPLICATE KEY UPDATE id=:id,title=:title,created_at=:created_at
[NOTICE] here
[NOTICE] insert into topics(id,title,created_at) VALUES(?,?,?) ON DUPLICATE KEY UPDATE id=?,title=?,created_at=?
[NOTICE] insert into topics(id,title,created_at) VALUES(?,?,?) ON DUPLICATE KEY UPDATE id=?,title=?,created_at=?
4085 [Thread-0] WARN org.sql2o.logging.SysOutLogger - Could not roll back transaction. message: {}
java.sql.SQLNonTransientConnectionException: Can't call rollback when autocommit=true
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
at com.mysql.cj.jdbc.ConnectionImpl.rollback(ConnectionImpl.java:1838)
at org.sql2o.Connection.rollback(Connection.java:132)
at org.sql2o.Connection.onException(Connection.java:76)
at org.sql2o.Query.executeUpdate(Query.java:658)
at рф.пинж.ios.repository.Repository.save(Repository.java:67)
at рф.пинж.ios.Client.<init>(Client.java:34)
at рф.пинж.ios.network.NetworkThread.run(NetworkThread.java:38)
[DEBUG] Error in executeUpdate, Column 'created_at' cannot be null
[DEBUG] Подключено!
Additional information
Редактирование работает исправно.
Is your feature request related to a problem? Please describe.
В CommandMap иногда выводится сообщение об ошибке, которое ничего полезного не несёт.
Describe the solution you'd like
В классе CommandMap в 61 строчке добавить вызов e.getMessage(). e.printStackTrace(pw);
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
Введённый пользователем текст на кириллице не сохраняется в бд.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
При входе сервер пишет "Введите команду help", но при вводе этой команды она не существует.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.