Comments (13)
We lost 3 hours of development time across our entire team as a result of tracking this down as well. We were running 2.7.0 ... how did an older version suddenly get substantial changes made to it? Shouldn't that be locked?
from geoip2-java.
broke our builds as well
from geoip2-java.
Please upgrade to 2.8.1.
from geoip2-java.
Thanks Oschwald,
but If I change to 2.8.1 it still errors.
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.esri.sms.services.proxy.MaxMindService]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/http/client/config/RequestConfig
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1006)
the below works when i update POM..
<dependency>
<groupId>com.maxmind.geoip2</groupId>
<artifactId>geoip2</artifactId>
<version>2.7.0</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
from geoip2-java.
@narayananl23, that sounds like a separate issue. Would you open a ticket for it with more details about your environment and the output of mvn dependency:tree -Dverbose
for your project?
from geoip2-java.
Sure will do it.. i see the issue pop up on stackoverflow today for others as well
http://stackoverflow.com/questions/42386730/issue-with-maxmind-dependency
from geoip2-java.
@narayananl23, your original issue was fixed in the 2.8.1 release. The second issue appears to be unrelated based on the trace you posted.
from geoip2-java.
@oschwald will 2.8.1 will be added to this ? I only see 2.8.0.
https://mvnrepository.com/artifact/com.maxmind.geoip2/geoip2
from geoip2-java.
2.8.1 was released this morning through oss.sonatype.org. It may take a while for it to be available on all mirrors.
from geoip2-java.
that may be the reason
when I add the dependency org.apache.httpcomponents.httpclient, the build worked for me..
<dependency>
<groupId>com.maxmind.geoip2</groupId>
<artifactId>geoip2</artifactId>
<version>2.8.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.3</version>
</dependency>
from geoip2-java.
Could you please explain which dependency brought these SNAPSHOTs and how is it possible? We've missed half a day due to the such an error in multiple components. So we need to understand the root-cause and ways to prevent such cases in the future.
from geoip2-java.
Root cause was here:
<groupId>com.maxmind.db</groupId>
<artifactId>maxmind-db</artifactId>
<version>1.2.1</version>
<properties>
<jackson-databind.version>[2.7.0,)</jackson-databind.version>
</properties>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson-databind.version}</version>
</dependency>
</dependencies>
In latest versions fixed to:
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.7.9</version>
</dependency>
from geoip2-java.
How can i open a ticket ? It creates many issues.
from geoip2-java.
Related Issues (20)
- Documentation: Does the client support updategeodb? HOT 1
- connection reset exception raised when requesting the country of an IP HOT 2
- Java library crashes on presence of location fields: average_income and population_density HOT 10
- ERROR: java.lang.ClassCastException: Cannot cast java.lang.String to com.maxmind.geoip2.model.AsnResponse. HOT 2
- WebServiceClient crash on Android platform HOT 1
- java.lang.OutOfMemoryError: Java heap space HOT 5
- in android 6.0 HOT 4
- Some IP addresses return IllegalArgument Exception from DatabaseReader HOT 12
- legacy to now HOT 2
- Add equals and hashCode to the classes HOT 3
- JPMS support HOT 2
- New release for security vulnerability HOT 1
- We need Address (or city,country and zip code) to Longitude and Latitude and we have maxmind data HOT 1
- Version 4.0.0 and 4.0.1 cannot access com.maxmind.db.CHMCache HOT 2
- GraalVM Support HOT 3
- What happen using reader.asn(ipAddress) when the ipaddress has many network prefix in the mmdb file HOT 3
- Wrong comment about locales HOT 1
- GeoIp2Provider doesn't define insights methods HOT 1
- maxmind Reader.FileMode.MEMORY_MAPPED,a fault occurred in a recent unsafe memory access operation in compiled Java code HOT 8
- What versions of java8 are supported? 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 geoip2-java.