Why I'm getting the jxls Error : Can't parse an expression rm.exec

Hi,
I used the RowSet in JXLS and it's working perfectly, but I'm getting Error when I use the SQL Reporting in JXLS
Error : java.lang.RuntimeException: Can't parse an expression rm.exec('select name from Designer' )
My Java File :
package net.sf.jxls.report;
import net.sf.jxls.exception.ParsePropertyException;
import net.sf.jxls.transformer.XLSTransformer;
import net.sf.jxls.report.ReportManager;
import net.sf.jxls.report.ReportManagerImpl;
import java.sql.*;
import java.util.Map;
import java.util.HashMap;
public class QReport {
private static String templateFileName = "examples/Report/QReport.xls";
private static String destFileName = "examples/Report/QReport_Out.xls";
public static void main(String[] args) throws Exception, ClassNotFoundException, SQLException {
if (args.length >= 2) {
templateFileName = args[0];
destFileName = args[1];
try {
     Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
     Connection con = DriverManager.getConnection("jdbc:odbc:NewDB");
     Map beans = new HashMap();
     ReportManager reportmanager = new ReportManagerImpl(con, beans);
     beans.put("rm", reportmanager);
     XLSTransformer transformer = new XLSTransformer();
     transformer.transformXLS(templateFileName, beans, destFileName);
}catch(Exception e){
     System.out.println("Error : "+e);
The Excel file as follows
<jx:forEach items="${rm.exec('select name from Designer' )}" var="design">
${design.name}
</jx:forEach>
Thanks in advance.

Hi,
I don't know JXLS and this for sure is the wrong forum to ask this question (I suggest to discuss problems with the source code originator at Sourceforge), however
${rm.exec('select name from Designer' )}"
can't work because by definition, Expression language doesn't take arguments. There is only one option to pass an argument to Expression Language and this is when the method you access in fact is a wrapped hashmap. So my assumption is that the exception occurs because of the wrong use of EL.
If you looked at the sample on SourceForge you could see that I am right
http://jxls.sourceforge.net/samples/tagsample.html
Frank

Similar Messages

  • Why am I getting the following error message? You can't open the application "Microsoft Word" because PowerPC applications are no longer supported.  This is new...

    Why am I getting the following error message? "You can’t open the application “Microsoft Word” because PowerPC applications are no longer supported."  I never used to have a proble!

    Only Office for Mac 2008 and 2011 will run on Mavericks. Microsoft support for the former package ended in April 2013. If you do not want to spend the money, you might download and try the donation-ware (free) LibreOffice Suite. No ribbon bar crap. Supports about any document created on Windows.

  • Why do I get the message "error connecting to acrobat"?

    Why am I getting the message "error connecting to the acrobat..." when I try to open a pdf file from the internet? I have the adobe reader installed on my tablet. This is something that just started happening. I did not have this problem before. I hope that someone can help.

    Hi,
    Thanks for writing to us. Are you able to view the file after this message? Is this message coming every time when you are trying to open a file from internet? If possible please share the file or link from where you are trying to open this file with us on  [email protected]  so that we can resolve the issue you are facing.
    Thanks,
    Shefali

  • I try to download an app, and it says that there is an error in the app , Ive tried to download other apps and i get the same error. can someone help?

    I try to download an app, and it says that there is an error in the app , Ive tried to download other apps and i get the same error. can someone help?

    You need to reinstall the App Store.
    Use Lion Recovery to do that.

  • Why am I getting the 404 error when on pinterest?

    Why am I getting the 404 error when on pinterest?  This is happening on my iMac and macbook.
    I have tried to clear my history, tried in safari and in firefox, enabled and disabled Javascript, and allowed 3rd party sites.
    Please help!!

    No you are not alone. I tried to create an apple ID and then access the app store and itunes and got the same error code. Spoke with tech support for over 45 minutes and we tried everything. Tech support seemed to think that it had something to do with credit card registration. Suggested that I use a different credit card. I modified my account settings with a different card and still had the same errors. At this time I have no confidence that Apple has any idea what the problem is.

  • Why do I get the Application Error jqsnotify.exe-Application Error. The memory could not be read?

    Why do I get this error message every time i opened up Firefox saying: jqsnotify.exe-Application Error and then at the bottom line it says: The instruction at "0x5ff3d322"referenced memory at " 0xe41203c3". The memory could not be "read". Click on OK to terminate the program.
    == This happened ==
    Every time Firefox opened
    == I recently renewed and installed the CA Security Suite and un-installed Firefox and re-installed it again.

    System restore did it for me........!!!! It's gone and I don't miss it one bit.....!!!! May be one of those untraceable tricks that hackers use to irritate people.....Some security programs can identify these things ,but the perps usually use bogus addresses to send them anyway...Cyber criminals SUCK....<u>That is right ,I said that....</u> and they should be jailed and fined and suspended from internet usage all over the globe....
    Reverend K.
    CEO,FOUNDER,Site Editor,
    http://WWW.CCCINTL.NET

  • Why am I getting the 0x80020022 error when writing to my DVD?

    I started to get this error the other day.  I can't write anything to the DVD drive.  It reads just fine.  I saw a possible fix on Bing
    saying to "Repair Disc Permissions".  I tried that to no avail. I thinking of a complete format and reinstall.  This is an iMac
    that was purchased in April 2010 running OS 10.6.8.  I hope someone has an answer.
    Thank You

    No you are not alone. I tried to create an apple ID and then access the app store and itunes and got the same error code. Spoke with tech support for over 45 minutes and we tried everything. Tech support seemed to think that it had something to do with credit card registration. Suggested that I use a different credit card. I modified my account settings with a different card and still had the same errors. At this time I have no confidence that Apple has any idea what the problem is.

  • Why do I get the following error msg's: (1) Exc in ev handl: TypeError: oSAPlg.oRoot.log is not a function (2) Exc in ev handl: TypeError: oSAPlg.oRoot.log is not a function (3) Exc in ev handl: Error: Bad NPObject as private data!

    it is happening more and more often when I start Firefox, and it takes up to four times of restarting to stop getting the error msg's.

    this does not do any good if it is not reviewed by a staff Tech.

  • Why am I getting the 5002 error when I try to log in to my account

    I've been having this problem since yesterday (dec/14) whenever I try to log in and obviously it won't let me log in to my account.
    How do I solve it? help!!!

    No you are not alone. I tried to create an apple ID and then access the app store and itunes and got the same error code. Spoke with tech support for over 45 minutes and we tried everything. Tech support seemed to think that it had something to do with credit card registration. Suggested that I use a different credit card. I modified my account settings with a different card and still had the same errors. At this time I have no confidence that Apple has any idea what the problem is.

  • Why am I getting the following error message when printing, "(Acrobat.exe) The program can't start because x2utilHH.dll is missing from your computer.  Try re-installing the program to fix this problem.?"

    After re-installing and applying all available updates, I am not able to get this error message to go away. It comes up every time we try to print and we have to close the box about 10 times before we finally get to the printing dialog box.

    Have a look at this Microsoft forum:  Splwow64.exe error

  • Why do I get the following error when saving?

    "The document 'name of doc' could not be saved."
    No explanation. I've been working on this doc for months. Also can't save it with a changed name.

    Changing account is a little hassle I think, I haven't tried it myself.
    Why not do a re-installtion of iWork? do you have it on a CD? If so delete the following folders
    MacHD > Library > Application Support > iWork'09
    User > Library > Preferences > delete the different iWork plist files. If you have used a serial number make sure you have it before deleting.
    User > Application > iWork'09
    I don't think you have to delete anything else.
    Restart the computer, Repair permissions, install iWork in that order, update iwork. Try Pages again.

  • Why do I get the following error message when trying to use Report Builder in sql server 2012?

    sukai

    Hi sukai,
    The issue is due to one or more of the files listed in the application manifest cannot be found on the server. We can upload all the deployment’s dependents files, and try again. And frequently this means that the application is somehow corrupted, or that
    the ClickOnce store is corrupted. Please refer to the following thread to fix the issue.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/47c9f7c6-00ed-4980-9667-5c176ad7116a/ssrs-report-builder-application-cannot-be-started-contact-application-vendor
    According to your screenshot, you are using Chrome. Please use IE browser try it again. SSRS not all report functionality is supported by all browsers. Please refer to the similar thread below:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ef9cb3f2-2acd-4947-b1fe-4724c51c61a2/unable-to-start-report-builder?forum=sqlreportingservices
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Why am I getting the same error message after replacing with a new cartridge?

    I have replaced the cartridge with two different new HP cartridges, but the message continues to say that cartridge is empty. In addition, it won't even allow me to print in black only.  Any suggestions?

    Please read this post then provide some details. What printer model? What operating system? How is the printer connected - USB, wired LAN, Wireless LAN, bluetooth?
    Are you using refilled/reman cartridges?  These usually have not been reset to show proper ink levels.  In this case contact your supplier or use genuine HP cartridges.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Why do i get the 5002 error and cant download any apps?

    Is the connection with the iTunes store down?

    Apparently everyone is having issues...
    http://www.macrumors.com/2011/06/02/widespread-outages-reported-for-apples-ios-a nd-mac-app-stores-and-itunes-store/
    Guess I'll check later today.

  • How do I install the lastest Ver? Why do I get a Windows error message?

    I have Acrobat Pro 1.1.8. The Help menu command Check for Updates says NO UPDATES AVAILABLE.
    A tray message in Windows 7 (32 bit) says to SOLVE A PROBLEM WITH ADOBE ACROBAT... and it takes me to my download page at Adobe where Acrobat Pro versions 11.0.01 through 11.0.05 are listed.
    When I try to install any of the newer versions I get an error msg saying "...upgrade patch may update a different version of the program..."
    What is the latest Acrobat Pro Version? How do I install it? Why do I get the Window error message?

    Please try to install the Acrobat update manually from the following page:
    Acrobat X: http://www.adobe.com/support/downloads/detail.jsp?ftpID=5641 (Acrobat X Pro 10.1.8)
    Acrobat XI : http://www.adobe.com/support/downloads/detail.jsp?ftpID=5643 (Acrobat XI Pro 11.0.0.4) and then
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5673 (Acrobat XI Pro 11.0.0.5)

Maybe you are looking for