Problems with Glean

13 views
Skip to first unread message

JVelilla

unread,
Aug 29, 2007, 2:53:01 PM8/29/07
to glean-code-users
Hello,

I'm usign Glean, I follow the documentation and I setUp my
envairoment.

I'm have the same error with Dashboard and Cpd

dashboard:
========
init:
....
check-cobertura-data:

strip-dtds:
dashboard:
[groovy] Loading the tool results...
[groovy] Creating the dashboard XML to C:\Development\amlRefactoring
\aml2/artifacts/glean/dashboard/aml2-dashboard-feedback.xml
[groovy] [Fatal Error] aml2-cpd-feedback.xml:1:40: Invalid encoding
name "Cp1252".
[subant] Failure for target '' of: C:\Development\work\automation
\glean-1.2\tool\dashboard\build.xml
The following error occurred while executing this line:
C:\Development\work\automation\glean-1.2\tool\dashboard\build.xml:28:
org.xml.sax.SAXParseException: Invalid encoding name "Cp1252".

feedback-summary:
....

What do you sugget I do?

Thanks
JV

John Brugge

unread,
Aug 30, 2007, 12:26:13 AM8/30/07
to glean-co...@googlegroups.com
Javier,

That error is not one I've seen before. Could you send along the top
of your aml2-cpd-feedback.xml file, where the Cp1252 encoding is
specified? I haven't had time to google around on this error, but I
could try to reproduce it on my setup. One suggestion I've seen that
a different XML source reader (Reader vs InputStream). This parsing,
though, is done via a Groovy class that hides this.

Do you know what the file.encoding Java system property is on your
system, by chance?

Is that the only error you're getting in the process?

I'm going to be away this weekend, but I can look into it more next
week.

Thanks,
John

John Brugge

unread,
Aug 30, 2007, 8:29:41 AM8/30/07
to glean-co...@googlegroups.com
Javier,

I'm not sure if this will help, but you might try try explicitly
setting the "file.encoding" system property. For Ant, you could do
this by setting the environment variable ANT_OPTS to be "-
Dfile.encoding=ISO-8859-1"

Also, what JDK are you using, 1.4 of 1.5?

John

JVelilla

unread,
Sep 13, 2007, 6:21:43 AM9/13/07
to glean-code-users
John,

I set ANT_OPTS to -Dfile.encoding=ISO-8859-1 and now the Dashboards
and CPD work
fine

I'm using Java 1.5

Thanks you for your support
JV

Reply all
Reply to author
Forward
0 new messages