Questions tagged as 'java'

1
answer

Convert XML into UTF-8 to ISO-8859-1

I am developing a web service that is invoked by an application external to mine. In this web service I receive an XML with all the necessary parameters to offer the service. The issue is that the XML comes with UTF-8 encoding and the database w...
asked by 04.09.2018 / 13:33
1
answer

Invalid index 0, size is 0 (Android)

Hi I try to fill an Arraylist in a Fragment with data from a Sqlite table (the table already has data) and it shows me the error of the title in the catch. Class HomeFragment public class InicioFragment extends Fragment { public Recyc...
asked by 04.09.2018 / 02:46
1
answer

I need to keep saving different results of the same formula

Hello good afternoon, I am new to this and for a university project I found myself in need of a bit of basic programming. I'll paste the script and then relatare what I need. import java.util.Scanner; public class ModosNormales { public s...
asked by 09.10.2017 / 23:50
3
answers

Sum of N first pairs and product of N odd first

I have a problem with the following java exercise, I'm starting with the language: Make a program that calculates and shows the sum of the first N even numbers and the product of the first N odd numbers simultaneously, where N is a number tha...
asked by 06.10.2017 / 22:21
1
answer

Swagger-ui throws the error "TypeError: property is undefined" when rendering the file swagger.json

Swagger throws the error TypeError: property is undefined by the Javascript console when trying to render the "swagger.json" file generated by the swagger-core module that I have integrated into the API that I am developing with Jersey (J...
asked by 17.12.2015 / 12:41
1
answer

How to generate report in Jasper if the WHERE condition is not met

Hello community, I commented to you the problem that I have, I am generating a report of debts of clients with the following query: SELECT COALESCE(sum(F.total),0) AS Compra, CC.saldo - sum(F.total) AS deuda, C."razon_social" AS...
asked by 26.09.2017 / 18:22
0
answers

My printer does not work receiving esc / p commands

I am trying to start working with ESC / P commands with a Brother QL-800 label printer. I have tried the printer software, P-touch Editor 5.0, and if I can print the labels that I want, the printer works fine, but, when it comes to making my own...
asked by 26.07.2017 / 21:17
2
answers

Format String

I have the following code: String convertedString = new DecimalFormat("##.###.###,##") .format(Double.parseDouble(Constantes.TRANSACCION_MONTO)); TXTTRANSMONTO.setText(convertedString); How do I make the app not crashee? I get an error....
asked by 13.08.2017 / 18:27
0
answers

How could I adapt this C # code to Java?

Good evening how could you adapt this code to java? This is my DAOCliente internal void getCliente(clsCliente e_cliente) { string bd = "Cinestar"; SqlConnection cn = new SqlConnection("Data Source=localhost;Initial Cat...
asked by 10.07.2017 / 02:00
1
answer

MyBatis update timeout does not run

When I execute an UPDATE in MyBatis it hangs, if I put timeout "20" it interrupts the execution due to the excess of time. Mapper: <update id="actualizarUnaSalida" timeout="20"> UPDATE dbo.TbSALIDAS SET Facturado=1 WHERE...
asked by 28.06.2017 / 12:33