Net.sf.ehcache.util.UpdateChecker.checkForUpdate Problem Solving Solution

Source: Internet
Author: User
Tags response code
Problem Description

Every startup item recently throws the following exception:

2018-03-29 09:01:07,831 DEBUG [Ehcache] Net.sf.ehcache.util.UpdateChecker.checkForUpdate (updatechecker.java:107)- Update Check Failed:java.io.IOException:Server returned HTTP response code:403 for url:http://www.terracotta.org/kit/ reflector?pageid=update.properties&patch=unknown&tc-product=ehcache-core+2.9.0&tc-version=2.9.0 &uptime-secs=1&kitid=ehcache.default&jvm-version=1.8.0_151&os-name=mac+os+x&id=-1062731415 &source=ehcache-core&jvm-name=java+hotspot%28tm%29+64-bit+server+vm&platform=x86_64 at Sun.net.www.protocol.http.HttpURLConnection.getInputStream0 (httpurlconnection.java:1894) ~[?:1.8.0_151] at Sun.net.www.protocol.http.HttpURLConnection.getInputStream (httpurlconnection.java:1492) ~[?:1.8.0_151] at Net.sf.ehcache.util.UpdateChecker.getUpdateProperties (updatechecker.java:153) ~[ehcache-2.9.0.jar:2.9.0] at Net.sf.ehcache.util.UpdateChecker.doCheck (updatechecker.java:117) ~[ehcache-2.9.0.jar:2.9.0] at NET.SF.EHCAche.util.UpdateChecker.checkForUpdate (updatechecker.java:104) [ehcache-2.9.0.jar:2.9.0] at Net.sf.ehcache.util.UpdateChecker.run (updatechecker.java:95) [ehcache-2.9.0.jar:2.9.0] at Java.util.TimerThread.mainLoop (timer.java:555) [?: 1.8.0_151] at Java.util.TimerThread.run (timer.java:505) [?: 1.8.0 _151]

After the study found that the original is the Ghost Ehcache, each start will visit the official website to see if there is the latest version, so you can also count how many users and servers in the use of Ehcache. Most likely a backdoor program, which is turned on by default. Solution

Locate the Ehcache.xml file, add the attribute updatecheck= "false" in the Ehcache tag, as follows:

<ehcache name= "Ehcache" updatecheck= "false" >

or modified in the following way:

<ehcache xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
         xsi:nonamespaceschemalocation= " Ehcache.xsd "updatecheck=" False >

Restart again, the problem can be resolved.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.