Questions tagged as 'java'

0
answers

Message system (GCM) for local application

I'm behind some system like Google Cloud Messaging, to send notifications to a local application, a supervisory done in java, running locally (it in turn connected to a microcontroller). The idea was that this supervisory did not have to send...
asked by 06.04.2017 / 13:32
1
answer

Why is the HTTP Status 404 error occurring in my JBoss Tomcat 7 + Spring MVC application?

I'm doing some tests with MVC JBoss 7 + Spring , and locally it runs, but when I put it in the cloud it generates the error HTTP Status 404 . Folder organization: /pswebproj/src/main/java/pswebproj/control/HelloContro...
asked by 06.04.2017 / 02:45
2
answers

I do not know how to calculate distance

Chromosome chromosome = new Chromosome(); int[] gene = new int[6]; gene[0] = 0; gene[1] = (int) (1 + (Math.random() * 3)); gene[2] = (int) (4 + (Math.random() * 4)); gene[3] = (int) (8 + (Math.random() * 4)); gene[4] =...
asked by 05.04.2017 / 19:45
0
answers

Conflict between last cell of ListView and FloatingActionButton

In the last cell of my ListView a conflict occurs because the FloatingActionButton of the screen is masking two buttons as shown in the image: IwantedtobeabletoincreasethescrollareaofmyListVieworaddsomethingtotheendofthesc...
asked by 04.04.2017 / 20:35
0
answers

Find arrayAdapter [closed]

public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu_search, menu); MenuItem item = menu.findItem(R.id.menuSearch); SearchView searchView = (SearchView)item.getA...
asked by 30.03.2017 / 01:56
1
answer

Update dialog component

I have the following dialog : <p:dialog header="#{encomendaController.objeto.id == null ? msg['cadastrando'] : msg['atualizando']} Encomenda" widgetVar="cadastroEdicao" minHeight="80" id="dialog"> <h:panelGrid id...
asked by 29.03.2017 / 18:10
0
answers

Access Danied - Spring Boot and Oauth2

I have a problem, I'm testing an api with spring boot and oauth2, but when requesting the token the same is generated and sent to the browser, however when sending to the resource I only get access danied, below the codes: ServerAuthorization...
asked by 21.03.2017 / 00:33
1
answer

How to bring a List in a JPQL query with constructor

Good afternoon, I am doing a jpql query to bring a VO (Value Object) with some information, one of which is a List . This list is in the opCambio object, however, it is returning this error: Log: [ERROR] - 01/04/2017 19:16:26 - Run...
asked by 20.03.2017 / 17:31
1
answer

How to compare, remove equal, etc. elements of two vectors in java?

I'm doing a java job to perform operations together, however as I'm learning now I do not know how to compare vector elements to do the following operations, union, intersection, difference, and complement, I want to do the operations after prin...
asked by 24.03.2017 / 05:10
0
answers

Hibernate query (HQL) in Java with foreign key ... ERROR!

I need help with my code, I have two tables: -CDF (Employee Registry) CREATE TABLE public.cdf( ativo character varying(1) COLLATE pg_catalog."default", reg integer NOT NULL, nome character varying(30) COLLATE pg_catalog."default" N...
asked by 23.03.2017 / 22:12