Questions tagged as 'java'

1
answer

Create a * .csv file with data found from a file

I'm developing a project that extracts information from a * .pdf file, I was saving this information in a * .txt file, but now I was asked to save this information in the form of a worksheet, I want to create a * file. csv, but the only way I fo...
asked by 15.08.2016 / 20:46
1
answer

Error generating Jasper reports [closed]

Then the program to which I am responsible generates reports from .jasper files and not .jrxml, I opened one of these files (with jaspersoft studio) to perform what would be a simple modification (I just changed the title of the report) comes th...
asked by 15.08.2016 / 14:03
1
answer

javax.persistence.EntityManager.createQuery (Ljava / lang / String; Ljava / lang / Class;) Ljavax / persistence / TypedQuery;

I have the following problem in developing my user authentication and password: jun 30, 2016 8:49:27 AM com.sun.faces.lifecycle.InvokeApplicationPhase execute ADVERTÊNCIA: #{LoginMB.efetuaLogin}: java.lang.NoSuchMethodError: javax.persistence....
asked by 30.06.2016 / 13:55
0
answers

Uploading images by increasing the file size by almost 10x

Good evening dear benefactors programmers. I have a problem, as I described in the title, which is affecting my image uploads. The image increases up to 10 times in size. And I'm not talking about dimension. Ex: Initially, I have any image, l...
asked by 30.06.2016 / 23:01
0
answers

NullPointerException when displaying entire list in DataTable with PrimeFaces

I need to display all the data in the list in the DataTable using PrimeFaces, but by changing the size of the rowsPerPageTemplate to 300 the data is displayed on the screen, but the filterBy and data editing functions stop working. p> The foll...
asked by 25.07.2016 / 20:33
0
answers

I can not read the first line of url

Good evening. Although I can not figure out what the error is, I can not get the first line of the file that is in the url when this application is used by versions higher than api 10 because api 10 works fine. why? Integer valor; TextView tex...
asked by 25.07.2016 / 22:42
1
answer

Tie is in Java

I need to receive a number n and then repeat the receipt and processing of the string v, n times. I tried the following: import java.util.Scanner; public class Main { public static void main(String []args){ Scanner sc = new Sca...
asked by 27.06.2016 / 20:56
0
answers

Create pdf files with pdBox

Good afternoon, I'm trying to create a PDF file with pdBox, recording what it finds in the matcher of my application, but the created pdf goes blank Could anyone help me with this question? PDFParser parser = new PDFParser(new RandomAccessB...
asked by 29.06.2016 / 19:41
1
answer

Problem with file transfer via socket with java

I'm trying to make a client / server program that accepts more than one client and that client sends files to the server. The transfer was working correctly, however when I put a while so that when sending once it might give the option to send a...
asked by 31.07.2016 / 05:40
0
answers

Identify empty columns of a jTable and paint the entire line of Red

I'm importing a file into Excel and playing inside a jTable, so that's fine. What happens is that user has inserted spreadsheet with empty fields. I would like to leave the entire sheet in red and request that it be changed. This is the code...
asked by 22.07.2016 / 15:13