Git Product home page Git Product logo

Comments (13)

stilford avatar stilford commented on June 8, 2024 2

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.

stilford avatar stilford commented on June 8, 2024

broke our builds as well

from geoip2-java.

oschwald avatar oschwald commented on June 8, 2024

Please upgrade to 2.8.1.

from geoip2-java.

narayananl23 avatar narayananl23 commented on June 8, 2024

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.

oschwald avatar oschwald commented on June 8, 2024

@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.

narayananl23 avatar narayananl23 commented on June 8, 2024

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.

oschwald avatar oschwald commented on June 8, 2024

@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.

narayananl23 avatar narayananl23 commented on June 8, 2024

@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.

oschwald avatar oschwald commented on June 8, 2024

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.

narayananl23 avatar narayananl23 commented on June 8, 2024

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.

stepio avatar stepio commented on June 8, 2024

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.

stepio avatar stepio commented on June 8, 2024

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.

narayananl23 avatar narayananl23 commented on June 8, 2024

How can i open a ticket ? It creates many issues.

from geoip2-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.