Questions tagged as 'java'

0
answers

Error with java.sql.Date.valueOf

In this part of the code: int seleccionado = cbotipo_reserva.getSelectedIndex(); dts.setTipo_reserva((String) cbotipo_reserva.getItemAt(seleccionado)); //fechas Calendar cal; int d,m,a; cal=dcfecha_reserva.getCalendar();...
asked by 30.06.2018 / 03:24
0
answers

Problem with connection from java to mysql

The problem lies in the moment of connecting, it throws me an error, I'm working with workbench 8.0. This is the code: public static Connection getConnection() { Connection conexion = null; try { conexion = null; C...
asked by 30.06.2018 / 04:42
0
answers

Problems with libraries in the EAR file

I hope you can help me with this. For a long time in a personal project I try to use the PrettyFaces libraries to remove the extensions of the URLs of my application, but, I always run into the problem that when the EAR is generated that two of...
asked by 30.06.2018 / 01:20
0
answers

pass values to a Jsp with Json from a servlet

Hi, I have a problem with jsp, I have a form that makes a query to the database and should return the contents of the database in a lightbox that is in the same jsp file, I'm trying with json <div class="form-group form-float">...
asked by 01.07.2018 / 02:07
0
answers

I can not click on a Serenity Bdd button

Hello, I need help. I'm doing automated tests on this page. link and in the Time / Project info / Projects option on the green button that comes out with a "+" on the right does not let me click, I'm using Serenity Bdd in java, I use a target...
asked by 01.07.2018 / 07:06
0
answers

Error Can not pass null for argument 'pathString' in child ()

What can be the error of this code? final DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference(); mDatabase.child("Empresas " + País).child(Ciudad).child(TipodeEmpresa).addValueEventListener(new ValueEventL...
asked by 30.06.2018 / 21:19
6
answers

What is the solution to all present, past and future NullPointerException errors?

I have my Java program and I get a NullPointerException and I have seen other questions but they are from people with other programs and it does not work for my program and I want to leave here the 2,000 lines of my program so that you solve the...
asked by 08.01.2017 / 18:54
1
answer

Why does NullPointer give me error when checking data? [duplicate]

import java.util.Scanner; import java.util.ArrayList; class Persona{ private String nombre; private int id,edad; static Persona global = new Persona(); public Persona(){} public Persona(Stri...
asked by 02.07.2018 / 22:00
0
answers

How to get the hash value of a raw image?

I'm working with a json that has this attribute "ImageHashValueRAW": "7aa7f94d221d2afb658dba986f328d419c892511719acc8a4742f4eda2f766a4" I have an array of bytes [] called imageData. How can I get or remove the hash value from a byte array?...
asked by 27.06.2018 / 23:37
0
answers

FILTER BY COMBOBOX ON A JAVA TABLE

I have a table the columns are (Code and Question) the questions are based by Specialty which are in a combo. I made the method search by name of the question in a text field but I also want to filter by combobox. Next I show my DAO and my view...
asked by 28.06.2018 / 04:25