Questions tagged as 'java-8'

1
answer

Automated test with Selenium using netbeans

I am trying to reproduce the facebook page with selenium using NEtbeans java. but I get this error when doing the Test File.    OpenPagen caused an ERROR: Can not find firefox binary in PATH. Make   sure firefox is installed. OS appears to be...
asked by 06.06.2018 / 18:48
0
answers

apply code changes NetBeans

I've been trying to do this for several days and I do not get it. I have to say, that when debugging my project, if it stops me at the points of interruption, but, in the version I had before (7.4) I could modify code, and apply the changes. Now...
asked by 29.05.2018 / 09:11
0
answers

Does not order an object with lambda (Java 8)

I am making a query of a table as an object to insert it in another table. Sorting with lambda the student_code. I did a proof of concept with two integer values and if it worked, but when I do it with 2 values String does not order them. publ...
asked by 21.03.2018 / 01:52
1
answer

convert JavaPairRDDString, Integer to Json

I have the following WordCount example and I would like to get the result to JSONObject: JavaPairRDD<String, Integer> counts = words.mapToPair(new PairFunction<String, String, Integer>() { public Tuple2<String, Integer> c...
asked by 13.02.2018 / 17:47
0
answers

migrating from jdk7 to jdk8 changed the XML encoding in response

I have a webservice done on java 7, running on Tomcat 7, Linux Centos / MySql. When updating to JDK 8, the XML that my application sends to the clients (response), have changed the codification for ISO-8859-1. Example: <?xml version="1.0...
asked by 20.02.2018 / 20:51
1
answer

PreparedStatement does not insert data

Good afternoon: I request the collaboration to solve the following problem that I have with two files in java, one is called test and the other connections, the test file has a table that brings the data from the mysql database and with a click...
asked by 07.02.2018 / 20:08
0
answers

Timeout error

I'm doing several test cases and in one of them, it shows me the following error.    The waiting time after 30 seconds of presence of element located by: By.id: I have used the implicit wait and the explicit wait. I have also used the...
asked by 25.01.2018 / 20:53
2
answers

I can not export invoice to the txt file

Dear Friends: I'm trying to export my invoice to the txt file to be printed on the dot matrix printer from javaweb JSF (JavaFaces) and I get a message error: javax.faces.el.EvaluationException: net.sf.jasperreports.engine.JRRuntimeException: Cha...
asked by 11.01.2018 / 18:06
1
answer

How can I link two maven projects to use the classes from one to the other?

            com.controller             EJBCARGA_ATM_REMOTO_MAVEN             1.0-SNAPSHOT             runtime             jar          I have tried to include it that way, but it gives me an error when building the projects with the dependenci...
asked by 05.01.2018 / 18:33
1
answer

I have a problem with this exercise in java

The problem is the following:  Create a class called MyMethods, which must contain 2 methods, one of type void and another that returns value, the latter must have a parameter. The first method should print the message "Hello Happy day" and the...
asked by 07.11.2017 / 21:01