Questions tagged as 'java'

1
answer

REST / JAVA + ANGULAR2 authentication

I have a api rest in java and need to perform an authentication (login / password). I'm building on this java code that uses Jwt: link My question is: how to treat this token in the angle and authenticate the user? Every source of study is...
asked by 11.02.2018 / 15:41
3
answers

Return DB data using List / ArrayList - Java

I'm having a problem, I set up a PivotTable in PostgreSQL and I need to print the lines of it, doing a Java method, the start of which is already established. That would be with a simple% w / o having as a parameter the start and end dates. H...
asked by 08.02.2018 / 19:02
1
answer

Migrate Tomcat server for Wildfly in eclipse

I'm trying to migrate a project (Java, HIbernate, JSF, SpringSecurity, CDI, Mysql) that currently runs on TOMCAT, to WILDFLY. I already configured the "standalone" with the connection and Wildfly alone initializes without any error. When I in...
asked by 12.02.2018 / 13:34
0
answers

React project does not open on Apple devices

I have a project made with react using the Webpack for frontend and Spring Maven for back. I'm using JSX files and Ant Design framework. The problem is in the fact that in Windows and Android, the site opens without any problem, however when goi...
asked by 09.02.2018 / 18:28
0
answers

Java / MySQL - Error in query

Hello, I'm trying to make a simple application to register with the bank with Java and I'm getting the following error: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corr...
asked by 14.02.2018 / 22:25
2
answers

The contents of the array are not being printed, but the reference to the object [duplicate]

Hello, I'm making an algorithm that prints only repeating elements, eg: {2,2,3,4,5,5} -> {2,5} I do not know if my algorithm is correct, but I can not see the array itself, something like [I @ 71e7a66b. Can anyone help me? public class main...
asked by 19.02.2018 / 14:05
0
answers

sonarqube run syncronas rules

I'm trying to run two rules on localhost: 9000 from sonar, but it runs a little bit of one rule and a little bit of another, but I'd like it to end a whole rule first and then go to another. Is it possible to tweak this setting?     
asked by 22.02.2018 / 14:44
1
answer

Recyclerview with JSON parsing

My PHP code generates the following JSON: { "resposta":[ { "cd_servico":"1", "ds_servico":"NOME SERVICO", "ITEMS":[ { "ds_descricao1":"DESCRICAO SERVICO", "ds_descricao2":"DESCRICAO 2",...
asked by 22.02.2018 / 14:40
1
answer

Display certain arraylist, with the click of a button

Hello, My xml has several buttons how do I when I click on a particular button load an arraylist in the listview example Botão1 clicado -> arraylist<Perguntas> carrega na listview1 Botão2 clicado -> arraylist<Respostas> ca...
asked by 10.02.2018 / 20:18
0
answers

Socket Error (Socket is closed)

I'm doing a program using sockets but a very strange error pops up when I sum two numbers twice. The socket goes down and I do not know why  here is the server code import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt...
asked by 10.02.2018 / 18:35