Cfx_ExcelQuery

Does anyone have any experience using the cfx_ExcelQuery
custom tag which is part of the OpenXCF project?
I installed the tag and wrote a simple program to test the
functionality.
If I call the custom tag w/ no arguments
<cfx_ExcelQuery> CF throws an error indicating missing
attributes, well & good.
But when I pass the attributes - I get a JRun Servlet Error
500 org/apache/poi/poifs/filesystem/POIFSFileSystem
org/apache/poi/poifs/filesystem/POIFSFileSystem
The error text appears to be coming from within the tag
itself as I am running on a Windows server and what appears to be a
directory path isn't related to anything on that server.
I originally tried passing the entire directory path to the
file I'm trying to read, then moved that file to the same directory
containing the test program, but same results either way.
Thanks in advance for any insights,
Ken

quote:
Originally posted by:
baskark
hello every one,
I got this error when iam trying to convert excel to data
Error1 :
The CFX custom tag "CFX_ExcelQuery" was not found in the
custom tag database. Please be sure to add custom tags to the
database before using them. If you have added your tag to the
database then you should check the spelling of the tag within your
template to insure that it matches the database entry.
Error2 :
Error processing CFX custom tag "CFX_ExcelQuery".
Be sure you have installed it correctly.
I've consolidated the instructions to your original post.
See
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=6&threadid=1219365

