Comments (13)
Yeah, thanks for the help you saved me a day 👍
I will look for a solution and if I find I will open a PR :)
from rqueue.
Hi @mertkiray
Thanks for reporting issue.
Can you please confirm, if you don't have multiple JobX class in the codebase ?
This issue is likely happening due to the Class.forName is creating different class's object while the listener is expecting different type of object.
Also this can be verified by executing LRANGE
command on Redis
list rqueue-processing::delayed-queue-job
from rqueue.
@sonus21 I am pretty sure there is no multiple JobX class in the codebase. What can I provide to help you debug the problem?
This is an example entry in the list
{
"@class": "com.github.sonus21.rqueue.core.RqueueMessage",
"id": "delayed-queue-job8f333748-763b-4702-bc01-ef5f7255ef5b",
"queueName": "delayed-queue-job",
"message": "{\"msg\":\"{\\\"message\\\":\\\"test\\\",\\\"id\\\":\\\"1\\\"}\",\"name\":\"com.octovan.service.redis.queue.JobX\"}",
"retryCount": null,
"queuedTime": 1582738630242,
"processAt": 0,
"reEnqueuedAt": null,
"failureCount": 0
}
from rqueue.
I think that it may be due to RedisTemplate defined in RedisUtil.class, any solution to overwrite the redistemplate used in the project to debug?
from rqueue.
No, we can't overwrite that. Can you provide a sample spring code to reproduce this issue?
Also if possible please share spring-messaging and spring-boot versions.
from rqueue.
Let me try to reproduce the issue.
spring-messaging version: 5.2.2.RELEASE
spring-boot versions: 2.2.2.RELEASE
from rqueue.
Hi @sonus21 ,
I was able to reproduce the issue
from rqueue.
Thanks, Let me check why this error is occurring. Something strange, I'll update you once I find the root cause.
from rqueue.
Sure waiting for your reply ^^
from rqueue.
Can you please remove devtool dependency and try? This is the culprit, I'm not sure exactly why that's causing this issue. We might have to raise bug to the spring team.
Working Dependencies
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.2.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>test.rqueue</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency>
<dependency>
<groupId>com.github.sonus21</groupId>
<artifactId>rqueue-spring-boot-starter</artifactId>
<version>1.3-RELEASE</version>
</dependency>
</dependencies>
</project>
from rqueue.
When I removed dev-tools, it worked! :)
But this is definitely an issue with dev-tools, how should we proceed?
from rqueue.
If you don't need devtools
then you can remove and in production it's very unlikely you will be using. So this error should not come but you need to test in some test environment to confirm the theory.
Other people are also facing similar issues neo4j/neo4j-ogm#743
from rqueue.
@mertkiray
I can confirm this is a bug in Rqueue lib code. It will be fixed in version 2.0.1 due to release over this weekend. This is happening due to Class.forName uses different class loaders while dev tools provide different class loaders.
from rqueue.
Related Issues (20)
- what is the sonatypeUsername and sonatypePassword? HOT 3
- Serialization support java time module HOT 1
- Deleted messages are kept in memory HOT 5
- Add static resource mapping handler when rqueue.web.url.prefix is set HOT 5
- Weighted priorisation with maximum concurrency HOT 2
- Question: Re-starting processing task when system restarts HOT 7
- Do you plan to use spring-cloud-sleuth to propagate the traceId? HOT 5
- Dashboard shows empty even thought Rqueue is working fine HOT 13
- Question: Integration scenario with multiple queues HOT 4
- rqueue workflow discussion HOT 4
- Support of jackson-databind 2.16.0 HOT 3
- Login/pass for queue dashboard HOT 4
- Lack of available threads HOT 2
- Service-Level Concurrency Control HOT 1
- IllegalArgumentException when accessing queue details HOT 1
- springboot 3.2 can not work HOT 5
- springboot 2.7 can not work HOT 9
- Typo in dashboard text HOT 2
- RQueue attempting to bootstrap despite being "disabled" HOT 1
- Best practice of initializing a queue (producer only) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rqueue.