Questions tagged as 'java'

1
answer

error when consulting data

Hi, I am doing a query to a database but I have a problem when it returns the result, in the table of the database to which I ask the query there is data that starts with this value 00060306.1000 but when doing the consultation I returned this 6...
asked by 03.08.2018 / 21:13
1
answer

SQL query with Hibernate Criteria

I'm making reports with Hibernate but I had a problem and I can not find a way to do it. The query is this: SELECT mes as mes, COUNT(mes) AS t_mes, SUM(total) AS totales, SUM(cantidad) AS cantidad, SUM(facturado) AS factur...
asked by 03.08.2018 / 23:28
1
answer

One button ends the loop and the other button continues the loop, Cycle Do While

My app consists of a cycle "Do While" and two buttons, I want that when I touch the first button (finish), the cycle ends and the code of the loop is executed. But raise the other button (more), the cycle is restarted and the loop is repeated. T...
asked by 28.07.2018 / 02:27
1
answer

Recognize IDs of a main MainActivity in a MapsActivity

I'm doing a test exercise, where when I press a button of the first activity I send it to MapsActivity and in that Activity (MapsActivity) I recognize the ID of the button pressed and it shows me specific coordinates, and if I go back and press...
asked by 02.08.2018 / 02:11
1
answer

Is it possible to serialize subclasses created by me?

I tell you, I have the following: I have a small error when it comes to serializing them, mark that they are not serializable. Is there any chance that they can be serialized? Thanks     
asked by 27.07.2018 / 23:20
1
answer

How to pass a JTable to another JTable by omitting the last two Columns? [closed]

I try to pass a JTable1 to JTable2, however I do not want the last 2 columns of the JTable1 to be passed. Thank you in advance !!!     
asked by 01.08.2018 / 16:12
1
answer

ERROR: java.lang.ClassCastException: frsf.isi.died.tp.modelo.productos.Video can not be cast to [Lfrsf.isi.died.tp.modelo.productos.Video;

I have a casting problem (apparently). This is the error that returns me eclipse: java.lang.ClassCastException: frsf.isi.died.tp.modelo.productos.Video can not be cast to [Lfrsf.isi.died.tp.modelo.productos.Video; I am trying to recover my "V...
asked by 29.07.2018 / 22:02
0
answers

How to subtract hours from two columns of a jtable with mysql data

hi friends I hope you can help me! I need to subtract the hours of two columns of a table and show the result of the subtraction in another column of the table. I want to show the result in hours format, the data I bring from the database and th...
asked by 30.07.2018 / 03:27
1
answer

How can I run a service in the background without stopping?

The problem I have, is that when you launch the service in the background after 5 min it stops. It also stops when you block your phone or close the app instead of minimizing it. What I want is to launch the service and keep it running wi...
asked by 30.07.2018 / 08:49
0
answers

Jenkins error when installing plugins

I have a problem installing plugins in Jenkins, when I select a plugin and I give it to install, this error appears: java.io.IOException: Downloaded file C:\Users\informatica\.jenkins\plugins\jdk-tool.jpi.tmp does not match expected SHA-1, exp...
asked by 25.07.2018 / 09:07