Questions tagged as 'java'

1
answer

Error using eclipse EE

I'm having trouble generating image in eclipse and e - it can not open anything and it gives this error: GRAVE: Error Rendering View[/pages/produto.xhtml] java.io.IOException: javax.el.ELException: /pages/produto.xhtml @126,69 value="#{imagem...
asked by 05.03.2017 / 17:26
1
answer

How to compare two ListFloat in Junit?

I need to compare two List, and in my test I used assertEquals(lista1, lista2); Assert.assertTrue(lista1.containsAll(lista2)); And the error that the test shows is    (index: 22 size: 22) java.lang.IndexOutOfBoundsException Until tod...
asked by 05.03.2017 / 23:05
1
answer

ProgressDialog does not exit 0%

I'm uploading an image to the firebase database and I want to show it in progress but it always gets 0/100. progress=new ProgressDialog(getContext()); progress.setMessage("Downloading Music"); progress.setProgressStyle(ProgressDialog....
asked by 10.03.2017 / 18:55
1
answer

Error reading XML with JAXB: all null items after Unmarshal

I have a simple stock XML file with the following format: <?xml version="1.0" encoding="UTF-8"?> <estoque> <item Nome="Impressora XL2N" Peso="13 kg" Armazem="8" Quantidade="12" Preco="R$ 8505,00" /> <item Nome="Sca...
asked by 10.03.2017 / 03:58
0
answers

How to instantiate the Firebase object for my URL, Help with the Error below

package br.com.netcriativa.umadeb.activity; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.su...
asked by 10.03.2017 / 02:44
0
answers

When I run Update eclipse to run

When you get to the part that executes the following query, the system stops and does not proceed to the next line. @Query(value = " UPDATE COOBILING_NUMBER SET CONDITION='Used' WHERE NUMBER_PHONE= ?1", nativeQuery = true) public void update(S...
asked by 21.03.2017 / 21:48
1
answer

Enum value as null

I have the following Enum : @AllArgsConstructor public enum Lojas { ALIEXPRESS("AliExpress"), MERCADO_LIVRE("Mercado Livre"), EBAY("Ebay"), WISH("Wish"), GEARBEST("Gearbest"), BANGOOD( "Banggood"); @Getter @Sett...
asked by 21.03.2017 / 23:42
1
answer

How do I extract all image URLs from an HTML (in Java)?

I'm processing HTML files that have multiple links to external images. How do I extract just those image links and download them? HTML example: <html> <head> <meta charset="UTF-8"> <title>A Page</title> </...
asked by 18.03.2017 / 20:00
0
answers

Capturing server exceptions through Java HTTP request

Hello, I have a system that reads XML files, transforms into JSON and makes HTTP (POST) requests to another server to save the data in the database. However some XML files have, for example, null fields that the server does not allow to save wit...
asked by 17.03.2017 / 17:36
1
answer

Accessing another APP within my with OAuth 2.0

How to use OAuth 2.0 to change from Apps. I have some Apps and I want inside that we can access other Apps (from the same supplier), without having to login again.     
asked by 17.03.2017 / 14:17