Re: org.xmlpull.v1.XmlPullParserException: No valid serializer classes found
Aleksander Slominski <[email protected]> Wed, 30 Nov 2011 18:21:47 -0500
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <CAMz4=FbVq069HADp=8oqz9tvW=sm+GcgLGNcGS1vPvebT2p5dg@mail.gmail.com> |
--00151747958c2f587604b2fc0133 Content-Type: text/plain; charset=ISO-8859-1 Make sire your classpath is correct. HTH, Alek On Thu, Jul 7, 2011 at 9:11 AM, Prince Sewani <[email protected]>wrote: > Hi All, > > I'm trying to integrate Google Content API,that uses the kxml2-2.3.0.jar > It gives me the below error on runtime :- > > [java] Message: Service [testProductExport] target threw an > unexpected exception (org.xmlpull.v1.XmlPullParserException: No valid > serializer classes found in resource /META-INF/services/ > org.xmlpull.v1.XmlPullParserFactory that contained > 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer') > [java] ---- cause > --------------------------------------------------------------------- > [java] Exception: java.lang.IllegalArgumentException > [java] Message: org.xmlpull.v1.XmlPullParserException: No valid > serializer classes found in resource /META-INF/services/ > org.xmlpull.v1.XmlPullParserFactory that contained > 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' > [java] ---- cause > --------------------------------------------------------------------- > [java] Exception: org.xmlpull.v1.XmlPullParserException > [java] Message: No valid serializer classes found in resource / > META-INF/services/org.xmlpull.v1.XmlPullParserFactory that contained > 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' > [java] ---- stack trace > --------------------------------------------------------------- > [java] org.xmlpull.v1.XmlPullParserException: No valid serializer > classes found in resource /META-INF/services/ > org.xmlpull.v1.XmlPullParserFactory that contained > 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' > [java] > > org.xmlpull.v1.XmlPullParserFactory.newSerializer(XmlPullParserFactory.java: > 223) > [java] > > com.google.api.client.xml.DefaultXmlParserFactory.createSerializer(DefaultXmlParserFactory.java: > 47) > [java] com.google.api.client.xml.Xml.createSerializer(Xml.java: > 46) > [java] > > com.google.api.client.xml.XmlNamespaceDictionary.toStringOf(XmlNamespaceDictionary.java: > 90) > [java] > com.google.api.client.xml.GenericXml.toString(GenericXml.java:41) > [java] java.lang.String.valueOf(String.java:2826) > [java] java.lang.StringBuilder.append(StringBuilder.java:115) > > Could someone please help me out with this? > Thanks in advance. > > > > ------------------------------------ > > Yahoo! Groups Links > > > > -- The best way to predict the future is to invent it - Alan Kay --00151747958c2f587604b2fc0133 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <head> <style type=3D"text/css"> <!-- /* start of attachment style */ .ygrp-photo-title{ clear: both; font-size: smaller; height: 15px; overflow: hidden; text-align: center; width: 75px; } div.ygrp-photo{ background-position: center; background-repeat: no-repeat; background-color: white; border: 1px solid black; height: 62px; width: 62px; } div.photo-title=20 a, div.photo-title a:active, div.photo-title a:hover, div.photo-title a:visited { text-decoration: none;=20 } div.attach-table div.attach-row { clear: both; } div.attach-table div.attach-row div { float: left; /* margin: 2px;*/ } p { clear: both; padding: 15px 0 3px 0; overflow: hidden; } div.ygrp-file { width: 30px; valign: middle; } div.attach-table div.attach-row div div a { text-decoration: none; } div.attach-table div.attach-row div div span { font-weight: normal; } div.ygrp-file-title { font-weight: bold; } /* end of attachment style */ --> </style> </head> <html> <head> <style type=3D"text/css"> <!-- #ygrp-mkp { border: 1px solid #d8d8d8; font-family: Arial; margin: 10px 0; padding: 0 10px; } #ygrp-mkp hr { border: 1px solid #d8d8d8; } #ygrp-mkp #hd { color: #628c2a; font-size: 85%; font-weight: 700; line-height: 122%; margin: 10px 0; } #ygrp-mkp #ads { margin-bottom: 10px; } #ygrp-mkp .ad { padding: 0 0; } #ygrp-mkp .ad p { margin: 0; } #ygrp-mkp .ad a { color: #0000ff; text-decoration: none; } --> </style> </head> <body> Make sire your classpath is correct.<div><br></div><div>HTH,</div><div><br>= </div><div>Alek<br><br><div class=3D"gmail_quote">On Thu, Jul 7, 2011 at 9:= 11 AM, Prince Sewani <span dir=3D"ltr"><<a href=3D"mailto:princesewani@y= mail.com">[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;">Hi All,<br> <br> I'm trying to integrate Google Content API,that uses the kxml2-2.3.0.ja= r<br> It gives me the below error on runtime :-<br> <br> =A0 =A0[java] Message: Service [testProductExport] target threw an<br> unexpected exception (org.xmlpull.v1.XmlPullParserException: No valid<br> serializer classes found in resource /META-INF/services/<br> org.xmlpull.v1.XmlPullParserFactory that contained<br> 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer'= ;)<br> =A0 =A0 [java] ---- cause<br> ---------------------------------------------------------------------<br> =A0 =A0 [java] Exception: java.lang.IllegalArgumentException<br> =A0 =A0 [java] Message: org.xmlpull.v1.XmlPullParserException: No valid<br= > serializer classes found in resource /META-INF/services/<br> org.xmlpull.v1.XmlPullParserFactory that contained<br> 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer'= ;<br> =A0 =A0 [java] ---- cause<br> ---------------------------------------------------------------------<br> =A0 =A0 [java] Exception: org.xmlpull.v1.XmlPullParserException<br> =A0 =A0 [java] Message: No valid serializer classes found in resource /<br= > META-INF/services/org.xmlpull.v1.XmlPullParserFactory that contained<br> 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer'= ;<br> =A0 =A0 [java] ---- stack trace<br> ---------------------------------------------------------------<br> =A0 =A0 [java] org.xmlpull.v1.XmlPullParserException: No valid serializer<= br> classes found in resource /META-INF/services/<br> org.xmlpull.v1.XmlPullParserFactory that contained<br> 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer'= ;<br> =A0 =A0 [java]<br> org.xmlpull.v1.XmlPullParserFactory.newSerializer(XmlPullParserFactory.java= :<br> 223)<br> =A0 =A0 [java]<br> com.google.api.client.xml.DefaultXmlParserFactory.createSerializer(DefaultX= mlParserFactory.java:<br> 47)<br> =A0 =A0 [java] com.google.api.client.xml.Xml.createSerializer(Xml.java:<br= > 46)<br> =A0 =A0 [java]<br> com.google.api.client.xml.XmlNamespaceDictionary.toStringOf(XmlNamespaceDic= tionary.java:<br> 90)<br> =A0 =A0 [java]<br> com.google.api.client.xml.GenericXml.toString(GenericXml.java:41)<br> =A0 =A0 [java] java.lang.String.valueOf(String.java:2826)<br> =A0 =A0 [java] java.lang.StringBuilder.append(StringBuilder.java:115)<br> <br> Could someone please help me out with this?<br> Thanks in advance.<br> <br> <br> <br> ------------------------------------<br> <br> Yahoo! Groups Links<br> <br> <*> To visit your group on the web, go to:<br> =A0 =A0<a href=3D"http://groups.yahoo.com/group/xmlpull-dev/" target=3D"_b= lank">http://groups.yahoo.com/group/xmlpull-dev/</a><br> <br> <*> Your email settings:<br> =A0 =A0Individual Email | Traditional<br> <br> <*> To change settings online go to:<br> =A0 =A0<a href=3D"http://groups.yahoo.com/group/xmlpull-dev/join" target= =3D"_blank">http://groups.yahoo.com/group/xmlpull-dev/join</a><br> =A0 =A0(Yahoo! ID required)<br> <br> <*> To change settings via email:<br> =A0 =A0<a href=3D"mailto:[email protected]">xmlpull-dev-d= [email protected]</a><br> =A0 =A0<a href=3D"mailto:[email protected]">xmlpull= [email protected]</a><br> <br> <*> To unsubscribe from this group, send an email to:<br> =A0 =A0<a href=3D"mailto:[email protected]">xmlpull-= [email protected]</a><br> <br> <*> Your use of Yahoo! Groups is subject to:<br> =A0 =A0<a href=3D"http://docs.yahoo.com/info/terms/" target=3D"_blank">htt= p://docs.yahoo.com/info/terms/</a><br> <br> </blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>The best way= to predict the future is to invent it - Alan Kay<br> </div> <!-- |**|begin egp html banner|**| --> <br> =20=20=20=20 =20=20=20=20 <br> <!-- |**|end egp html banner|**| --> <div width=3D"1" style=3D"color: white; clear: both;"/>__._,_.___</div> <!-- Start Recommendations --> <!-- End Recommendations --> <!-- |**|begin egp html banner|**| --> <img src=3D"http://geo.yahoo.com/serv?s=3D97476590/grpId=3D6456255/grpspI= d=3D1706030390/msgId=3D891/stime=3D1322695331" width=3D"1" height=3D"1"> <b= r> <!-- |**|end egp html banner|**| --> =20=20 <!-- |**|begin egp html banner|**| --> <br> <div style=3D"font-family: verdana; font-size: 77%; border-top: 1px s= olid #666; padding: 5px 0;" > Your email settings: Individual Email|Traditional <br> <a href=3D"http://groups.yahoo.com/group/xmlpull-dev/join;_ylc=3DX3oD= MTJmMHV2dnJiBF9TAzk3NDc2NTkwBGdycElkAzY0NTYyNTUEZ3Jwc3BJZAMxNzA2MDMwMzkwBHN= lYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEzMjI2OTUzMzE-">Change settings via the Web<= /a> (Yahoo! ID required) <br> Change settings via email: <a href=3D"mailto:xmlpull-dev-digest@yahoo= groups.com?subject=3DEmail Delivery: Digest">Switch delivery to Daily Diges= t</a> | <a href =3D "mailto:[email protected]?subjec= t=3DChange Delivery Format: Fully Featured">Switch to Fully Featured</a> <b= r> <a href=3D"http://groups.yahoo.com/group/xmlpull-dev;_ylc=3DX3oD= MTJkaXE3bjJ1BF9TAzk3NDc2NTkwBGdycElkAzY0NTYyNTUEZ3Jwc3BJZAMxNzA2MDMwMzkwBHN= lYwNmdHIEc2xrA2hwZgRzdGltZQMxMzIyNjk1MzMx"> Visit Your Group=20 </a> | <a href=3D"http://docs.yahoo.com/info/terms/"> Yahoo! Groups Terms of Use </a> | <a href=3D"mailto:[email protected]?subject=3DU= nsubscribe"> Unsubscribe=20 </a>=20 <br> </div> <br> <!-- |**|end egp html banner|**| --> <div style=3D"color: white; clear: both;"/>__,_._,___</div> </body> </html> --00151747958c2f587604b2fc0133--