Questions tagged as 'java'

1
answer

Bank query, main class returns zero

I am doing a query taking only one field and one row and settling on a main class variable, the question is that within the try below, the variable shows the result of the query correctly String sql1 = "select ca_id from cadastro where ca_no...
asked by 29.09.2016 / 23:17
1
answer

Problem in catching latitude and longitude

My code was working, I got the latitude and longitude normally, but it stopped and I am no longer able to get the location. So it falls on the condition that it was not possible to get the location private void foto(int actionCode) { Lo...
asked by 30.09.2016 / 02:58
1
answer

Spring MVC annotations are not working on Maven

Hello, I'm having a problem setting up Spring MVC in Maven , when I try to access the link it returns on browser:    STATUS 404 The requested resource is not available. And the WARNING:    No mapping found for HTTP reques...
asked by 06.09.2016 / 17:41
2
answers

Loop in hour interval

I need to walk through a time slot to set up a schedule grid. Example: 8:00 AM to 10:00 AM, adding 30 minutes. Forming a grid like this: 8 o'clock 08:30 09:00 09:30 10:00 I'm trying like this: GregorianCalendar gc = new GregorianCalenda...
asked by 06.09.2016 / 15:55
0
answers

Selenium with Maven plugin does not work the tests

Implementation to run a JUnit and testNG test suite, When run by the eclipse plugin, it works. By maven not, the behavior of testNG tests are changed, It seems like it does not end right the http sessions, Create an http session, when (...
asked by 26.09.2016 / 22:59
0
answers

Copy apk located in / data / app / programmatically

Hello , I'd like to copy an apk located in the / data / app / folder. But the apk is not being copied, only the folder is created, it follows the code: InputStream input; String apkPath = "/data/app/com.app.exemplo/base.apk";...
asked by 07.09.2016 / 14:10
1
answer

problems running createNativeQuery

Hello everyone. I'm creating a project that handles user registration. In this project there will be several types of users. To simplify, let's call the types 1, 2 and 3. Depending on the type of user, the screens and features that he can access...
asked by 11.10.2016 / 14:39
1
answer

Problems with Spring Security

Hello everyone. I'm creating a project using Java EE and as an IDE I'm using Eclipse. In this project, I'm using Spring Security to authenticate the login procedure. But the following happens: I created an xhtml page to register new users. Ob...
asked by 11.10.2016 / 02:14
1
answer

Delete gallery gridview item

I'm developing an app that contains a gallery and I found a tutorial that showed how to populate the GridView with pictures taken from the camera. However, I am having difficulty doing something for when the user wants to erase some of the im...
asked by 28.08.2016 / 22:50
0
answers

Error Column count does not match value count at row 1, for a select

My system, in the save button, I inserted 3 tables at the same time, 2 using FK, I'm using the cad_id field as FK in 2 tables, I'm doing a select to pick up a single cad_id field to save in the bank other 2 tables, using the resultset, to set an...
asked by 17.09.2016 / 20:55