Questions tagged as 'java'

1
answer

How to open another java program in java and get all the information it sends on the console [closed]

Well, I was researching but I did not have much success, I wanted to open a java program, a jar, it does not have JFrame, it only sends information to the Console, I want to execute it and get this information and send it to that too, could you...
asked by 12.09.2015 / 15:55
0
answers

How to fix encoding problems in a web application page?

I'm developing a JAVA application with the Spring framework v3.1.0, but when trying to access a page it has an encoding error:    Evolution How to solve this problem? I found several paths, but none worked: <servlet-container name="...
asked by 15.09.2015 / 19:04
1
answer

How to get the final SQL from JPA using NamedQueries

How to get the SQL that is being executed by JPA when we use a createNamedQuery. I would like to have SQL executed to understand where the query problem is: Calling NameQuery EntityManager em = JPAUtil.getEntityManager(); Query quer...
asked by 15.09.2015 / 02:28
0
answers

Implementation HttpURLConnection too slow when running

I am using the HttpURLConnection class to connect to a site that returns a JSON and I have made the following encoding: URL url = new URL("http://hmkcode.appspot.com/rest/controller/get.json"); HttpURLConnection connection = (HttpURLCo...
asked by 14.08.2015 / 20:34
0
answers

Error saving data in Sqlite database

The create table works, but by putting the code to save, the application compiles but not saved. What can it be? SQLiteDatabase winlife; EditText edt_meta; EditText edt_tempo; EditText edt_dataExpiracao; /** * Fragment managing the behaviors...
asked by 19.09.2015 / 17:36
0
answers

JPA + EclipseLink - Lazy Loading with EntityManager closed

I'm using EclipseLink as a JPA provider in a Java SE project. I have already set up weaving correctly to allow Lazy Loading. Unlike Hibernate (which launches LazyInitializationException), EclipseLink can get the proxy of a LAZY relationship,...
asked by 19.09.2015 / 01:18
1
answer

Return value processed in Javascript for the managed bean

Return value processed in Javascript for the managed bean is it possible? What's different about this process is that I run the JS method on the bean, like this: RequestContext.getCurrentInstance().execute("getResult()");     
asked by 18.09.2015 / 21:37
1
answer

How to tell if a certain Actor does not exist

I'm working with Akka / Java A reference to an actor that does not exist, simply does returns exception and / or does not know how to capture information that the actor does not exist in the actor system. ActorSelection register = null; re...
asked by 07.08.2015 / 21:13
0
answers

Use of two different certificates to issue nfse abrasf

I am sending notes to the abrasf using the code below to load the keystrore certificate information and tals. Only when I submit with one certificate and then another with another taxpayer, I refuse to report this error. Error code: GOV14....
asked by 23.07.2015 / 16:14
1
answer

window.open () does not load the page

I'm trying to open a link in a new window / tab but when it opens it does not load. Controller: public static Result loadCreateArtigo(){ return ok(request().host()+request().path()); } JavaScript: $.SmartMessageBox({ buttons...
asked by 29.07.2015 / 11:36