Re: Timed wait fails under WebStart in Java 1.6 prerelease?

Discussion in 'Java' started by twc, Dec 10, 2006.

  1. twc

    twc Guest

    <having trouble with my news server, hope this
    gets posted...>

    OK, in an effort to contribute something, I did a clean install
    of 1.6.0-rc-b104 and a reboot, on Windows XP Pro. Here's
    the system properties, but the software runs beautifully from
    the java command line. The problem comes in when I run it
    from its Webstart configuration. Anyway, I can run it from the
    command line perfectly using this command:

    java.exe -client -dsa -Xms128m -Xmx384m -Xnoclassgc -cp
    ZoneTrader.jar;ZoneTraderAuth.jar;ZoneTraderSounds.jar;ZoneTraderChart.jar;ZoneTraderContracts.jar
    -Dsun.java2d.noddraw=true com/twc/trader/ZoneTrader
    C:\Eclipse311\ZoneTrader\deploy

    This is a very complex multi-threaded (about 85 threads) realtime Swing
    application
    for online futures daytrading.

    Here are the system properties of the successful command line run, and after
    that I show you the jnlp specs for the configuration which does not run:

    java.runtime.name: <Java(TM) SE Runtime Environment>
    sun.boot.library.path: <C:\Program Files\Java\jre1.6.0\bin>
    java.vm.version: <1.6.0-rc-b104>
    java.vm.vendor: <Sun Microsystems Inc.>
    java.vendor.url: <http://java.sun.com/>
    path.separator: <;>
    java.vm.name: <Java HotSpot(TM) Client VM>
    file.encoding.pkg: <sun.io>
    user.country: <US>
    sun.java.launcher: <SUN_STANDARD>
    sun.os.patch.level: <Service Pack 2>
    java.vm.specification.name: <Java Virtual Machine Specification>
    user.dir: <C:\Eclipse311\ZoneTrader\deploy>
    java.runtime.version: <1.6.0-rc-b104>
    java.awt.graphicsenv: <sun.awt.Win32GraphicsEnvironment>
    java.endorsed.dirs: <C:\Program Files\Java\jre1.6.0\lib\endorsed>
    os.arch: <x86>
    java.io.tmpdir: <C:\TEMP\>
    line.separator: <
    >

    java.vm.specification.vendor: <Sun Microsystems Inc.>
    user.variant: <>
    os.name: <Windows XP>
    sun.java2d.noddraw: <true>
    sun.jnu.encoding: <Cp1252>
    java.library.path:
    <C:\WINDOWS\system32;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
    Files\Common
    Files\GTK\2.0\bin;.;c:\PROGRA~1\java\jdk1.5.0_06\bin;c:\PROGRA~1\java\jre1.5.0_06\bin;C:\Blazix;>
    java.specification.name: <Java Platform API Specification>
    java.class.version: <50.0>
    sun.management.compiler: <HotSpot Client Compiler>
    os.version: <5.1>
    user.home: <C:\Documents and Settings\bfry>
    user.timezone: <America/New_York>
    java.awt.printerjob: <sun.awt.windows.WPrinterJob>
    file.encoding: <Cp1252>
    java.specification.version: <1.6>
    user.name: <bfry>
    java.class.path:
    <ZoneTrader.jar;ZoneTraderAuth.jar;ZoneTraderSounds.jar;ZoneTraderChart.jar;ZoneTraderContracts.jar>
    java.vm.specification.version: <1.0>
    sun.arch.data.model: <32>
    java.home: <C:\Program Files\Java\jre1.6.0>
    java.specification.vendor: <Sun Microsystems Inc.>
    user.language: <en>
    awt.toolkit: <sun.awt.windows.WToolkit>
    java.vm.info: <mixed mode, sharing>
    java.version: <1.6.0-rc>
    java.ext.dirs: <C:\Program
    Files\Java\jre1.6.0\lib\ext;C:\WINDOWS\Sun\Java\lib\ext>
    sun.boot.class.path: <C:\Program
    Files\Java\jre1.6.0\lib\resources.jar;C:\Program
    Files\Java\jre1.6.0\lib\rt.jar;C:\Program
    Files\Java\jre1.6.0\lib\sunrsasign.jar;C:\Program
    Files\Java\jre1.6.0\lib\jsse.jar;C:\Program
    Files\Java\jre1.6.0\lib\jce.jar;C:\Program
    Files\Java\jre1.6.0\lib\charsets.jar;C:\Program Files\Java\jre1.6.0\classes>
    java.vendor: <Sun Microsystems Inc.>
    file.separator: <\>
    java.vendor.url.bug: <http://java.sun.com/cgi-bin/bugreport.cgi>
    sun.cpu.endian: <little>
    sun.io.unicode.encoding: <UnicodeLittle>
    sun.desktop: <windows>
    sun.cpu.isalist: <>

    The jars are all then signed and moved to a website, with the jnlp as
    follows, which
    is the configuration in which it hangs. I have not yet determined exactly
    where
    the software is hanging but will try and find out and post a followup:

    <?xml version="1.0" encoding="UTF-8" ?>
    <jnlp spec="1.0+" codebase="http://TradeWithConfidence.com/zonetrader"
    href="ZoneTrader.jnlp">

    <information>
    <title>Zone Trader</title>
    <vendor>TradeWithConfidence.com</vendor>
    <description>Futures Trader</description>
    <homepage href="http://TradeWithConfidence.com/zonetrader" />
    <offline-allowed />
    </information>

    <security>
    <all-permissions />
    </security>

    <resources>
    <j2se version="1.5.0+"
    java-vm-args=" -client -dsa -Xbatch -Xss92k -Xms256m -Xmx256m -Xnoclassgc -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel
    -Dswing.metalTheme=steel -Duser.timezone=America/New_York -Duser.language=en
    -Duser.region=US"/>
    <jar href="sZoneTrader.jar" download="eager" />
    <jar href="sZoneTraderChart.jar" download="eager" />
    <jar href="sZoneTraderSounds.jar" download="eager" />
    <jar href="sZoneTraderAuth.jar" download="eager" />
    <jar href="sZoneTraderContracts.jar" download="eager" />
    <property name="sun.java2d.noddraw" value="true"/>
    </resources>

    <application-desc main-class="com.twc.trader.ZoneTrader">
    <argument>command-line-argument</argument>
    </application-desc>

    </jnlp>
     
    twc, Dec 10, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve
    Replies:
    0
    Views:
    5,340
    Steve
    Jul 1, 2003
  2. Thomas Heller

    [ANN] py2exe 0.5 for Python 2.3 prerelease

    Thomas Heller, Nov 7, 2003, in forum: Python
    Replies:
    0
    Views:
    328
    Thomas Heller
    Nov 7, 2003
  3. twc
    Replies:
    2
    Views:
    338
    Thomas Hawtin
    Dec 10, 2006
  4. twc
    Replies:
    2
    Views:
    329
    Andrew Thompson
    Dec 11, 2006
  5. Alexander Kellett

    [ANN] ruvi 0.4.12 PRERELEASE [rpa only atm]

    Alexander Kellett, Oct 12, 2004, in forum: Ruby
    Replies:
    4
    Views:
    112
    Alexander Kellett
    Oct 19, 2004
Loading...

Share This Page