2010-09-06 14 views
6

पर इंटरनेट तक पहुंचने की कोशिश कर रहे ehcache को रोकें मेरे पास वसंत और हाइबरनेट के साथ एक सरल सरल गैर-क्लस्टर एप्लिकेशन चल रहा है।स्टार्टअप

<06-Sep-2010 19:14:05 o'clock BST> <Error> <Net> <Failed to communicate with proxy: 10.x.x.x/8080. Will try connection www.terracotta.org/80 now. 

java.net.SocketTimeoutException: कनेक्ट का समय समाप्त हो

मैं इस कॉल को कैसे रोकूं

स्टार्टअप पर मैं इस त्रुटि मिल रही है?

यहाँ मेरी ehcache.xml है:

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="ehcache.xsd" 
     updateCheck="false" monitoring="off" dynamicConfig="false"> 


<defaultCache maxElementsInMemory="1000" eternal="false" 
    timeToIdleSeconds="60" timeToLiveSeconds="60" 
    overflowToDisk="false" > 
     <terracotta clustered="false"/> 
</defaultCache> 

मुझे विश्वास है कि इस ehcache.xml उठाया जा रहा है और जैसे इस्तेमाल किया हूँ कोई क्लासपाथ मुद्दे नहीं।

मैं उपयोग कर रहा हूँ: ehcache 2.0.1, और हाइबरनेट 3.3.1.GA

+6

कष्टप्रद, है ना? – skaffman

उत्तर

14

जब आपके <ehcache /> तत्व को updateCheck="false" जोड़ने, काम नहीं करता है प्रणाली संपत्ति सेट करके देखें, या आदेश पंक्ति पर -Dnet.sf.ehcache.skipUpdateCheck=true साथ या System.setProperty("net.sf.ehcache.skipUpdateCheck", "true") प्रोग्रामेटिक रूप से।

+1

इसके लिए धन्यवाद - यह वास्तव में अद्यतन चेक करने वाले क्वार्ट्ज होने के लिए निकला है: http://blog.cherouvim.com/disabling-quartz-and-ehcache-update-checker/ – Pablojim

2

यह मेरे लिए काम किया:

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="ehcache.xsd" 
updateCheck="false"> 

... 

</ehcache> 
संबंधित मुद्दे