Piriti And 'createNSResolver

62 views
Skip to first unread message

Aladdin

unread,
Apr 9, 2012, 8:32:38 AM4/9/12
to Piriti
I'm using Prirti for my project version 2. In the browser, they work
perfectly, but in Android the XML parser crash !

The Error as this

Error(Error): TypeError: Object # has no method 'createNSResolver'
stack: Error: TypeError: Object # has no method 'createNSResolver'

I think this is related to the missing XPath support in Android (This
is a guessing assumption)

Do you have any idea ? Piriti was tested to run in Android ? could u
give me a sample (Native Android Browser )

Note: it works OK on iPhone.

Thanks in Advance.


Aladdin

unread,
Apr 9, 2012, 9:45:59 AM4/9/12
to Piriti

Here is a detailed error message :

Error(Error): TypeError: Object # has no method 'createNSResolver'
stack:
Error: TypeError: Object # has no method 'createNSResolver' at
name_pehl_totoe_xml_client_internal_NodeImpl_
$selectNodesImpl__Lname_pehl_totoe_xml_client_internal_NodeImpl_2Ljava_lang_String_2Ljava_util_List_2V
(
https://XXXXMYAPPXXXXXX/B444A5AF9B7F4B00825AA0574BD8CDE3.cache.html:29060:11)
at
name_pehl_totoe_xml_client_internal_NodeImpl_
$selectNodes__Lname_pehl_totoe_xml_client_internal_NodeImpl_2Ljava_lang_String_2Ljava_util_List_2
(
https://XXXXMYAPPXXXXXX/B444A5AF9B7F4B00825AA0574BD8CDE3.cache.html:29031:5)
at
com_sa_baj_touch_client_model_CreditCardLogo_1CreditCardLogoReaderImpl_
$readId__Lcom_sa_baj_touch_client_model_CreditCardLogo_1CreditCardLogoReaderImpl_2Lname_pehl_totoe_xml_client_Element_2Lcom_sa_baj_touch_client_model_CreditCardLogo_2
(
https://XXXXMYAPPXXXXXX/B444A5AF9B7F4B00825AA0574BD8CDE3.cache.html:20591:166)
at
Object.com_sa_baj_touch_client_model_CreditCardLogo_1CreditCardLogoReaderImpl_readId__Ljava_lang_Object_2Ljava_lang_Object_2
[as readId__Ljava_lang_Object_2Ljava_lang_Object_2] (
https://XXXXMYAPPXXXXXX/B444A5AF9B7F4B00825AA0574BD8CDE3.cache.html:20637:10)
at
name_pehl_piriti_xml_client_AbstractXmlReader_
$read__Lname_pehl_piriti_xml_client_AbstractXmlReader_2Lname_pehl_totoe_xml_client_Element_2Ljava_lang_Object_2
(
https://XXXXMYAPPXXXXXX/B444A5AF9B7F4B00825AA0574BD8CDE3.cache.html:20437:23)
at
name_pehl_piriti_xml_client_AbstractXmlReader_
$read__Lname_pehl_piriti_xml_client_AbstractXmlReader_2Lname_pehl_totoe_xml_client_Document_2Ljava_lang_Object_2
(
https://XXXXMYAPPXXXXXX/B444A5AF9B7F4B00825AA0574BD8CDE3.cache.html:20429:10)
at
name_pehl_piriti_xml_client_AbstractXmlReader_
$read__Lname_pehl_piriti_xml_client_AbstractXmlReader_2Ljava_lang_String_2Ljava_lang_Object_2
(
https://XXXXMYAPPXXXXXX/B444A5AF9B7F4B00825AA0574BD8CDE3.cache.html:20421:10)
at
com_sa_baj_touch_client_model_CreditCard_
$setLogo__Lcom_sa_baj_touch_client_model_CreditCard_2Ljava_lang_String_2V
(
https://XXXXMYAPPXXXXXX/B444A5AF9B7F4B00825AA0574BD8CDE3.cache.html:20251:207)
at
Object.com_sa_baj_touch_client_services_Service
$19_parseElement__Lcom_google_gwt_xml_client_Element_2Ljava_lang_Object_2
[as
parseElement__Lcom_google_gwt_xml_client_Element_2Ljava_lang_Object_2]
(
https://XXXXMYAPPXXXXXX/B444A5AF9B7F4B00825AA0574BD8CDE3.cache.html:22858:1691)
at
com_sa_baj_touch_client_services_XMLProcess_
$parse__Lcom_sa_baj_touch_client_services_XMLProcess_2Ljava_lang_String_2V
(
https://XXXXMYAPPXXXXXX/B444A5AF9B7F4B00825AA0574BD8CDE3.cache.html:22545:174
)

What do you think ?

Aladdin

Harald Pehl

unread,
Apr 10, 2012, 5:33:01 AM4/10/12
to pir...@googlegroups.com
Sorry, but I never tested Piriti on Android. As you already wrote It seems that the native browser on Android does not support XML parsig. Under the hood Piriti uses Sarissa for the XML parsing. I read that the native browser on Android will be replaced by Chrome. But I don't know when this will happen. 

- Harald

Aladdin

unread,
Apr 10, 2012, 2:21:06 PM4/10/12
to Piriti
Thanks for clearing this up, for sure GWT can parse XML in Android
using native capabilities, but I think Sarissa use some advance
stuff.

I hope you add a warning in the project's home page as we assumed that
it's a cross-platform solution because it's based on GWT, for me I
wasted and delayed my project by 10 days :( and sadly there are no
other projects as yours and you did a great job in pushing this far, I
wish Piriti adds support for Android in the future as it's a MUST for
many nowadays.

For me I have to drop Piriti !

Thanks

Harald Pehl

unread,
Apr 10, 2012, 3:19:10 PM4/10/12
to pir...@googlegroups.com
Sorry to hear that you wasted so much time. I will add a note about the supported platforms in the wiki. 

As Sarissa seems to be somewhat inactive, I already thought about replacing Sarissa with an own parser. But this will take some time...

- Harald

Aladdin

unread,
May 9, 2013, 7:22:36 PM5/9/13
to pir...@googlegroups.com
Hi Harald, Any updates regarding the support for Android and dropping Sarissa ?

Harald Pehl

unread,
May 10, 2013, 4:33:25 AM5/10/13
to pir...@googlegroups.com
The development of Piriti has become pretty quiet. I wish I could spend more time, but due to a new job my time is very limited. However there were some contributions from the GWTP developers. And as Piriti is opens source new contributions - like switching the XML parser - are of course highly welcome. 

BTW does the error still occur when using the Chrome browser instead the built in Android browser?

- Harald  

---
Harald Pehl

--
You received this message because you are subscribed to the Google Groups "Piriti" group.
To unsubscribe from this group and stop receiving emails from it, send an email to piriti+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages