Questions tagged as 'java'

1
answer

Debug email sending - java-mail-1.4.4

I have following code: private static boolean envioTest(final String descricao, final String msg, final String to)throws MessagingException{ final Properties props = new Properties(); props.put("mail.smtp.host", "64.233.186.108");...
asked by 29.12.2015 / 18:35
1
answer

problems inserting html into a Json Java object

When inserting html content within an object Json It is inserting a \ next to all the tags in the closing tags. example: input: obj.put("html","< head>< / head>"): output: "< head>< \/ head>" How...
asked by 28.12.2015 / 17:44
1
answer

How to generate an array of 3 columns where for each column there are 3 different possibilities?

The problem is this: In a vector I have 3 sets (A, B and C). Each set can have up to 3 distinct values (0, 1 or 2). That way I need to generate all the possible combinations for this case, with formula 3³ = 27 possibilities. Example: print...
asked by 01.03.2016 / 01:38
1
answer

createQuery (HQL) returns NullPointerException when trying to perform LEFT OUTER JOIN

Personal speech, I'm having a problem trying to run an HQL in my application. HQL is basically this: select c.id, c.solicitante from <mypackage>.Exame c LEFT OUTER JOIN <mypackage>.Profissional prof Java code: hql = "sel...
asked by 25.02.2016 / 19:38
1
answer

WebView - Update option only appears once in onReceivedError, see more

Hello, I'm developing a project for my site, and until then it's getting really cool. But I had a problem and it is as follows, whenever the page of error I called the Snackbar feature, it looks like this: webView.setWebViewClient(new WebViewC...
asked by 01.03.2016 / 15:18
2
answers

Java: Connection Class Error [closed]

How to correct this error? This is preventing you from connecting to the bank .... private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // Eventoos do Botao inserir try {...
asked by 23.11.2015 / 14:48
2
answers

Java generate JSON from a string

I am a beginner in programming and have never worked with json I am doing a work on and graphs and to make the graphical representation of the graph I need to generate a json with the data of the graph, I made a method that returns a string with...
asked by 19.11.2015 / 17:29
1
answer

Reading via Socket

I'm reading strings sent via socket to a server in Java. I get a line but when it reads it comes with breaking, looking like two lines. What I got should be: 78780103554880201238560006d0d8 But it comes: 7878 0103554880201238560006d0d8...
asked by 09.12.2015 / 12:51
1
answer

Java - Capturing data from JFormattedTextField and Validate

Good evening, I have the following problem. I do not know how to validate if the field of the JFormatted TextField has something written or not, so long as the formatting ###. ###. ### - ## is not considered valid or is required is actually f...
asked by 05.12.2015 / 22:07
1
answer

Client Server error in sending messages

I have the following code, however, when I run the server and the client and try to send messages from the client (frame window) of the error! Can someone help me? The error is supposed to be the class Panel messages in the send button on the ac...
asked by 07.12.2015 / 23:45