Questions tagged as 'java'

1
answer

How to validate attributes in Spring Batch

I'm working with Spring Batch . In my batch processing, my reader needs to read a .csv file. When I read the file, I have a class that represents each line, and I would like to know how to validate the input data. I know that Spring...
asked by 31.01.2017 / 14:27
0
answers

How to export a table from postgres with column names to csv format with jdbc?

This is my code, which unfortunately does not export the column names: package net.viralpatel.java; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.sql.Connec...
asked by 10.01.2017 / 19:47
0
answers

could not resolve property: official of: br.com.horasExtras.domain.Funcionarios

I'm working on User authentication, this is my code of AutenticacoaBean . When I click the enter button on my authentication screen, the following error occurs:    could not resolve property: official of:   br.com.horasExtras.domain.Fun...
asked by 10.01.2017 / 23:54
0
answers

NullPointerException in JasperFillManager.fillReport

Rengo an application and when it arrives on that line JasperPrint jp = JasperFillManager.fillReport(in, null, conn); The system returns the following error message: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException a...
asked by 13.02.2017 / 16:24
1
answer

Calculate sql table in android

I have the following sqlite database and it works fine: db=openOrCreateDatabase("BaseDadosDB", Context.MODE_PRIVATE, null); db.execSQL("CREATE TABLE IF NOT EXISTS tabeladados(data date,total real,descricao VARCHAR);"); I want to return the...
asked by 12.01.2017 / 16:36
0
answers

class fill table made in class DAO [closed]

I'm a little fussy and I would appreciate the help. The project works, inserts users into the database, but I would like to make a jtable to display the data entered; Here is the complete project (I'm having trouble posting here link...
asked by 12.01.2017 / 16:27
1
answer

RMI application works localhost, but gives error when putting Server IP

If I run the code snippet as below in my application, it works: public static void main(String args[]){ try { final InterfaceTrilha interfaceServer = (InterfaceTrilha) Naming.lookup("//localhost:1070/ServidorTrilha"); But if I ch...
asked by 11.01.2017 / 17:48
2
answers

WEB Service in Java

I'm creating a Web Service, but I'm wondering how to get JSON in it as a parameter. @Path("WebService/{json}") @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public String POST (@PathParam("json") String jso...
asked by 31.12.2016 / 19:06
0
answers

Mask for CPF and Data using p: keyboard Primafaces

I searched several sites on this subject but found nothing that solved my problem. Come on, I have two fields one CPF and the other Birth date both using the keyboard component of Primafaces, so I would like to know if you have how to add masks...
asked by 02.01.2017 / 18:10
1
answer

Error in returning ListView object list

Here is my main class: public class MainActivity extends AppCompatActivity { public ListView lista; ArrayAdapter<Aluno> adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(save...
asked by 03.01.2017 / 05:10