Questions tagged as 'java'

1
answer

@Inject does not work inside annotated class @Scheduled

I'm creating a class using deltaspike and quartz, using @scheduled. In this Injection class a CDI bean, which is a class of service. I chose to use deltaspike because it controls the context of the CDI within classes that use quartz. The bean, h...
asked by 07.03.2018 / 20:35
1
answer

Content Not Allowed in Prolog, even if XML is perfectly formatted

So, I've been trying to send an XML to a Webservice from Sapucaia do Sul, RS. XML requests a NFS printout as a PNG. The problem is that XML is sent and as a return I get a message saying "Content Not Allowed in Prolog", and the problem is that I...
asked by 12.03.2018 / 15:33
0
answers

Error trying to generate a notification

When trying to generate a Notification in Android Oreo API 27, the following error occurs: 03-12 12:07:48.962 6710-6710/com.exemple.notification W/Notification: Use of stream types is deprecated for operations other than volume control...
asked by 12.03.2018 / 16:10
1
answer

Insert a code in MainActivity

I recently started messing with AndroidStudio and the deal is as follows. I have this code in my MainActivity: package com.tero.master; import android.media.MediaPlayer; import android.support.v7.app.AppCompatActivity; import android.os.Bundl...
asked by 12.03.2018 / 15:01
0
answers

Code cache collection

Sometimes on some tasks, I noticed that the following lines appear in the LOG: 03-12 07:15:18.532 4568-4574/com.exemple.broadcasreceiverandservice I/zygote: After code cache collection, code=21KB, data=30KB 03-12 07:15:18.532 4568-4574/com.exe...
asked by 12.03.2018 / 11:21
1
answer

Get specific value from a JSON URL in JAVA

Good morning Friends. I'm having a hard time dealing with information collected in a third-party JSON url online, my JPA needs information from multiple sites that return in different ways in the JSON queries, below I'll outline the ways they...
asked by 12.03.2018 / 14:59
0
answers

Problem with scheduling tasks with Calendar Java

Please help me resolve a code situation, as I can not. I have a class that schedules tasks and it will be a Thread to call another Thread. It reads information from a configuration xml file containing one or more days of the week that will...
asked by 03.03.2018 / 02:00
0
answers

Error Deploying Deploy Bean

pre-init: init-private: init-userdir: init-user: init-project: do-init: post-init: init-check: init: deps-jar: deps-j2ee-archive: EJBEntAppl-ejb.init: EJBRemoteInterface.init: Deleting: C: \ Users \ user \ Documents \ NetBeansProjects \ Project...
asked by 01.03.2018 / 17:33
0
answers

Jasper Report only works on local application, does not work on Web Server

My impression report is only working in the local application, using connection with Hibernate, when I try to run on the server it does not work due to lack of connection to the database, how can I use a connection without being using Hibernate...
asked by 01.03.2018 / 03:49
0
answers

Avoid changing the special characters in URI writing

I'm using the google maps API in my project but I'm having a little problem. To mount the URL I'm using a URI that concatenates with buildUpon so with the example below. Uri uriBase = Uri.parse(urlBase).buildUpon() .appe...
asked by 06.03.2018 / 20:54