GithubHelp home page GithubHelp logo

eddir / ios Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 250 KB

Студенческий проект по разработке системы дистанционного образования на чистом Java

Java 100.00%
sstu inpit

ios's Introduction

IOS

ios's People

Contributors

alexshev64rus avatar eddir avatar mikhail-kuz avatar nechelovec avatar ttrueffif avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ios's Issues

Некорректный ввод при входе

Describe the bug
При входе сервер неправильно понимает то, что ввёл пользователь. Ввод отображается с битыми символами.

To Reproduce
Steps to reproduce the behavior:

  1. Подключитесь к серверу
  2. Введите любую команду
  3. Получите ошибку - команда не найдена, вы ввели ^%#$^(&^%^

Expected behavior
Команда должна распознаваться

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.