Studio 10 cannot display lex code?

I am evaluating Studio 10 for a large C/C++ application which contains some scanners written with lex. I noticed that the debugger refuses to show code in lex sourcefiles (i.e. files with extension .l which are processed with lex to produce, for example, C files like lex.yy.c).
When I try to step from C code into a function defined in a lex source file, the stack display shows the function, but the source pane stays at the line where the function is invoked. This makes debugging lex generated scanners almost impossible.
This definitely works with Forte 6 Update 2 (I just checked).
Any idea how to make this work again?
I can, if necessary, provide a small example which shows the
problem.

Thanks for the clarification. In the meantime, I found out that this boils
down to the fact that the IDE only accepts a certain list of file extensions for C/C++ files. Because ".lex" is not among these, the editor apparently refuses to display the code.
Unfortunately, this list is fixed and can not be extended (although the
documentation suggests that it is possible to change lists of "mime types and edxtensions").
I renamed a lex testfile to have extension ".c", and then the code displays. This is, however, no viable solution (users don't want to rename large numbers of files because a IDE is , well, restricted).
I doublechecked with another situation: we have also include files with inline definitions, and these files have the extension ".icc", and this poses the same problems: I can't step through these functions. A mechanism to extend this builtin extension list is definitely needed for us.

Similar Messages

  • How to avoid "Cannot display source code at this location"?

    This debugger message really annoys me. It seems to me that
    sometimes when my program fails the debugger returns nice friendly
    messages telling me exactly what line numebr an object is
    undefined. This is great. But half the time I get message of this
    nature.
    at main_fla::MainTimeline/ot()
    at main_fla::MainTimeline/buttMouseEvent()
    Cannot display source code at this location.
    Why does the debugger refuse to show the line number of the
    code sometimes?
    Is there acoding practice that one should use to avoid these
    unhelpful debug messages?
    It is very annoying when you have a 200 line function that
    tells you that somehting is undefined SOMEWHERE in the function
    without giving you a line number. Granted at least AS3 does
    actually warn you....(unlike AS2) but I am constantly plagues by
    these "Cannot display source code at this location" messages.
    An anyone offer any explanation to why these messages dont
    display line numebrs or how to code in a way that avoids them?
    thanks

    JLundan,
    I want to thank you for responding to the thread I started on the forum at java.sun.com. Your solution to my problem of needing to print the code of the html pages that the file I included generates was just what I was looking for. However, I have some further questions to ask, if you don't mind. To clarify my task I should say that your rephrasing of the problem is accurate: "You wan't to display the contents of the HTML file that the web server produces in response of client's request?"
    Yes, this is what I need to do, but also it needs to display the source code of that html file that the server produces in response to the client's request. Also, in this case, I am the client requesting that the server return some html file, and I'm not sure where the server is. But the webserver.java file that I shared on the forum is on my local machine. I was wondering if I could modify this webserver.java file at my home so that any html file the server returns to me would automatically display the source code. This is a school project of mine and I am stuck on this one thing here.
    Further, where would I put the "foo.html" file so it can be written to?
    FileOuputStream fos = new FileOutputStream("foo.html");
    fos.write(bytes);
    fos.close();
    Thanks so much for your help. I look forward to your response, at your convenience.
    Regards

  • This device cannot start. (Code 10) Status Device Power Failure for Intel (R) Audio Display

    Hi I just bought HP Envy M7 Sleekbook last week and upgraded from 8.0 to 8.1 for Windows 8.
    Now I have no sound and this is the error message I get:
    This device cannot start. (Code 10) Status Device Power Failure  (for  Intel (R) Audio Display)
    under Sound, Vieo and Game Controllers in the Device Manager.
    Anyone else having this issue after upgrading? 
    Getting a new lappy is stressful enough but to alreay have issues is ridiculous
    If the upgrade is not the issue could something have happened in transit? (I have an issue with the way Best Buy packed it for shipment and wonder if it could have been compromised)
    Any help is appreciated. Or should Ibe taing this back to best buy and have them address it?
    Thanks
    Pam

    Ahmed, if your HP Envy has an Intel processor chances are it will be necessary to download new drivers for both sound and chipset due to compatibility issues with Windows 8.1. After 4-1/2 hours on the phone with various technical agents and a lot of frustration I finally got one who had the knowledge and training to resolve my issue. I believe he downloaded the new drivers from the HP support site. Good luck!!

  • Cannot display square root symbol in cvi

    I don't understand why this would be an issue, but if I'm writing in the source window (with the default font of NIEditor), I cannot display a square root symbol "√" - every time I type alt+251, I get "v". Ok, not a huge deal in the source window, but it is a big deal if THAT is what's being stored in a string variable I'm writing out to a file. Additionally, if I use the following to format a string:
    "Fmt(setpointUOM, "%s<W%cT/P3", 251);", then setpointUOM = "WüT/P3". If I display this variable in a string control, it displays as "W√T/P3", which is correct, but if I use it in a Text Box or save it to a sql database, it displays "WüT/P3" which is unacceptable.
    I've tried changing the fonts but nothing works or I get even stranger results. I've been dealing with/ignoring this since CVI7 and I'm currently at CVI10. Thanks for any help.
    Solved!
    Go to Solution.

    The difference in the display between W√T/P3 and WüT/P3 has to do with the character set that you select for the UI control. From what I can tell, only the OEM code pages map the √ symbol to character 251, so if you want to see √ for that character, you should pick the OEM character set, in that control.
    Entering √ with the keyboard in a CVI window seems like a much more problematic task. When you type Alt+251 on a CVI window, the keyboard driver is converting the 251 to 118 (the letter v). I don't know why it does that, but I noticed that the code that it converts 251 to varies, depending on your input language (which you can change in Control Panel>>Region and Language>>Change keyboards or other input methods). When english is selected in the language bar, it converts it to 118. With other languages, it converts it to other codes. I tried entering the unicode value for √ directly, which is Alt+221A (to enter unicode characters using the keypad, you have to follow the steps described here). But it didn't work. It still converted it to 118. I suspect the keyboard driver is doing this because it tries to map 221A to some symbol that is valid in the code page that corresponds to the input language, isn't able to, and picks what it thinks is the closest match.
    In lots of other applications (but not all) you can type Alt+251 or Alt+221A and it works just fine. This is because those applications accept unicode characters directly. Unfortunately, CVI isn't one of them. It uses code pages (a.k.a. character sets, or multibyte sequences) instead of unicode, and symbols don't have a universal meaning; they depend on the code page.
    Even if all this were not an impediment, you'd still run into the problem that in CVI 2010 you cannot change the font of the CVI source window to use an OEM character set. So, you'd still see it displayed as a v or a ü. In CVI 2012 you can change the change it, and so if you were using CVI 2012 you could conceivably use the clipboard to paste the √, but there is a bug in CVI that is preventing OEM characters from being pasted correctly (I realize the description says that it affects tree tooltips, but it's also generally affecting clipboard operations of some less commonly used character sets).
    So, to make a long story short, I think you should continue entering the code directly with the Fmt function, at least until this bug is fixed. And make sure that all UI controls that need to display this string are using the OEM character set.
    Luis

  • "This device cannot start. (Code 10)" 6th gen nano ?

    Hello!
    I recently purchased a used ipod nano 6th gen.  It was working great by itself but it won't connect to my laptop.  Here's the short story:
    Ipod worked fine out of the box.  Is not recognized by Windows7.  Installed and reinstalled the driver, no effect.  iPod does not charge from the laptop of from the power outlet.  I have itunes version 11.2.2.3 but the ipod has not been able to connect or be recognized by itunes yet.
    Here's the Long story w/ the details:
    1.  Before I connected it to anything with the cable, I was able to use all of the features and played the radio it worked fine.
    2.  It began to give the low battery warning.
    3.  I plugged it into my laptop with the usb cable for the first time.
    4.  Windows (7) gave the error window pop-up:  "USB Device not Recognized."
    5.  If I click on that error pop-up window the next window says "Windows has stopped this device because it has reported problems. (Code 43)"
    6.  If I open Device Manager, it shows one of the USB ports name is "Unknown Device".  If I leave the nano plugged into the USB, the device manger window appears to update every 10s or so and alternates between displaying the port name "Unknown Device"and not displaying the port named "Unknown Device".
    7.  If I click on device properties of the "Unknown Device" USB port from the Device manager screen, I see that the error also alternates between "Windows has stopped this device because it has reported problems. (Code 43)" and "Currently, this hardware device is not connected to the computer. (Code 45)"
    8.  When attached to the USB port the nano screen alternates between 3 displays, 1 - "low battery", 2 - the apple logo, 3 - the home menu, which is operational.  The battery meter symbol shows 0 power and does not indicate charging.
    9.  If I unplug the nano it does not turn on with the sleep/wake button, I think due to depleting the battery.
    10.  If I plug the nano into the wall charger, the screen alternates between the home menu which is operational and the apple logo.  The battery symbol shows 0 power and does not indicate charging.
    11.  I followed some troubleshooting steps, on the "Device Properties" window I see the following information:
    Driver Provider: Microsoft; Driver Date: 6/21/2006;  Driver Version: 6.1.7601.18328;
    12.  If I select "Driver Details" button, a window appears that says"No Driver files are required or have been loaded for this device"
    13.  I found trouble shooting steps on the apple website to install the driver, which I followed.  I navigated to the folder with the driver as recommended from the apple website and selected it. C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers  "usbaapl", then selected "Apple iPod USB Driver" from the list to install.
    14.  I get the error window titled "Update Driver Warning" which explains installing the driver is not recommended as Windows cannot verify it is compatible with my hardware, but I proceed with "yes".
    15.  Next window titled "Update Driver Software - Apple Modbile Device USB Driver" shows the error "Windows encountered a problem installing the driver software for your device; Windows found driver software for your device but encountered an error while attempting to install it; Apple iPod USB Driver; This device cannot start. (Code 10)" and it suggests to download a new driver.
    16.  Next, I uninstalled the driver and followed all of those steps and it indicated success, also chose delete driver software option.
    17.  If I plug in the nano at this point I get the indication windows is trying to install driver software, and then the same error occurs as when I first plugged it in "USB Device not Recognized." and I can go through all of the steps again.
    18.  The Driver details button gives the following info:
    Provider:  Apple, Inc.; File Version: 1,64,0,0; file names usbaapl.sys & usbaaplrc.dll; driver version 6.0.9999.65.
    19.  Now the device manager window alternates between showing and not showing the USB port named "Apple Mobile Device USB Driver".
    20.  If I look under Devices and Printers, it shows a generic icon with the title "Apple Mobile Device USB Driver" with a yellow exclamation mark and the status shows "Needs troubleshooting"!
    Can anyone help me I will give you any detail and info you want!
    thanks!
    steve

    Hi: You need to download and install this graphics driver... This package provides the AMD video drivers and control panel for the supported notebook models that are running a supported operating system. File name: sp57199.exe  

  • WinUsb "Device cannot start. (Code 10)"

    Heya,
    Well, usually i end up solving my bugs alone after a few hours working on it but it seems i cant get away with this one.
    Im trying to install winusb as a driver for an USB device i made, but right after the installation i get a message saying "This device cannot start. (Code 10)". When i check the device properties though (through device manager), WinUsb.sys is defined
    as the device driver.
    Beside, when i check the device with USB Device Viewer, i get this :
    [Port1]  :  My Product
              ---===>Device Information<===---String Descriptor for index 2 not available while device is in low power state.
    ConnectionStatus:                  
    Current Config Value: 0x00  -> Device Bus Speed: Full
    Device Address: 0x03
    Open Pipes: 0
    *!*ERROR:  No open pipes!
              ===>Device Descriptor<===
    bLength: 0x12
    bDescriptorType: 0x01
    bcdUSB: 0x0200
    bDeviceClass: 0x00  -> This is an Interface Class Defined Device
    bDeviceSubClass: 0x00
    bDeviceProtocol: 0x00
    bMaxPacketSize0: 0x40 = (64) Bytes
    idVendor: 0xFFFF = Vendor ID not listed with USB.org as of 02-15-2012
    idProduct: 0xFFFF
    bcdDevice: 0x0100
    iManufacturer: 0x01
    String Descriptor for index 1 not available while device is in low power state.
    iProduct: 0x02
    String Descriptor for index 2 not available while device is in low power state.
    iSerialNumber: 0x03String Descriptor for index 3 not available while device is in low power state.
    bNumConfigurations: 0x01
    Which is weird because windows actually CAN read string descriptors, since the name of the product and other strings are displayed correctly in device manager.
    Here is the .inf file i used for driver install. (Created from USB Application project template in WDK 8.1)
    ; USBApplication1.inf
    ; Installs WinUsb
    [Version]
    Signature = "$Windows NT$"
    Class = USBDevice
    ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6}
    Provider = %ManufacturerName%
    CatalogFile=USBApplication1.cat
    ; ========== Manufacturer/Models sections ===========
    [Manufacturer]
    %ManufacturerName% = Standard,NTAMD64
    [Standard.NTAMD64]
    %DeviceName% =USB_Install, USB\VID_FFFF&PID_FFFF
    ; ========== Class definition ===========
    [ClassInstall32]
    AddReg = ClassInstall_AddReg
    [ClassInstall_AddReg]
    HKR,,,,%ClassName%
    HKR,,NoInstallClass,,1
    HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20"
    HKR,,LowerLogoVersion,,5.2
    ; =================== Installation ===================
    [USB_Install]
    Include=winusb.inf
    Needs=WINUSB.NT
    [USB_Install.Services]
    Include=winusb.inf
    Needs = WINUSB.NT.Services
    ;AddService=WinUsb,0x00000002,WinUsb_ServiceInstall
    [USB_Install.Wdf]
    KmdfService=WINUSB, WinUsb_Install
    [WinUSB_Install]
    KmdfLibraryVersion=1.11
    [WinUsb_ServiceInstall]
    DisplayName = %WinUsb_SvcDesc%
    ServiceType = 1
    StartType = 3
    ErrorControl = 1
    ServiceBinary = %12%\WinUSB.sys
    [USB_Install.HW]
    AddReg=Dev_AddReg
    [Dev_AddReg]
    ; By default, USBDevice class uses iProduct descriptor to name the device in
    ; Device Manager on Windows 8 and higher.
    ; Uncomment for this device to use %DeviceName% on Windows 8 and higher:
    ;HKR,,FriendlyName,,%DeviceName%
    HKR,,DeviceInterfaceGUIDs,0x10000,"{6cdbce05-4bbf-4ab5-8e75-bcd65e13c088}"
    [USB_Install.CoInstallers]
    AddReg=CoInstallers_AddReg
    CopyFiles=CoInstallers_CopyFiles
    [CoInstallers_AddReg]
    HKR,,CoInstallers32,0x00010000,"WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller","WinUsbCoInstaller2.dll"
    [CoInstallers_CopyFiles]
    WinUsbCoInstaller2.dll
    WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll
    [DestinationDirs]
    CoInstallers_CopyFiles=11
    ; ================= Source Media Section =====================
    [SourceDisksNames]
    1 = %DiskName%
    [SourceDisksFiles]
    WinUsbCoInstaller2.dll=1
    WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1
    ; =================== Strings ===================
    [Strings]
    ManufacturerName="MySelf"
    ClassName="Universal Serial Bus devices"
    DiskName="USBApplication1 Installation Disk"
    WinUsb_SvcDesc="WinUSB Driver"
    DeviceName="USBApplication1 Device"
    REG_MULTI_SZ = 0x00010000
    Hope you guys can help me ! Thx

    Hello Doron, 
    thanks for your answer.
    did you change the hardware id in the inf to match your device?
    d -- This posting is provided "AS IS" with no warranties, and confers no rights.
    Yes i did, its a temporary ID, just for testing.
    also, how did you install the inf? If with devcon, make sure to use the update option, not install
    d -- This posting is provided "AS IS" with no warranties, and confers no rights.
    Yea, I installed it via the update option.
    Finally found out what was wrong. The bug was in the firmware program. I moved out to an other library, it works now !

  • IE + SVG = "Cannot display XML page" ?

    Dear friends,
       I am from Taiwan.  I have a question about SVG display on IE. 
       I have a very simply SVG file as the following code.  I installed Ferdora R12 with apache web server (192.168.0.8) inside my company.
    I installed Tomcat 6.0 on my PC(192.168.0.100, window 7 with IE8.0).  I put this SVG file on Fedora, and I can see the vector graphs through
    Chrome and Firefox, but not IE(already installed SVG viewer, with the error message as following).  I put this SVG file on my PC, I can see the vector graphs by IE, Chrome and Firefox through Tomcat or opening file directly. I even put this SVG file on the web server of my company, and vector graphs can be displayed well through all of IE, Chrome and Firefox.
      The problem seems only happen in the situation "Fedora R12 + IE".  Do you have any idea of this problem?  I really need your help.
      Thank you.
    ======= Code =============
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.//EN"
    "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
    <svg id="svg00" version="1.1" xmlns="http://www.w3.org/2000/svg" >
    <svg id="svg01" x="0" y="0" width="654.1" height="654.1" version="1.1" xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink">
        <a xlink:href="http://www.w3.org//Graphics//SVG//Overview.htm8">
            <rect x="10" y="10" width="100" height="30" rx="10" ry="10"
                  style="fill:lightgrey"/>
            <text x="30" y="30" font-size="12">Click here</text>
        </a>
        <a xlink:href="http://www.ibm.com//developerworks/">
            <circle cx="100" cy="100" r="50" style="fill:grey"/>
            <text x="80" y="100" font-size="12">Or here</text>
        </a>
        <a xlink:href="http://www.ibm.com/" target="new">
            <polygon
                  points="60 160,165 172,180 60,290 290,272 280,172 285,250 255"
                  style="fill:dimgrey"/>
            <text x="160" y="200" font-size="12">Or even here</text>
        </a>
    </svg>
    </svg>
    ==========================
    The error message is in Chinese, but I translate it as possible as I can.
    ====== Error message ==========
    Cannot display XML page
    Cannot use style table (or form) to view XML input. Please correct this problem and reload this page, or try again later.
    Unidentified error with processing resourse
    There is something wrong with 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'
    =============================

    Hi,
    The string is not correctly formed ( a quote and a concatenation ) :
    Your url :
    v_url:=nvl(v_rep_port,'http://'||v_rep_HOST ||':'||v_rep_port||')||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_rep_svr;
    The Correction :
    v_url:=nvl(v_rep_port,'http://'||v_rep_HOST ||':'||v_rep_port)||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_rep_svr;
    Hope it helps
    Mohamed Dadi

  • Cannot display Chinese Character in ver 10.1.3

    Hello,
    I would like to ask one more question, when i run my program, it contain two jsp pages,
    the first one is to ask the user to input some chinese character, then the second one is to display the input data in the second page. I found out that the second one cannot display the input chinese character, but other chinese character in the second one can be display.
    Some of my code in the second one are as follow:
    String firstName = request.getParameter("firstName");
    &#20013;&#25991; <%=firstName%>
    The result are displayed are displayed as follow:
    &#20013;&#25991; ?T???\!
    It seems to me that the text can display but the variable cannot display, does any one know the reason?
    One of the replies from the JDeveloper forum are as follow:
    I seem to recall there was a bug in the 10.1.3 OC4J with passing parameters on the URL in other languages. You might want to ask on the OC4J forum:
    OC4J
    Regards,
    Alan 20/11/2005

    chulongjiang,
    i solve the problem with your advice, thanks lot!
    Regards,
    Alan 24/11/2005

  • Chinese and Japanese font / character still cannot display in AIR 13.0 or 14.0.0.103, Android 4.4.2

    Hi there,
    Chinese and Japanese font / character still cannot display in AIR 13.0 or 14.0.0.103 , Android 4.4.2
    Korean font is OK.
    Any ideas??
    Thanks!
    Contra

    Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code or an application so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the URL so that others affected can add their comments and votes. I can also follow up once I get the bug number.

  • Cannot display the Crystal Report from BW..very Urgent

    Hello Friends,
    We are executing the Crystal report XI report from BW 3.50 but cannot displaying andgiving the error messgae as follows....
    <b>Service cannot be Reached</b>
    <b>What has happened?
    URL http://sapprodbw.company.com:8112/sap/bw/sap/bw/ce_url call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system I12 with error code 404 and for the reason Not found.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:sapprodbw_I12_12-v:0-s:404-r:Notfound
    HTTP 404 - Not found
    Your SAP Internet Communication Framework Team</b>
    I'm getting the above error could plz help me .. its very urgent task for us..
    Thanks in advance for your valuable time...
    Sreedhar G.

    Hi Dinesh,
    I started all the services and i checked the Test service of ICF its giving the same above  error and service cannot be rezched...BASIS is also workin on the same issue but getting ...
    Any help...
    Message was edited by: sreedhar Gunda

  • VS2010 Cannot Display Rreport/Viewer

    Environment is Win7 Pro 64bit.  Visual Studio 2010 used to develop a Windows application.  During initital stages of development I downloaded Beta 2 version of CR13 for VS2010.  Was able to display viewer with data, print reports, create PDF's, etc.  Additional data, reports previously created in CR 8.5 using an earlier version of an Access Database.  Database has been upgraded to Access 2007 and by creating new connection the older report formats worked just fine under the beta version.
    Recently downloaded CR13 and cannot display any reports I was previously able to produce.  Cannot create new reports.  In fact, cannot display any WinForm that references a crystal report viewer.  On the Microsoft forums several other folks seem to be having the same or similar problem.
    Was there a change to the CR viewer control between Beta 2 and CR13?  If not changed, does anyone have any suggestions why results are so radically different?  I've checked documentation referenced in an earlier response but possible resolutions going back to how things were done in VS 2003 don't seem to provide a solution, at least for me.
    Suggestions anyone?

    Don,
    Actually, my system has always been set to framework 4.0.  How I got around this problem was uninstalling CR13 (again) and re-installing.  After doing this I was able to see the CR Viewer.
    In another post you suggested that in addition to setting to framework 4.0 that the computer had to be set to either x86 or x64; that 'any computer' setting would not work.  Actually this suggestion resolved my problem.  X64 does not work but setting computer to x86 resolved the problem.
    Edited by: kdw_123 on Feb 17, 2011 8:57 PM
    Please let me know how to award you points for your answer.  Thanks.
    Edited by: kdw_123 on Feb 17, 2011 8:58 PM

  • I cannot display image (read from oracle BLOB field) on browser?

    I cannot display image (read from oracle BLOB field) on browser?
    Following is my code, someone can give me an advise?
    content.htm:
    <html>
    <h1>this is a test .</h1>
    <hr>
    <img  src="showcontent.jsp">
    </html>showcontent.jsp:
    <%@ page import="com.stsc.util.*" %>
    <%@ include file="/html/base.jsp" %>
    <% 
         STDataSet data = new STDataSet();
    //get blob field from database     
         String sql = "SELECT NR FROM ZWTAB WHERE BZH='liqf004' AND ZJH='001'";
         //get the result from database
         ResultSet rs = data.getResult(sql,dbBase);
         if (rs!=null && rs.next()) {
              Blob myBlob = rs.getBlob("NR");
              response.setContentType("image/jpeg");//
              byte[] ba = myBlob.getBytes(1, (int)myBlob.length());
              response.getOutputStream().write(ba);
              response.getOutputStream().flush();
         // close your result set, statement
         data.close();     
    %>

    Don't use jsp for that, use servlet. because the jsp engine will send a blank lines to outPutStream corresponding to <%@ ...> tags and other contents included in your /html/base.jsp file before sending the image. The result will not be treated as a valid image by the browser.
    To test this, type directly showcontent.jsp on your browser, and view it source.
    regards

  • Advance table Add another row button error  ---Error: Cannot Display Page

    hi, i m new to OAF.
    I m trying to add new row programatically to my advanced table, but getting the error
    Error: Cannot Display Page
    You cannot complete this task because one of the following events caused a loss of page data:
    Your login session has expired.
    A system failure has occurred.
    My page has two EOs with two differnt tables Table A(Accident details) and Table B(Victim Details).Table A is Parent of Table B.No relation is defined in my page for these two tables so far.Foreign key is not defined.
    On my page I have various field for entering data for Table A and its saving data properly
    For table B i have taken the Advanced table.When i click on Add row button of table i m getting the said error.
    My CO
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        OAApplicationModule am=(OAApplicationModule)pageContext.getApplicationModule(webBean);
         System.out.println("processFormRequest ");
         if(pageContext.getParameter("Save")!=null)
            am.invokeMethod("apply",null);
            System.out.println("Save ");
      if  ("addRows".equals(pageContext.getParameter("event")) && "AdvTblRN".equals(pageContext.getParameter("source")) )
      System.out.println("The source is :"+pageContext.getParameter("source"));
      String p_header_id = (String)pageContext.getTransactionValue("p_tx_header_id");
      Serializable[] param = {p_header_id};
      am.invokeMethod("createRow", param);
       am.invokeMethod("apply",null);
       System.out.println("Add Row ");
      pageContext.forwardImmediatelyToCurrentPage(null,false,"N");;
    And AM
    public void createRow( String p_header_id)
    Row prow;
    VictimDtlVOImpl pvo= getVictimDtlVO1();
    pvo.setMaxFetchSize(0);
    prow=pvo.createRow();
    pvo.insertRow(prow);
    prow.setNewRowState(Row.STATUS_INITIALIZED);
       OAViewObject vo1 = (OAViewObject)getVictimDtlVO1();
    OADBTransaction transaction1 = getOADBTransaction(); 
      System.out.println("---- "+transaction1.getSequenceValue("XXMIS_SAFETY_VICTIM_DTL_SEQ"));
      Row row1 = vo1.createRow();
       vo1.insertRow(row1);
      row1.setAttribute("VictimId",transaction1.getSequenceValue("XXMIS_SAFETY_VICTIM_DTL_SEQ")); 
      row1.setNewRowState(Row.STATUS_INITIALIZED);
    public void apply()
    try {
      getOADBTransaction().commit();
    System.out.println("Commit ");
    plz help .......
      catch (Exception e)
       e.printStackTrace();

    Hi Vaishali,
    Use below code for add line in Nested Table.
    if(pageContext.getParameter("addRows") != null){
            OAAdvancedTableBean sectionsTable = (OAAdvancedTableBean)webBean.findChildRecursive("AdvTblRN");
            OAInnerDataObjectEnumerator sectionsEnum = new OAInnerDataObjectEnumerator(pageContext, sectionsTable);
            while(sectionsEnum.hasMoreElements()){
                RowSet sectionsRowSet = (RowSet) sectionsEnum.nextElement();
                for(int i = 0; i < 1; i++){
                    OARow newRow = (OARow) sectionsRowSet.createRow();
                    sectionsRowSet.insertRowAtRangeIndex(sectionsRowSet.getRowCount(), newRow);
    Thanks,
    Dilip

  • 10G: design view cannot display a UIX update page

    I get the following error message when I try to display a page in both Design View and Preview View:
    Required page property "key" missing. Cannot display page.
    This is the same error message I get if I run the system and try to access the page directly and bypass the view page where the user selects a row of data for update.
    Does this mean that any update page such as this one cannot use the visual editor?
    Steve

    Thanks.
    It looks like the design editor runs the code. I noticed that it even fills in the fields with data from the database.
    Since it does that, it would need a key on the update pages to know what record to display.
    Steve

  • How can I use AppleScript Studio to display an image

    How can I use AppleScript Studio to display an image in a dialog?

    Add an image well to your window in Interface Builder.
    You can also add an image file to the Resources group of your Xcode project and then set the image to be displayed inside the image well directly in Interface Builder. No AppleScript code is needed if the image is contained within your app bundle and can be set ahead of time like this.
    If the image is contained in your app's bundle but you need to set or change the image at run time then you can use a line of AppleScript to load it into the image well using just it's filename:
    set image of image view "yourImageView" of window "yourWindow" to load image "YourImageFile.jpg"
    If you need to load an image from an arbitrary location outside your app's bundle then use a path to the image file...
    set image of image view "yourImageView" of window "yourWindow" to load image "/path/to/YourImageFile.jpg"
    Steve

Maybe you are looking for