Questions tagged as 'java'

0
answers

Java Spring Boot - Read file inside .Jar

I'm doing a class that will read an ETL Pentaho Kettle (transformation), I put the file that the class will read in the Resources / KTR folder. But when I try to run the code as a java (java -jar) application, I get an error saying that the f...
asked by 27.08.2018 / 21:21
0
answers

Error: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $

I'm trying to consume data from an API using retrofit, however whenever I try to connect it returns that error. I'm using a class that is an Array of these objects (SisalfaCatalog) and throwing the return inside it, but it does not work. Here is...
asked by 06.08.2018 / 01:16
0
answers

Java - Anamorphism (image manipulation)

Good night, I'm creating an application for a specific purpose, that manipulate image, I'm using methods like: image.BufferedImage Graphics2D RenderingHints In this context I'm getting a specific image for example Manipulatingitandtrans...
asked by 05.08.2018 / 23:44
0
answers

Associate final variable with another reference in lambda expression

I was developing a code that uses lambda expressions, where variables outside the scope of the expression should be declared as final . Then the question arose: can I associate the variable declared as final with another declared reference...
asked by 10.07.2018 / 22:54
0
answers

Download pdf of a JSF in webview

I access a third-party JSF site that generates a pdf, and needs to be downloaded. It does not necessarily have to be inside the webview. Code that I have tried, but nothing has happened or generates an error on the site. wv = (WebView) fin...
asked by 10.07.2018 / 16:31
1
answer

Pagination springBoot

I'm new to Spring and web development and I'm having trouble paging a select, this is the method that does the search: public static Page getAllPeople(Connection connection, Pageable pageable) { ArrayList<peopleDto> peopleList = new Arra...
asked by 06.07.2018 / 13:44
0
answers

REST requests with HTTPS

Good morning, Someone can get a doubt ... is as follows: I have an application that is inside a domain with certificate (HTTPS). WhenI'mgoingtoconsumeaRESTservice,Igetthe405returnandthebrowserisinformedthattheconnectionisnotsecure. I...
asked by 05.07.2018 / 17:02
1
answer

JPA Query Filtering by Entity List

I'm running a Java system using SpringBoot and JPA , being event management and I have two entities: Inscricao and HorarioAtividade . They have a Many To Many relationship, with my class Inscricao having a list of...
asked by 04.07.2018 / 17:07
1
answer

Generate tags with constants using XStream in Java

Hello I need to generate an xml with uppercase tags that would have to be final attributes in the template class to generate xml. To do this, I'm trying to use the Java XStream API. But being these final tags I can not generate a builder o...
asked by 25.07.2018 / 15:21
0
answers

Error: android.view.InflateException: Binary XML file line # 0: Error inflating class unknown

Whenever I run my app on some devices (In those I got this error, API was 21. In others with higher API it works without errors), this error message appears that I can not decipher. It happens for all Fragments in the same way, but the app close...
asked by 25.07.2018 / 14:46