Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

network: Cache entry not found
 Post subject: network: Cache entry not found Post rating: 0   New post Posted: Mon 07 Apr, 2014, 01:08 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
As far as I can determine, my log4j.properties specifies only ERROR level
logging, but I get thousands of these as historical data is cached by the
JForex platform. This is to the Java System Console.

What config can I use to suppress this logging info to the Java Console log ?
I have two copies of log4j.properties, one is in the default directory where
the JForex .jnlp file was launched locally, and the other in the JForex default
Strategies folder. I'm assuming it should be in the application's default
directory?...

Java console tells me that Java system property
user.dir = C:\HyperScalper which is the directory from which I
invoked the JForex javaws launch (with a freshly downloaded jnlp file)
and that's where I have one of my log4j.properties files which
I believe is specifying ERROR as the logging threshold level.

Thanks,
HyperScalper

JForex FXDD ver. 2.33.5
JForex API ver. 2.9.7.1

Also with Dukascopy Bank ver. 2.33.5
JForex API ver. 2.9.7.1

java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Server VM (build 24.45-b08, mixed mode)


network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/11h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/11h_ticks.bi5 with proxy=DIRECT
network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/12h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/12h_ticks.bi5 with proxy=DIRECT
network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/13h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/13h_ticks.bi5 with proxy=DIRECT
network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/14h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/14h_ticks.bi5 with proxy=DIRECT
network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/15h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/15h_ticks.bi5 with proxy=DIRECT
network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/16h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/16h_ticks.bi5 with proxy=DIRECT
network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/17h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/17h_ticks.bi5 with proxy=DIRECT
network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/18h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/18h_ticks.bi5 with proxy=DIRECT
network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/19h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/19h_ticks.bi5 with proxy=DIRECT
network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/20h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/20h_ticks.bi5 with proxy=DIRECT
network: Cache entry not found [url: https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/21h_ticks.bi5, version: null]
network: Connecting https://www.dukascopy.com/datafeed/GBPNZD/2014/03/06/21h_ticks.bi5 with proxy=DIRECT


Here's the log4j.properties so maybe there's something wrong with it?
#log4j.rootLogger=INFO, systemOut, file, warnErrorFile
log4j.rootLogger=ERROR, systemOut, file, warnErrorFile

#Filter for dukascopy logs
log4j.category.com.dukascopy=ERROR
#Filter for dukascopy transport logs
log4j.category.com.dukascopy.transport.client=ERROR
com.dukascopy.transport.client.ClientConnector=ERROR
com.dukascopy.transport.client.ClientProtocolHandler=ERROR
com.dukascopy.charts.data.datacache.LocalCacheManager=ERROR
#Filter for mina logs
log4j.category.org.apache.mina=ERROR

#Output only INFO logs to console
log4j.appender.systemOut=org.apache.log4j.ConsoleAppender
log4j.appender.systemOut.Threshold=ERROR
log4j.appender.systemOut.layout=org.apache.log4j.PatternLayout
log4j.appender.systemOut.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p %c{1} - %m%n

#File with all the debug
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.Threshold=ERROR
log4j.appender.file.Append=true
log4j.appender.file.Encoding=UTF-8
log4j.appender.file.File=./logs/debug.log
log4j.appender.file.MaxBackupIndex=5
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p %c - %m%n

#File with warnings and errors only
log4j.appender.warnErrorFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.warnErrorFile.Threshold=WARN
log4j.appender.warnErrorFile.Append=true
log4j.appender.warnErrorFile.Encoding=UTF-8
log4j.appender.warnErrorFile.File=./logs/WarnError.log
log4j.appender.warnErrorFile.layout=org.apache.log4j.PatternLayout
log4j.appender.warnErrorFile.layout.ConversionPattern=%d{HH:mm:ss.SSS} %-5p %c - %m%n



 
 Post subject: Re: network: Cache entry not found Post rating: 0   New post Posted: Tue 08 Apr, 2014, 16:45 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Have you made sure that the property file is in your classpath? To see example case how to that simply download the latest JForex-SDK.zip.


 
 Post subject: Re: network: Cache entry not found Post rating: 0   New post Posted: Mon 14 Apr, 2014, 06:08 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
Hmmm.... thanks. So I'll just have to ensure it's on the
java classpath, which it doesn't appear to be..... I just
downloaded the .jnlp file, and then "launched" it, without
specifying any additional classpath entries.

I incorrectly assumed that the default directory where
the .jnlp was launched from, would be on the classpath,
but that's not true.....

Console dump of system properties shows
class path is:

java.class.path = C:\Program Files (x86)\Java\jre7\lib\deploy.jar

So I'll add the proper entry to the classpath on launch.

Thanks !
HyperScalper


 
 Post subject: Re: network: Cache entry not found Post rating: 0   New post Posted: Mon 14 Apr, 2014, 07:16 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We thought that you want to change the SDK logging settings. Please report platform issues in the Trading Platforms section.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com