Element type "set-property-name" must be followed by either attribute specifications

1,377 views
Skip to first unread message

leslie

unread,
Nov 6, 2010, 12:40:47 PM11/6/10
to Google Web Toolkit
Eclipse Helios 3.6 JEE
Java 1.6.0_22
GWT 2.1
Mac OS X 10.5.8

I'm attempting to use the Logging feature available in GWT 2.1 and I'm
having trouble.

I have the following file for a module

<?xml version="1.0" encoding="UTF-8"?>
<module rename-to="view">
<inherits name="com.google.gwt.user.User" />
<inherits name="com.google.gwt.user.theme.standard.Standard" />
<inherits name="com.google.gwt.gen2.picker.Picker" />
<inherits name="gwtupload.GWTUpload"/>
<inherits name="com.google.gwt.logging.Logging" />
<source path="view" />
<stylesheet src="Upload.css"/>

<set-property-name="gwt.logging.logLevel" value="INFO"/>
<set-property-name="gwt.logging.enabled" value="TRUE"/>
<set-property-name="gwt.logging.consoleHandler" value="ENABLED"/>
<set-property-name="gwt.logging.firebugHandler" value="ENABLED"/>
<set-property-name="gwt.logging.popupHandler" value="ENABLED"/>

</module>

But I can neither compile nor run the application. The message which
appears in the console is :

Loading modules
mypackage.MyApp
Loading inherited module 'mypackage.controller'
Loading inherited module 'mypackage.view'
[ERROR] Failure while parsing XML
org.xml.sax.SAXParseException: Element type "set-property-name" must
be followed by either attribute specifications, ">" or "/>".
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1231)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(SAXParserImpl.java:522)

But I can see in my module file that I have closed the set-property-
name elements correctly. ?

I attempted to revise the xml file and rerun using the following :

<set-property-name="gwt.logging.logLevel" value="INFO"></set-property-
name>
<set-property-name="gwt.logging.enabled" value="TRUE"></set-property-
name>
<set-property-name="gwt.logging.consoleHandler" value="ENABLED"></set-
property-name>
<set-property-name="gwt.logging.firebugHandler" value="ENABLED"></set-
property-name>
<set-property-name="gwt.logging.popupHandler" value="ENABLED"></set-
property-name>

But the error remains.

I'm grateful for any help. Thanks so much.

Thomas Broyer

unread,
Nov 6, 2010, 4:27:05 PM11/6/10
to Google Web Toolkit
Yes, this is obviously not XML, you have a dash between set-property
and name that shouldn't be there:
<set-property name="gwt.logging.logLevel" value="INFO" />

(BTW, you can either use "></set-property>" or "/>" to "close" the
element)

leslie

unread,
Nov 6, 2010, 4:34:06 PM11/6/10
to Google Web Toolkit
Thank you so much Thomas! I couldn't even see that mistake I made! I
think I will find this logging functionality very helpful today and
I'm grateful to be able to keep going with it.

Amandeep

unread,
Apr 7, 2011, 9:51:55 AM4/7/11
to Google-We...@googlegroups.com
>
> I'm attempting to use the Logging feature available in GWT 2.1 and I'm
> having trouble.
> The message which
> appears in the console is :
>
> Loading modules
> mypackage.MyApp
> Loading inherited module 'mypackage.controller'
> Loading inherited module 'mypackage.view'
> [ERROR] Failure while parsing XML
> org.xml.sax.SAXParseException: Element type "set-property-name" must
> be followed by either attribute specifications, ">" or "/>".


Please use

<set-property name="gwt.logging.firebugHandler" value="ENABLED"/>

instead of

<set-property-name="gwt.logging.firebugHandler" value="ENABLED"/>


Got it? ;-)

Regards,
Amandeep

Reply all
Reply to author
Forward
0 new messages