Questions tagged as 'java'

2
answers

Alternative Flow in Spring

In the face of the situation: I am in the car registration screen, where I can select the brand and enter the model. If I need to register a template that does not have the previously registered trademark, I have a link that leads to the tradema...
asked by 31.01.2014 / 20:37
1
answer

Configuring the Jackson Library for Dynamic Attributes

I'm using the Jackson library to transform the following JSON into a Java object. {"name":"Agent/MetricsReported/count","begin":"2014-02-04T09:44:00Z","end":"2014-02-04T09:45:00Z","app":"","agent_id":, "average_exclusive_time":0.23999999463558...
asked by 04.02.2014 / 13:10
1
answer

Move multiple messages to a folder using JavaMail

I want to refactor an email handling code, I know you can remove multiple messages in one operation, but to move multiple messages to a certain folder, I use the IMAP protocol.     
asked by 05.02.2014 / 14:44
2
answers

Handling Objects in Session

I'm working with legacy systems in JSF 1.2 and noticed that developers make an absurd use of the session to store all kinds of objects, ranging from user-supplied filters to collections. As you can imagine, this is not treated properly. Many...
asked by 31.01.2014 / 14:24
1
answer

How to solve this Spring Boot problem?

I'm learning to use Spring Boot , following / adapting this official page tutorial , but whenever I try to run, these exceptions and errors appear: Error starting ApplicationContext. To display the conditions report re-run your applicat...
asked by 01.10.2018 / 02:28
1
answer

How to create a TreeMap to store words and the lines where they appear?

I need to iterate through a text and take each word of it, store it in a structure (as TreeMap ) and next to each word the lines in which they appear, to generate an index. My big question has been how to structure this, because using...
asked by 23.06.2014 / 22:05
2
answers

Exception in thread "main" java.util.NoSuchElementException

I have the following java method that reads a text file and creates new dots (coordinates in a graphic), however I am encountering the error of the title in reading the file. By following my stackTrace it points out that the error is when I try...
asked by 19.06.2014 / 03:45
1
answer

JDK 1.8 GeneXus X Ev. 2

I would like to know if GeneXus X Ev.2 or above already allows you to compile the programs generated in Java with JDK 1.8. Do I have to do something different?     
asked by 20.06.2014 / 21:58
1
answer

Message "301 Moved Permanently" began to appear suddenly

I have two applications that worked perfectly, but without any changes to the code, they do not work anymore. On the one hand, an application with a JSP doing a POST call and passing two hidden parameters: <li> <form name="logi...
asked by 24.06.2014 / 23:40
1
answer

How to reduce JSF application CPU consumption

From time to time, my application started to have a very large CPU consumption. I installed JProfiler, and from what I understand of it, there is a problem with hibernate's c3p0. I'm using hibernate 4.3, jsf2.2.10 + primefaces 5.2, use ehcache a...
asked by 29.08.2018 / 00:24