Questions tagged as 'java'

1
answer

Error: "Lock wait timeout exceeded; try restarting transaction "

I'm developing a java application that uses Hibernate to do the mapping. I created the DAO's of classes, but when doing insert, update and delete operations it returns me this MySQL error. Here are my classes (I'll only post the insertion met...
asked by 26.11.2014 / 19:13
1
answer

Hide ActionBar in one fragment but show in another

I'm working on a project that's being done pretty much all based on fragments . So far, I have only activity and 4 fragments , within which I need only one of them does not have ActionBar . Common methods of hiding Actio...
asked by 26.11.2014 / 14:38
1
answer

Error sending image to imgur, how to solve it? [duplicate]

I'm trying to send an image to Imgur but it's giving error, I can not remember how I get the image. I'm using this code: public static String getImgurContent() throws Exception { URL url; url = new URL("https://api.imgur...
asked by 18.01.2015 / 20:10
2
answers

Audit change in Java + Spring + Oracle application

I have a task to change an audit implementation in an application in which I work. The audit requirement is to know the history of changes, and the execution of certain tasks by a particular user. (Initial State -> Modification 1 -> ... -> M...
asked by 19.01.2015 / 13:46
1
answer

How to add element inside an arrayList that is inside another ArrayList that in turn is inside a HashMap?

The question is: I have the Classes Student, Discipline, Note, Class. I need to add a double value in an ArrayList that is in an object of the Discipline class, but the Discipline class is inside an ArrayList and this ArrayList is inside a Ha...
asked by 19.01.2015 / 21:45
1
answer

Interceptor in Spring MVC

I made an interceptor so that every time the system had a message to display I would trigger a javascript with the message. public class MessagesInterceptor extends HandlerInterceptorAdapter { public static final String urlBase = "http://...
asked by 21.01.2015 / 00:53
1
answer

Create a shortcut through the Browser

Is it possible to create a shortcut through the browser? Be that as, if it's with JavaScript, Java, or anything that makes it possible. I need to create a shortcut on the user's desktop through the browser, in the same way that Chrome does wh...
asked by 22.01.2015 / 13:41
1
answer

Load values from a SelectItem already saved on the screen

I'm having a problem loading the selected value into <f:selectItem> by the user when rendering looks like this: <option value="320">Coordenador Desenvolvimento</option> I wanted to set the attribute selec...
asked by 23.01.2015 / 13:41
1
answer

The Primeface confirmation screen does not work

This is the screen that appears in my Browser WhenIpressthedeletebuttonitsimplydoesnothing.ItdoesnotgenerateanyerrorsintheeclipseconsolesThisistheseparatecodeproblemhere!<p:columnstyle="width: 100px; text-align: center">...
asked by 18.03.2015 / 19:30
1
answer

Problem with encoding in Excel file reader for Java

I have a relatively "common" problem. I have a Java program that makes importing an Excel spreadsheet and one of the column fields has words with accents, cedillas, etc. At the time of reading the variable, you are always marking with a black...
asked by 20.03.2015 / 17:46