java Questions

3

Solved

In Java, there have always existed primitive types and references, but not value types. One of the goals of Project Valhalla is to explore and incubate feature candidates such as value types. I w...
Reversible asked 8/2, 2018 at 21:14

4

Solved

I am trying to write a REST api to allow users to download large files (ie > 2GB) on Spring boot. I am hitting with "Java Heap outOfMemoryException". I tried to triage the issue, i see...
Coelostat asked 22/12, 2021 at 19:19

1

Solved

I am currently working with Java's DateTimeFormatter to parse ISO 8601 formatted timestamps, particularly those containing fractional seconds. While experimenting with different timestamp formats, ...

3

Solved

As of July 1, Firebase requires the addition of labels to messages in order for analytics to show about the number of data message sends etc. 'Starting Monday, 1 July 2019, you will be able to f...

4

Solved

I am attempting a simple test of the health of a fresh instance of Keycloak (running in a Docker container, it so happens), by trying to list the realms using the Java admin client as the admin use...
Nonplus asked 3/9, 2020 at 9:50

2

Solved

I have two topics, one with 3 partitions and one with 48. Initially i used the default assignor but i got some problems when a consumer(pod in kubernetes) crashed. What happened was that when t...
Moonset asked 16/4, 2019 at 14:45

2

Im am trying to hit the secondary node on a sql server 2012 DB using "ApplicationIntent=readonly" in the connection string. It is still hitting the primary node, not sure why. I'm using s...
Shem asked 13/7, 2016 at 15:54

2

I`m looking for a way to create an inspection rule in Intellij that identifies when there are inline comments and moves them to their own line above. Example: Find someCode() // someComment and...
Loon asked 16/9, 2015 at 12:1

4

(I've added an update on the bottom of the post) I am currently working on a project that will support multiple language. I have written all strings for all languages. I use BaseActivity, Applica...
Benisch asked 3/11, 2017 at 3:10

1

I'm looking to catch IOExceptions caused by a broken pipe before the async threads dispatch the result to Tomcat. Essentially the client disconnects and the error bubbles up to Tomcat before I can ...
Sandry asked 10/3, 2023 at 20:30

5

Solved

I'm trying to parse a simple string in the format "YYYYww" (e.g. 201901) into a LocalDate, but none of my attempts succeed. I attempted to parse it by simply using the pattern "YYYYww" and also th...
Memling asked 13/8, 2019 at 13:42

2

How can i use spring JPA Specification for where condition as below: Where cond1 and (cond2 or cond3) AND Where (cond1 and cond2) or cond3. Specification code is as below: Specification<Do...
Countermarch asked 15/3, 2019 at 10:1

3

Solved

For example, if you have a GeoJSON file like this with a polygon(simple file for the test) { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { ...
Ancelin asked 28/12, 2018 at 10:57

3

What's the best way to keep the value of a javafx Property within specific bounds? (Or - is this bad practice, existing any reason to never filter values wrapped by javafx properties?) Example1: ...
Azine asked 11/7, 2013 at 10:19

4

I am getting this error for this class while deserializing the data, any input what I am doing wrong here: Cannot construct instance of `Test` (no Creators, like default constructor, exist): canno...
Garfield asked 22/9, 2022 at 7:44

5

Solved

I'm using the RestEasy Client Framework in a @Named @ViewScoped Bean with JBoss-7.1.1-Final to retrieve data from a REST service with a custom HttpRequestInterceptor: RegisterBuiltin.register(Rest...
Precast asked 15/5, 2012 at 10:34

3

I am currently developing a java application (with maven) with an embedded neo4j database. I followed the official guide and also looked at the examples on github. My code looks like this now: i...
Nymphet asked 6/2, 2020 at 22:28

4

Solved

I'm trying to integrate my maven project with SonarQube but when I try to run mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -X I'm getting this error [DEBUG] 13:09:55.647 Create: /User...
Basrhin asked 4/12, 2019 at 6:0

2

Solved

Since of nowhere I getting the error message that the class StaticLoggerBinder was not found. I guess it have something to do with the Spring-Boot API. Any solutions to the problem? pom.xml: <d...
Microcrystalline asked 2/1 at 20:40

7

I have a Java web application that I have been working on 6 months ago and when I last worked on it, it would run perfectly. When I ran it again 6 months later I got this error "Can't find catalina...
Phantasm asked 3/6, 2014 at 12:43

2

Recently I set up 2-step verification in my gmail account , and I try to connect to my gmail account using Java Mail API, but it didn't connect. My code: Properties props = System.getProperties()...
Erode asked 17/5, 2013 at 4:27

2

Solved

I have been trying to download attachment with Chinese filename but somehow their encoding changes while downloading and some gibberish filename is saved where there are Chinese chararchters. Techn...
Shantay asked 18/5, 2018 at 9:59

12

Solved

I'm trying to add a screenshot to my ExtentReport HTML file, but for some reason, the image is not there even though it DOES exist and the console shows that it's looking at the correct place (href...
Laval asked 29/11, 2017 at 14:50

3

I want to run a HelloWorld JavaFX 11 application using Maven from IntelliJ IDEA using a run/debug configuration to be able to debug the application. I've created a Maven project in IntelliJ IDEA w...
Unstop asked 9/10, 2018 at 15:46

9

In Selenium-java-3.0.1, I can use WebDriverWait.until for explicit waits: new WebDriverWait(myChromeDriver, 30).until((ExpectedCondition<Boolean>) wd -> ((JavascriptExecutor) wd).executeS...
Til asked 3/4, 2017 at 8:4

© 2022 - 2024 — McMap. All rights reserved.