Questions tagged as 'java'

1
answer

javax (jws) WebService, get String of the input parameters (Password: value)

Hello! I have a set of services in Java, that I call them by SOAP and I want to register the input parameters. For example: @WebMethod(operationName = "getObject") public MyObject getObject( @WebParam(name = "param1") final Short pa...
asked by 16.03.2018 / 08:42
0
answers

How can I join two lists simply linked in java?

It's something very simple but it has given me a little headache, I am very new. The idea is to join two lists so that: list one = 1, 3, 5 list two = 2, 4, 6 The result should be: list three = 1, 2, 3, 4, 5, 6 I already made the c...
asked by 18.03.2018 / 22:16
0
answers

My database receives the data in the second click and not in the first one as it should

What happens is that when I give the first click the data in the Database appears as "0" and "1" should appear, however, when I press the button a second time if the "1" appears in the database ... Help please ... This is the Android code wit...
asked by 19.03.2018 / 18:29
1
answer

how to get the maximum and minimum date of a query in jpa with java?

I have the following query @NamedQuery(name = "findRegistroAccesoByNuserid", query = "select myRegistroAcceso from RegistroAcceso myRegistroAcceso where myRegistroAcceso.nuserid = ?1 and TO_CHAR(myRegistroAcceso.fecRegistroEntrada, 'dd/MM/yyyy...
asked by 21.03.2018 / 16:03
0
answers

Different results for equal objects

I have a java file that was designed to be an object called HeuristicaConstructiva, it receives as parameters a series of arrays and matrices which are constant. As variable entries there are three matrices that are sequences of numbers. The sit...
asked by 14.03.2018 / 01:38
5
answers

[Ljava.lang.Object; can not be cast

I have the following problem, I want to make a query to my db, to bring a list of a related class, all worked with hibernate, but when I want to print on the screen it throws me the following error: Exception in thread "AWT-EventQueue-0" java....
asked by 09.10.2016 / 20:19
0
answers

java.lang.NoSuchMethodError: com.google.common.base.Preconditions

I have the following error: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V at org.openqa.selenium.remote.service.DriverService.findExecut...
asked by 14.03.2018 / 12:18
0
answers

ERROR TO CORRECT MY PROJECT Error: A JNI error has occurred, please check your installation and try again

Good morning friends I'm trying to run this project and I throw that error, here I put the error.    java.lang.NoClassDefFoundError: TwitterException           at java.lang.Class.getDeclaredMethods0 (Native Method)           at java.lang.Clas...
asked by 14.03.2018 / 14:30
2
answers

How to move from one fragment to another in a defined order in Android?

I have a MainActivity that contains a button, within that same Activity I have 3 fragments, the Fragment1 is the one that appears visible when I open the app, what I do now is this; //Controlamos las acciones de los botones flotantes @Override...
asked by 14.03.2018 / 13:00
0
answers

Test of the procedure to copy a file in java

I am trying to implement TDD and code coverage in my new projects but for one that I am developing right now I have tried to create some test cases, but I have multiple doubts respect. Here I share the class that I created to copy a file fro...
asked by 14.03.2018 / 15:32