Questions tagged as 'java'

1
answer

Problems in project reconfiguration

When I start wildfly I get the following error: 13:56:39,872 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."pokemax.war".INSTALL: org.jboss.msc.service.StartExceptio...
asked by 29.12.2016 / 17:04
1
answer

Maximum number of options within the c: choose tag of JSTL

Personally I was recently working with JSTL and I came across the following situation, I tried to add 3 tags when inside a choose tag and the last tag just does not work, the code looks like this: <c:choose> <c:when test="${pa...
asked by 31.12.2016 / 18:56
1
answer

Improving Login Logic - JDBC - JavaWeb

I'm developing the login method of an application, but I've been noticing that the query I'm running to check if a user is registered to the system and if his password hits the bank's data is very slow. I'm using Select * FROM cadastrados...
asked by 02.12.2016 / 03:27
1
answer

How to get an image of the save screen in the project folder and save the path in Mysql database?

So, I have a jsp with form, it converts the image to b64 and sends as a pro servlet string the servlet converts to b643 String stt = request.getParameter("base64img"); try{ String parts[] = stt.split(","); Strin...
asked by 04.12.2016 / 16:28
1
answer

How do I get user id in a session?

I'm doing a project using jsp and servlet, I need when a user logs in, his id is stored in the session, so that with this id, the system knows that this id user is making changes to their (Example, phone change). How could I do that? Control:...
asked by 02.12.2016 / 00:26
1
answer

Delete selection from a List

In my java class I created a form and created a button that cleans all fields. But I can not get it to delete the selection of a list that I have on the form, it deletes the textfield and radios butto n but not the list. Note: I...
asked by 02.11.2016 / 18:43
1
answer

Spring Boot does not start in Debug mode (Java)

I have an application developed with SpringBoot and I can not start my application only in debug mode . (If it is not debug it starts normally) It looks like looping and this error message pops up in the log javax.management.InstanceNotFoundE...
asked by 03.11.2016 / 15:17
1
answer

Input values in array

I have the following code that reads a 10x10 array: public class t151 { static final int n = 10; public static void main (String[] args){ int A[][] = new int [n][n]; int i,j; for (i=0; i < n; i++){...
asked by 04.11.2016 / 00:34
2
answers

problem with java.lang.NullPointerException

Well, I'm trying to populate a JTable with database data, but I've always encountered the same exception as java.lang.NullPointerException. It should work as follows: user clicks the refresh button and the program pulls the DB information,...
asked by 27.10.2016 / 17:37
1
answer

Can I use JSON to save ArrayLists to Shared Preferences?

I'm developing an application in a college project and I'm creating the control part, I will not mess with the server part for now because I do not know much about it. I am creating functions to generate some Arrays with the items of m...
asked by 28.10.2016 / 22:18