google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

GWT configuration exception Cannot find the actual HTML host page for module #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a GWT test utils based test
2. Override "getHostPagePath(String moduleFullQualifiedName)" method to return 
null as described in javadoc for cases where there is no HTML host page
3. add a Window.Location.getProtocol() anywhere within your test and see that 
LocationPatcher.computePath() method throws the exception

What is the expected output? What do you see instead?
See an exception. There should not be an exception because as per the javadoc 
of "getHostPagePath()" null is a valid value  and is handled in other cases 
like DocumentPatcher.parseHTMLElement() method

What version of the product are you using? On what operating system?
using the latest 0.38 and GWT 2.4.0 with GXT 2.2.4 on Windows XP

Please provide any additional information below.
workaround is to create and empty HTML file with the right module name.

We cant do this in our project because we are developing a framework(hence no 
entry point and no HTML host page)

Original issue reported on code.google.com by Arvind...@gmail.com on 5 May 2012 at 1:03

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 5 May 2012 at 9:27

GoogleCodeExporter commented 9 years ago
I've just deployed a new 0.39-SNAPSHOT with a fix for this (a default location 
URL is set when getHostPagePath(..) returns null).

Could you please give it a try and post some feedback ? Thank you very much :)

Original comment by gael.laz...@gmail.com on 7 May 2012 at 11:56

GoogleCodeExporter commented 9 years ago
that seems to have fixed the problem. Didnt need to ovveride 
"getHostPagePath(String moduleFullQualifiedName)" method to return null either. 
So its good.

Do you have a rough release date for the 0.39 version? I can go with the work 
around if there is no plan to release 0.39 in the next few days.

Thanks again for the quick fix!!

Original comment by Arvind...@gmail.com on 7 May 2012 at 7:49

GoogleCodeExporter commented 9 years ago
Thanks for your feedback ! The 0.39-SNAPSHOT will be released in less than 2 
weeks.

Original comment by gael.laz...@gmail.com on 7 May 2012 at 9:31