Questions tagged as 'java'

1
answer

When I pass a class as an argument and then I want to use it, it says can not be resolved to a type

I am creating a DAO class that what it does for now is to bring to memory lists of objects from a json file. This method receives the name of a class and with that it should bring me the list of objects of that class but when I want to tell it t...
asked by 16.04.2018 / 16:58
0
answers

Problem in configuring CXF for SOAP and REST logging

I have SOAP and REST services in my application and I have CXF configured with spring and xml to show the logging. The SOAP services show them well, but the RESTs do not. My configuration is as follows: <cxf:bus> <cxf:features>...
asked by 10.05.2018 / 10:10
3
answers

Problem with the Cors Spring Boot and Angular 4

I am using a Api Rest with Spring boot with a basic auth of spring security, When I make the request to the backend with Angular it gives me as a result a problem with the Cors 'login:    1 Failed to load link : R...
asked by 22.04.2018 / 14:19
1
answer

Doubt about sqlite in java

I'm currently doing my first job for a client, I'm using sqlite3 in java. Well the question is the following, to make the project I need to create a database, and to test the program filled the database with fictitious data. Now, what happ...
asked by 18.04.2018 / 22:42
1
answer

How to create a widget from an activity?

I already have the widget, add it in the manifest, the interface and the functionality of it What I want is that through a button in an activty, the widget is put, this so that the user can put and / or remove the widget from an activity...
asked by 05.04.2018 / 22:39
1
answer

Print objecto json with good fromato

I have the following function that what it does is to bring me a list from the webservice, then that list is converted into an XML string since the list that returns is a soap response. after that what I do that string to json and get something...
asked by 18.04.2018 / 22:29
0
answers

get file path with the uri, in android studio

Hi, I'm doing an app with adnroid in java, I launch an intent to pick up a gallery image. The onActivityResult method returns the Uri of the image, but I need the path of the file. To be able to send it via network to a web server with mysql.Goo...
asked by 05.04.2018 / 22:59
2
answers

Table lock caused by MysQL trigger

Currently I have a problem apparently with some triggers in one of my tables as it is blocked, by doing a few "INSERTS" the table works correctly but by doing many simultaneous INSERTS (I'm using JMeter for load tests) a DeadLock appear...
asked by 04.04.2018 / 17:02
1
answer

Does anyone know why one of the two adapters works but the other does not?

I have 2 classes called MyAdapterBig / MyAdapterSmall, they represent two frigates. The issue is that one of them the small is perfectly, when I give the delete button delete, but the other Adapter, does not enter the for ... then ... I'm going...
asked by 06.04.2018 / 22:30
2
answers

Help to search in a fix a name entered by keyboard and display the index in the one that is inside the array?

ArrayList<String> nombres = new ArrayList<>(); nombres.add("Pepe"); nombres.add("Juan"); nombres.add("Oscar");     
asked by 01.04.2018 / 23:37