Category "java"

Why does GLES20.glCreateShader always returns 0?

I'm trying to make an OpenGL ES app in android using java and I have run in a major issue: GLES20.glCreateShader(type) (type beeing GLES20.GL_VERTEX_SHADER or G

Apache Kafka - Implementing a KTable

I am new to Kafka Streams API and I am trying to create a KTable. I have an input topic: s-order-topic, which is a json format message, as shown below. { "curr

How to load test soap api using jmeter

How to load test soap api using jmeter 4.0 , multbinding The follow: example for soap request ::

Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain

I have a spring boot project here: https://github.com/jcasbin/jcasbin-springboot-plugin. I encountered the following error in Travis CI: shell 3.43s$ ./mvnw in

Does JUnit 5 support test method execution in alphabetical order or any similar functionality? [duplicate]

JUnit 4 has @FixMethodOrder(MethodSorters.NAME_ASCENDING) to support test execution in alphabetical order. Is there any similar functionality

java.lang.ClassNotFoundException: org.apache.logging.log4j.Logger after updating log4j 1.2.17 to 2.13.0

I am running Tomcat v9.0 server on a Java Eclipse project. Each time I run my application on the server I get this Problem Occured message: Server Tomcat v

TestNG Gradle how to run multiple suites in parallel

I was wondering if there is a way to run multiple test suites in parallel with TestNG + Gradle. I have a master suite file which contains other individual suite

How can I connect a Python websocket client to my Spring endpoint?

I'm new to Python and I'm trying to connect to a service that I currently have up running in Spring. On the server-side I have a custom Handshake handler in pla

Passing constructor as a parameter to a method

I am new to java and started working on constructors. I am seeing few examples where constructor is passed as parameter to a Method. Please tell me what happens

error using mvn spring-boot:build-image - received unexpected HTTP status: 500 Server Error"

I tried using 'mvn spring-boot:build-image' command and get that error.. ( I saw that maven have a new way to create an image with spring) Building image 'doc

How can I clear notification?

I have to hide a notification when a timer is cancelling. I instantiate a notification manager and use myNotificationManager.cancelAll(); but it doesn't work.

MappingException (Hibernate)

"Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister " I am not using any maven or such tools and manually add and reference

How can I clear notification?

I have to hide a notification when a timer is cancelling. I instantiate a notification manager and use myNotificationManager.cancelAll(); but it doesn't work.

How to execute multiple update queries using jooq execute or batch execute without code generation?

I am using JOOQ ( 3.10. 5 ) to update records in ORACLE table without jooq auto code generation in below ways Approach 1- Using DSL execute by using plain SQL S

404 error with swagger-ui and spring webflux

I am developping REST services with Spring Webflux and I want to produce documentation with Swagger2 for my API with. I discovered that Webflux is only supporte

How to configure openjdk for FIPS and simple postgres connection example

I have a simple Java application running in an openjdk Docker container that is executing on a FIPS enabled host system (on a Kubernetes clust

How to upgrade spring framework version in spring boot

I am using spring-boot 2.3.3.RELEASE with the according spring-boot-starter-parent in maven. <parent> <groupId>org.springframework.boot</group

Is it worth to use singleton to load a configuration file?

I have a java web applilication. This application loads its configuration file with singleton according source file below. public class Configuration { private

Download a files from FTP matching a wildcard using Java Apache Commons Net

Basically I need to download list of matching files for the search from a FTP server. I have the code to download a specific file from a FTP server. But I nee

maven fails to find files in main package: ZIP file can't be opened as a file system because an entry has a '.' or '..' element in its name

I have a maven project that I can no longer get to build: mvn clean compile ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1