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

  • Home
  • SEARCH
  • 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 1051557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:57:11+00:00 2026-05-16T16:57:11+00:00

This is the error I got while compiling the jrxml file: Compiling to file…

  • 0

This is the error I got while compiling the jrxml file:

Compiling to file... /home/moshe/NetBeansProjects/Billing/src/billing/report2.jasper
Compilation running time: 299! 
Filling report...
Locale: English (India)
Time zone: Default
Error filling print... Error executing SQL statement for : report2 
net.sf.jasperreports.engine.JRException: Error executing SQL statement for : report2
at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:143)
at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:686) 
at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:606) 
at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1277) 
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:897) 
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:841)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:877)
at org.openide.util.RequestProcessor$Task.run(Unknown Source) 
at org.openide.util.RequestProcessor$Processor.run(Unknown Source)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to usenear '"temp_bill" temp_bill,      "customer_details" customer_details WHERE      temp_' at line 38
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
... 11 more 
Print not filled. Try to use an EmptyDataSource...

As per the error message, I checked the line 38 in the xml file, it is:

<![CDATA[SELECT
     temp_bill.`bill_number`AS temp_bill_bill_number,
     temp_bill.`sl_no`AS temp_bill_sl_no,
     temp_bill.`cust_id`AS temp_bill_cust_id,
     temp_bill.`cust_name`AS temp_bill_cust_name,
     temp_bill.`date`AS temp_bill_date,
     temp_bill.`item_code`AS temp_bill_item_code,
     temp_bill.`item_name`AS temp_bill_item_name,
     temp_bill.`tax`AS temp_bill_tax,
     temp_bill.`unit_price`AS temp_bill_unit_price,
     temp_bill.`quantity`AS temp_bill_quantity,
     temp_bill.`gross_value`AS temp_bill_gross_value,
     temp_bill.`cash_discount`AS temp_bill_cash_discount,
     temp_bill.`net_value`AS temp_bill_net_value,
     temp_bill.`qty_discount`AS temp_bill_qty_discount,
     temp_bill.`net_total`AS temp_bill_net_total,
     temp_bill.`cess`AS temp_bill_cess,
     temp_bill.`tot_tax`AS temp_bill_tot_tax,
     temp_bill.`grand_total`AS temp_bill_grand_total,
     temp_bill.`remarks`AS temp_bill_remarks,
     temp_bill.`billingAddress`AS temp_bill_billingAddress,
     temp_bill.`tot_in_words`AS temp_bill_tot_in_words,
     temp_bill.`deliv_note_no`AS temp_bill_deliv_note_no, 
     //line 38  is the next line*************************
     temp_bill.`deliv_note_date`AS temp_bill_deliv_note_date,
     temp_bill.`purchase_order_no`AS temp_bill_purchase_order_no,
     temp_bill.`purchase_order_date`AS temp_bill_purchase_order_date,
     temp_bill.`despatch_document_no`AS temp_bill_despatch_document_no,
     temp_bill.`despatch_document_date`AS temp_bill_despatch_document_date,
     temp_bill.`terms_of_delivery`AS temp_bill_terms_of_delivery,
     customer_details.`TIN`AS customer_details_TIN,
     customer_details.`cstRegNo`AS customer_details_cstRegNo,
     customer_details.`phone_land`AS customer_details_phone_land,
     customer_details.`phone_mob`AS customer_details_phone_mob,
     customer_details.`fax`AS customer_details_fax,
     customer_details.`email`AS customer_details_email,
     customer_details.`cust_id`AS customer_details_cust_id FROM
     "temp_bill" temp_bill,
     "customer_details" customer_details WHERE
     temp_bill.`cust_id` = customer_details.`cust_id`]]>

As per the error messages I checked the line no: 38 in the xml file and i could not find any problem with query, I use NetBeans plugin to generate the report. This problem started after I changed the type of customer_details.TIN from bigint to varchar. I’ve checked the xml file and made sure the TIN is of type varchar

<textField>
    <reportElement x="27" y="77" width="241" height="11"/>
    <textElement textAlignment="Center" markup="none">
        <font size="8"/>
        </textElement>
        <textFieldExpression class="java.lang.String"><![CDATA[$F{customer_details_TIN}]]></textFieldExpression>
 </textField>
  • 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-16T16:57:12+00:00Added an answer on May 16, 2026 at 4:57 pm

    check the manual that corresponds to
    your MySQL server version for the
    right syntax to use near ‘”temp_bill”
    temp_bill, “customer_details”
    customer_details WHERE temp_’ at
    line 38

    When MySql tell you to see at line 38, it means line 38 from the start of the SQL sentence

    I think you should review this:

    FROM “temp_bill” temp_bill,
    “customer_details”

    Are these quotation marks needed? try to remove them 🙂

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

Sidebar

Related Questions

I tried to launch my project, but i got this error while compiling it
i got this error while trying to rebind a grid: ( Parent page (
Got this error message while trying to load view: The model item passed into
Got this error message while trying to configure an entitydatasource in the designer: My
I got this error An error occurred while parsing EntityName. Line 1, position 61.
while doing LINQ I got this Error. Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime'.
i have a problem while loading a UITableView on UITabBarController, i got this error
I am new to maven, while using mvn install I've got this error, any
How can I get rid of this error and other while compiling the below
I got the following error wwhile compiling this c++ code . What can be

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.