Questions tagged as 'java'

0
answers

How to recursively remove nodes in a binary tree?

I can not understand and code the operation of the method of removing nodes, in a binary tree. Note: The methods for adding and printing (RED) have already been implemented. package trees; public class binaryTree { Node root; pub...
asked by 27.04.2018 / 04:26
0
answers

Problem with Java

WhenItrytoopenaBATfile,withthefollowingcode:@ECHOOFFSETPASTA_BASE=%~dp0STARTCMD/C%PASTA_BASE%\client.js-aDESE-pTerminal-xYoureceivethefollowingerrormessage:"Could not create the Java virtual machine." (image with the error is attached to this q...
asked by 27.04.2018 / 15:39
1
answer

JPA + HIBERNATE error

Gentlemen. I have a class called User. @Entity @Table(name = "tb_usuario") public class Usuario { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @Column(name = "email", nullable = false, unique = true) private String...
asked by 06.05.2018 / 17:19
1
answer

Error 500 in java webservices when testing on postman

I've been trying to solve this problem for a long time, I set up my environment about 3 times, but at the time of testing, postman always gives 500, I think my problem is not in the entity or in DAO, since I tested in eclipse via desktop, howeve...
asked by 25.04.2018 / 19:43
0
answers

Java - Generic Type as parameter of jax rs client's readEntity method

I want to abstract a post method from my code, using generic type to facilitate implementation. The code is a client of ws using jax-rs. Follow public T2 post(T1 requisicao, String path){ javax.ws.rs.client.Client client = ClientBuilder.ne...
asked by 25.04.2018 / 21:05
1
answer

Error with.fasterxml.jackson.databind.JsonMappingException

Error shown: 04-25 14:01:32.589: I/Recebendo pela rede(31129): [{"id":"ab788cdc439","codcnesEquipe":"0","codcnesUnidade":"2161303","microarea":"00","nrcartaosus":"207283333540000","area":"0000","cbo":"322415","ativo":"1","datareg":"2016-09-22...
asked by 25.04.2018 / 19:23
0
answers

java, using Android Studio

I am programming an application and in a certain part when I compile this error appears:    error: constructor HistoryObject in class HistoryObject can not be applied to given types;   required: String   found: String, Object   reason: actual...
asked by 02.05.2018 / 16:01
0
answers

How do I control items from another menu when I populate a new menu.xml file inside an existing drawer navigation menu?

Below is the code I used to inflate a new menu file, all the layout files are ready, but I can not use the menu that was inflated by clicking on a menu item drawer it does not redirect to a new one I tried to do an expandableview in the menu, bu...
asked by 24.04.2018 / 01:51
0
answers

How to convert a JSON into a generic class

In a project with several client-server applications, I have a series of configuration files in JSON, which contain the connection port, host, and so on. For each application, the information in JSON is different: configCache.json { "po...
asked by 22.04.2018 / 21:37
0
answers

GlassFish 4.1.2 Exception Occurred: For input string: "001b" When you open View Log Files

The GlassFish server has been installed normally and we have already added several applications, and all its features work normally, except when we go to the Tree menu in the server (Admin Server) option and then click the View Log Fil...
asked by 28.04.2018 / 00:54