Questions tagged as 'java'

2
answers

JAAS - request.isUserInRole always returning false

I am implementing a JAAS with only 2 types of users, one type will be Administrator and the other will be Contributor. Instead of creating separate directories for admin and for collaborator, I want both to access the same page, the difference i...
asked by 09.06.2014 / 17:05
1
answer

Handling Database Exceptions

How to handle database exceptions with JPA? And, how to use annotations in place of the IMessage interface, as below? Example: My database returns the error: "Violation constraint uk_email"; Get the constraint of the error message (uk_e...
asked by 04.07.2014 / 03:52
1
answer

How to build a jar even if the project has a compilation error?

I'm starting the process of automating the builds of our application, and in the project have some classes with compilation error. Despite some compilation errors, the application is working fine. I will have to do a task force, to remove the...
asked by 07.07.2014 / 14:50
1
answer

Debug / run non-stop server

Is it possible to stop an execution that is at debug at the moment of the breakpoint without stopping the server? I do not want debug to continue because I know it is wrong, for example I want it to stop before giving an insert in the d...
asked by 01.10.2014 / 03:03
2
answers

Error 404 of a Spring MVC application

I'm following Caelum's handout. I made the application "hello world" with Spring MVC, which has both the configuration and the Controller . However, when accessing the URL localhost:8080/WebSpring/olaMundoSpring , the 404 error page ap...
asked by 06.10.2014 / 17:00
1
answer

Saving object list to Android

I want to save this list (List) after exiting the application, and when I run the application again I want to retrieve the instance from the list that I had previously saved. private List<BluetoothDevice> listaDispositivoFavorito = new A...
asked by 24.09.2014 / 05:08
2
answers

Java.lang.String error can not be cast to when capturing data in Jcomobox to save

I have the button event saved, when I click to save, the following appears: Java.lang.String cannot be cast to org.nomedopacote.modelo.Funcionario cbNomeUsuario - This is the name of Jcomobox that is getting a List Officer....
asked by 25.05.2014 / 20:38
2
answers

Question about Listener for JComboBox

Would anyone know to tell me some Listener for when I select an item in JComboBox it gives me a warning for example. Remembering that when I open my component (JFrame) I hide items in there by the bank so I can not fall into the Listener. Let...
asked by 19.05.2014 / 20:56
1
answer

JBoss log reading

This code takes my JBoss log file and displays the first 1000 lines. I would like to know how I can display the last 1000 lines? private String log; public void pesquisar() { String diretorioCorrente = System.getProperty("jboss.server....
asked by 15.05.2014 / 18:13
1
answer

AsyncTask aborted during execution does not call any of the post-doInBackground () methods

When I cancel my AsyncTask running, it does not update the mAsyncTaskEstaFinalizada flag. Does anyone know what can it be? When I put breakpoints in methods onCancelled() , onCancelled(resultado) and onPostExecute...
asked by 22.05.2014 / 20:52