Questions tagged as 'java'

1
answer

'Unreachable statement' error in java

I get an error without an apparent sense on line 78: (    78 | System.out.println ("Exit"); import java.util.Scanner; import java.util.ArrayList; public class nochevieja{ public static Boolean verificar(String horario){ //00:00 fi...
asked by 23.06.2018 / 03:28
1
answer

Help, How to manage the download of a file using $ .fileDownload from a controller?

I have a method that retrieves data from the form, and passes them as parameters to a service method to perform the query, this method returns a json response, and in the view sends me a message if there is data or not data in the query. Now...
asked by 14.06.2018 / 04:59
1
answer

Primefaces p: textEditor does not show well after display none

I am using JSF 2.2 with Primefaces 6.2. My problem is that the container that has a p:textEditor of primefaces has the property display: none; at the beginning, when the change with JavaScript to inline shows me a pair of...
asked by 12.06.2018 / 12:49
1
answer

App closes when you exit and re-enter the Fragment that Google Map Geolocation shows me

The app closes when I open the fragment that contains the map of google maps and generates the following error in the logcat Process: com.example.matia.tonum, PID: 11224 java.lang.NullPointerException: Attempt to invoke virtual method 'jav...
asked by 22.06.2018 / 15:06
2
answers

java - question about final and static [duplicate]

Can you explain what is done or what happens in the following instruction: private static final SecureRandom numerosAleatorios = new SecureRandom () ; my doubt, how can an object be constant (final)? Static in the creation of an object?...
asked by 27.07.2018 / 02:06
1
answer

How to solve problem with java

I was doing a program when there was a problem with the or || I do not really understand why it happens, although the program runs with functionality the result is not the desired First I declare the if with the conditions separated by an or but...
asked by 20.06.2018 / 03:12
1
answer

Error time out when parsing with .visit ()

I am parsing using .visit () with this code: String link = "Aquí iría la URL"; Document doc = ScrapingUtils.visit(link, false); The fact is that sometimes for whatever reason you can not access the page,...
asked by 19.06.2018 / 12:09
1
answer

because this error: Creating bean whith name NameRepository, No property parameters found for type?

I have the following service public List<Factura> listFactura(String campo1, String campo2, String Campo3); and its implementation @Autowired private FacturaRepository repository; public List<Factura> listFactura(Str...
asked by 05.06.2018 / 04:08
1
answer

error when saving in a vector the values of a Select

I am trying to save the values of a Select in a vector, but the error appears java.lang.ArrayIndexOutOfBoundsException: 0> = 0     
asked by 16.06.2018 / 07:40
2
answers

retrieve form data with spring?

I have this method in the controller that redirects me to the page where the form is @RequestMapping(value= "/views/consulta", method = RequestMethod.GET) public String redireccionaConsultaPage(Locale locale, Model model) {...
asked by 05.06.2018 / 03:48