Similar Messages

  • Cfx_ExcelQuery: specify sheet?

    I installed the cfx_ExcelQuery custom tag which is part of
    the OpenXCF project and with the help of this forum have been able
    to successfully read data from an Excel file.
    Does anyone know if there is a way to specify a specific
    worksheet to read by name? By trial and error I discovered that a
    specific sheet can be accessed by passing an index number
    (sheet="0") but haven't been able to get it to take a sheet name.
    If not - no big deal, it's just that the program I'm working
    on originally used ODBC and required the user to specify the name
    of the sheet with the pertinent data.
    Thanks in advance,
    Ken

    The tag only accepts a number. You could use POI to get the
    sheet number.
    <cfscript>
    fis = createObject("java",
    "java.io.FileInputStream").init("c:\yourFile.xls");
    wb = createObject("java",
    "org.apache.poi.hssf.usermodel.HSSFWorkbook").init(fis);
    sheetNumber = wb.getSheetIndex("Sheet1");
    fis.close();
    </cfscript>
    <cfx_ExcelQuery action="read" file="c:\yourFile.xls"
    sheet="#sheetNumber#" variable="myQuery" />

  • POI-Apache ERR

    What is the solution people ?
    The file exist in c drive with 2 sheets in excel file called
    "As-Built and Design"
    ===================ERR==================
    -1
    The error occurred in D:\CFusionMX\wwwroot\1.cfm: line 16
    14 : fis.close();
    15 : </cfscript>
    16 : <cfx_ExcelQuery action="read" file="c:\template.xls"
    sheet="#sheetNumber#" variable="myQuery" />
    17 : <cfdump var="#myQuery#">
    =============Code=============
    <cfscript>
    fis = createObject("java",
    "java.io.FileInputStream").init("c:\template.xls");
    wb = createObject("java",
    "org.apache.poi.hssf.usermodel.HSSFWorkbook").init(fis);
    sheetNumber = wb.getSheetIndex("Sheet1");
    fis.close();
    </cfscript>
    <cfx_ExcelQuery action="read" file="c:\template.xls"
    sheet="#sheetNumber#" variable="myQuery" />
    <cfdump var="#myQuery#">

    What happens when you dump the value of sheetNumber before
    you call your CFX tag? Also, if the excel file is called "As-Built
    and Design", why are you trying to open template.xls? If
    sheetNumber is set to a java NULL value, that could explain some
    funky behavior by CF.

  • Apache POI

    Hi,
    I have installed cfx_excelQuery [ into web-inf\lib\ ], and
    registered the tag then extracted the zip[ poi-2.5.1-final-20040804
    ] into \web-inf\lib\ ...Then restarted the CF service ..still I am
    getting this...I am using CF server 6,1,0,63958 on windows 2000
    server..
    Object Instantiation Exception.
    Class not found: org.apache.poi.hssf.usermodel.HSSFWorkbook
    The error occurred in D:\CFusionMX\wwwroot\1.cfm: line 12
    10 : <cfscript>
    11 : fis = createObject("java",
    "java.io.FileInputStream").init("c:\template.xls");
    12 : wb = createObject("java",
    "org.apache.poi.hssf.usermodel.HSSFWorkbook").init(fis);
    13 : sheetNumber = wb.getSheetIndex("Sheet1");
    14 : fis.close();

    poi-2.5.1-final-20040804 is usually distributed as a jar. Put
    this jar in cfusionmx/lib or on j2ee version put in
    WEB-INF/cfusion/lib and restart. No need to expand the jar
    contents. Alternately put the jar in any directory outside the cfmx
    structure and specify the path in the jvm.config classpath
    including the filename.

  • Installing java custom tag

    I'm trying to install a custom tag written in java
    (cfx_ExcelQuery) and am not having any success.
    The tag was in a .jar file which I downloaded to the server
    and extracted to the /classes subdirectory. The actual .class file
    ended up in a subdirectory several levels below.
    I registered the tag as ExcelQuery and wrote a test program
    to call the tag according to the specs.
    I got a CF error indicating the tag didn't exist until I
    added the directory path containing the .class file (the exact
    subdirectory). Now I get an internal server error instead (progress
    I guess).
    I have no experience installing/using java custom tags so I
    may be missing something that would be obvious to someone else.
    If anyone has any ideas please let me know.
    Thanks,
    Ken

    I got this error:
    Error processing CFX custom tag CFX_net.sourceforge.openxcf.javacfx.text2query. 
    The CFX custom tag CFX_net.sourceforge.openxcf.javacfx.text2query was not found in the custom tag database. You must add custom tags to the database before using them. If you have added your tag to the database, check the spelling of the tag within your template to ensure that it matches the database entry. 
    The error occurred in C:\Inetpub\wwwroot\scratch\DataLoad\checkGradData_NEW_July.cfm: line 191
    189 :                                         
    190 :      <cfx_text2Query
    191 :       file="#FeedPath##FileName#"
    192 :       firstRowIsHeader="false"
    193 :       delimiter="#chr(9)#"

  • POI [ Apache]

    Hi,
    I have installed cfx_excelQuery [ into web-inf\lib\ ], and
    registered the tag then extracted the zip[ poi-2.5.1-final-20040804
    ] into \web-inf\lib\ ...Then restarted the CF service ..still I am
    getting this...I am using CF server 6,1,0,63958 on windows 2000
    server..
    Object Instantiation Exception.
    Class not found: org.apache.poi.hssf.usermodel.HSSFWorkbook
    The error occurred in D:\CFusionMX\wwwroot\1.cfm: line 12
    10 : <cfscript>
    11 : fis = createObject("java",
    "java.io.FileInputStream").init("c:\template.xls");
    12 : wb = createObject("java",
    "org.apache.poi.hssf.usermodel.HSSFWorkbook").init(fis);
    13 : sheetNumber = wb.getSheetIndex("Sheet1");
    14 : fis.close();
    </script>
    <cfdump var="#sheetNumber#">

    Hi em,
    I tested your cfscript with poi-2.5.1-final-20040804.jar
    installed as follows:
    in cfusionmx\lib - code works
    in cfusionmx and added to classpath in jvm.config - code
    works
    in cfusionmx\wwwroot\WEB-INF\lib - code works
    I followed up with expanding the jar into WEB-INF\lib and the
    code failed, just as with yours. So, install the jar without
    expanding its contents and you should be good to go.

Maybe you are looking for

  • Lumia 1020 call cut outs after Black update

    My calls have problems after Black update. Either reciever can not hear me or I can not hear him for long periods. Tested SIM in other phone on same net on same location and seems to be Nokia problem.

  • Search feature in flash

    hi i need help with this please..... i wanted to add a search feature for a flash website....i am adding some data lists to the website and i wanted to have a search feature.....could you also please advise me if i should use xml for adding the lists

  • Get working day of month for specific date

    Hi, I need to get the working day of a month for a specific date. For example: Which working day is the 15th of september 2005... Is there any function module, I could use? Cheers Arne

  • Adobe Premiere Elements 9 Exporting in 1080i/p

    I am trying to make an introduction for my friend, and I am only using the text tool in Adobe Premiere, this should be high definition as it is. Although whenever I got to export something in 1080i or 1080p, what comes out on my desktop is the video

  • What steps are needed to download an older version of Firefox for testing an Oracle certified version?

    I want to download an older version of Firefox for testing Oracle certified versions (for PeopleSoft PeopleTools). I found the directory of older versions but need instructions for the steps needed to download the desired version, which is version 17