Questions tagged as 'java'

2
answers

Convert empty string to integer to insert into database

How can I convert a text field (JTextField for example) empty, to integer, to later insert into the database? I have in the database fields defined as int, but when the user does not fill a jTextField is an empty String that is not accepted i...
asked by 14.11.2014 / 18:08
1
answer

Problems with activator installation on windows 8

I'm having problems installing typesafe-activator, when I open activator.bat the windows command prompt returns me the following message: I installed Java SE Development Kit 8 and the problem remains.     
asked by 16.11.2014 / 14:15
1
answer

Error org.hibernate.LazyInitializationException how to resolve?

I know this error is derived from trying to fetch some data from the database, when I do not have any open session. But the biggest problem for me is that this error is appearing to me completely random, as I am developing a server that proce...
asked by 17.11.2014 / 15:45
1
answer

Download dialog does not appear

I am generating a xls in memory and it should appear for download , but at the end of the method the download dialog is not appearing. xhtml <a4j:commandButton styleClass="Button" value="Download" execute="@f...
asked by 17.11.2014 / 15:32
1
answer

How to Generate / Calculate the Value of Poisson and Normal Binomial Tables in Java

I'm doing a job in Java to calculate the statistical probabilities, I do not know how to generate the Poisson Binomial and Normal tables to proceed. For example: X~Bi(5,0.05) In this case X tends to a binomial, I would have to go to...
asked by 07.05.2014 / 10:41
1
answer

Layout management problems with MigLayout

I'm having trouble managing the layout of a JFrame that is a test. How are you: HowIwouldlikeittobe: import java.awt.Color; import java.awt.GridLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; i...
asked by 12.05.2014 / 20:22
1
answer

How do I add an array to an edge of the graph?

My graph is implemented as an adjacency matrix. The graph is acyclic. I want to create a method that gets two nodes and creates an edge from one to another with an array of NxM. What is missing or what is wrong? public class Graph { /** A...
asked by 25.05.2014 / 03:19
1
answer

How does WebService SOAP / Rest work with JAX-WS?

I spent a whole day studying and finally I was able to authenticate with WebService SOAP using JAX-WS, using client generated by Eclipse. When you add the password and password to the SOAP message, how do you do this? Does it encode? Custo...
asked by 10.05.2014 / 18:43
1
answer

Null pointer with Location Manager

I have the following code which returns NullPointerException in line: lat = location.getLatitude(); private GoogleMap mMap; private String provider; private LocationManager locationManager; @Override protected void onCreate(Bund...
asked by 24.05.2014 / 16:46
1
answer

Upload Image using WebService C #

I would like some help to know how to upload an image using webservice c #, I've tried several forms and several examples but I could not. I have tried to convert an image to base64 string, I did not succeed. The form for communication betwee...
asked by 20.06.2014 / 20:27