|
From: <no...@so...> - 2002-10-29 22:47:15
|
Bugs item #626539, was opened at 2002-10-21 21:44 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=509508&aid=626539&group_id=65029 Category: Interface Group: None Status: Open Resolution: Accepted Priority: 8 Submitted By: Michael Lever (leverm) Assigned to: Ross Gardler (rgardler) Summary: Windows Error message when parsing Initial Comment: When a file or url is parsed (using FantasyFootballSportsModule-0.0.1-alpha1-dev- 200210211904 and before) under Winows an error message is displayed, for example : Problem with shortcut: Unable to open "http://news.bbc.co.uk/sport/hi/english/static/footba ll/statistics/teams/a/aston_villa/live_hi.stm" or Problem with shortcut: Unale to open file "/C:/Fanfoot/ARS v SUN.htm" However, this does not appear to affect the running of the program itself as the file/url is successfully parsed anyway. ---------------------------------------------------------------------- >Comment By: Ross Gardler (rgardler) Date: 2002-10-29 22:47 Message: Logged In: YES user_id=88713 I have inspected the code and can see no logical reason for this bug happening. I suspect that it may have something to do with the length of the URL. Can you test this for me by typing in a shorter URL in the dialog box and clicking OK. Does it work or not? If it doesn;t work please provide the output you see in the DOS box. ---------------------------------------------------------------------- Comment By: Ross Gardler (rgardler) Date: 2002-10-28 21:04 Message: Logged In: YES user_id=88713 This is useful information, it tells me exactly where the problem is. It seems that there is a slight different in the way the URL is being returned from the dialog boxes used to select a local file or remote URL and the way the debug menu (or test code) has the URLs hard coded. I will take a look at this ASAP as with this additional info I think the fix should be fairly obvious once I inpect the code. Thanks ---------------------------------------------------------------------- Comment By: Michael Lever (leverm) Date: 2002-10-28 20:57 Message: Logged In: YES user_id=631335 More info : The Debug "Parse BBC Test 1" test file does not produce this error under Windows XP - the url is parsed correctly and the page itself is opened in the default internet browser. The problem is only demoinstrated on other files, either "live" url's or files saved locally. The url/file is parsed correctly, but the page is not loaded into the default browser. This may still be a problem with XP, but since the Debug test file works it may also be fixable in the module files. Any ideas? ---------------------------------------------------------------------- Comment By: Ross Gardler (rgardler) Date: 2002-10-26 21:31 Message: Logged In: YES user_id=88713 In that case it's a problem with windows XP. This works fine on Windows NT and on Linux (it hasn;t been tested on other platforms that I am aware of). Furthermore, I use Mozilla as my browser. However, the fact that the test you ran works confuses me, there must be a subtle difference between the test code and the real code. I just haven't looked into it yet. ---------------------------------------------------------------------- Comment By: Michael Lever (leverm) Date: 2002-10-26 21:02 Message: Logged In: YES user_id=631335 I don't think it's a problem with IE. To test I downloaded Mozilla Phoenix and have made it my default browser. Error still occurs. ---------------------------------------------------------------------- Comment By: Ross Gardler (rgardler) Date: 2002-10-24 16:53 Message: Logged In: YES user_id=88713 Hmmmm.... interesting. This bug is not present on other versions of WIndows and the test you just ran uses exactly the same code to display the URL. I think this is a strange one to do with XP and/or IE 6. I will do some more investigation into this. ---------------------------------------------------------------------- Comment By: Michael Lever (leverm) Date: 2002-10-23 23:10 Message: Logged In: YES user_id=631335 Managed to get it to do what you wanted. Here's the output from the command : Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\fanfoot-dev\FantasyFootballSportsModule-0.0.1-alpha1-dev- 200210211904>java -cp ./lib/saafe-commons-0.1.0-alpha-dev- 200210171832.jar org.saafe.utils.BrowserControl 23-Oct-2002 23:02:00 org.saafe.utils.BrowserControl displayURL INFO: Instruct native browser to display url http://www.javaworld.com C:\fanfoot-dev\FantasyFootballSportsModule-0.0.1-alpha1-dev- 200210211904> When run IE6 is launched (if not already open) and http://www.javaworld.com is displayed. There are no error messages. ---------------------------------------------------------------------- Comment By: Ross Gardler (rgardler) Date: 2002-10-23 08:06 Message: Logged In: YES user_id=88713 CD to the directory where you installed the last fanfoot release. type the command: java -cp ./lib/saafe-commons-0.1.0-alpha-dev-200210171832.jar org.saafe.utils.BrowserControl This is one command not two (the linewrapping in SF has forced it onto two lines). Furthermore, in the dump of the output of your last attempt you have a space between the c and the p in -cp (unless this is a wrapping problem as well. ---------------------------------------------------------------------- Comment By: Michael Lever (leverm) Date: 2002-10-23 06:28 Message: Logged In: YES user_id=631335 Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\fanfoot-dev>cd FantasyFootballSportsModule-0.0.1-alpha1- dev-200210211904 C:\fanfoot-dev\FantasyFootballSportsModule-0.0.1-alpha1-dev- 200210211904>a.bat C:\fanfoot-dev\FantasyFootballSportsModule-0.0.1-alpha1-dev- 200210211904>java -c p ./lib/saafe-commons-0.1.0-alpha-dev-200210171832.jar Usage: java [-options] class [args...] (to execute a class) or java -jar [-options] jarfile [args...] (to execute a jar file) where options include: -client to select the "client" VM -server to select the "server" VM -hotspot is a synonym for the "client" VM [deprecated] The default VM is client. -cp -classpath <directories and zip/jar files separated by ;> set search path for application classes and resources -D<name>=<value> set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -showversion print product version and continue -? -help print this help message -X print help on non-standard options -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable assertions -da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions C:\fanfoot-dev\FantasyFootballSportsModule-0.0.1-alpha1-dev- 200210211904>org.saa fe.utils.BrowserControl 'org.saafe.utils.BrowserControl' is not recognized as an internal or external co mmand, operable program or batch file. C:\fanfoot-dev\FantasyFootballSportsModule-0.0.1-alpha1-dev- 200210211904> I'm not quite sure what you're asking me to do here. Did you just want me to run the text as a command ithout the app open, because that's what I did. The output is shown above. No other errors shown and no browser activity, using Windows XP and IE 6. ---------------------------------------------------------------------- Comment By: Ross Gardler (rgardler) Date: 2002-10-23 00:18 Message: Logged In: YES user_id=88713 Can you please try running the following command (from the install directory): java -cp ./lib/saafe-commons-0.1.0-alpha-dev-200210171832.jar org.saafe.utils.BrowserControl What is the output in your command window? Does the browser do anything or do you get the error above? What version of WIndows are you using? What version of IE are you using? ---------------------------------------------------------------------- Comment By: Ross Gardler (rgardler) Date: 2002-10-22 11:17 Message: Logged In: YES user_id=88713 When asked to parse a file (or URL) the system should tell the native browser to display the fpage. This is to ease verification of the calculated scores. It seems there is a problem with the native parser control. This bug does not appear on Linux. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=509508&aid=626539&group_id=65029 |