Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #560

Closed
anhhoang87 opened this issue Nov 13, 2024 · 4 comments
Closed

[BUG] #560

anhhoang87 opened this issue Nov 13, 2024 · 4 comments
Assignees
Labels

Comments

@anhhoang87
Copy link

Which JNoSQL project the issue refers to?

JNoSQL Databases

Bug description

I keep running into an error where there is an exception to connect to the redis database using org.eclipse.jnosql.databases:jnosql-redis:1.1.1. After getting this error, I have to restart the whole service. Is there a way to catch the exception, close the connection, and open a new one?

http-nio-8080-exec-4] Error happened when creating json token Attempting to read from a broken connection
redis.clients.jedis.exceptions.JedisConnectionException: Attempting to read from a broken connection
at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:346)
at redis.clients.jedis.Connection.getOne(Connection.java:332)
at redis.clients.jedis.Connection.executeCommand(Connection.java:137)
at redis.clients.jedis.Jedis.set(Jedis.java:4893)
at org.eclipse.jnosql.databases.redis.communication.RedisBucketManager.put(RedisBucketManager.java:59)
at org.eclipse.jnosql.databases.redis.communication.RedisBucketManager.put(RedisBucketManager.java:64)
at org.eclipse.jnosql.communication.keyvalue.BucketManager$$OwbNormalScopeProxy0.put(org/eclipse/jnosql/communication/keyvalue/BucketManager.java)
at org.eclipse.jnosql.mapping.keyvalue.AbstractKeyValueTemplate.lambda$put$0(AbstractKeyValueTemplate.java:49)
at org.eclipse.jnosql.mapping.keyvalue.AbstractKeyValueTemplate.lambda$toUnary$8(AbstractKeyValueTemplate.java:160)

JNoSQL Version

JNoSQL version 1.1.1

Steps To Reproduce

Not sure how to reproduce the issue but I'm building a web service using jakarta ee with redis integration. The service is running on tomee and the redis connection configuration is set up using micro profile

Expected Results

No response

Code example, screenshot, or link to a repository

No response

@otaviojava
Copy link
Contributor

@anhhoang87 we will work on it.

@otaviojava
Copy link
Contributor

Update. @dearrudam is working on it at this PR: eclipse-jnosql/jnosql-databases#297

@dearrudam
Copy link
Contributor

dearrudam commented Nov 20, 2024

@anhhoang87, the fix will be released in the 1.1.3 version. Until there, it is available in the 1.1.3-SNAPSHOT version on the OSS Sonatype Repository. You're able to use it if you add the repository to your settings.xml under your user home .m2 directory or add to the POM.xml of your project. The coordinates are below:

    <repositories>
        <repository>
            <id>jakarta.sonatype.org-snapshot</id>
            <url>https://jakarta.oss.sonatype.org/content/repositories/snapshots/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>oss.sonatype.org-snapshot</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

@otaviojava
Copy link
Contributor

I've released version 1.1.3 with this change; please let me know if it fixed your issue.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants