1,920,074 questions
0
votes
1
answer
9
views
expecting IdClass mapping
I am upgrading an ancient Spring 3 app to Spring 6. I have found a number of issues with the same message, but they are mostly actually using annotations. The one that isn't: java/hibernate Exception: ...
0
votes
1
answer
28
views
Write Section Of Buffer Using Java's FileChannel
Java's FileChannel class supports 4 write methods, one of which caters for writing a section of a buffer from a specified position to the end of the buffer:
public abstract int write(ByteBuffer src,
...
1
vote
0
answers
43
views
How to bypass or auto-accept Chrome's file editing permission dialog triggered by window.showDirectoryPicker() in Playwright?
I trying to download a file into a folder that is not in the list of managed permissions of Playwright.
The app that I am testing opens the windows file choose with the window.showDirectoryPicker() JS ...
-1
votes
1
answer
27
views
Configure Spring Security Filter Chain
Good evening, I need help configuring Spring Security Chain Filter:
@Bean
SecurityFilterChain configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
...
0
votes
1
answer
12
views
Hibernate Envers OneToOne relation class column is not audited properly
I have OrderReqeust entity and corresponding audit table "order_request_aud" for it. I'm trying to audit "order_id" column from OneToOne relation.
In "OrderReqeust" I ...
0
votes
1
answer
34
views
Converting JMS ConnectionFactory to ActiveMQ ConnectionFactory - expected and returned instances are both correct type but fails
I'm replacing activemq-all 5.18.6 with activemq-broker and activemq-client. I've found a side effect in my Java servlets that javax.jms.ConnectionFactory has to be replaced in the servlet XML and the ...
0
votes
2
answers
24
views
BadSqlGrammarException while testing service layer that used JDBC
I am writing a test code which is giving me BadSqlGrammarException error. I am using JDBC template.
error is "org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [...
0
votes
0
answers
21
views
Integrating razorpay with accounts in single springboot backend [closed]
I have two apps with same backend which are separated by packageName.
So no i have two razorpay accounts for both these apps how do I integrate them in my single backend.such that when the user makes ...
0
votes
1
answer
26
views
Is there a way to turn off breaking long words in OpenPDF?
I am currently working with OpenPDF (V. 2.0.3) in Java and implementing some text features.
Both ColumnText and PdfPCell are used in that context - and both show the same "issue", as I will ...
0
votes
1
answer
19
views
The OTP is not being set in the OTP field
The problem is that the login process in the Android application depends on OTP. Once the OTP is sent, it should be entered for verification. However, during Appium testing, the OTP is not being ...
1
vote
0
answers
30
views
Getting log: certificate type [UNDEFINED] configured from keystore [C:\.....\systemprofile\.keystore] using alias [alias_name] with trust store [null]
I have a spring boot application, Which run as Windows Services on server machine. I upgraded java version from 1.8 to 17 also spring boot version from 2.7.0 to 3.4.4. After that i resolved the ...
-7
votes
0
answers
39
views
Java Headless mode automation [closed]
How can we capture visual bugs or UI issues in Java Selenium automation when running tests in headless mode, where we can't see the browser?
-1
votes
0
answers
39
views
Could not reconfigure JMX java.lang.LinkageError
Java 8
Maven 3.9,7
I want to validate that a private method was called once.
In my pom.xml:
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</...
2
votes
1
answer
40
views
Override parent class swagger annotations
This is my parent class:
public abstract class Measurement {
@Schema(description = "The value", example = "1")
public Double amount;
@Schema(description ...
-3
votes
0
answers
20
views
why squish support test cases written in Script - Python, JavaScript, Ruby, Tcl, Perl . Why it is not supporting test cases to be written in Java? [closed]
why squish support test cases written in Script - Python, JavaScript, Ruby, Tcl, Perl . Why it is not supporting test cases to be written in Java?
Expecting Squish testcases in java language as I am ...