Questions tagged as 'java'

1
answer

Convert JsonArray to JAVA POJO android

With retrofit I use a JsonArray, I want to get elements from the Json Objects list this is my Json { "Codigo": 0, "FechaHora": "2017-07-11T11:23:11", "Mensaje": "Ok", "Data": [ [ { "Id": 1, "Nombre": "Hum...
asked by 12.07.2017 / 03:05
0
answers

NullPointerException with Ucanaccess

I have a problem, which is that the following code throws me a NullPointerException in: pstm = connection.prepareStatement("SELECT * FROM usuarios"); I enclose the complete code: package com.gmail.brunodiazmartin5.banco.mysql; imp...
asked by 27.06.2017 / 22:01
1
answer

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2

Can someone help me with this problem? create this simple example to test what I learned recently in java programming, but for some reason when I try to execute the problem I get an error even if I have no part pointed, can someone help me? pu...
asked by 12.07.2017 / 12:38
1
answer

Overwrite an Excel file with Java and Apache POI

Very good. I have created an application that receives a date and writes an excel file with necessary information to fill data in a dynamic table in excel. The class so far creates the file without any problem, but, I would like to know if I...
asked by 04.07.2017 / 17:51
1
answer

UnsupportedClassVersionError:

I'm new to this and I'm setting up my website on a VPS server. I have already installed it in easypache and tomcat 7, I can already see my homepage, but if I try to load some jsp page that has a java code it gives me this error.    javax.s...
asked by 28.06.2017 / 00:24
1
answer

Inheritance management with Spring and JPA

Good morning I need to create a repository "B" from a repository "A" which should no longer be modified. I have some doubts about how to proceed since I am having an ambiguity error on my first attempt. I have my repository A: @Repositor...
asked by 04.07.2017 / 16:39
0
answers

MAVEN MojoExecutionException when saving with JPA

I am doing a small program using Maven together with JPA as well as Hibernate, when trying to make a test of the classes that I have for handling objects, I miss the following error and it does not allow me to do any operation:    Failed to e...
asked by 28.06.2017 / 21:20
1
answer

f: convert inside h: output text does not work

I have this code, I'm pulling from a string of type String and drawing dynamically, in view I want it to be shown with a dollar sign but I can not make it happen. Is it because I'm using a string ? <h:outputText value="#{o.c...
asked by 28.06.2017 / 21:06
1
answer

Problem when creating query from Java

Yes, look at it I have it in the following way: public void borrarPersona(String dni) { Connection c = null; PreparedStatement preparedStatement = null; //Usando consultas preparadas, más seguras y más rápidas...
asked by 28.06.2017 / 12:56
0
answers

Call a class that concentrates all autowired

In my project in each controller that I programmed I have to place the @Autowired of each service class in order to get the methods, but I think that this way of doing it is not the correct one so create a class called autowiredall which concent...
asked by 28.06.2017 / 00:57