Questions tagged as 'java'

1
answer

Apache POI: how to tell if a spreadsheet has come to an end?

I'm developing a personal project, and for this I'm using Java along with the Apache POI to read XLS files, how can I tell if the spreadsheet has come to an end? Thank you!     
asked by 10.02.2018 / 04:23
1
answer

Creation problem Android Application - Java

I need to ask a number of questions, for a problem that was imposed on me, regarding the creation of an Android application in Java. To describe the circumstances, I am creating an app to serve my college football league. The whole "functiona...
asked by 12.02.2018 / 23:04
1
answer

sessionFactory null when trying to select select in the database

Good morning, I'm using Spring and JSF. I want to make a query to the database and return the data of a table, but in the method that I make the search, when calling the sessionFactory, it is coming null. I really could not find the problem. /...
asked by 26.02.2018 / 15:17
1
answer

Enum returns null of the bank

Hello, I'm implementing a DAO and doing some testing, I'm having some problems with enums. When running the test class the enum Size returns null, but in the database I have filled records correctly. Test class: package br.com.caelum.jd...
asked by 26.02.2018 / 15:58
1
answer

Recover shopping cart after closing and opening browser

I'm building a shopping cart with JSF it's working, but not the way I think it's the right one. Example: When I enter sales sites, even though I'm not logged in, I can add items to the cart, and even closing and opening the browser will kee...
asked by 13.03.2018 / 17:56
1
answer

Standard deviation JAVA

Here are my methods for calculating the standard deviation, which for some reason unknown to me does not work (I left my test method here too). public strictfp Double getMedia(List<Double> valor) { try { return getSoma(valor)...
asked by 07.02.2018 / 18:30
1
answer

Change a record with a REST WebService

I'm trying to change my bank's registry via a webservice rest in java, the tests in webservice worked, but on the client I'm having trouble working. Note: I use Delphi XE8 (Client) and Netbeans (WS) WS: @PUT @Consumes(MediaType.APPLI...
asked by 07.02.2018 / 13:55
1
answer

String comparison does not work

I have a string that currently only receives "ERROR" and I made an if for when it gave me this value I executed some things, it happens that the comparison always fails, even if the strings being exactly the same, I always compared string that w...
asked by 06.02.2018 / 00:58
2
answers

Error creating bean with name 'entityManagerFactory' defined in class path resource

Good evening, I have an application using Spring boot 1.5.10. I am trying to connect to the oracle database, but I always have the title error. Attempts: I have already returned the version of spring boot (which stopped giving the erro...
asked by 06.02.2018 / 03:56
1
answer

How to compare String with String received in a .jsp?

I have a html page and it sends a form with method POST type, I get the data like this: String email = request.getParameter("user"); When I compare the email string with another string containing the same text it makes me false. Why does t...
asked by 12.03.2018 / 21:18