Questions tagged as 'java'

1
answer

Error injecting object: returning null

When I inject an object into the class it returns null , it does not seem to be instantiated. Exception in thread "main" java.lang.NullPointerException at com.fercosmig.util.db.PopulaTabelaUsuario.main(PopulaTabelaUsuario.java:37)...
asked by 02.10.2015 / 21:21
2
answers

JPA Error with Wildfly - No Persistence provider for EntityManager named Project

Hello I am creating a very simple test application, using JPA, Wildfly as an application server and Oracle Database 11g Express Edition as a database. The intent of the Test class is to run a People query. Whenever I run the Test class, th...
asked by 20.09.2015 / 14:53
1
answer

What is the DispatcherServlet function in Spring?

What is the purpose of it? is it recommended to use spring-boot to do all spring xml settings automatically?     
asked by 22.09.2015 / 13:51
1
answer

Error in creating a maven project

As soon as I create a Maven project with the "war" packaging, it gives the following error: Description Resource Path Location Type web.xml is missing and <failOnMissingWebXml> is set to true pom.xml I'm using the Spring IDE Ide...
asked by 01.10.2015 / 03:56
1
answer

Loop to fill in an input with various data - Selenium WebDriver

How to make a loop to scan an array and bring its data one by one and fill in the input? The image illustrates well the problem ... I need For For to pass several times through the method and get the data from it and fill in the input and fol...
asked by 01.10.2015 / 14:22
1
answer

Define Attribute from radiobutton JSP

I am putting together a generic form for registration of individuals and legal entities and the definition starts from two RadioButton's that changes the fields, after they are filled they are sent to a Servlet and then to a DAO c...
asked by 02.11.2015 / 19:04
1
answer

Parse HTML with Jsoup - Java

I'm studying the Jsoup library and I took the most basic example of the site and tried to build something simple, but I have this error, which does not allow me to execute the code:    Default constructor can not handle exception type IOExcep...
asked by 30.10.2015 / 20:19
1
answer

Target Unreachable, 'reply' returned null - SelectOneRadio

I can not get the value of my selectOneRadio , it comes as null : <p:dataTable id="exibePerguntas" var="questao" paginator="true" rowsPerPageTemplate="2,3,5,10,12" paginatorPosition="bottom" value...
asked by 30.10.2015 / 15:43
1
answer

Class not found in compile by Windows CMD

I'm not able to run my algorithms in Java through the Windows 8.1 terminal. It happens that always gives a class error not found, I already put the .class files together with .java and still can not find. What do I do to resolve? Here a...
asked by 25.09.2015 / 03:38
1
answer

commandbutton executes method, but being null values. Why are not the inputstexts values assigned to the class attributes?

In all the examples I saw in the code below, the normal occurrence was when the xhtml page was started creating a new client-type object. Through the values entered in the inputs, set the attributes of this object and the commandbutton could use...
asked by 30.08.2015 / 15:27