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 6770619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:20:02+00:00 2026-05-26T15:20:02+00:00

I sneaked through similar posts, but found no solution. I am getting this Exception

  • 0

I sneaked through similar posts, but found no solution. I am getting this Exception when I try to insert values into database

INSERT = "INSERT INTO topnews (sid, headline, metadata, content, image_path,          image_caption , article_id, print_order, art_date, t_stamp) "+  
"VALUES("+_sid+",'"+_headline+"','"+_metadata+"','"+_content+"','"+_imagePath+"','"+_imageCaption+"',"+_articleId+",'"+_printOrder+"','"+_artDate+"','"+_tStamp+"');";
    byte[] i = INSERT.getBytes();
    long l = i.length;
    System.out.println("INSERT STATEMEN"+INSERT);
    _statement = _dbTopNews.createStatement(INSERT);            //EXCEPTION
    _statement.prepare();
    _statement.execute();
    _statement.close();

I tried finding out the length of the query that I am trying to insert. The Exception didn’t occur when less than 4000 was inserted. This particular query for which the exception throwed is 4300. The same query is running healthy on Android development environment. I tried inserting the same query via sqlite into database no error occured. I think this is of decent size nothing humongous.

  • 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-26T15:20:03+00:00Added an answer on May 26, 2026 at 3:20 pm

    In pre OS 7 the query length limit is 4 KB. You need OS 7 to overcome the limit.

    Check the Release Notes – BlackBerry Java SDK – 7.0:

    A query can now be up to 1 MB. In BlackBerry Java SDK 6.0, the query length limit was 4 KB

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

Sidebar

Related Questions

I am working on implementing a gallery, I tried GridFieldManager for this, but the
I create a huge JSON-Object and save it in my database. But when I
I'm looking to replicate the image zooming on this site: http://www.endless.com/adidas-Originals-adiracer-Trefoil-Sneaker/dp/B001I44OIG/183-5587133-4823042?ie=UTF8&cAsin=B001I44O2W&qid=1241466506612&asinTitle=adidas%20Originals%20adiracer%20Trefoil%20HG%20Sneaker&ref_=sw_1&asins=B001I44O2W%2CB001I457WS%2CB001LDJ2MM%2CB001HBH5LS%2CB001O9BJ4C%2CB001VNCNI2%2CB001LDJ7M2%2CB001LNNY44%2CB001LDJ2UE%2CB001OONDCS%2CB001HBH4FA%2CB001OOMWUW&refURL=%252Fb%252F241993011%253F&contextTitle=Search%20Results&fromPage=asinlist&suppressRedirect=1 When you mouse
I'm having a problem here.. Supposed I have this kind of datetime. $date =
I have a regex problem which bugs me and have no clue how to
i am trying to figure our how to make a snake like tail for
let a = b in c can be thought as a syntactic sugar for
I have UITextField of username and password, once the user hit the submit button
I am about to start designing a store locator for a business. I had

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.