Questions tagged as 'java'

1
answer

Memory error in Android app when consulting more than 500 contacts

I have an app about to go to the market but I have a problem that I do not know how to solve.    When I make an inquiry from the contacts of the phone from the app, if the user has more than 500 contacts, the app remains frozen. Do you kn...
asked by 06.04.2017 / 20:45
0
answers

How to avoid the error.code 1006 in WebSocket

On the client side, I have websocket configured with javascript. On the server side, I have websocket configured with java. The configuration is quite simple and works correctly. Once a day, randomly, the clients (javascript) begin to give th...
asked by 04.04.2017 / 21:32
0
answers

concurrency problem Wildfly 10 Primefaces 6 in com.sun.faces.lifecycle.RenderResponsePhase / doPhase [closed]

I have developed a JEE application with primefaces 6 Spring in Wildfly 10. The application works well with few users, but from 10 users the system starts to give very high response times of more than 10 seconds. With 25 User gives times of 30...
asked by 04.04.2017 / 23:17
0
answers

Duplicated control in primefaces

I am working with primefaces and I have created a login where I select which database I will connect to since I have several depending on the choice so I initialize the connection, but the problem is at the level of the view that the control app...
asked by 11.08.2017 / 17:47
2
answers

JSON in android (Value of type java.lang.String can not be converted to JSONObject)

<?php /** ESTA ES MI Database.php * Clase que envuelve una instancia de la clase PDO * para el manejo de la base de datos */ require_once 'mysql_login.php'; class Database { /** * Única instancia de la clase */ private st...
asked by 09.08.2017 / 08:52
0
answers

Add elements to the ViewPager dynamically

ViewPager adapter: public class TabsWeekAdapter extends FragmentStatePagerAdapter { private List<Fragment> fragments = new ArrayList<>(); private List<String> titlesFragments = new ArrayList<>(); public...
asked by 24.01.2017 / 16:06
0
answers

Tables are not created, using spring, hibernate and jpa

I'm doing a project in eclipse with the framework spring using several technologies, mainly hibernate and jpa but I can not get the tables created in the database and I can not figure it out because I can not make the persistence of the objects...
asked by 27.01.2017 / 03:42
4
answers

Problem with NumberFormatException and showInputDialog

My problem is that I have a window JOptionPane.showInputDialog that receives a data of type int . I wanted to do a try-catch to handle the exception NumberFormatException if they put a letter instead of a number. The p...
asked by 19.03.2017 / 00:00
1
answer

Resize image in JLabel

I have this code, which creates a window and shows a JLabel in which I put an image; the image is large and only shows me a bit. I want to know how to resize the image to be displayed in small but complete. package pruebasgraficas; /** * *...
asked by 19.03.2017 / 03:43
0
answers

Create a service in RESTful Web Services

I am creating a web project in NetBeans 8.02 at the moment of creating the service RESTful Web Services from Entity Classes . I give Deploy but I have an error:    NetBeansProjects \ PoliFigth \ nbproject \ build-impl.xml: 1046: The m...
asked by 18.03.2017 / 01:19