Questions tagged as 'java'

0
answers

SQL syntax error using JPA Criteria Query

Good morning, I am trying to launch a SQL query that retrieves all the Sites associated with a user, using the following JPA code: CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery<Site> query = cb.createQuery(Site.class); R...
asked by 14.12.2016 / 19:16
0
answers

Run to my project

Good morning, I am trying to run my project in eclipse, and I get an error, that the server could not be started in localhost I got the ports error I changed the ports, I have added server and I do not know what happens, I could help re...
asked by 14.12.2016 / 17:50
2
answers

I compare two Strings and I do not get into the IF

System.out.println("Dime el tablero al que te quieres conectar :"); tablero = sc.nextLine(); // AQUI LO LEO COMO UN STRING EN EL CLIENTE tablero = tablero.trim(); byte buffer_tablero[]; buffer_tablero = tablero.getBytes(); DatagramPacket men...
asked by 13.12.2016 / 19:00
0
answers

Problem printing on dot matrix printer with continuous paper in Java

I am printing checks with a Java application, I use DocPrintJob to create the document I print. The printing does well on the first page. The problem arises when you continue to the next page because as the printer is fed with continuo...
asked by 24.01.2017 / 20:21
2
answers

Error "PLS-00306: wrong number or types of arguments in call to 'TEST'" when invoking Java an Oracle function with parameters of type BOOLEAN

I'm trying to call an Oracle function from Java, and I get the following error message:    java.sql.SQLException: ORA-06550: line 1, column 13:   PLS-00306: wrong number or types of arguments in call to 'test'   ORA-06550: line 1, column 13...
asked by 26.01.2017 / 21:17
0
answers

I can not get the payment data through IPN in Sandbox mode

I'm having a problem testing the IPN in Sandbox mode. I've tried it in two ways: Mailing the url_notification by payment preferences. When I do this, I call my notification url, but when I go to find the payment information, either throug...
asked by 24.01.2017 / 14:02
1
answer

How to send parameter in event JSF

I have the following event type preRenderView to execute a method before loading the page: <f:event listener="#{aprobacionFlujoController.preRender}" type="preRenderView" /> I need to send a parameter to that listener, what is...
asked by 21.11.2016 / 22:08
0
answers

Apache Tomcat can not start

When I start my tomcat from Elclipse STS this error is displayed! Does anyone know how to fix it? Publishing failed Could not publish to the server. java.lang.IndexOutOfBoundsException Could not publish server configuration: C:\Users\D...
asked by 08.12.2016 / 20:16
2
answers

Run java (eclipse) in another environment

I have made a program with eclipse (without graphic interface) and I would like to be able to run it outside the program, for example on the console, or with the aesthetics of the console. Similar to when you program with the codeblocks and the...
asked by 09.12.2016 / 13:12
2
answers

TimerTask, Help (modified)

Start the method when starting the program, what I need is for the loop to run and then generate a timeout (1 minute) and rerun the task past the timeout (but also run the loop. . and so on) As I have it now, when you enter the method, it launch...
asked by 18.11.2016 / 16:44