Category "java"

SpannableStringBuilder only keeping formatting for the first for loop

I am trying to use a for loop to add formatting using SpannableStringBuild from strings in a list, however in the TextView, despite all the strings having been

Profiles property is deprecated is properties.yml for Spring-Kafka

I'm configuring the application.yml file in my Spring Kafka MS and I'm getting a notification that the profiles property is deprecated. This 'profiles' property

How to mix endpoints from an application with external plugins using spring boot and pf4j?

I have created a spring-boot application (2.6.4) and I want to integrate some plugins using p4fj. I have used p4fj before in non spring boot applications, but I

Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()" because "this.condition" is null

I'm trying to run Springdoc with Spring Boot 2.6.7. Configuration: @Configuration public class SwaggerConfiguration { @Bean public GroupedOpenApi publicA

Best way to Create a custom Transformer In Java spark ml

I am learning Big data using Apache spark and I want to create a custom transformer for Spark ml so that I can execute some aggregate functions or can perform o

Android: Automatically modify metadata of any new file(s) saved or downloaded

Is there a way to attach a piece of custom code to the Android OS which automatically deletes all the metadata of any new file(s) saved or downloaded (e.x. owne

Read the next column as translate after I find rhe word which I type

Hello everyone in this program I can find any word in a text file I want using Socket , but I need to write also the next column as translate and I don't know h

JFlex complaining about caret character

I'm trying to produce a simple standalone scanner with the use of JFlex. What I want to do now is to simply recognize the beginning of a line with the use of th

Cannot create queue from Websphere JMS API

I wanted to create IBM queues from REST endpoint as described in documentation https://www.ibm.com/docs/en/ibm-mq/9.1?topic=applications-creating-destinations-i

How to access incoming HTTP requests in X-Ray SegmentListener?

Issue I use AWS X-Ray SDK for Java to enable X-Ray tracing for my Spring Boot micro services. With following snippet I am able to attach a custom SegmentListene

Optional fields in Java DTO with validation constraint

I've created a DTO with some properties with validation constraint (like all the properties must be present in JSON Object). Now, I want to make that DTO in a w

Graalvm not found within Java application

I have an Apache Tomcat servlet in which I would like to run some other language - for this purpose, I would like to try to get Graalvm functionality working wi

cdi bean lack of value when accessed through public field

I have a configuration class, which I inject into another class. Configuration class looks as follows: @RequestScoped public class Configuration { @ConfigP

How to penalize gaps between days in OptaPlanner constraint stream?

I have a model where each Course has a list of available TimeSlots from which one TimeSlot gets selected by OptaPlanner. Each TimeSlot has a dayOfWeek property.

How do I repeat headers and footers fixed to top and bottom of document with CSS in iText 7 using pdfHTML converter?

When I use the following HTML+CSS to produce a table with header and footer it repeats the header and footer on each page when printing and when converting to P

ElasticsearchException invalid missing tagline - Opensearch

Currently trying to start my app but unable because of this exception being thrown when starting app Caused by: org.springframework.data.elasticsearch.Uncategor

Checking Dynamodb Exceptions in Cloudtrail

I am using AWS Java-SDK to query Dynamodb table and I get the following exception java.util.concurrent.CompletionException: software.amazon.awssdk.services.dyna

Convert of JSON to a java object and a list of java objects

I get this JSONObject response from an API { "meta": { "code": 200 }, "data": { "tracking": { "id": "lk46hwgbadfqcl2fyacyw00q", "c

Strange memory grow in temporaryLobs while fetching CLOB with oracle jdbc driver in java app

Goodday everyone. Faced strange OOM after switching from reading varchar field to clob from Oracle database in java application. (We are using oracle.jdbc.drive

Tensorflow - Edit image to print out location of bounding boxes?

I have an android application and I've integrated my own custom tensorflow lite model. I can print out the object category and probability score but I'm at a lo