Questions tagged as 'java'

2
answers

How to send an error message to view

I'm a little lost here, I'd like to put a parameter in the view to tell the user that their password is wrong, expired, and so on. the problem that spring-security identifies. WebSecurityConfigurerAdapter @Configuration @EnableWebSecurity...
asked by 17.03.2016 / 18:51
1
answer

Questions about formatting hexadecimal numbers in java for use in MD5

I'd like to know why the article's author has put this part: senha = String.format("%1$032X", i); I was curious how he got this string: "%1$032X" Follow the complete code: import java.math.BigInteger; import java.security.Messa...
asked by 13.03.2016 / 16:50
1
answer

I can not ignore fields when trying to return them as Json causing "Infinite recursion"

I'm working with Hibernate , Spring and Jackson (to ignore the fields) and trying to return the User < strong> in a request json java returns error due to @OneToMany and @ManyToOne mapping with the Profile class. Does anyone know why?...
asked by 11.03.2016 / 06:57
2
answers

Problem changing the type of a column in the model using JPA annotation

I have a column in the database that is limited to receiving a varchar(255) , but I need to change that to a larger size. For this I have added these annotations in the field: @Column(nullable = true, columnDefinition = "TEXT") @Lengt...
asked by 22.04.2015 / 21:54
2
answers

Incorrect formatting when opening a PDF generated by latex

In my program I need to open a PDF file and get the text it contains. However when opening the PDF, the text is poorly formatted. For example: Thanks to my family for not being? measure effort When the right thing would be: Thanks to my fa...
asked by 29.04.2015 / 03:20
1
answer

How popular is a JTable using a .txt file?

I would like to know how to make a JTable popular using a pre-existing text file. IhaveaquerytableandIwanttheusertoputtheaccountnumber,itshowsthedatainJtableandalsohowcanIdothefilteringbytheagencynumber?Thedatafrommytextfile: link...
asked by 03.05.2015 / 03:44
1
answer

Variable that changes according to the tight button

I have two different methods on two different buttons. o Method onE that adds% to% of variable and Method 3 that strips% of% of variable. The problem is that when I put this variable to appear in onM the app hangs. I would...
asked by 30.09.2016 / 04:09
2
answers

Duplicate Normalizer + Regex

Could someone explain the code below? returnStr = Normalizer.normalize(returnStr, Normalizer.Form.NFD) .replaceAll("[^\p{ASCII}]", ""); returnStr has a url as its initial value.     
asked by 23.06.2016 / 21:46
1
answer

Error: in Builder can not be applied

I'm developing a simple calculator. I'm doing a check if one of the fields is null open an AlertDialog, but I have the Error in Builder can not be applied, in this of AlertDialog.Builder. Can someone help me solve it? //Declarações de Variávei...
asked by 20.07.2016 / 03:31
1
answer

Selenium WebDriver_ Access the page without opening a browser

Does anyone know if I can access the page without opening a browser? That is, to do the tests without opening the browser. How? If you can give me a light. I'm using the Firefox browser     
asked by 08.07.2016 / 20:52