Questions tagged as 'java'

3
answers

Scanner class does not read an external file- Java

I am trying to use the class Scanner but, although I have tried several changes, it continues throwing FileNotFoundException , please if someone had an idea. Here I put the code package youtube; import java.io.File; import jav...
asked by 27.03.2017 / 17:42
0
answers

Problems with unit tests Array Junit

My question and problem is as follows, I have the method fillVector where I fill a vector with random numbers and now I want to do the unit test with Junit, which is the method testValidos, and I always miss an error and I do not know if it is b...
asked by 27.03.2017 / 18:19
2
answers

Operation not allowed after ResultSet closed

I'm having a problem with a method whose function is to return a list of messages sent by the user (assuming the user is an attribute of the method class) The code in question is the following: private final String url = "jdbc:mysql://local...
asked by 27.03.2017 / 15:01
0
answers

How to use imap in javamail, fix error javax.mail.AuthenticationFailedException

As the title says I am trying to implement the email receipt in an Android apk using the javamail library (imap), but it turns out that I always get an error javax.mail.AuthenticationFailedException , the user has access to imap, help me solve...
asked by 13.03.2017 / 20:38
0
answers

Retrieve the host name and port of the server, to use it as a link in the body of an email

I have a web application that is built using servlets, and I have a bean that is in charge of sending emails, and in these a link is added to enter a certain part of the system .append(servidor+"sisalbmReporte/grupos?action=vulnerabilidades&a...
asked by 17.03.2017 / 19:18
1
answer

Java - Round a float and place it in a jTextField

I have a project in Netbeans based on MVC. In the part of the "ABMProduct" view, I have the following code: private void txtGananciaActionPerformed(java.awt.event.ActionEvent evt) { float pv = 0,...
asked by 16.03.2017 / 14:13
1
answer

Error in android API 22 and 21 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

Good morning! I have a problem with android studio, when running my app on devices with API 21 and 22, I show my Log: 03-16 10:52:33.930 3387-3387/com.lms_la.njoyapp E/AndroidRuntime: FATAL EXCEPTION: main Process: com.lms_la.njoyapp, PID: 338...
asked by 16.03.2017 / 16:59
0
answers

JPA in Heroku without Spring - No persistence provider

I have a web app for which I use JPA with Hibernate 5.2.10.Final for the backend. The problem is that when it tries to generate the connection it gives me ExceptionInInitializerError: No persistence provider for EntitiyManager named de...
asked by 07.07.2017 / 11:27
1
answer

Conxion with java to database of hostinguer

/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package parte_conexion; import java.sql.Connection; import j...
asked by 07.07.2017 / 17:42
2
answers

No value specified for parameter 10 when loading date from MySQL in JDateChooser

I am between the sword and the wall, I get the following error No value specified for parameter 10 when wanting to load the date stored in the DB in a JDateChooser. The error occurs when I load my product edit form, which I use the loadData...
asked by 08.07.2017 / 02:03