question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot cast object 'UNKNOWN-UNKNOWN' with class 'eu.bitwalker.useragentutils.UserAgent' to class 'eu.bitwalker.useragentutils.UserAgent'

See original GitHub issue

Hi,

I’m trying to setup redisson for tomcat 8, and i’m getting this exception at the start:

org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'UNKNOWN-UNKNOWN' with class 'eu.bitwalker.useragentutils.UserAgent' to class 'eu.bitwalker.useragentutils.UserAgent'

I think it may be related to incorrect dependencies? In order to get the tomcat to start withouth errors, i had to manually add some libraries to the tomcat instance because redisson was failing with multiple exceptions related to classNotFound, these are the dependecies i had to add:

  • fst-2.57.jar
  • objenesis-3.1.jar
  • UserAgentUtils-1.21.jar

This is the redisson.conf i’m using

{ "singleServerConfig": { "idleConnectionTimeout": 10000, "connectTimeout": 10000, "timeout": 3000, "retryAttempts": 3, "retryInterval": 1500, "password": null, "subscriptionsPerConnection": 5, "clientName": null, "address": "redis://xxxxx.0001.use1.cache.amazonaws.com:6379", "subscriptionConnectionMinimumIdleSize": 1, "subscriptionConnectionPoolSize": 50, "connectionMinimumIdleSize": 24, "connectionPoolSize": 64, "database": 0, "dnsMonitoringInterval": 5000 }, "threads": 16, "nettyThreads": 32, "codec": null, "transportMode": "NIO" }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
agusl88commented, Sep 3, 2020

the 3.13.4 fixed the problem, thanks!

0reactions
mrnikocommented, Sep 2, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Uses of Class eu.bitwalker.useragentutils.UserAgent
Methods in eu.bitwalker.useragentutils that return UserAgent. Modifier and Type, Method and Description. static UserAgent, UserAgent.
Read more >
eu.bitwalker.useragentutils.UserAgent Java Examples
This page shows Java code examples of eu.bitwalker.useragentutils.UserAgent.
Read more >
Device Classification Library - End of Life
An external tool called user-agent-utils is imported by… ... -agent-utils/blob/1.11/src/main/java/eu/bitwalker/useragentutils/UserAgent.java.
Read more >
eu.bitwalker.useragentutils.UserAgent.getBrowser java code ...
Best Java code snippets using eu.bitwalker.useragentutils. ... parseUserAgentString(userAgent); Map<String, Object> map = new HashMap<>(); map.put("id", ua.
Read more >
java - Hive UDF Throws Class Not Found Exception in select
I suppose that this lib which I use has problems but is it possible if I in local works fine? import eu.bitwalker.useragentutils.UserAgent; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found