Good day. I am writing (trying) a simple java chat with the condition for creating rest api. The functionality is simple: registration, authorization, communication in a single chat (without the ability to create rooms), sending files. During registration, the user enters the data and clicks on the registration button. But after that, the 500th error takes off, the text of which I quote in the attached image.

I develop the project on a volume. 500 error

The addUser method of the ProfileResource class is presented below.

@GET @Path("/reg") @Produces("application/json") public void addUser( @QueryParam("username") String username, @QueryParam("firstname") String firstname, @QueryParam("lastname") String lastname ) throws SQLException { con.CreateTableProfile(); con.CreateUser(username, firstname,lastname); System.out.println("Username:" + username); System.out.println("Firstname:" + firstname); System.out.println("Lastname:" + lastname); } 

What could be a mistake? I am quite green newcomer "in the restaurant." I beg you not to throw stones, but at least kick in the right direction.

  • It is better to provide textual information in the form of text: it is more convenient for people to read / copy, and for robots to index. to correct, click edit - aleksandr barakin
  • Moreover, in the screenshot a significant part of the error is cut off. - Sergey Gornostaev

0