Questions tagged as 'java'

0
answers

Error query webservice Nfce SP

After upgrading to version 8 of java 8, I'm having an error to query the status of the Nfc-e SP Webservice ( ), it always returns me" HTTPS hostname wrong: should be homologation.nfce.fazenda.sp.gov.br ", however as you can see the hostname is...
asked by 21.09.2016 / 16:39
1
answer

Method that calls thread to query a web service always returns null

When I call this method in another class it is returning null. But I've debugged the "return listNotes;" line and it's currently being populated. Method code: ArrayList<Nota> listNotas = new ArrayList<>(); public ArrayLis...
asked by 20.09.2016 / 19:55
0
answers

Arbitrary load of specialized entity in Java / Hibernate, from associations

So, following ... I have the following class structure that Hibernate handles: is a symbol for denoting inheritance, 1 - * is a symbol for denoting an association one for many) [Pessoa] <|- [Medico] [Pessoa] <|- [Professor] [Pes...
asked by 30.08.2016 / 19:20
0
answers

Upload image using Android

I've implemented pisasso to download the images on Android. It's working wonderfully well. But now I need to make a method to upload an image to a php server. I thought of converting to base64 and uploading it using the Volley library, and then...
asked by 28.10.2016 / 19:31
0
answers

java redirect 301

I need to do a permanent targeting via servlet in java, with the following code: Here it directs with status 301 response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY); response.setHeader("Location", "https://google.com.br"); Here...
asked by 28.10.2016 / 21:35
0
answers

Open file in Modal Dialog

I'm retrieving a given path file and would like to display the response in a Modal. This is an excerpt of HTML that calls the servlet (MSD) by passing the file path as a parameter: <a class="btn-doc-sm btn-default" type="button" href="MS...
asked by 03.10.2016 / 22:31
0
answers

Saving whole object instead of only name [closed]

Hello everyone. I have a problem when I store cattle data in the bank. The situation is as follows: I'm with two SelectOneMenu on my screen where one is dependent on the other. One is to indicate the type and the other to indicate the breed of a...
asked by 29.08.2016 / 02:45
0
answers

problems with @Injection

Hello everyone. I'm creating a program that handles people and livestock records. In this program, on the cattle cadastre screen, I am creating two SelectOneMenu of primefaces. One is of cattle type and the other of cattle breed. These two Selec...
asked by 28.08.2016 / 18:19
1
answer

Open camera / file through WebView

I made an application to open my responsive site using the Android Studio WebView. It runs okay, but when I need to send some files through the site, take a picture and save, it does not open the camera! Has anyone gone through this? MainPage...
asked by 30.09.2016 / 15:54
0
answers

Edit dataTable in Dialog box in JavaWeb - JSF

I need to edit a line of the dataTable when I open the dialog, but it is not working the way I am doing, I did a test in the console, and the object gets null when I send the edit of it, it's like it does not load. Image to demonstrate what I...
asked by 30.09.2016 / 17:58