ADF 10.1.3.3 and jxl to create Excel file

Hi,
this is more a Java question than ADF but I hope to get some answers here also. I'm trying to create an Excel file using JExcelApi but i receive an error:
ERROR com.sun.faces.lifecycle.InvokeApplicationPhase- oracle.classloader.util.AnnotatedClassFormatError: Bad version number in .class file
Invalid class: jxl.Workbook
+ Loader: current-workspace-app.web.MyApplication:0.0.0+
Code-Source: /C:/Oracle/JDeveloper/jdev/lib/jxl.jar
Configuration: <classpath> in ...\WebApp\ViewController\public_html
Dependent class: web.view.backing.reports.CreateKapExcel
Loader: current-workspace-app.web.MyApplication:0.0.0
Code-Source: .../WebApp/ViewController/classes/
Configuration: <classpath> in ...\WebApp\ViewController\public_html
javax.faces.el.EvaluationException: oracle.classloader.util.AnnotatedClassFormatError: Bad version number in .class file
Invalid class: jxl.Workbook
Loader: current-workspace-app.web.MyApplication:0.0.0
Code-Source: /C:/Oracle/JDeveloper/jdev/lib/jxl.jar
Configuration: <classpath> in ...\WebApp\ViewController\public_html
Dependent class: web.view.backing.reports.CreateKapExcel
Loader: current-workspace-app.web.MyApplication:0.0.0
Code-Source: .../WebApp/ViewController/classes/
Configuration: <classpath> in ...\WebApp\ViewController\public_html
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1087)
at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:204)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
The code looks like this:
    try
         ExternalContext extContext = fc.getExternalContext();
         HttpServletResponse response =
           (HttpServletResponse) extContext.getResponse();
       response.setContentType("application/vnd.ms-excel");
       response.setHeader
         ("Content-Disposition", "attachment; filename=sampleName.xls");
       WritableWorkbook w =
         Workbook.createWorkbook(response.getOutputStream());
       WritableSheet s = w.createSheet("Demo", 0);
       s.addCell(new Label(0, 0, "Hello World"));
       w.write();
       w.close();
    catch (Exception loE)
    { //...Anyone has any ideas? Thank you in advance,
kind regards!
BB

Hi,
to me the problem appears to be with the Java version that the Workbook class is compiled with. Is it the latest version of the library you use ?
Frank

Similar Messages

  • Tdms-files: Is it possible to prevent LabVIEW and DIAdem from creating .tdms_index files?

    Hello,
    is it possible to prevent LabVIEW and DIAdem from creating .tdms_index files when opening/creating/editing a .tdms file?
    I think I have no benefit from the .tdms_index files because our applications create a lot of little .tdms-files (repeat measurements). With the additional .tdms_index files we have unnecessary memory consumption and it takes longer for Windows to open the containing folder. Also it´s confusing when searching for a certain file.
    Best Regards
    Daniel
    Solved!
    Go to Solution.

    Hi Baui,
    I'm afraid there's a direct way to disable creating .tdms_index file now from LabVIEW and DIAdem. You can use TDMS Advacend API in LabVIEW, which doesn't create any index file, or you can just make some simple programming and delete the .tdms_index file after closing the TDMS file. 
    This is a request for a long time, we'll consider to add this feature for TDMS in future releases.
    Yongqing Ye
    NI R&D

  • Can not open JPEG files and can not create JPEG files from other software

    Can not open JPEG files and can not create JPEG files from other software (For example from Solidworks).
    When I try to right click on a JPEG, a notice window appears written: "Windows Explorer has stopped working - Windows is
    checking for a solution to the problem" and then the notice box disapears, the desktop appears and I can continue working.
    From the other side - If I try to save as JPEG a screen of Solidworks (like a view of a part) the Solidworks falls but the JPEG
    is created (I can see its name in the directory I created it).
    I can open the JPEGS with the Paint software if I want but not with the Windows Photo Viewer.
    I have the feeling that the Windows Photo Viewer disapeared from my computer - just a feeling.
    I will appreciate your assistance.
    Avi T. 2014

    Hi,
    Did Windows Photo Viewer option appear when you right click the JPEG file and select open with?
    I would like suggest you use Clean Boot to troubleshoot if there is third-party software conflict:
    How to perform a clean boot in Windows
    http://support.microsoft.com/kb/929135
    Karen Hu
    TechNet Community Support

  • Search and replace, contents from excel file

    Hi
    I have the list in the excel file which needs to replace. The script should read the excel then replace to the opened InDesign documents.
    The excel(*.xls) file has two columns, first column has old nos. and the second column has the new numbers to replace.
    Ex:
    Column 1               Column 2
    (Search)               (Replace)
    4257/2          =>               1/2
    4257/3          =>               1/3
    4257/4          =>               1/4
    3257/2          =>               1/5
    3257/3          =>               1/6
    3257/4          =>               1/7
    4457/4          =>               2/2
    4457/5          =>               2/3
    4457/6          =>               2/4
    4457/7          =>               2/5
    Thanks in Advance,
    Thiru

    @csm_phil:
    this is a very radical method, because:
    1. you don't limit your changeGREP() to a specific table column (possibly the searched texts are found in other strings around the document and changed as well!)
    2. you are in trouble if a certain value you want to change exists more than one time (not likely, but who knows?) and you want to change it in diffrent values per instance. That will fail.
    If we deal with only ONE column of ONE table, to address issue 1 I would ask the user to select the column of the table and instead of:
    app.documents.item(0).changeGrep();
    I would use:
    app.selection[0].changeGrep();
    I don't hope issue 2 will apply in this case.
    @mr. pathi:
    However, in the case of only one column of one table to change AND if the new excel file contains ALL entries in the exact order (both all old and all new values), you could change the contents of the column by copying from excel to InDesign. No script necessary. The formatting of the old cells will be retained.
    You cannot do that by placing the new table to InDesign and copy/paste the new column to the old one, because the formatting of the copied column will be transferred as well (paste without formatting is not an option here).
    Uwe

  • How do I get my IPhone contacts and calendars (Outlook created msg files) to my new Windows 7 LT running Windows Live Mail (free) that doesn't recog. Outlook files??

    How  do I get my Iphone contacts and calendars (Outlook created msg file) to my new Windows 7 LT running Windows Live Mail (free) that doesn't recognize Outlook files??
    Is there a good free converter of msg files to windows live mail file?
    This  is not fun

    Did you try the iPhone syncing options in iTunes?
    Click on your iPhone in iTunes, and check under the Info section where you can choose which app to sync with. Is Windows Live Mail an option?

  • Read data in real time and save as an excel file

    Hi,
    I want to write a LabVIEW progarmme which able to read data in real time and save it as an excel file from Varian Vacuum muli-gauge.
    It is using RS232 port.
    Can anyone give me some examples or point me in the right direction?
    I am a beginner of LabVIEW. Hope anyone can help me.
    Thank you very much!!
    Joanne

    Thanks for your reply.
    I just use MAX to verify that the rs232 port is operational.
    However, there is an error (please refer to the attachment).
    One possible reason is in MAX I am trying to do the default command *idn? ...but it doesn't work.
    I read the vacuum multi-gauge manual but I don't know which command should I use...
    I attached the manual and can you tell me which command should I use?
    Or can you tell me other possible reason for this error code?
    Thank you very much. 
    Joan
    Attachments:
    Varian Multi-Gauge Controller.pdf ‏2747 KB
    error1.JPG ‏111 KB

  • Save multiple waveform graphs and data in one Excel File

    Hi there,
    I managed to save data from waveform graph into excel file and saving the plot into excel but individually. I'm aiming to save both the data and the plot in an excel file. May I know how do I do it? I've tried using the Write to Measurement File vi and also the invoke node of the waveform chart but it's still not giving me what I've wanted. 
    The above was only for one analog input channel and I have 2 analog inputs each with their respective sets of data and plot. Is there a way to execute the data and plot of one input in one worksheet and another set of data and plot in another worksheet, all in one excel file?

    Hi there;
    I would recommend using the Report Generation Toolkit; it is the easiest way.
    You can use either the Report Express VI or the Appi to save all your data in both formats
    Greetings

  • Regarding ABAP program to read and manipulate data from Excel file....

    Hi,
    I want to write a ABAP program which will read Excel file which has three columns viz: Col A, Col B and Col C.
    If there is no data in Col B and Col C for a given record in Column A, then progam should print all those records on screen with write statement.
    Regards,
    Rajesh.

    Hi
    Check
    PARAMETERS: filename LIKE rlgrap-filename MEMORY ID M01,
    begcol TYPE i DEFAULT 1 NO-DISPLAY,
    begrow TYPE i DEFAULT 1 NO-DISPLAY,
    endcol TYPE i DEFAULT 100 NO-DISPLAY,
    endrow TYPE i DEFAULT 32000 NO-DISPLAY.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    filename = filename
    i_begin_col = begcol
    i_begin_row = begrow
    i_end_col = endcol
    i_end_row = endrow
    TABLES
    intern = intern
    EXCEPTIONS
    inconsistent_parameters = 1
    upload_ole = 2
    OTHERS = 3.
    After getting Records in INTERN TABLE  You can loop it to check where columns B & C are empty  and store them in another table .
    LOOP AT intern.
    IF INTERN  B and C has value  .
    CONTINUE
    ELSE .
    MOVE THEM INTO ANOTHER TABLE ITAB .
    ENDIF .
    ENDLOOP.
    THEN LOOP ITAB .
    WRITE : ' '
    ENDLOP .
    Hope this Helps .
    Praveen

  • Creating a drop down list and linking it to Excel files

    How to create a drop down list and when i select any row in the dropdown list, it must open designated MS- Excel file? Can anyone help me in this with an example code?
    Thanks
    Anu

    Try this in 7.0 format.
    Attachments:
    Listbox for excel files.vi ‏15 KB

  • How to set a page header and footer of an excel file i'm creating

    Hello !
    SORRY MY ENGLISH is very BAD.
    I tried to set page header and footer in Excel sheet with ABAP  ole
    DATA : BEGIN OF enter,
    x(1) TYPE x VALUE '0D',
    END OF enter.
    DATA : format(255) TYPE c.
    FORM set_page_sheet.
    CALL METHOD OF excel 'ActiveSheet' = sheet.
    CALL METHOD OF sheet 'PageSetup' = pagesetup.
    SET PROPERTY OF pagesetup 'Orientation' = xllandscape.
    SET PROPERTY OF pagesetup 'PrintTitleRows' = '$9:$12'.
    CLEAR format.
    ERROR
    CONCATENATE 'PAGESHEET' enter-x 'PAGE &P/&N' INTO format.
    ERROR
    SET PROPERTY OF pagesetup 'RightHeader' = format.
    CLEAR format.
    CONCATENATE ' Text 1 ' enter-x 'Text 2'
    enter-x 'Text 3 ' INTO format.
    SET PROPERTY OF pagesetup 'RightFooter' = format.
    FREE OBJECT pagesetup.
    ENDFORM. " set_page_sheet
    Activate report -
    ERROR - The enter-x must by data type c or another then data type x
    Thanks for answer.

    Try to define ENTER this way & try
    class cl_abap_char_utilities definition load.
    DATA : BEGIN OF enter,
    x type c value cl_abap_char_utilities=>cr_lf,
    END OF enter.
    PS : I am not 100% sure about this.

  • Serial no. invalid problem and problem with creating PDF file using adobe acrobat x pro

    I tried to download adobe X pro on my new computer and entered the serial No, bu the program said the number is invalid. Actually the number is valid, confirmed by the info listed in my account. please help! also I downloaded the trial version now, but when I use it, the file it created is not shown as adobe file, but as firefox HTML file. I don't know why. please help!

    Error "The serial number is not valid for this product" | Creative Suite

  • How do i delete duplicates ... and stop Elements creating whole files of them!!!

    Somehow in starting to use Elements all photos have been duplicated.
    How do I delete the duplicates without going through thousands of photos?
    How do I stop the program from creating and saving thousands of duplicates?
    I can't find anything in their 'Help' menu to help!!!

    Which version of ELements you are using?
    If it is ELements 12, are you logged into Revel from Elements? If yes, did you connect to Elements from a ps.com migrated account and using same upgraded catalog from previous version of Elements? Or have you used the same catalog in ELements 11 with Revel and now using with Elements 12?
    ~V

  • How to retrive value from SVG and put in XLS(excel) file ?

    Hello all,
    I ll appreciate you if you help me in this issue,
    My Project Manager give me a task of creating a java program to take values from SVG file and put that data into a particular cell.
    Can you give me some favourable hints to help in this issue.
    Thanks in advance.
    Jaison

    If by "array format" you mean comma-separated, why not
    FOR x IN v_searchResult.FIRST .. v_searchResult.LAST
    LOOP
    v_id := v_id || TO_CHAR(v_searchResult(i).Product_ID);
    END LOOP;or even better....
    FOR x IN v_searchResult.FIRST .. v_searchResult.LAST
    LOOP
        IF x =  v_searchResult.FIRST
        THEN
           v_id TO_CHAR(v_searchResult(x).Product_ID);
        ELSE
           v_id := v_id ||','|| TO_CHAR(v_searchResult(x).Product_ID);
        END IF;
    END LOOP;Cheers, APC

  • Indesign script to find and replace from external excel file

    I have been asked to update an existing price list (set up as lots of small tables) in Indesign (500+  pages). I have been given a new Excel spreadsheet with the product codes and new prices. I am looking for some assistance on finding or creating a script that can do such a thing if at all possible to speed up the process over just copying and pasting. Does anyone have any suggestions or point me in the right direction?

    1. Your Excel conversion to FindChangeList format idea seems okay, apart from one thing: both findWhat and changeTo strings should have double quotes around them. As they are now,
    grep {findWhat:lang1"} {changeTo:"lang2} {incl...(etc.)
    the opening one after findWhat and the closing one after changeTo are missing.
    2. Your first line contains 2 definitions. Each separate definition should be on a line of its own. (This might occur elsewhere as well, didn't check.)
    3. Any double quotes inside strings will cause problems. Precede them with a backslash to 'escape' them and convert them to a literal character. I found this one:
    "(for IC5/8"V)"
    -- change to
    "(for IC5/8\"V)"
    4. Some of your strings start with double double quotes:
    changeTo:""(MITM刀具见254页 ...
    5. To prevent your problem with this order
    grep {findWhat:Inserts"} ...
    grep {findWhat:Inserts Ordering Code System"} ...
    sort your Excel list alphabetically, case preserving, in reverse order.
    You probably also want wholeWord:true, and caseSensitive:true.
    Hope this helps!

  • Android reader and Paperport 12 created PDF files problem

    i am having a problem with Android reader and documents created with nuance Paperport 12. The documents are a uniform 380k and contain a scanned monochrome image. The problem is as follows - When I open the document the page displays correctly but is way too small to be read on the device. The device is a Sony Ericsson Xperia X10 mini running Android 2.1 update 1. I have duplicated the problem exactly on a Sony Ericsson Xperia X10 mini pro.
    What happens is when you zoom in on the document the page goes blank. There are no restrictions or security options on the document and the metadata shows nuance Paperport 12 as the creator. I can zoom in on the document on any other device other than the android handsets.

    i am having a problem with Android reader and documents created with nuance Paperport 12. The documents are a uniform 380k and contain a scanned monochrome image. The problem is as follows - When I open the document the page displays correctly but is way too small to be read on the device. The device is a Sony Ericsson Xperia X10 mini running Android 2.1 update 1. I have duplicated the problem exactly on a Sony Ericsson Xperia X10 mini pro.
    What happens is when you zoom in on the document the page goes blank. There are no restrictions or security options on the document and the metadata shows nuance Paperport 12 as the creator. I can zoom in on the document on any other device other than the android handsets.

Maybe you are looking for