Questions tagged as 'java'

1
answer

Null.point.exception when executing method of another class

I'm running this code: run class package aloiexecv2; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; /** * * @author root */ public class test { private static Variaveis variaveis...
asked by 01.07.2017 / 23:57
1
answer

AlertDialog when there is an exception

Good afternoon, I'd like to know how I get an AlertDialog to be shown to the user when there's an exception on the android.     
asked by 01.07.2017 / 21:02
1
answer

Hibernate auto relationship turning into json break

I'm using Hibernate to persist the objects in an embedded HSQLDB file. I've created a similar method from a "tester" to popular and fetch the persisted information. But when I look for the informations, in debug mode it's like my result is...
asked by 10.07.2017 / 14:25
2
answers

Generate report only with data passed via parameter IReports

Normally we generate report by IReports based on query to the database, but now I come across the following question, I will assemble a report based on the data shown in the client's visual, in case it is redundant to fetch the information back...
asked by 10.07.2017 / 16:18
1
answer

Removing values for SQL file is not working

I have this code, which takes Strings and puts them in a dataBase, but the problem is that it is creating the dataBase but I do not know why, it is not inserting the values in it. Below I leave the xml and java files of the activity that I am tr...
asked by 09.07.2017 / 19:53
1
answer

Items from p: selectOneMenu / do not appear

I'm developing a web application and jsf web jfs primefaces, and I put a select from primefaces, but the items from <f:selectItems / > do not appear Looks like this <h:panelGrouplayout="block" styleClass="parcelas">...
asked by 10.07.2017 / 02:32
1
answer

findViewById returns null

I'm getting null from my findViewById call, and I can not figure out why. The code below is relative to Activity in my program: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceStat...
asked by 26.06.2017 / 12:12
1
answer

How to pass the value of a variable from a local class to another class (outside its scope and with public visibility)? [duplicate]

Good evening. I'm having a hard time using the value of a variable in a local class and passing it to another class that will be loaded in the intent. The string value is leaving null and gives error in the application. I'm a beginner, I've re...
asked by 11.07.2017 / 06:54
1
answer

Apply data from a txt to ArrayList

I need tips on how to create (where to start, which functions to use, etc.). A generic project that receives a .txt file, reads the data and stores the words in ArrayList<> . I have already created a structure for: L...
asked by 31.08.2017 / 16:12
0
answers

Bar Chart PrimeFaces

Does anyone know how to leave the primefaces bar chart this way? Itriedtodohereonlythatitalternatescolors,itleavesforexampleinvesofthreecolumnsblue,1blue,1red,1yellow,1greenand1purple.Code:privatevoidcreateBarModels(){testeGrafico=initBarModel2...
asked by 31.08.2017 / 20:06