Questions tagged as 'java'

1
answer

Creating a new object, and populating its properties, using Java Reflection

Hello, I need to invoke a method via reflection, Method.invoke(Objeto, arg); Object - > object created from Class.newInstance () arg - > It's the value I want to spend. And I know it's a String. But the Parameter of the metho...
asked by 30.11.2018 / 21:04
0
answers

Problem with an AdminFaces component library

I'm using Maven to manage the dependencies of my project, but when I actually started creating XHTML pages, my project does not seem to have imported the dependencies needed to use the AdminFaces tags. <ui:composition xmlns="http://www.w3.o...
asked by 30.11.2018 / 21:13
1
answer

Null Pointer Exception? [duplicate]

In the code snippet below, you are supposed to compare the value of items in array linhas with String entered by user p . It's working, but it always gives the error:    Stack trace - Exception in thread "main" java.lang...
asked by 01.12.2018 / 02:59
1
answer

java.lang.IllegalMonitorStateException

The LeaveServer method is in a class named ServerData , and serves to get a free server when the client wishes. The notifyall method was implemented in another class where it contains all the servers, it is exemplified bel...
asked by 18.12.2018 / 19:44
1
answer

Hide and Render component in p: dialog

I need to attach files and save the path in the database. Attachments belong to an object that can have multiple attachments, so I created an entity to save the path in the database, however I need to have that object saved before, so I can asso...
asked by 18.12.2018 / 16:38
1
answer

How to download SQL Server file using Servlet

I have a basic application where I save files in the database SQL Server using Java , the insert part in the database I already did, I would like to know how do I to download the file that is in the bank via JSP . As stored...
asked by 18.12.2018 / 20:57
0
answers

Accessing buttons of a Dialog Box in the context of Activity

I'm trying to implement the award-winning AdMob video in my app that consists of a game. When the player loses, a Dialog Box that represents a Game Over screen is displayed for him, containing two buttons: one that restarts the game and another...
asked by 29.11.2018 / 01:18
0
answers

Push Notification Android

I'm trying to implement a Push Notification process with return from a Java server for my Android application, but unfortunately I'm not getting it. At first I will run a process on the server and, when necessary this process will send a notific...
asked by 28.11.2018 / 21:50
0
answers

Error to popular Spinner straight from the database!

Hello, I'm trying to fill in the data from a Spinner recorded in the bank, but unfortunately I could not because I'm still new to the area. I'll pass the codes as I'm trying to do okay. Here is where the categories I want to appear in the spi...
asked by 04.12.2018 / 19:22
2
answers

how to create vector vectors?

Can anyone tell me how to create a vector vector in java? ie How to make a vector store other vectors with int values Tie this populates a vector with values from 1 to 4 q are directions N = North, S = South, East L =, O = West. for (int i...
asked by 29.11.2018 / 17:24