Questions tagged as 'java'

1
answer

How to resolve the NetworkOnMainThreadException error?

I'm having an error in passing the HTTP Client from JSON to Android. Follow my code in JSON: // constructor public void JSONParser() {} public JSONObject getJSONFromUrl(String url) { // Making HTTP request try...
asked by 18.06.2015 / 14:27
0
answers

Execution error in BroadcastReceiver

I'm doing test with class BroadcastReceiver , where I created a service that displays Toast every 30 seconds. It's working, but sometimes it gives the following messages: 03-09 12:58:11.065 28571-31177/com.example.rbz.service E...
asked by 09.03.2018 / 17:13
0
answers

DAO not injecting with @EJB annotation

I am making a request for "/ counter / {id}" by PostMan and when the code arrives at notificationAdobe.controller (id) , I get the error message saying notification is null . PS: I'm using Wildfly 11 with Eclipse Oxygen Controller...
asked by 12.03.2018 / 14:29
0
answers

JasperserverRestClient

Good evening I'm using JasperserverRestClient to retrieve a jasper server report, but when I try to use ReportExecutionDescriptor it's null. Could anyone help me? RestClientConfiguration configuration = new RestClientConfiguration("https://...
asked by 12.03.2018 / 05:06
0
answers

iReport Java Subreport - The supplied java.sql.Connection object is null

Hello I'm studying iReport Design and started using Connection in my fillReport. Until then, everything was fine. The problem is that, now, I started using Collection, through the commands: List<Vendas> vendas = new VendasDAO().getVen...
asked by 23.02.2018 / 20:11
1
answer

Help with shuffled words [duplicate]

I need help in a program, I have no idea how to do it, the statement is as follows: "Scrambled Word - Implement a program that, from a word bank, randomly selects a word, shuffles the letters and gives the user time to guess the word." I...
asked by 24.02.2018 / 15:14
0
answers

Sending XML to JAVA - Angular 2

Well, I'm trying to send an XML from my view in Angular 2 to a Java backend. In the java I have a servlet that looks for the xml by the parameter: request.getParameter("xml") And in my angular service I'm doing the following:...
asked by 23.02.2018 / 19:09
1
answer

Hibernate Persist error

I have a simple system for opening / querying calls. I'm having trouble typing a new call. I started using Hibernate and I have a problem with "persist" to add a call to a certain queue of calls. Below the codes and log: Calling Class...
asked by 02.04.2018 / 18:24
1
answer

Add "filter" in the "logger" for the entire application

I would like to have Filter of java.util.logging.Logger to filter all generated log lines. In case, I'm using a Wildfly application server. Currently, I can only filter a specific class, for example. Logger logger = Logger.get...
asked by 23.02.2018 / 12:58
2
answers

How to use the SharedPreferencesUtils.java class?

Sorry for the title, I do not know how it would be a better way to ask. I'm learning to program in android applications, and found a class in JAVA to make it easier to use SharedPreferences . But I did not quite understand how to use it....
asked by 23.02.2018 / 02:44