Binary cache jxl.Format.CellFormat exception

Hi everyone,
I am trying out the example given at <a href="/people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache location.</a> The WD project compiles without any problems but during runtime, I get the following exception -
java.lang.NoClassDefFoundError: jxl/format/CellFormat
I included the jxl.jar and checked it too for the CellFormat class. It exists in the jar file in the correct folder too. Has anyone come across this problem before?
Any ideas or hints would be appreciated..
Thanks!
t00th
Message was edited by: Sameer Jagirdar
Fixed the link

Inside blog explain how to use the library for NWDS, but nope how include into PROJECT.
You need to import the library into "lib" folder.
From NWDS, WebDynpro prospect, click to "Navigator" tab, right click on "lib" folder --> import --> File System --> choose JAR files.
Build and deploy.

Similar Messages

  • Java.lang.NoClassDefFoundError: jxl/format/CellFormat

    hi Experts,
    i m trying Excel export and import functionality for this i m using jxl.jar  ,but when i m deploying my application i m getting java.lang.NoClassDefFoundError: jxl/format/CellFormat
    how to resolve this problem.

    Hi,
    it depends whether you are using JDI or not. If you use JDI, you only have to create an External Library DC and add the jxl.jar per Drap&Drop in Navigation panel to the DC. Add the file also to the public part. In the Web Dynpro DC add the External Library DC as used DC and deploy both DCs on the server.
    The only error you can make is to deploy the components using "Deploy new archive and run..." -> this command won't deploy the jar and you have the same result as now. You have do build & deploy it step-by-step (Development Component -> Build..., Development Component -> Deploy).
    If you don't use JDI, perform like described by Lakshmi.
    Regards,
    Martin

  • Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)

    Hi experts,
    I am trying to implement the functionality of downloading the contents of a webdynpro screen to excel sheet. In order to implement the functionality of excel download i used the following blog.
    [/people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache ]
    In this blog they have used javaexcel api to implement the excel functionality. I face some problems
    while implementing it.
    i) The use of "Label label = new Label(0, 2, "A label record");
    sheet.addCell(label); " is not supported. It says that a constructor for label with
    (int, int, str) parameter is not available.
    ii) Then i implemented it with "Label label = new Label("A label record"); " Then i deployed it. I got a runtime exception saying that " java.lang.ClassNotFoundException: jxl.format.CellFormat ".
    This cellFormat is an interface available in the jar. I am using jexcelapi_2_6_9_1.4 version. Do i have to
    download some other versions.
    Please help. Thanks in advance.
    Regards
    Ramanan

    Hi,
    Please check the following steps while creating External Library DC:
    1) creating an Extneral library DC
    2) import the JARs to the libraries folder of the External Library DC project
    3) Right-click on each of the JARs imported to the project and add them to the public part.
    This DC is now ready to be used as a build-time reference that will allow CBS to build the "main" Web Dynpro application that will use the external libraries. Next, we have to create a new Web Dynpro DC to hold the class files here are the steps:
    1) Create a new Web Dynpro DC
    2) Create a new public part, selecting the "Can be packaged into other build results" option
    3) Rename the JARs as Zip files and extrct the full content (folders and class files) to your root folder
    4) Import the folders and files to the src/packages folder
    5) Expand the public part node that was created and select the "Entities" node, right-click it and choose Edit
    6) In the Entity Type list select the "Folder" option then in the selected entities tree pick each of the folders that you imported in step 5 (above)
    7) Now do a DC build and a DC deploy of the project
    Then check-in, activate, and release any activities you have associated with creating these two projects. In the DC perspective, refresh the Active DCs and Inactive DCs to ensure that both new DCs appear in the Active list. Now we have to setup the references to these DCs in our main Web Dynpro application. To do this, follow these steps:
    1) Open the Web Dynpro perspective and right click the Used DCs node then choose "Add Used DC.."
    2) Pick the public part of the External Library DC that we created (first) and set it to have a Build Time dependency
    3) Again, right click the Used DCs node and choose "Add Used DC.." then choose the public part of the Web Dynpro DC that we created and give it a Run Time dependecy (weak) and click finish.
    4) Now, due to what I think is a bug. You must right click on the Web Dynpro "used DC" that you just added in the previous step, and set the run time dependency again (it seems to revert to the default values for some reason)
    5) Now do a DC build and a DC deploy on the "main" web dynpro application.
    6) Check-in, activate, and release any activities associated with adding these references and then others on your team may use the classes in the external libraries within the Web Dynpro project.
    Regards.
    Rajat

  • Regarding Web Dynpro Binary Cache

    Hi All,
    I have a Table in my view and I want to export the data in the table in Excel. I have a pdf Exporting Context Data into Excel Using the Web Dynpro Binary Cache
    It talks about the Sample Application WDExcelExport.zip. I am unable to locate this zip file
    Also for using Web Dynpro Binary Cache do I need to add some other JAR files in the classpath.
    Is it possible that apart from saving the data in excel, can the data be saved in some other formats eg .html, .txt, .pdf
    Regards
    Nikhil Bansal

    Hi Abhijeet,
    When I am trying to download the Sample Application for Excel Export from the foll. link https://wwwn.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/bad3e990-0201-0010-3985-fa0936d901b4 [original link is broken] then I get the foll error
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    The exception was logged. Inform your system administrator..
    See the details for the exception ID in the log file
    I need to take a look at the application.
    Plz help.
    Regards
    Nikhil

  • Exporting into Excel Using the Dynpro Binary Cache is not working on NW04s

    Hello,
    I am using excel data export using the
    "Exporting Context Data into Excel Using the Web Dynpro Binary Cache" guide at
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353">this link</a>.
    The tutorial is working on NW04 but when I use it on NW04s I receive errors for the StringBuffer object:
    java.lang.NoSuchMethodError: java.lang.StringBuffer.append(Ljava/lang/String;)Ljava/lang/AbstractStringBuilder;
    Any ideas?

    Hallo Roy,
    I have created an updated/enhanced version of this tutorial running on NW 7.0. The new solution allows to open the exported Excel File instantly without opening a popup window befor:
    See <a href="https://wiki.sdn.sap.com/wiki/x/0mQ">Exporting Table Data Using On-Demand Streams - SAP NetWeaver 7.0</a>.
    <b>NOTE:</b>
    Use <b>LinkedHashMap</b> instead of <i>HashMap</i>
      private Map getProductColumnInfos() {
        Map columnInfosMap = new LinkedHashMap();
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.QUANTITY, "Quantity");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.ARTICLE, "Article");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.COLOR, "Color");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.PRICE, "Price in EURO");
        columnInfosMap.put(
          IPrivateTableCompBasketView.IProductsElement.TOTAL__PER__ARTICLE,
          "Total Per Article In Euro");
        return columnInfosMap;
    This keeps the order of key-displaytext-pairs passed by the client (table component) to the service (excel export component) stable.
    Regards, Bertram

  • Export to Excel Problem external DC using Web Dynpro binary cache

    Hallo,
    I want to export from Web Dynpro to Excel. For this I study the Tutorial "Excel Export Using the Web Dynpro Binary Cache".
    The example is running without a problem.
    I have create a new DC only for excel export. The name is ExcelExportWD. In this DC I create a Component and programmed the methods of the example. Also I create the View and the Context for it.
    This DC is used in other DCs. I put the Component to the public part. After than I make the entry in the used DCs in that DC which I want to use the Excel export. I use the DC ExcelExportWD in the DC ContactsWD.
    The ContactsWD is running without a problem.
    If I try now to export to Excel I got the following error.
    <b>com.sap.tc.webdynpro.services.sal.api.WDDispatcherException: Requested deployable object 'mgi.de/portalscmContactsWD' and application 'ResultGetContacts.xls' are not deployed on the server. Please check the used URL.</b>
    In the View of the ExcelExport the name of file is not visible in the URL of the ExcelFileName. The name "ResultGetContacts.xls" is the name of the node which I want to export.
    What is wrong? I have try to set a Sharing reference in the ContactWD without success.
    An idea ?
    Regards
    Gunter

    Hallo,
    I want to export from Web Dynpro to Excel. For this I study the Tutorial "Excel Export Using the Web Dynpro Binary Cache".
    The example is running without a problem.
    I have create a new DC only for excel export. The name is ExcelExportWD. In this DC I create a Component and programmed the methods of the example. Also I create the View and the Context for it.
    This DC is used in other DCs. I put the Component to the public part. After than I make the entry in the used DCs in that DC which I want to use the Excel export. I use the DC ExcelExportWD in the DC ContactsWD.
    The ContactsWD is running without a problem.
    If I try now to export to Excel I got the following error.
    <b>com.sap.tc.webdynpro.services.sal.api.WDDispatcherException: Requested deployable object 'mgi.de/portalscmContactsWD' and application 'ResultGetContacts.xls' are not deployed on the server. Please check the used URL.</b>
    In the View of the ExcelExport the name of file is not visible in the URL of the ExcelFileName. The name "ResultGetContacts.xls" is the name of the node which I want to export.
    What is wrong? I have try to set a Sharing reference in the ContactWD without success.
    An idea ?
    Regards
    Gunter

  • How to store a file and refer it from another file using the Binary cache?

    Hello,
    I think it's a long shot but I thought I will give it a try.
    I am creating an excel file from an xml String using the Web Dynpro Binary cache.
    The problem is that when columns with numbers are involved an extra #agg column is being added by the excel "flattener" which is in charge of rendering the excel file from the xml String.
    The only way to override this excel feature is to supply your own XSLT and reference it from the XML. Now, since I am not using an actual filesystem but the Web Dynpro Binary cache, is it possible to use this cache in order to store there the xslt and refer it later from an XML?
    Roy

    Hi,
    Just found out this.. See if you can make use of it..
    getPublicCachedWebResource(byte[] webResource, WDWebResourceType resourceType, WDScopeType scopeType, WDDeployableObjectPart deployableObjectpart, String key)
    <i>          returns a IWDCachedWebResource, <b>which is saved directly to the WDDeployableObject directory.</b></i>
    you can make WDDeployableObject as your component and point the reference to the component folder.. Since you are specifying a scope type.. it shoukd be deleted after the scope defined...
    Lemme know if this works..:)

  • Error: An attempt was made to load a program with an incorrect format. (Exception from HRRESULT:0x8007000b)

    Hi All,
    I am trying to install 64 bit addon on SAP9 64 bit client.
    But i am getting following error:
    Error: An attempt was made to load a program with an incorrect format. (Exception from HRRESULT:0x8007000b)
    Please give some solution.

    Hi,
    Please refer this thread http://scn.sap.com/thread/1523397
    Thanks & Regards,
    Nagarajan

  • 32 bit Application calling 32 bit DLL "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"

    Hi,
    I am developing an application in visual c# which loads few DLLs.
    While loading the DLLs I am getting this error
    "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"
    Strange thing for me is that I don't get this error always. In most of the cases when I uninstall the application and reboot my PC again when I install again then problem is solved for few days.
    I have followed several threads all suggests that This error comes either "64 bit exe tries to load 32 dll" or "32 bit exe tries to load 64 bit dll". In my case i made sure that both the
    exe and dll are 32 bit.
    In Project property I selected Platform and Platform target to x86. But the problem still occurs.
    Some body please suggest some solutions and why this problem occur.
    Thanks
    Sujeet. 

    Hi,
    How do you load the DLLs? I assume you get an exception and do not call the LoadLibrary API function directly. The latter just returns NULL (Intptr.Zero) if you load a library with the wrong bitness. However, in this case, I do not get error 11 (= 0xB =
    ERROR_BAD_FORMAT), but I get error 193 (= ERROR_BAD_EXE_FORMAT), so I think something else is going on on your machine.
    So, do you get an exception, and which one? Can you catch and examine it? Does it provide details about which library can not be loaded?
    An option is using
    Process Explorer to find out which library can not be loaded by looking at which libraries are being accessed most recently.
    Another option is using Windbg.exe (from the Windows Debugging Tools). By default, it outputs all loaded modules so that the last one your application tries to load should be listed there, too. It should even be listed if it fails to load; at least that
    was the case in my tests.
    Sometimes, if no path is specified for the dll file, the dll can be loaded from the current directory. So depending on what happened at runtime before the library is being loaded, the current directory could have been changed so that you can get variable
    results during debugging.
    When you are saying "when I uninstall the application", do you mean your own application on your own PC? Does the problem (also) happen during debugging inside Visual Studio?
    Armin

  • Binary JAR file format

    Hi out there,
    does anybody know where I can find the specification for the binary JAR file format?
    It doesn't follow the ZIP spec, there must be some additions.
    Here is my problem:
    I'm reading the 1. local file header, there compressed and uncompresed size is 0. Bit 3 of the
    general purpose bit flag is not set so there is no Data descriptor section and there should also be no
    file data section (size is 0, extra field also 0). But there are still some
    bytes until the next local file header starts. What are the bytes in between??
    Somewhere in the middle of the 2 local file headers is the 0x08074b50 signature, which is mentioned
    in the zip spec in combination with Spanned/Split archives !??
    If I'm reading a ZIP file generated with WinZip it is working fine, but when I'm reading a jar generated with
    the jar tool there are this mysterious bytes, which I cannot interpret.
    Thanks in advance for your help.
    Cheers,
    Steffen

    okay, guys just in case someone is interested (doesn't seem like, but anyhow):
    YES, the jar tool is not sticking exactly to the zip specification. I found out when I was
    browsing through the source code of the java distribution. The local file headers are not
    filled with the size information!
    Quote: * We'd like to initialize the sizes from the LOC, but unfortunately
    * some ZIPs, including the jar command, don't put them there.The solution for it, which I think is the standard for zip processing anyhow, is reading the
    central directory of the zip file first. There you get all info including also the size, etc. of the entries
    and also the offset to the local file header.
    The drawback is that it's a little more complex to read a file from the end and not from the beginning
    because you have to find the beginning of the central directory first, but well ...
    Okay, that's it. Have fun!

  • Need for garbage collection using Webdynpro Binary Cache?

    Dear Sirs,
    I am using the Wiki guide, Exporting Table Data Using On-Demand Streams to export table data to Excel.  (this is using Webdynpro binary cache)
    Everything is working fine, however I would like to check prior to transport to production, if i need to do any garbage collection using this solution.
    My biggest fear is if the all the excel files generated are stored forever, thus filling up the disk space or memory and crashing the production server.
    Can anyone give me advice ?
    best regards,
    Jørgen Ruud

    <b>Hi
    Check This URL
    Memory Usage
    http://help.sap.com/saphelp_nw04/helpdata/en/98/f73c41325fa831e10000000a1550b0/frameset.htm
    Resource Management
    http://help.sap.com/saphelp_nw04/helpdata/en/15/d73f41d900db2be10000000a1550b0/frameset.htm
    Regards
    Chandran S</b>

  • Problems  with example Web Dynpro Binary Cache service.

    Hi!
    I made the example explained in PDF  Web Dynpro Binary Cache service, everything works fine but i faced a problem when a tried to download the excel file in XP  spanish version , all the columns  names came disorderly. These names are technical names of my nodes, i'm using bapis models to connect with R/3
    Who knows how can i solve this feature, the example works fine in my english XP`s version.
    Thanks!

    Hi Maria,
    which tutorial number do you refer to?
    Regards, Bertram

  • Max Beans in Cache causes NULL Pointer Exception

    Hi All,
    a rather weird event (from our perspective) occurs when we do the
    following:
    We have an entity bean set to max beans in cache 100 (default value of
    our deployment tool ), the database table related to that bean holds
    lets say 300 entries.
    Doing a find all and in the same session bean instanciated transaction a
    processing loop over the enumeration of beans we get an NULL Pointer
    exception when accesing the 101 Bean. Neverthless the Weblogic server
    increases the cache size automatically but obviously not fast enough and
    not on time.
    has anyone experienced the same problem and has a fix for it, appart
    from increasing the cache size in the deployment descriptor ?
    any help welcome
    Michael

    Hi Michael.
    Can you post the stack trace of the NullPointerException? Was it in
    your code or ours? Also, what version of WebLogic are you using?
    -- Rob
    Rob Woollen
    Software Engineer
    BEA WebLogic
    [email protected]
    Michael Rupprecht wrote:
    Hi All,
    a rather weird event (from our perspective) occurs when we do the
    following:
    We have an entity bean set to max beans in cache 100 (default value of
    our deployment tool ), the database table related to that bean holds
    lets say 300 entries.
    Doing a find all and in the same session bean instanciated transaction a
    processing loop over the enumeration of beans we get an NULL Pointer
    exception when accesing the 101 Bean. Neverthless the Weblogic server
    increases the cache size automatically but obviously not fast enough and
    not on time.
    has anyone experienced the same problem and has a fix for it, appart
    from increasing the cache size in the deployment descriptor ?
    any help welcome
    Michael

  • Binary to XML format

    Hi all,
    To post a document to bank i have used digital signature using SSF functions. It is working fine. And my recipient received the data with digital signature.
    Now I have a problem, when i use SSF function my input data is converted into binary format, which is not accepatble by the recipient system. They wanted the format to be in XML. How do I convert my binary data to XML format. OR am i doing something wrong.
    My program flow is like this,
    1. get the data from SAP.
    2. using FM SSF_KRN_SIGN.
    3. Output of SSF_KRN_SIGN, is passed to SSF_KRN_ADDSIGN.
    4. Output of SSF_KRN_ADDSIGN is passed to HTTP_POST to the bank.
    When I send data to FM SSF_KRN_SIGN, my input data is plain text format, the return value from this FM is in binary format.
    Could any one help me in solving my problem .
    Regards,
    prabhu rajesh.

    I believe that the XML and the digital signature are two separate things.  When you call SSF_KRN_SIGN it takes whatever input data you have and signs it - producing a binary output table. If your bank wants its dta in XML, you will have to change your input data to the function SSF_KRN_SIGN into XML before passing it to the function.  Use the iXML classes or if on 620 the Call Transformation command (Both of which have been discussed on this forum before) to change your data into iXML.  Output your XML Stream as a character Table.  Feed this Character table into the function modeul SSF_KRN_SIGN.  The results of this function module will be your XML stream, digitally signed, and in binary format.

  • How To formate PDF Data(Binary) to HTML Formate

    Hi All,
    I am using PDFs in my application. Once the user has submitted his project in formation through pdf, it stores in BAPI. When i tried to retrive the data from back end to display in a view. it shows me all the information is in single line because of PDf binary data. Can any one knows about how to display pdf data in a view (html) with multiple lines.
    Thanks
    Regards
    Ravi.Golla

    Hi Ravi,
    See this thread...It might be useful for u..
    /people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fd2d690-0201-0010-de83-b4fa0c93e1a9
    Urs GS

Maybe you are looking for