Questions tagged as 'java'

0
answers

Java and MQTT Broker

I'm learning to mess with broker and I'm trying to connect my java program to the online broker of shiftr.io and it's returning: Exception in thread "main" O cliente não está conectado (32104) at org.eclipse.paho.client.mqttv3.internal.Exc...
asked by 10.02.2018 / 23:11
0
answers

CSRF token because your session was not found

I have an application created from JHIPSTER , I have another application that would use the resources of the api provided by it, however when trying to login the same returns the    Forbidden error 403: Could not verify the provi...
asked by 08.02.2018 / 19:22
1
answer

Problem with User-Managed Transaction and Flush using JTA and Arquillian

I'm doing some tests with JUnit and, to inject dependencies on it with ICD, I adopted Arquillian. But, there is a problem I did not figure out how to solve without using the flush() method of EntityManager . Basically, I need to...
asked by 08.02.2018 / 18:19
1
answer

JSON parse error

I'm developing a web application (Spring) and need to save a date in the database. I have done a Ajax function to save the value, however I get the following error:    JSON parse error: Can not deserialize value of type   java.time.Loc...
asked by 07.02.2018 / 19:30
0
answers

how to pass HTML objects as parameters

I wanted to know how I can pass a VARIAVEL variable of type "[object HTMLTableRowElement]" as a parameter to send to a JSP that will make a $(VARIAVEL).remove() using javascript. This variable has a value similar to this...
asked by 07.02.2018 / 19:46
2
answers

Identify the input URL of a Filter

How do I identify by which URL is being accessed a filter? My situation is as follows: I have the class below: @WebFilter(filterName = "FiltroLogado", urlPatterns = {"/alterar.jsp", "/deletar.jsp", "/cadastrado.jsp", "/logado.jsp"...
asked by 07.02.2018 / 19:42
0
answers

Send Email when you press a button

I'm doing an application that consists of, at the push of a button a scheduled email is sent automatically without me having to log in to gmail to push "send" Until then I put this code together and it is doing everything but sending it witho...
asked by 07.02.2018 / 18:58
1
answer

GET instead of DELETE in REST webservice

I'm trying to do a delete on my bank using a webservice rest(JAVA) , it loads everything correctly, but time I test it from Method not allowed . Note: I'm using Netbeans . FromwhatInoticedWSistryingtomakeaGETandnotaDELET...
asked by 07.02.2018 / 19:26
1
answer

javax.ws.rs.client.Client set timeout

I have a web application where at a certain point I make requests in endpoint using JAX-RS RestEasy as follows: // Outros códigos acima @Inject private Client client; ... WebTarget webTarget = client.target(URL).path(ENDPOINT);...
asked by 07.02.2018 / 21:05
1
answer

Desktop application position

Good evening guys I'm having a problem I'll try to explain: I created a desktop app and I need your position on the screen to take a photo ... 1st step get posY , and X with getX , GetY , already fis. I put these valu...
asked by 07.02.2018 / 20:49