[jboss-jira] [JBoss JIRA] Resolved: (JBPORTAL-1711) Google widget retrieval fails on non-english preferred locale

Thomas Heute (JIRA) jira-events at lists.jboss.org
Mon Sep 24 06:51:42 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBPORTAL-1711?page=all ]

Thomas Heute resolved JBPORTAL-1711.
------------------------------------

    Resolution: Done
      Assignee: Thomas Heute  (was: Boleslaw Dawidowicz)

The problem was that Google XML is not encode in UTF-8 like they say.
http://blog.thomas.heute.name/2007/09/google-api-stop-lying-to-me-encoding.html

The fix was to convert it before parsing. Not a great solution, but a workaround till they fix the encoding.



> Google widget retrieval fails on non-english preferred locale
> -------------------------------------------------------------
>
>                 Key: JBPORTAL-1711
>                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1711
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Thomas Heute
>         Assigned To: Thomas Heute
>             Fix For: 2.6.2 Final
>
>
> When i set my browser preferred locale to French i get:
> 13:44:47,411 ERROR [GGQueryResultBuilder] Gadgets query failed: 
> org.jboss.xb.binding.JBossXBException: Failed to parse source: Invalid byte 2 of 3-byte UTF-8 sequence. @ *unknown*[37,49]
>         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:178)
>         at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:169)
>         at org.jboss.portal.widget.google.provider.GGQueryResultBuilder.build(GGQueryResultBuilder.java:127)
>         at org.jboss.portal.widget.google.provider.GGProvider$GGQueryEntry.call(GGProvider.java:288)
>         at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
>         at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:431)
>         at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.xml.sax.SAXException: Invalid byte 2 of 3-byte UTF-8 sequence. @ *unknown*[37,49]
>         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.fatalError(SaxJBossXBParser.java:354)
>         at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:174)
>         ... 9 more
> when searching the widgets

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list