Dukascopy
 
 
Wiki JStore Search Login

Extremely Strange JForex Exposure Structure Table Refresh Issue
 Post subject: Extremely Strange JForex Exposure Structure Table Refresh Issue Post rating: 0   New post Posted: Thu 22 Nov, 2012, 23:24 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
I happened to be recording this, so you can see while it happened. I had to restart the JForex platform and my Strategy modules, after many hours of perfect operation. I've allocated a 1 megabyte heap, and this is running under the Java "server vm" for high performance using Oracle Java version 1.6

HERE IS THE VIDEO SHOWING THE ISSUE. ALL I COULD FIGURE OUT WAS THAT WHEN THE TOTAL AREA OF THE WINDOW WAS LARGER, IT FAILED TO REFRESH, BUT WHEN THE "TOTAL AREA" WAS LESS, THE REFRESHES WERE FINE.

See for yourself. NON-URGENT, NEVER SEEN THIS BEFORE.

VIDEO link: https://www.youtube.com/watch?v=koRBysMPHjo

Because this is YouTube, you can easily skip back and forth, etc.


Latest JForex Live platform 2.21.9 with API version 2.7.5.2 Working like a charm perfectly, and then this issue appeared.

C:\eclipse\Workspace\HyperScalper\deploy>java -version
java version "1.6.0_34"
Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
Java HotSpot(TM) Client VM (build 20.9-b04, mixed mode, sharing)

Here is a dump from the Java Console.
This is on a Windows 7 system with 4 monitors, stable software configuration.
Usually I disable Direct Draw, but the next thread reply shows that Direct Draw was enabled. Could be some interaction with Java Swing, and Direct Draw <speculation>

