How to install Java 8 on Mac

Editors note: This question was asked in 2014, and the answers may be outdated. I want to do some programming with the latest JavaFX, which requires Java 8. I'm using IntelliJ 13 CE and Mac OS X...

ViewExpiredException on a WildFly-served webapp only in a particular webbrowser

I have a jsf application running on Wildfly 8.1.0Final and, ONLY in Google Chrome, when I click on the Login button, i receive ViewExpiredException, in others browsers, or in Chrome Incognito...

Understanding how EIP (RIP) register works?

I'm a complete novice to computer architecture and the low level stuff that happens at the processor/memory level. I'll start by saying that. What i've done with computers has pretty much always...

Failed to start jboss.deployment.unit."war".POST_MODULE

I created a Maven Project using the RESTful Web Service from Database in NetBeans by following this...

CompletableFuture recoverWith equivalent? i.e. exceptionally but return CompletableFuture<U>

I don't see an obvious way to handle an exception with an asynchronous result. For example, if I want to retry an async operation, I would expect something like this: CompletionStage<String> cf =...

java.lang.IllegalArgumentException: Target must not be null

When I am passing image url to Picasso then it shows me error "Target must not be null". When I fetch image from url using Picasso then it shows me error. Even my id assigned to image is correct....

getImage() throws exception on commandline but not in eclipse?

I'm currently loading my images using the following function: public static Image loadImage(String path){ log.debug("loadImage> path: "+path); return...

Error inflating class ImageButton

I have an app which has fragment and image button on that. The problem is it's working on and above 5.0 but not below 5.0. The min sdk version is 17. Not getting what's wrong here. I am getting 2...

Gradle NoClassDefFoundError when running jar

I'm trying to set up a Gradle project with some Velocity functions in it. So far I have the following files: **src/main/java/com/veltes/velotest.java:** package com.veltes; import...

Java 8 date time types serialized as object with Spring Boot

I have an entity with fields of Java 8 date time types. The issue is that these fields are serialized as object. I added the jackson-datatype-jsr310 dependency, so Spring Boot 1.5.7 would auto...

JEditorPane.getPreferredSize not always working in Java 9?

This question is about different behaviour of JEditorPane in Java 8 and Java 9. I’d like to know if others have experienced the same, whether it could be a bug in Java 9, and if possible have...

Field authenticationManager in *** required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found

I have following class: @Configuration @EnableAuthorizationServer public class AuthServerConfig extends AuthorizationServerConfigurerAdapter { @Autowired private AuthenticationManager...

How to debug kafkastreams code?

Has anyone managed to debug kafkastreams code written in Java 8 using IntelliJ IDEA?. I am running a simple linesplit.java code where it takes stream from one topic and splits it and sends it to...

Unable to install java8 with homebrew

Installing java8 with Homebrew seems to no longer be working. After running: brew install caskroom/cask/java8 I get the following error: Error: Cask 'java8' is unavailable:...

Mirrormaker issue with Kerberos + GSSAPI +SASL_PLAINTEXT

I am trying to run Mirrormaker on a kerberos enabled cluster that sources from an off-site non-kerberos cluster, and I am getting the following error when starting up mirror maker. All of my key...

CORS error connecting Angular to Spring (localhost 8080 <--> localhost 4200)

I am trying to connect my Frontend in Angular 8 to my backend written in Java using Spring. My Spring backend is running on Tomcat server at localhost:8080 and Angular is open on...

Execution failed: 'app:compileDebugJavaWithJavac FAILED' -ReactNative

I have installed react-native-navigation locally inside the project, even then it is displaying an error app:compileDebugJavaWithJavac FAILED. I then tried cd android and then ran gradlew clean,...

java.lang.IllegalStateException: No Server ALPNProcessors - WireMock

I am trying to run unit tests (that use Wiremock) on my maven project and the following error is observed. java.lang.IllegalStateException: No Server ALPNProcessors I tried adding the...

Firebase Firestore is failing over wifi on physical device with error: Could not reach Cloud Firestore backend

When trying to get a document from Firestore, if the device is connected through Wifi the connection fails with the following error message: W/Firestore( 4903): (21.4.3) [OnlineStateTracker]:...

NetBeans 12 doesn't manage libraries anymore

A week ago I upgraded my Java IDE to Netbeans 12 (and JDK 14), and only yesterday I noticed the window Project Properties (MYPROG) lacks of essential functionality i.e. there are not lines for...

TwelveMonkeys ImageIO is not working after build in to jar with OpenJDK8

I'm currently adding additional functionality to my program by using this library: https://haraldk.github.io/TwelveMonkeys/ TwelveMonkeys ImageIO. It works great in Editor - Intellij IDEA 2020.1.1...

Apache Atlas: HTTP ERROR 503 Service Unavailable

I have also seen the following two similar links, but they were different from mine that I will describe it in this post: Apache Atlas: Http 503 Service Unavailable Error when connecting from...

Error "the JAVA_HOME environment variable is not defined correctly" on running "mvn clean javadoc:jar package"

When I try to execute the command mvn clean javadoc:jar package it shows the JAVA_HOME environment variable is not defined correctly. This environment variable is needed to run this program. NB:...

Axis2 1.6.4 to 1.7.9 - AxisFault: The service cannot be found for the endpoint reference (EPR)

I want to switch from Axis2 1.6.4 to 1.7.9 due to various circumstances. the pom.xml and axis2.xml have been adjusted accordingly (by the Apache Migration Guide). Previously I build the project...

Spring Boot 2.5.0 and InvalidDefinitionException: Java 8 date/time type `java.time.Instant` not supported by default

After update from Spring Boot 2.4.5 to Spring 2.5.0 I noticed the following exceptions in the application logs: Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8...

Java update from 11.0.11 to 11.0.13 changes JVM code cache behavior and results in more process cpu usage and strange profiled nmethods memory usage

We run a complex clustered application with Java 11.0.11 and -XX:ReservedCodeCacheSize=375m with the same load profile attached 24/7 without any restarts. After we updated AdoptOpenJDK...

Windows 10 WSL2 Docker build fails with /bin/sh: /usr/bin/create-user.sh: not found

I am trying to build an image on Windows 10 WSL2 Docker. My dockerfile is: FROM i386/openjdk:8-jre-alpine MAINTAINER Digital Life Studios EXPOSE 8888/TCP COPY ["create-user.sh", "startup.sh",...

What is 'serviceability memory category' of Native Memory Tracking?

I have an java app (JDK13) running in a docker container. Recently I moved the app to JDK17 (OpenJDK17) and found a gradual increase of memory usage by docker container. During investigation I...

React native: Error "Unexpected identifier '_classCallCheck'.import call expects exactly one argument"

I'm using React-Native on my android program, after open my porject with react-native run-android ,the error occurred.The same error message occurred twice. Unexpected identifier...

Java build issues - Java 8 to Java 11 migration

We're migrating from Java 8 to Java 11. We have a legacy project Y which depends on another legacy project X. The project X has no sources, it's just a collection of about 300 jars. The build is...