Questions tagged as 'java'

1
answer

Error trying to connect smack to openfire

I'm trying to make a simple example to connect to an openfire server using the smack 4.0.6 library and I have the following code: ConnectionConfiguration configuration= new ConnectionConfiguration(ADDRESS, 5222); configuration.setSecurityMode(...
asked by 27.01.2015 / 19:12
1
answer

Demoiselle-Nimble: Error generating CRUD Vaadin

I'm using the class below, Bank.java, below: @Entity public class Banco implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="banco_seq_gen")...
asked by 11.03.2015 / 18:35
1
answer

Argument when initializing the Weka

In the Weka download page there is a recommendation to initialize the .jar file of Weka with the following argument -Xmx1000M . But I did not understand what the argument will change in the time that the Weka runs. Since initialization w...
asked by 10.03.2015 / 14:57
1
answer

Redeem values of the selected inputs in the DataTable of primefaces [closed]

I tried to use ajax and the f:attribute option, but I can not redeem the required values, that is, the selected line and the value of input . I'd like some help. Thank you.     
asked by 24.01.2015 / 04:34
1
answer

ENUM returning only the key and not the value

I'm trying in various ways to get the value of an ENUM, but it just returns me its "key." Below is the ENUM: public enum SaleType { BOUGHT("Comprou"), SEND_BUDGET("Enviar Orçamento"), SUBMITTED_BUDGET("Orçamento Enviado"), NOT_...
asked by 18.03.2015 / 20:38
1
answer

Error compiling Android Studio project with Gradle

I have a problem compiling my Gradle project. I have the following compiler response: Error:Gradle: Execution failed for task ':mobile:processBroadcastHomologDebugResources'. > com.android.ide.common.process.ProcessException: org.gr...
asked by 20.03.2015 / 20:16
1
answer

Data recovery of an object [closed]

I have 2 screens in Swing, one that calls a method and registers the information in an array, and another screen that should fetch one of this information and display it, the problem is that since the objects are different, I can not get the dat...
asked by 21.02.2015 / 05:12
1
answer

Array of sentences in Java

I'm studying Java, and Android development, and I want to make this application to understand how it works. I'm using the Toast class so that when I click on the image, a phrase appears, I managed to make it work with numbers, but instead of...
asked by 20.02.2015 / 18:43
1
answer

Null Pointer Launch

I am using a code in my application that was working normally, but suddenly when I was testing with the emulator it gets null pointer error on line 32, and also the method definirVolume() called on onCreate() I checked and everythi...
asked by 19.12.2014 / 01:10
1
answer

Doubts with Notification and AlarmManager

What I need is a hint, it helps to know how to implement an AlarmManager that whenever something comes up it will appear something like this OntheHomescreenofthephoneandmakeasoundevery5secondsForthenotificationIhavethefollowingcodeprotectedvo...
asked by 18.12.2014 / 12:28