Java Web Start 1.6.0_32
Using JRE version 1.6.0_34-b04 Java HotSpot(TM) Server VM
User home directory = C:\Users\Brent
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
Dump system properties ...
----------------------------------------------------
awt.toolkit = sun.awt.windows.WToolkit
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = \
http.auth.serializeRequests = true
https.protocols = TLSv1,SSLv3
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\deploy.jar
java.class.version = 50.0
java.endorsed.dirs = C:\Program Files (x86)\Java\jre6\lib\endorsed
java.ext.dirs = C:\Program Files (x86)\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home = C:\Program Files (x86)\Java\jre6
java.io.tmpdir = C:\Users\Brent\AppData\Local\Temp\
java.library.path = C:\Program Files (x86)\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\YesTrader;c:\Program Files (x86)\Java\jdk1.6.0_32\bin;C:\Program Files (x86)\NTP\bin;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\x64\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;"c:\Program Files (x86)\Java\jdk1.6.0_32\jre\bin";.
java.protocol.handler.pkgs = com.sun.javaws.net.protocol|com.sun.deploy.net.protocol
java.rmi.server.RMIClassLoaderSpi = com.sun.jnlp.JNLPRMIClassLoaderSpi
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.6.0_34-b04
java.security.policy = file:c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\security\javaws.policy
java.specification.name = Java Platform API Specification
java.specification.vendor = Sun Microsystems Inc.
java.specification.version = 1.6
java.util.prefs.PreferencesFactory = com.dukascopy.dds2.greed.gui.settings.JForexPreferencesFactory
java.vendor = Sun Microsystems Inc.
java.vendor.url = https://java.sun.com/
java.vendor.url.bug = https://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.6.0_34
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Sun Microsystems Inc.
java.vm.specification.version = 1.0
java.vm.vendor = Sun Microsystems Inc.
java.vm.version = 20.9-b04
javaplugin.proxy.config.type = direct
javawebstart.version = javaws-1.6.0_32
jna.library.path = C:\Users\Brent\AppData\Local\Temp\\jfxdll
jnlp.client.mode = LIVE
jnlp.client.version = 2.21.9
jnlp.login.url = https://www1.dukascopy.com/authorizatio ... ation/live
jnlp.platform.mode = jforex
jnlpx.heapsize = NULL,NULL
jnlpx.home = c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\bin
jnlpx.jvm = C:\Program Files (x86)\Java\jre6\bin\javaw.exe
jnlpx.offline = false
jnlpx.relaunch = true
jnlpx.remove = false
jnlpx.splashport = 50694
jnlpx.vmargs = -Xmx1000m -XX:ThreadStackSize=128 -XX:+ForceTimeHighResolution -XX:+UseG1GC -XX:MaxInlineSize=500000 -Xss128k -Xms1000m -Xbatch -Xnoclassgc -Dswing.metalTheme=steel -Djnlp.platform.mode=jforex -Djnlp.client.mode=LIVE -Djnlp.login.url=https://www1.dukascopy.com/authorization/live,https://www2.dukascopy.com/authorization/live,https://www6.dukascopy.com/authorization/live -Dsun.java2d.d3d=false -server
line.separator = \r\n
os.arch = x86
os.name = Windows 7
os.version = 6.1
path.separator = ;
sun.arch.data.model = 32
sun.awt.exception.handler = com.dukascopy.dds2.greed.util.b.c$a
sun.awt.warmup = true
sun.boot.class.path = C:\Program Files (x86)\Java\jre6\lib\resources.jar;C:\Program Files (x86)\Java\jre6\lib\rt.jar;C:\Program Files (x86)\Java\jre6\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jre6\lib\jsse.jar;C:\Program Files (x86)\Java\jre6\lib\jce.jar;C:\Program Files (x86)\Java\jre6\lib\charsets.jar;C:\Program Files (x86)\Java\jre6\lib\modules\jdk.boot.jar;C:\Program Files (x86)\Java\jre6\classes;c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\javaws.jar;c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\deploy.jar;c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\plugin.jar
sun.boot.library.path = C:\Program Files (x86)\Java\jre6\bin
sun.cpu.endian = little
sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop = windows
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = com.sun.javaws.Main C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\51\4248d4b3-3b08584b
sun.java.launcher = SUN_STANDARD
sun.java2d.d3d = false
sun.jnu.encoding = Cp1252
sun.management.compiler = HotSpot Tiered Compilers
sun.os.patch.level = Service Pack 1
swing.metalTheme = steel
trustProxy = true
user.country = US
user.dir = C:\FutureScalper
user.home = C:\Users\Brent
user.language = en
user.name = Brent
user.timezone = America/New_York
user.variant =
----------------------------------------------------
Dump deployment properties ...
----------------------------------------------------
deployment.browser.path = C:\Users\Brent\AppData\Local\Google\Chrome\Application\chrome.exe
deployment.browser.vm.iexplorer = true
deployment.browser.vm.mozilla = true
deployment.cache.enabled = true
deployment.cache.jarcompression = 0
deployment.cache.max.size = 500
deployment.capture.mime.types = false
deployment.console.startup.mode = SHOW
deployment.control.panel.log = false
deployment.javapi.cache.update = false
deployment.javapi.lifecycle.exception = false
deployment.javapi.log.filename =
deployment.javapi.runtime.type = 0
deployment.javapi.stop.timeout = 200
deployment.javapi.trace.filename =
deployment.javaws.associations = ASK_USER
deployment.javaws.autodownload = NEVER
deployment.javaws.cache.update = false
deployment.javaws.concurrentDownloads = 4
deployment.javaws.home.jnlp.url = https://java.sun.com/products/javawebstart
deployment.javaws.installURL = https://java.sun.com/products/autodl/j2se
deployment.javaws.logFileName =
deployment.javaws.muffin.max = 256
deployment.javaws.shortcut = ASK_IF_HINTED
deployment.javaws.splash.index = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\splash\splash.xml
deployment.javaws.ssv.enabled = true
deployment.javaws.traceFileName =
deployment.javaws.uninstall.shortcut = false
deployment.javaws.update.timeout = 1500
deployment.javaws.viewer.bounds = 192,260,720,574
deployment.jpi.mode.new = false
deployment.log = false
deployment.max.output.file.size = 10
deployment.max.output.files = 5
deployment.mime.types.use.default = true
deployment.proxy.bypass.local = false
deployment.proxy.override.hosts =
deployment.proxy.same = false
deployment.proxy.type = 3
deployment.repository.askdownloaddialog.show = true
deployment.repository.enabled = true
deployment.security.SSLv2Hello = false
deployment.security.SSLv3 = true
deployment.security.TLSv1 = true
deployment.security.askgrantdialog.notinca = true
deployment.security.askgrantdialog.show = true
deployment.security.authenticator = true
deployment.security.blacklist.check = true
deployment.security.browser.keystore.use = true
deployment.security.clientauth.keystore.auto = true
deployment.security.expired.warning = true
deployment.security.https.warning.show = false
deployment.security.jsse.hostmismatch.warning = true
deployment.security.mixcode = DISABLE
deployment.security.notinca.warning = true
deployment.security.password.cache = true
deployment.security.pretrust.list = true
deployment.security.sandbox.awtwarningwindow = true
deployment.security.sandbox.jnlp.enhanced = true
deployment.security.trusted.policy =
deployment.security.validation.crl = false
deployment.security.validation.ocsp = false
deployment.security.validation.ocsp.publisher = false
deployment.system.cachedir = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\SystemCache
deployment.system.security.blacklist = c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\security\blacklist
deployment.system.security.cacerts = c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\security\cacerts
deployment.system.security.jssecacerts = c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\security\jssecacerts
deployment.system.security.oldcacerts = C:\Program Files (x86)\Java\jre6\lib\security\cacerts
deployment.system.security.oldjssecacerts = C:\Program Files (x86)\Java\jre6\lib\security\jssecacerts
deployment.system.security.trusted.certs = c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\security\trusted.certs
deployment.system.security.trusted.clientauthcerts = c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\security\trusted.clientcerts
deployment.system.security.trusted.jssecerts = c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\security\trusted.jssecerts
deployment.system.security.trusted.libraries = c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\security\trusted.libraries
deployment.system.security.trusted.publishers = c:\\Program Files (x86)\\Java\\jdk1.6.0_32\\jre\\lib\security\trusted.publishers
deployment.system.tray.icon = true
deployment.trace = false
deployment.update.mime.types = true
deployment.user.cachedir = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\cache
deployment.user.extdir = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\ext
deployment.user.logdir = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\log
deployment.user.security.blacklist = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\security\blacklist
deployment.user.security.policy = file:/C:/Users/Brent/AppData/LocalLow/Sun/Java/Deployment/security/java.policy
deployment.user.security.saved.credentials = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\security\auth.dat
deployment.user.security.trusted.cacerts = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\security\trusted.cacerts
deployment.user.security.trusted.certs = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
deployment.user.security.trusted.clientauthcerts = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\security\trusted.clientcerts
deployment.user.security.trusted.jssecacerts = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecacerts
deployment.user.security.trusted.jssecerts = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecerts
deployment.user.security.trusted.libraries = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\security\trusted.libraries
deployment.user.security.trusted.publishers = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\security\trusted.publishers
deployment.user.tmp = C:\Users\Brent\AppData\LocalLow\Sun\Java\Deployment\tmp
deployment.version = 6.0
java.quick.starter = false
----------------------------------------------------
Done.


 
 Post subject: Re: Extremely Strange JForex Exposure Structure Table Refresh Issue Post rating: 0   New post Posted: Thu 22 Nov, 2012, 23:33 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
