Questions tagged as 'java'

1
answer

Problem with Java KeyStore

I have a class to handle the keystore. import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.security.cert.Certificate; import java.security.Key; import java.security.KeyStore; import java.sec...
asked by 16.05.2018 / 17:10
1
answer

Validate age JSF

When entering the age in a form using JSF I have to verify that the age is in a certain range and if not show an invalid date message. I had thought about using Java code that I had implemented from other years in a class that implements validat...
asked by 16.05.2018 / 18:50
1
answer

How to control an unexpected nullPointer Exception [duplicate]

I have a problem that only happens when I upload changes in quality environments and whose server is the WAS websphere application server in my local I am using tomcat 7 with eclipse, the detail is that local does not mark error (Eclipse) bu...
asked by 16.05.2018 / 16:40
6
answers

What is the solution to all present, past and future NullPointerException errors?

I have my Java program and I get a NullPointerException and I have seen other questions but they are from people with other programs and it does not work for my program and I want to leave here the 2,000 lines of my program so that you solve the...
asked by 08.01.2017 / 18:54
0
answers

How to search data - DAO Factory

I have a query, I am learning the methods mvc, dao and factory, for it I made a small list and form with connection to mysql database, where I want to list a table and also look for the records of that table that are in a certain range. I was...
asked by 15.05.2018 / 10:25
1
answer

Weblogic (12.2.1.3) - Error in displaying a war. "Cvc-enumeration-valid"

I have a problem with my weblogic server 12c, the fact is that I went to deploy a service in war format and the server returns the following error: <8:3> problem: cvc-enumeration-valid: string value '3.1' is not a valid enumeration value...
asked by 15.05.2018 / 14:12
2
answers

ResultSet error "Can not find symbol"

I recently worked with a code that connects to a database in mysql. Its functionality is to insert data to the previously created table and then with a button to give functionality to empty TxtField in Jframe to refill. The error is shown to...
asked by 15.05.2018 / 06:17
1
answer

enter data Scanner to constructor

Someone who explains to me please, how can I invoke the other classes using the constructor with the data that I enter by keyboard using Scanner, thanks. CODE: import java.util.*; class Principal{ public static void main(String[] args)...
asked by 15.05.2018 / 00:13
0
answers

Problem with Itext Paragraph and CK PrimeFaces Editor

I have a problem reading java an HTML string generated with Primefaces CK Editor: When applying styles of bold, italics or underlining to the text and changing the font size, the generated html is as follows: In an HTML viewer, the t...
asked by 15.05.2018 / 17:34
0
answers

Declare variable with name equal to a value?

Many times I have needed to declare a variable and that its name is the value of another variable dynamically. Something like this: Example: JSONObject fieldGruop = new JSONObject() //objeto json //aqui itero por un array de objectos Field...
asked by 18.05.2018 / 17:56