Questions tagged as 'java'

1
answer

error with arrayList in java

I'm doing an implementation of the n-queens problem in java, the idea is to have an arrayList that saves arrays and in turn each fix is a different solution, but when I check the arrayList the arrays are full of cigars 7. the code is this:...
asked by 25.02.2018 / 03:21
1
answer

You doubt to save a String in HashMap

I have a little problem..I'm using a HashMap > to save values. But in certain cases I have to store a String instead of a List. Is there a way to do some cast or something like that without having to create another Map? Part of the code...
asked by 25.02.2018 / 13:01
0
answers

Scene Builder changes "xmlns" from NetBeans to Java 9 when I have Java 8.0.162

My problem is that when I open my file fxml in NetBeans I get these lines of code which are correct: <?xml version="1.0" encoding="UTF-8"?> <?import javafx.geometry.Insets?> <?import javafx.scene.control.Button?> <?...
asked by 01.03.2018 / 18:34
1
answer

SelectOneMenu dependent on Primefaces

I have a database with 4 tables (Application, Province, Municipality, Town) where I have to add an application. I create 3 SelectOneMenu dependent to choose the Province depending on what is selected, the SelectOneMenu of Municipality must be up...
asked by 23.02.2018 / 14:13
0
answers

Error generating .xls with ResponseBuild (web service)

I have the following service that has the function of downloading a previously modified xls file (in the comments is the function of each line or block) @RequestMapping(value = "descarga", method = {RequestMethod.GET, RequestMethod.POST }, pro...
asked by 23.02.2018 / 17:27
1
answer

Error java.lang.ArrayIndexOutOfBoundsException: 0

I have this program Class UploadImage package Pruebas; import com.mysql.jdbc.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; im...
asked by 21.02.2018 / 20:25
0
answers

JAX WS WebServiceClient Problem

We are developing an application in java and since a few weeks ago we have a problem that we are not able to solve. This is a call to a webservice to obtain a series of data with certificates. We have followed the following steps for the c...
asked by 23.02.2018 / 10:48
1
answer

Tomcat: user does not have sufficient privileges or object not found

I'm trying to access an access file from a web application using the jdbc ucanaccess 4.0.3 driver. The tests when building the used jar are executed without problem. Application Context in jar file: <context:annotation-config /> <...
asked by 23.02.2018 / 12:51
0
answers

Retrieve file from the database

good morning, I want to recover a file that I have saved in the database, I have it in bytes, but I do not know how I can recover it, I want that pressing a button that file is downloaded to a local folder. This is the code I use to upload...
asked by 21.02.2018 / 17:02
2
answers

Get combobox index in java and register it as boolean in mysql

Good evening I'm getting the index of a combobox to handle male or female and I want to register it in the database as a Boolean, I have this at the moment but it generates an error. int bb=combobox.getSelectedIndex();...
asked by 21.02.2018 / 02:13