Category "java"

How to get exception inside ActionInvocation.invoke()

First of all the final purpose is that i'm trying to inject a DAO connection into an SMD context (Ajax) so i'll ensure that transactions are being Commited (or

I am trying to start a Spark Session in Jupyter Notebook and get the following error

This is my first time using PySpark. I am using a Mac and I am trying to start up a session within Jupiter Notebook using the code below: import pyspark from py

Solving codingBat Post4 with one loop in Java

The question is about Solving this problem from codingBat in Java. Problem Statement: Given a non-empty array of ints, return a new array containing the eleme

Could not get WSDL contract error when deploying web service in WildFly

I am trying to deploy my web service in WildFly server, but I am getting following exception: 6:44:06,265 ERROR [org.jboss.msc.service.fail] (MSC service threa

Spring no mapping found for HTTP request with URI[require.js] in DispatcherServlet

Ok the full error is WARNING: No mapping found for HTTP request with URI [/sequenziatore/$%7BpageContext.request.contextPath%7D/resources/js/libs/require.js] in

ByteArrayOutPutSteam to Byte[] not working as expected [duplicate]

I need to make a Byte[] out of a ByteArrayOutputStream, but this is not working. When I log the outcome of baos.toByteArray(); it only shows m

java constructor in class cannot be applied to given types

I have 2 subclasses: Staff, Student they belong to superclass Person. Here is the code(tasks) which is given by my teacher: public class Person { private

Why is SerialGC chosen over G1GC?

I am running Java on very similar VMs and I can't find the explanation why the SerialGC is chosen over G1GC in one case. It's the same Java version, same OS, sa

Packaging Java application with BouncyCastle in a single JAR

Is it possible to package a Java app using BouncyCastle as security provider in a single JAR ? PS: I expect to run the JAR without changing java security prope

Stack over flow Error occurring when an internal API called from spring-boot

A Spring boot web application running in tomcat server suddenly encountered a stack over flow error. The error occurred seems to be due to spring-boot recursiv

Getting following error while migrating Spring boot version from 2.1.6 to Spring boot 2.4

Getting following error while migrating my project from Spring boot version 2.1.6 to 2.4 No more pattern data allowed after {*...} or ** pattern element Code Sn

Java: Connect to Active Directory via serverless binding?

I have to write some code in Java (technically Groovy, but Java is more common) that will connect to Active Directory and find which groups a user belongs to.

How to convert SQLite database in android studio and then share it as csv file

Im making an app in which the users inserts values into a table (SQLite DB) and I want to make a share button which will share the the table as an excel file (.

Why I am getting java.lang.AbstractMethodError errors?

What are the possible causes for ABstractMethodError? Exception in thread "pool-1-thread-1" java.lang.AbstractMethodError: org.apache.thrift.ProcessFunction.

Get list of JSON objects with Spring RestTemplate

I have two questions: How to map a list of JSON objects using Spring RestTemplate. How to map nested JSON objects. I am trying to consume https://bitpay.com/ap

java.sql.SQLSyntaxErrorException: Unknown column 'id' in 'where clause'

excuse me, this is the first time I have asked a question on this platform. I am generating a code in Java to be able to make a query in a database, but when I

Method was expected to be of type virtual

I've tried to initialize AWSMobileClient.defaultMobileClient() from my AWS Mobile Hub sample project into my test project using this code: if (AWSMobileClient.

How to disable SSL certificate checking with Spring RestTemplate?

I am trying to write an integration test where our test launches an embedded HTTPS server using Simple. I created a self-signed certificate using keytool and am

How to send/receive data to/from MetaTrader Ternminal 4 with JAVA (or anything!)

I have been working on an algorithm ( Not mine, I am just modifying it ) that predicts when to buy and sell on the FOREX market. I need to be able to open and c

Android Studio Build gradle OutOfMemoryError

I'm new in Android. I import Github project in Android studio, but i see this problem `Error:java.lang.OutOfMemoryError: Java heap space Error:java.lang.Out