Here's the launch JNLP so you can see the configuration. Maybe this is some bug in Java Swing ??

Actually, I think that Direct Draw is NOT disabled. I usually disable it. Just fyi. Could be relevant.

Could be some interaction with Direct Draw and Swing JTable... <pure speculation>

noddraw is the parameter which controls Direct Draw, and I see that I'm not using it.

<?xml version="1.0"?>
<jnlp spec="1.6+" codebase="https://www.dukascopy.com/client/live/jclient/" href="jforex.jnlp">
  <information>
    <title>JForex Client</title>
    <vendor>FX Marketplace Platform</vendor>
    <description kind="one-line">JForex Trading Platform</description>
    <description kind="short">JForex Trading Platform</description>
    <description kind="tooltip">JForex Trading Platform</description>
    <icon href="../../images/jforex_icon.png"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="timeout" policy="always"/>
  <resources> <j2se version="1.6.0+" java-vm-args=" -server  -
-XX:GCPauseIntervalMillis=100 -XX:-DoEscapeAnalysis -
-XX:ThreadStackSize=128  -XX:CompileThreshold=10 -
-XX:CICompilerCount=2  -XX:+UseBiasedLocking -
-XX:+ForceTimeHighResolution -XX:+UseG1GC -
-XX:+RelaxAccessControlCheck -XX:-TieredCompilation  -
-XX:MaxInlineSize=500000 -Xverify:none -XX:FreqInlineSize=500000 -
-XX:-DontCompileHugeMethods -XX:+AlwaysPreTouch -
-XX:+UseFastAccessorMethods -Xss128k -Xms1000m -Xmx1000m -Xbatch -Xnoclassgc -
-Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel -Dswing.metalTheme=steel -
-Ddeployment.security.mixcode=DISABLE -
-Duser.timezone=America/New_York  -Duser.language=en -Duser.region=US />

    <property name="jnlp.client.version" value="2.21.9 "/>
    <property name="jnlp.platform.mode" value="jforex"/>
    <property name="jnlp.client.mode" value="LIVE"/>
    <property name="jnlp.login.url" value="https://www1.dukascopy.com/authorization/live,https://www2.dukascopy.com/authorization/live,https://www6.dukascopy.com/authorization/live"/>
    <property name="sun.java2d.d3d" value="false"/>
    <java version="1.6+" initial-heap-size="32m" max-heap-size="512m"/>
    <jar href="lib/7zip-4.65.jar" main="false"/>
    <jar href="lib/DDS2-TextEditor-1.18.jar" main="false"/>
    <jar href="lib/JForex-API-2.7.5.2.jar" main="false"/>
    <jar href="lib/MQL4Connector-2.7.5.2.1.jar" main="false"/>
    <jar href="lib/MQL4Converter-1.10.jar" main="false"/>
    <jar href="lib/commons-lang3-3.0.1.jar" main="false"/>
    <jar href="lib/ecj-3.5.2.jar" main="false"/>
    <jar href="lib/jForex-2.21.9.jar" main="false"/>
    <jar href="lib/jakarta-oro-2.0.8.jar" main="false"/>
    <jar href="lib/jakarta-regexp-1.4.jar" main="false"/>
    <jar href="lib/jcalendar-1.3.3.jar" main="false"/>
    <jar href="lib/jna-3.5.0.jar" main="false"/>
    <jar href="lib/lucene-core-3.4.0.jar" main="false"/>
    <jar href="lib/lucene-highlighter-3.4.0.jar" main="false"/>
    <jar href="lib/lucene-memory-3.4.0.jar" main="false"/>
    <jar href="lib/lucene-queries-3.4.0.jar" main="false"/>
    <jar href="lib/mina-core-1.1.7.jar" main="false"/>
    <jar href="lib/mina-filter-ssl-1.1.7.jar" main="false"/>
    <jar href="lib/slf4j-api-1.6.4.jar" main="false"/>
    <jar href="lib/slf4j-jdk14-1.6.4.jar" main="false"/>
    <jar href="lib/ta-lib-0.4.4dc.jar" main="false"/>
  </resources>
  <application-desc main-class="com.dukascopy.dds2.greed.GreedClient"/>
</jnlp>


 
 Post subject: Re: Extremely Strange JForex Exposure Structure Table Refresh Issue Post rating: 0   New post Posted: Tue 04 Dec, 2012, 10:17 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
It looks to be a JAVA problem or not enaugh memory allocated. From the jnlp we see you still use 512 MB of the allocated memory. Try more is possible e.g. 2GB:
<java version="1.6+" initial-heap-size="32m" max-heap-size="2048m"/>


 

Jump to:  

cron
  © 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