Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6921255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:15:11+00:00 2026-05-27T10:15:11+00:00

I got some invalid Token parsing problem Code : public class viewparty extends Activity

  • 0

I got some invalid Token parsing problem

Code :

public class viewparty extends Activity implements OnItemClickListener {
    /** Called when the activity is first created. */
    /* declare widgets */
    String[] booking_id;
    String[] user_id1;
    String[] partyname;
    String[] email;
    String[] phone;
    String[] partytype;
    String[] venue;
    String[] date;
    String[] promoter;
    String[] guests;
    String[] compbottle;
    String[] bottleservice;
    String[] openbar;
    String[] guests2;
    String[] ticketedevent;
    String[] commission;
    String[] promotercommission;
    String[] notes;

    ArrayList<String> al_booking_id, al_user_id, al_partyname, al_email,
            al_phone, al_partytype, al_venue, al_date, al_promoter, al_guests,
            al_compbottle, al_bottleservice, al_openbar, al_guests2,
            al_ticketedevent, al_commission, al_promotercommission, al_notes;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.viewparty);

        processLogin();


}

    public void processLogin() {




            DefaultHttpClient client = new DefaultHttpClient();
            HttpPost httppost = new HttpPost(
                    "url");
            List nvps = new ArrayList();
            nvps.add(new BasicNameValuePair("api", "viewparties"));
            nvps.add(new BasicNameValuePair("userid", "15"));
            // MainActivity.UserID
            UrlEncodedFormEntity p_entity = new UrlEncodedFormEntity(nvps,
                    HTTP.UTF_8);
            httppost.setEntity(p_entity);
            HttpResponse response = client.execute(httppost);

            HttpEntity responseEntity = response.getEntity();

            SAXParserFactory spf = SAXParserFactory.newInstance();
            SAXParser sp = spf.newSAXParser();
            XMLReader xr = sp.getXMLReader();
            viewpartyHandler myLoginHandler = new viewpartyHandler();
            xr.setContentHandler(myLoginHandler);
            xr.parse(retrieveInputStream(responseEntity));
            viewpartyDataset parsedLoginDataSet = myLoginHandler
                    .getParsedweeklypartyData();
}

Error

12-09 09:57:55.793: WARN/System.err(1686): org.apache.harmony.xml.ExpatParser$ParseException: At line 6, column 2971: not well-formed (invalid token)
12-09 09:57:55.793: WARN/System.err(1686):     at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:523)
12-09 09:57:55.805: WARN/System.err(1686):     at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:482)
12-09 09:57:55.805: WARN/System.err(1686):     at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:320)
12-09 09:57:55.805: WARN/System.err(1686):     at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:277)
12-09 09:57:55.805: WARN/System.err(1686):     at com.easyMarketing.viewparty.processLogin(viewparty.java:130)
12-09 09:57:55.815: WARN/System.err(1686):     at com.easyMarketing.viewparty.onCreate(viewparty.java:88)
12-09 09:57:55.815: WARN/System.err(1686):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
12-09 09:57:55.815: WARN/System.err(1686):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
12-09 09:57:55.824: WARN/System.err(1686):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
12-09 09:57:55.824: WARN/System.err(1686):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
12-09 09:57:55.824: WARN/System.err(1686):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
12-09 09:57:55.824: WARN/System.err(1686):     at android.os.Handler.dispatchMessage(Handler.java:99)
12-09 09:57:55.834: WARN/System.err(1686):     at android.os.Looper.loop(Looper.java:123)
12-09 09:57:55.834: WARN/System.err(1686):     at android.app.ActivityThread.main(ActivityThread.java:4627)
12-09 09:57:55.834: WARN/System.err(1686):     at java.lang.reflect.Method.invokeNative(Native Method)
12-09 09:57:55.855: WARN/System.err(1686):     at java.lang.reflect.Method.invoke(Method.java:521)
12-09 09:57:55.865: WARN/System.err(1686):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-09 09:57:55.875: WARN/System.err(1686):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-09 09:57:55.875: WARN/System.err(1686):     at dalvik.system.NativeStart.main(Native Method)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:15:12+00:00Added an answer on May 27, 2026 at 10:15 am

    As the other comments said, that error is usually from not well formed XML.

    It does give you a location too:

    At line 6, column 2971: not well-formed (invalid token)

    Check for special characters; often missed is the ampersand &

    This can also be caused by unclosed tags IIRC

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've scaffolded Things element: script/generate scaffold wip/thing name:string and got some invalid function call
Got some code that is not mine and its producing this warning atm: iehtmlwin.cpp(264)
I got some legacy code with that caption spread out as comment almost in
I got some legacy code that has this: <?PHP if(isset($_GET['pagina'])==homepage) { ?> HtmlCode1 <?php
I got some sample code from the net here: http://www.javadb.com/sending-a-post-request-with-parameters-from-a-java-class That works fine. It
I've got some problem with my function and don't know how to solve this
I got some code that i did 3 years ago under python 2.5 or
I've got some problems parsing the response of a Last.fm API call from a
I've querying an API and I've got some troubles to display the code returned
We've got some old serial code which checks whether a serial port is available

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.