Issue with getting handle to the swf object in a jsp

Hi,
I have a jsp file which has the <object> tag to include the Flex swf file on the jsp. I have certain functions exposed to javascript (using ExternalInterface.callback) that can be used in the jsp. But when I try to get the handle to the swf object using document[swfId] or window.document[swfId] or document.getElementById(swfId) ..it returns back NULL..
This works on some browers and doesn't work on some. I even tried to reinstall my browser but in vain.
Any someone provide me with some pointers on this ?

Hi, Thanks for getting back with me.  I know exactly what you mean about  the "www" or "public" section of a server as I've seen that on other servers that I've worked on with DW.
However, this is different and it doesn't appear to have one.  I've taken a screen shot below of what the server looks like.  I did it with FTP as I'm on another computer that does not have DW.  As you'll see there are actually 2 sites I need to get connected to to change the web pages with DW - "beta.----.gov" and "www.----.gov." That's pretty much how it is.  The beta one is what they want me to do is make the edits on a page in the beta site first and then show them.  Upon approval, I will then go into the live site (www) and duplicate what I did to make the changes live. So again, your screen shots seem to help (I won't know until tomorrow when I'm on the other computer in another building that has Dreamweaver on it to try to use your DW settings) but does this make sense?  Any other ideas that could be useful to get me up and running? Thanks.

Similar Messages

  • Issue with getting the entire spooled job into the pdf document

    Hi All,
    My scheduled job runs fine and completes successfully but it appears to have some issues with getting the entire spooled job into the pdf document which it sends to a an end user.Has anyone encountered it before.Your kind assistance would be appreciated.
    Thank you.
    Regards,
    John

    Hi,
    Please read below link for your query:-
    http://help.sap.com/saphelp_nw04/helpdata/EN/85/54c73cee4fb55be10000000a114084/content.htm
    Regards,
    Anil

  • I have been having a issue with getting the colors on my monitor to match the colors fro my print lab. I now have the monitor calibrated to match the prints but when I open elements it doesn't use the same colors. If i have it use the calibrated profile b

    I have been having a issue with getting the colors on my monitor to match the colors fro my print lab. I now have the monitor calibrated to match the prints but when I open elements it doesn't use the same colors. If i have it use the calibrated profile by changing the color management settings, the color picker no longer shows true white or black. How do I get elements 12 to honor the new calibrated settings?

    Ok so I've done what you said and this is what it's come back ....
    I don't know that these are the errors , but they're the things which don't look right ...
    Throughout the shut down there is a recurring line ;
    It says ;
    Com.apple.launchd 1 0x100600e70.anonymous.unmount 301 PID still valid
    Then there are 2 more which I think are related ;
    Com.apple.securityd 29 PID job has I overstayed its welcome , forcing removal.
    Then the same with fseventd 48 and diskarbitrationd 13
    Oh and on Launchd1 : System : stray anonymous job at shut down : PID 301 PPID13 PGID 13 unmount...
    Then the last process says "about to call: reboot (RB_AUTOBOOT).
    Continuing...
    And stops ...
    Hope this means something to you ... Thanks again for your help so far :-)

  • Issues with getting the slide button to work after upgrade to iOS 7.02 and 7.03

    Ever since upgrading to iOS 7.02 and 7.03 having issues with getting the slide button to work to open up iPad 2.  Happened last week and was able to restore it to new and get it to work again and it worked great until one week later (this morning) doing the same thing.  Have tried restoring iPad to new 3 times (via itunes) and still unable to get the slide button to move so can use the iPad.  IPad able to charge, able to restore, able to sync with itunes even able to recover but not able to get past first screen where you have to slide to access iPad.  Any help would be greatly appeciated.  Live about 300 miles from nearest Apple store.

    I am beginning to wonder whether there isn't some weird problem with that Home button.
    Try this: Settings > General > Accessibility > AssistiveTouch = On
    This will place a button on the iPad's screen.
    You can move this button anywhere on the screen.
    This button gives you - amongst many other things - a soft Home button.
    To turn your iPad on, you can use the Sleep/wake button or move a small magnet across the bezel of the iPad where the volume controls are.
    If you use the magnet, then: Settings > General > Lock / Unlock = On
    Now should not need to press the Home button anymore.
    If this method allows you to use your iPad without a hitch, then suspect hardware problems with the Home button.

  • Hi am having issues with getting the list of users from the Active Director

    Hi am having issues with getting the list of users from the Active Directory, can anyone help me with this!

    Hi Jason,
    Try this:
    1.  In Ultiboard select Tools>>Netlist Editor>>Pins, press the Delete button
    2.  Select all nets in the Select the Net to Delete dialog and then press the Delete button.  This will clear all nets in the layout, don't worry all traces, parts are still on the design.
    3.  Go to Multisim and select Transfer>>Forward annotate to Ultiboard.    This will add all nets that you removed back and it should fix the pin problem
    Tien P.
    National Instruments

  • Trouble getting the swf object to work

    the html housing my flash site, has the internet explorer
    bug, the active content thing. I'd like to get rid of it.
    The code i was using to embed my flash movie was this..
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="100%" height="1400px" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="shell2.swf" /><param
    name="quality" value="high" /><param name="scale"
    value="exactfit" /><param name="bgcolor" value="#ffffff"
    /><embed src="shell2.swf" quality="high" scale="exactfit"
    bgcolor="#ffffff" width="100%" height="100%" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>
    I don't know how to keep my parameters from here, while using
    the swf object embed code. Can someone help me to do this? Why is
    this not working?
    Thanks.

    i know that's not the swf object. But I tried to use that
    little tutorial and it isn't like one size fits all. The previous
    code i used had a bunch of parameters that are not present in this
    swf object thing.
    Any advice would be great.

  • Issue: Not getting response when the document is having special chars

    Please help following issue: Not getting response when the document is having special chars(Use any doc with special char(ex: &, $, <, >,.....) TestErrorFour.doc
    Error message:
    System.FormatException: Invalid length for a Base-64 char array. at
    System.Convert.FromBase64String(String s) at
    Summarize.Summarizer.AccumulateBroadcast(String filedata, String givenWords) in
    c:\DocumentSummarizer\App_Code\Summarizer.cs:line 66
    Code:
    File 1:
    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.Properties;
    import org.apache.poi.poifs.filesystem.POIFSFileSystem;
    import org.apache.poi.hwpf.*;
    import org.apache.poi.hwpf.extractor.*;
    import com.lowagie.text.Document;
    import com.lowagie.text.pdf.PRTokeniser;
    import com.lowagie.text.pdf.PdfReader;
    public class DocumentSummarizerClient {
         static Properties loadProperties() {
              Properties prop = new Properties();
              try {
                   prop.load(DocumentSummarizerClient.class.getClassLoader().getResourceAsStream("vep.properties"));
              } catch (Exception ioe) {
                   ioe.printStackTrace();
              return prop;
         public String getSummary(String fileName,String noOfWordsOrPercentage ){
              String summaryInputData ="";
              String summarizedData="";
              String summarizerURL = loadProperties().getProperty("Summarizer.serviceURL");
              try {
                   String fileExtension=fileName.substring(fileName.lastIndexOf(".")+1, fileName.length());
                   if (fileExtension.equalsIgnoreCase("doc")|| fileExtension.equalsIgnoreCase("txt")|| fileExtension.equalsIgnoreCase("pdf")) {
                                  if (fileExtension.equalsIgnoreCase("txt")) {
                                       BufferedReader bufferedReader = new BufferedReader(
                                                 new FileReader(fileName));
                                       String line = null;
                                       while ((line = bufferedReader.readLine()) != null) {
                                            summaryInputData += line;
                                  if(fileExtension.equalsIgnoreCase("doc")){
                                       POIFSFileSystem fs = null;
                                        fs = new POIFSFileSystem(new FileInputStream(fileName));
                                         HWPFDocument doc = new HWPFDocument(fs);
                                         WordExtractor we = new WordExtractor(doc);
                                         String[] paragraphs = we.getParagraphText();
                                         for( int i=0; i<paragraphs .length; i++ ) {
                                            paragraphs[i] = paragraphs.replaceAll("\\cM?\r?\n","");
                                  summaryInputData+= paragraphs[i];
                                  if(fileExtension.equalsIgnoreCase("pdf")){
                                       Document document = new Document();
                   document.open();
                   PdfReader reader = new PdfReader(fileName);
                   int pageCount =reader.getNumberOfPages();
                        for(int i=1;i<=pageCount;i++){
                                  byte[] bytes = reader.getPageContent(i);
                                  PRTokeniser tokenizer = new PRTokeniser(bytes);
                                  StringBuffer buffer = new StringBuffer();
                                  while (tokenizer.nextToken()) {
                                  if (tokenizer.getTokenType() == PRTokeniser.TK_STRING) {
                                  buffer.append(tokenizer.getStringValue());
                                  summaryInputData += buffer.toString();
                   else{
                        System.out.println("This is Invalid document. Presntly we support only text,word and PDF documents ");
                   // String encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
                        String encoded=Base64Utils.base64Encode(summaryInputData.getBytes());
                   // encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
                        String parameters= "base64String="+encoded+"&noOfWordsOrPercentage="+noOfWordsOrPercentage;
                        summarizedData= postRequest(parameters,summarizerURL);
                        String slength= "<string xmlns=\"http://tempuri.org/\">";
                        if(summarizedData.contains("</string>")){
                        summarizedData= summarizedData.substring(summarizedData.indexOf(slength)+slength.length(),summarizedData.indexOf("</string>"));
                        summarizedData = replaceVal(summarizedData);
                        //System.out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?><![CDATA["+summarizedData+"]]>");
                        // System.out.println("Summarized data "+summarizedData);
                        if(summarizedData.contains("Please enter the percentage")){
                             summarizedData="Data given cannot be summarized further";
                   else{
                        System.out.println("Data given cannot be summarized further");
                        summarizedData="";
              } catch (FileNotFoundException e) {
                   return("The File is not found \n\n"+e.toString());
              } catch (IOException e) {
                   return("The File is already in use \n\n"+e.toString());
              } catch (Exception e) {
                   return(e.toString());
              return summarizedData;
         public static String postRequest(String parameters,String webServiceURL) throws Exception{
              Properties systemSettings = System.getProperties();
              systemSettings.put("http.proxyHost", loadProperties().getProperty("proxyHost"));
         systemSettings.put("http.proxyPort", loadProperties().getProperty("proxyPort"));
         System.setProperties(systemSettings);
              String responseXML = "";
              try {
                   URL url = new URL(webServiceURL);
                   URLConnection connection = url.openConnection();
                   HttpURLConnection httpConn = (HttpURLConnection) connection;
                   byte[] requestXML = parameters.getBytes();
                   httpConn.setRequestProperty("Content-Length", String
                             .valueOf(requestXML.length));
                   httpConn.setRequestProperty("Content-Type",
                             "application/x-www-form-urlencoded");
                   httpConn.setRequestMethod("POST");
                   httpConn.setDoOutput(true);
                   httpConn.setDoInput(true);
                   OutputStream out = httpConn.getOutputStream();
                   out.write(requestXML, 0, requestXML.length);
                   out.close();
                   InputStreamReader isr = new InputStreamReader(httpConn
                             .getInputStream());
                   BufferedReader br = new BufferedReader(isr);
                   String temp;
                   String tempResponse = "";
                   while ((temp = br.readLine()) != null)
                        tempResponse = tempResponse + temp;
                   responseXML = tempResponse;
                   br.close();
                   isr.close();
              } catch (java.net.MalformedURLException e) {
                   System.out
                             .println("Error in postRequest(): Secure Service Required");
              } catch (Exception e) {
                   System.out.println("Error in postRequest(): " + e.getMessage());
              return responseXML;
         public String replaceVal(String value) {
                   if (value == null) {
                        value = "";
                   value = value.replace("&lt;", "<");
                   value = value.replace("&gt;", ">");
                   value = value.replace("&amp;", "&");
                   return value;
              public static void main(String[] args) {  
                   DocumentSummarizerClient testdoc=new DocumentSummarizerClient();
                   System.out.println("hello");               
                   testdoc.getSummary("C:\\working_folder\\vep\\UnitTestCases\\VEP1.0\\DocumentSummarizerTestData\\TestErrorFour.doc","100%");     
    Note: Use any doc with special char(ex: &, $, <, >,.....) TestErrorFour.doc
    File 2:
    ---------public class Base64Utils {
    private static byte[] mBase64EncMap, mBase64DecMap;
    * Class initializer. Initializes the Base64 alphabet (specified in RFC-2045).
    static {
    byte[] base64Map = {
    (byte)'A', (byte)'B', (byte)'C', (byte)'D', (byte)'E', (byte)'F',
    (byte)'G', (byte)'H', (byte)'I', (byte)'J', (byte)'K', (byte)'L',
    (byte)'M', (byte)'N', (byte)'O', (byte)'P', (byte)'Q', (byte)'R',
    (byte)'S', (byte)'T', (byte)'U', (byte)'V', (byte)'W', (byte)'X',
    (byte)'Y', (byte)'Z',
    (byte)'a', (byte)'b', (byte)'c', (byte)'d', (byte)'e', (byte)'f',
    (byte)'g', (byte)'h', (byte)'i', (byte)'j', (byte)'k', (byte)'l',
    (byte)'m', (byte)'n', (byte)'o', (byte)'p', (byte)'q', (byte)'r',
    (byte)'s', (byte)'t', (byte)'u', (byte)'v', (byte)'w', (byte)'x',
    (byte)'y', (byte)'z',
    (byte)'0', (byte)'1', (byte)'2', (byte)'3', (byte)'4', (byte)'5',
    (byte)'6', (byte)'7', (byte)'8', (byte)'9', (byte)'+', (byte)'/'};
    mBase64EncMap = base64Map;
    mBase64DecMap = new byte[128];
    for (int i=0; i<mBase64EncMap.length; i++)
    mBase64DecMap[mBase64EncMap[i]] = (byte) i;
    * This class isn't meant to be instantiated.
    private Base64Utils() {
    * Encodes the given byte[] using the Base64-encoding,
    * as specified in RFC-2045 (Section 6.8).
    * @param aData the data to be encoded
    * @return the Base64-encoded <var>aData</var>
    * @exception IllegalArgumentException if NULL or empty array is passed
    public static String base64Encode(byte[] aData) {
    if ((aData == null) || (aData.length == 0))
    throw new IllegalArgumentException("Can not encode NULL or empty byte array.");
    byte encodedBuf[] = new byte[((aData.length+2)/3)*4];
    // 3-byte to 4-byte conversion
    int srcIndex, destIndex;
    for (srcIndex=0, destIndex=0; srcIndex < aData.length-2; srcIndex += 3) {
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex] >>> 2) & 077];
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+1] >>> 4) & 017 |
    (aData[srcIndex] << 4) & 077];
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+2] >>> 6) & 003 |
    (aData[srcIndex+1] << 2) & 077];
    encodedBuf[destIndex++] = mBase64EncMap[aData[srcIndex+2] & 077];
    // Convert the last 1 or 2 bytes
    if (srcIndex < aData.length) {
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex] >>> 2) & 077];
    if (srcIndex < aData.length-1) {
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+1] >>> 4) & 017 |
    (aData[srcIndex] << 4) & 077];
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+1] << 2) & 077];
    else {
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex] << 4) & 077];
    // Add padding to the end of encoded data
    while (destIndex < encodedBuf.length) {
    encodedBuf[destIndex] = (byte) '=';
    destIndex++;
    String result = new String(encodedBuf);
    return result;
    * Decodes the given Base64-encoded data,
    * as specified in RFC-2045 (Section 6.8).
    * @param aData the Base64-encoded aData.
    * @return the decoded <var>aData</var>.
    * @exception IllegalArgumentException if NULL or empty data is passed
    public static byte[] base64Decode(String aData) {
    if ((aData == null) || (aData.length() == 0))
    throw new IllegalArgumentException("Can not decode NULL or empty string.");
    byte[] data = aData.getBytes();
    // Skip padding from the end of encoded data
    int tail = data.length;
    while (data[tail-1] == '=')
    tail--;
    byte decodedBuf[] = new byte[tail - data.length/4];
    // ASCII-printable to 0-63 conversion
    for (int i = 0; i < data.length; i++)
    data[i] = mBase64DecMap[data[i]];
    // 4-byte to 3-byte conversion
    int srcIndex, destIndex;
    for (srcIndex = 0, destIndex=0; destIndex < decodedBuf.length-2;
    srcIndex += 4, destIndex += 3) {
    decodedBuf[destIndex] = (byte) ( ((data[srcIndex] << 2) & 255) |
    ((data[srcIndex+1] >>> 4) & 003) );
    decodedBuf[destIndex+1] = (byte) ( ((data[srcIndex+1] << 4) & 255) |
    ((data[srcIndex+2] >>> 2) & 017) );
    decodedBuf[destIndex+2] = (byte) ( ((data[srcIndex+2] << 6) & 255) |
    (data[srcIndex+3] & 077) );
    // Handle last 1 or 2 bytes
    if (destIndex < decodedBuf.length)
    decodedBuf[destIndex] = (byte) ( ((data[srcIndex] << 2) & 255) |
    ((data[srcIndex+1] >>> 4) & 003) );
    if (++destIndex < decodedBuf.length)
    decodedBuf[destIndex] = (byte) ( ((data[srcIndex+1] << 4) & 255) |
    ((data[srcIndex+2] >>> 2) & 017) );
    return decodedBuf;
    issue 2: Exception when passing 2MB .txt file
    Steps to reproduce:
    Call getSummary() with 2MB .txt file
    Actual:
    The following exception has occured:
    1. Error in postRequest(): Unexpected end of file from server
    java.lang.NullPointerException
    Please provide your precious feedback/suggestions.
    Thanks in advance…..
    Edited by: EJP on 15/03/2011 16:52: added code tags. Please use them. Code is unreadable otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thanks for your response….
    This is enhancement project and some one develops long back.
    Regarding point (b) You should be using the java.net.URLEncoder to encode URL parameters, not a base64 encoder.
    DocumentSummarizerClient.java I am using base64
    Ex:
    // String encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
                        String encoded=Base64Utils.base64Encode(summaryInputData.getBytes());
                   // encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
                        String parameters= "base64String="+encoded+"&noOfWordsOrPercentage="+noOfWordsOrPercentage;
                        summarizedData= postRequest(parameters,summarizerURL);
                        String slength= "<string xmlns=\"http://tempuri.org/\">";
                        if(summarizedData.contains("</string>")){
                        summarizedData= summarizedData.substring(summarizedData.indexOf(slength)+slength.length(),summarizedData.indexOf("</string>"));
                        summarizedData = replaceVal(summarizedData);
                        //System.out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?><![CDATA["+summarizedData+"]]>");
                        System.out.println("Summarized data "+summarizedData);
                        if(summarizedData.contains("Please enter the percentage")){
                             summarizedData="Data given cannot be summarized further";
    Above specific please I need to modify to resolve above issue.
    Could you please suggest me what changes I need to do.
    Waiting for positive response.

  • IExpense - Could not get handle to the Attachments VO

    Friends, I am stuck, so thought to get your help.
    On iExpense Final Review Page "FinalReviewPG" Submitt button, We have a requirement to throw the exception to user if he/she does not attach the Receipts Attachments with some specific Attachment Categories. In order to acheive this I need to get Handle to the Attachments VO but I could not as It throws the Java Exception error upon getting handle to the Attachments VO even though i added few atatchments and they showup on screen. Below is the portion of the problematic code and after that the full code. Thanks for your help.
    //below is the problmeatic code
    OAApplicationModule RootAM = oapagecontext.getRootApplicationModule();
    //OAApplicationModule AttachAM = (OAApplicationModule)RootAM.findApplicationModule("OAAttachmentsAM");//doesnt work
    //OAApplicationModule AttachAM = (OAApplicationModule)RootAM.findApplicationModule("oracle_apps_fnd_server_OAAttachmentsAM");//get the AM handle but null VOs
    OAAttachmentsAMImpl AttachAM = (OAAttachmentsAMImpl)RootAM.findApplicationModule("oracle_apps_fnd_server_OAAttachmentsAM");//throws me java null pointer exception
    FndAttachedDocumentsDomExtensionVORowImpl AttachRow =
    (FndAttachedDocumentsDomExtensionVORowImpl)AttachAM.getFndAttachedDocumentsDomExtensionVO().getCurrentRow();
    String strCategory = AttachRow.getAttachmentCategoryName();
    oapagecontext.writeDiagnostics("tc.oracle.apps.ap.oie.webui.TCFinalReviewPageCO",
    "IM90978: 14-Feb-2013 14:32 strCategory = "+ strCategory, 2);
    //below is my full code
    package tc.oracle.apps.ap.oie.entry.summary.webui;
    import oracle.apps.ap.oie.entry.summary.webui.FinalReviewPageCO;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageAttachmentLinkBean;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.ap.oie.server.WebExpensesAMImpl;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageAttachmentLinkBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageInlineAttachmentBean;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.ap.oie.server.ExpenseReportHeadersVORowImpl;
    import oracle.apps.ap.oie.server.WebExpensesAMImpl;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.webui.beans.layout.OAAttachmentTableBean;
    import oracle.apps.fnd.server.FndAttachedDocumentsDomExtensionVORowImpl;
    import oracle.apps.fnd.server.FndAttachedDocumentsVORowImpl;
    import oracle.apps.fnd.server.*;
    import oracle.apps.fnd.server.OAAttachmentsService;
    import oracle.apps.fnd.server.OAAttachmentsAMImpl;
    import oracle.apps.fnd.framework.*;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.OARow;
    public class TCFinalReviewPageCO extends FinalReviewPageCO
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    public void processFormData(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processFormData(oapagecontext, oawebbean);
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    String s = oapagecontext.getParameter("OIESubmit");
    if (s != null)
    OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean)oawebbean.findChildRecursive("ReceiptRequired");
    String strReceiptRequired = oamessagestyledtextbean.getText(oapagecontext);
    WebExpensesAMImpl am =
    (WebExpensesAMImpl)oapagecontext.getRootApplicationModule();
    ExpenseReportHeadersVORowImpl row =
    (ExpenseReportHeadersVORowImpl)am.getExpenseReportHeadersVO().getCurrentRow();
    String isPaperLessClaim = row.getAttribute5();
    OAApplicationModule RootAM = oapagecontext.getRootApplicationModule();
    //OAApplicationModule AttachAM = (OAApplicationModule)RootAM.findApplicationModule("OAAttachmentsAM");//doesnt work
    //OAApplicationModule AttachAM = (OAApplicationModule)RootAM.findApplicationModule("oracle_apps_fnd_server_OAAttachmentsAM");//get the AM handle but null VOs
    OAAttachmentsAMImpl AttachAM = (OAAttachmentsAMImpl)RootAM.findApplicationModule("oracle_apps_fnd_server_OAAttachmentsAM"); // I get error right here :(
    FndAttachedDocumentsDomExtensionVORowImpl AttachRow =
    (FndAttachedDocumentsDomExtensionVORowImpl)AttachAM.getFndAttachedDocumentsDomExtensionVO().getCurrentRow();
    String strCategory = AttachRow.getAttachmentCategoryName();
    oapagecontext.writeDiagnostics("tc.oracle.apps.ap.oie.webui.TCFinalReviewPageCO",
    "IM90978: 14-Feb-2013 14:32 strCategory = "+ strCategory, 2);
    if ("Required".equals(strReceiptRequired) && "Y".equals(isPaperLessClaim))
    // Receipt is required, check for required attachment
    oapagecontext.writeDiagnostics("tc.oracle.apps.ap.oie.webui.TCFinalReviewPageCO",
    "IM90978: 14-Feb-2013 14:32 both conditions met = ", 2);
    OAMessageAttachmentLinkBean oamessageattachmentlinkbean = (OAMessageAttachmentLinkBean)oawebbean.findChildRecursive("ReviewGenInfoHeaderAttachments");
    String strAttachment = (String)oamessageattachmentlinkbean.getAttributeValue(oapagecontext.getRenderingContext(), TEXT_ATTR);
    if("None".equals(strAttachment.trim()))
    oapagecontext.writeDiagnostics("tc.oracle.apps.ap.oie.webui.TCFinalReviewPageCO",
    "IM90978: 14-Feb-2013 14:32 before exception = ", 2);
    throw new OAException("XXTFA", "XXTFA_ATTACH_RECEIPT");
    else
    super.processFormRequest(oapagecontext, oawebbean);
    else
    super.processFormRequest(oapagecontext, oawebbean);
    else
    super.processFormRequest(oapagecontext, oawebbean);
    }

    Hi,
    Check and see the below code works or not, see which option suits for you,
    1) Check any attachment is there or not
    ======================================
    public boolean checkAttachment(OAPageContext oapagecontext,OAWebBean oawebbean)
    OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
    String amName = "";
    String objectivesAMName = "OAAttachmentsAM";
    String objectiveVOName = "FndAttachedDocumentsDomExtensionVO";
    String nestedAMArray[] = am.getApplicationModuleNames();
    oapagecontext.writeDiagnostics(this,"Root AM=>"+am.getName() + " Child AMs=>"+ nestedAMArray.length,1);
    OAApplicationModule currentAM = null;
    OAViewObject vo = null;
    boolean isAttachmentFound = false;
    currentAM = am;
    for(int i = 0; i < nestedAMArray.length; i++)
    amName = nestedAMArray;
    oapagecontext.writeDiagnostics(this,"Nested AM Name=>"+amName + "and amName.indexOf(objectivesAMName) "+amName.indexOf(objectivesAMName),1);
    currentAM = (OAApplicationModule)am.findApplicationModule(amName);
    //Get the view names
    oapagecontext.writeDiagnostics(this,"Nested AM Value "+currentAM.getName(),1);
    if(!(amName.indexOf(objectivesAMName)==-1))
    String[] viewNames = currentAM.getViewObjectNames();
    for (int j =0 ;j<viewNames.length ;j++ )
    if(viewNames[j].indexOf(objectiveVOName) > 0){
    vo = (OAViewObject)currentAM.findViewObject(viewNames[j]);
    if(vo!=null && vo.getFetchedRowCount() > 0){
    oapagecontext.writeDiagnostics(this,"View object name "+viewNames[j]+" Row Count"+vo.getFetchedRowCount(),1);
    isAttachmentFound = true;
    break;
    oapagecontext.writeDiagnostics(this,"Found Handle to My Nested AM " + amName ,1);
    return isAttachmentFound;
    2) Check the attachment count when the auto commit is false:
    public boolean checkAttachment(OAPageContext oapagecontext,OAWebBean oawebbean){
    OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
    String amName = "";
    String objectivesAMName = "OAAttachmentsAM";
    String objectiveVOName = "FndAttachedDocumentsDomExtensionVO";
    String nestedAMArray[] = am.getApplicationModuleNames();
    oapagecontext.writeDiagnostics(this,"Root AM=>"+am.getName() + " Child AMs=>"+ nestedAMArray.length,1);
    OAApplicationModule currentAM = null;
    OAViewObject vo = null;
    boolean isAttachmentFound = false;
    currentAM = am;
    for(int i = 0; i < nestedAMArray.length; i++)
    amName = nestedAMArray[i];
    oapagecontext.writeDiagnostics(this,"Nested AM Name=>"+amName + "and amName.indexOf(objectivesAMName) "+amName.indexOf(objectivesAMName),1);
    currentAM = (OAApplicationModule)am.findApplicationModule(amName);
    //Get the view names
    oapagecontext.writeDiagnostics(this,"Nested AM Value "+currentAM.getName(),1);
    if(!(amName.indexOf(objectivesAMName)==-1))
    String[] viewNames = currentAM.getViewObjectNames();
    for (int j =0 ;j<viewNames.length ;j++ )
    if(viewNames[j].indexOf(objectiveVOName) > 0){
    vo = (OAViewObject)currentAM.findViewObject(viewNames[j]);
    if(vo!=null && vo.getFetchedRowCount() > 0){
    oapagecontext.writeDiagnostics(this,"View object name "+viewNames[j]+" Row ount"+vo.getFetchedRowCount(),1);
    isAttachmentFound = true;
    break;
    oapagecontext.writeDiagnostics(this,"Found Handle to My Nested AM " + amName ,1);
    return isAttachmentFound;
    With regards,
    Kali.
    OSSi.

  • I am having a issue with getting data useage alerts for my iphone 4s

    I am having a issue with getting data useage alerts for my iphone 4s from AT&T.  I do not download anything huge at all.
    I looked into it and figured out that the phone dials out nightly at 12:29am every night.   I went into my settings and went to general..about..diagnostics and useage..then diagnostics and useage data to see this.  I then clicked don't send...but I am still getting useage alerts.  Can anyone help me please...
    Thanks

    Honestly, from reading the thread linked, they all come off as a bunch of whiney people that cannot be bothered to help themselves.
    Little to nothing in that thread indicates an issue beyond inept consumers.  Yes, I read several pages on the incessant gripes.  Very few made any actual attempts to troubleshoot issues before whining about the "Apple issue" and those that did actual troubleshooting got their issues resolved.
    So no, Apple has nothing to fix beyond a few specific devices that are experiencing hardware issues.
    If you have actually put forth effort and done the basic troubleshooting, take the device to Apple for evaluation and possible replacement.  Whining will get nothing accomplished.

  • I am having issues with being kicked off the internet intermittently. ATT says its not an issue with their service. Does anyone have an idea?

    I am having issues with being kicked off the internet intermittently. ATT states its not an issue with their service. Any ideas?

    Yes it is NOT your internet service. It is Apples OSX. It seems to be happening to older computers trying to run the newer OSX ( Mavericks and newer). I have a 2009 iMac I bought with Leopard installed, I upgraded to Snow leopard 10.6.8 and my computer was running flawlessly. I upgraded to Mountain Lion and I noticed my computer running slower... kind of annoying having to wait longer for everything (start up, browsers opening up, apps opening up, mail opening up and so on) Mavericks came out for free and I was excited to get out of this issue. Well, everything went from bad to terrible! Fast user switching had a glitch with desktop picture resetting to the wave, mail rules didn't work properly and I kept getting kicked off the internet (Absolutely NOTHING wrong with my internet). No one could figure out what was going on or how to fix it, even senior Apple tech's! After 3-4 months of searching, troubleshooting and waiting for a fix, I looked at my Mac Pro running Tiger 10.4.11 with no issues what so ever... that is when I made an executive decision. GO BACK TO SNOW LEOPARD! Since May 2014 I have been running 10.6.8 on my 2009 iMac and it has been smoking fast with NO issues what so ever, especially since I maxed out my memory for Mavericks. So to sum it up: some people might get lucky with old machines running new operating systems, but for the most part, it seems older processors can't keep up with the new sophisticated operating systems. Mavericks... Yosemite... FREE UPGRADE! But you will pay the price

  • Anyone had or having issues with getting nVidia NVS 450 resolution to work?

    Hi all,
    We got a new C20 with a nvidia NVS 450 card--and a ThinkVision monitor. The C20 had Windows 7 preinstalled; the out-of-the-box resolution was 640x480 and we couldn't get it to go higher than that! The ThinkVision and the video card are connected using the DisplayPort cable that came with the unit. After reinstalling the video card driver that came with the unit (on a CD that contains drivers for Windows and Linux), we could never get the resolution to go beyond 640x480. We gave up thinking it must be some quirk with Windows 7. We were going to install Linux on the C20 anyway, so we moved on doing that.
    We installed Fedora 14 (64-bit) installed the nvidia video driver that was on the CD and can't get the display resolution greater than 640x480. After a few days of trial-n-error referencing various online forums, we managed to get the resolution up to 800x600, but not the expected 1900-something resolution the ThinkVision and the video card supports.
    Has anyone had issues with getting the video card resolution to work? If so, were you able to resolve the problem? We thought we'd toss this here instead of calling up Lenovo support first because usually with technical issues, we get more intelligent replies than over-the-phone. Also, waiting for replies on a forum is less frustrating than being put on hold over the phone.
    Chris
    Solved!
    Go to Solution.

    Thank you for your reply.
    I was lucky to get a hold of another monitor and when I connected that, I got the full resolution. After much testing, I determined that it was a faulty monitor and it had nothing to do with the video card. I eventually got a replacement monitor for the one that wasn't giving me the full resolution.
    Afterwards, I went ahead and got the latest nvidia drivers from their Web site. Everything works really well now.

  • Anyone else having issues with location services since the 7.1 update? Ever since I updated i've been seeing the location services on my status bar at all times.

    Anyone else having issues with location services since the 7.1 update? Ever since I updated i’ve been seeing the location services icon on my status bar at all times. I noticed that google was the app that was using it a lot, but after I turned the feature off for google my phone started using the “traffic”, “frequent locations” and “cell network search”. When I turn the feature off for all of those things it’s no longer a problem. So just wondering if anyone else is having this issue or if anyone has a solution?

    The "solution" is probably to increase your knowledge.  You've done good things.  Perhaps this article will educate you a bit more about location services.
    Basically, they can be very useful, but can cause a lot of iPhone use.  A major example is "Remind me to ... when I leave home."
    http://support.apple.com/kb/HT5594

  • I have Iphone 5 and have an issue with deleting part of the messages in Imessage conversation. The trash button is not displayed to delete part of the imessage. I see only delete all option. Is it a bug?

    I have Iphone 5 and have an issue with deleting part of the messages in Imessage conversation. The trash button is not displayed to delete part of the imessage. I see only delete all option. Is it a bug?

    Hi An Iphone user,
    If you are having issues deleting a specific message from an iMessage conversation (not seeing the Trash icon), you may want to double-check that you are following the steps outlined in the following article:
    How do I delete a message?
    To delete a message, tap and hold the message bubble, then tap More.
    Tap Delete All to delete all the messages. Or tap to select the messages you want to delete, then tap .
    After you delete a message, you can recover it only by restoring from a backup.
    Send messages with your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • How to get the HttpServletRequest object in a jsp

    Hi,
    I am a little confused here. Am trying to use the HttpServletRequest object in my jsp. I have set up just a simple test page jsp. How can i use the HttpServletRequest object to get some information about the request for example using the method getPathInfo(). I know i can do this in a servlet and pass the value as a parameter in a doGet method. But how do i do it in a jsp. Can it be done..?
    Pls help
    Thankyou

    The request object is already created for you in JSP, as are many other things
    request - the HttpServletRequest object
    response - the HttpServletResponse object
    session - the HttpSession object
    application - the ServletContext object
    out - the JspWriter object (like PrintWriter)
    So you just use them...
    <%
    String asdf = request.getParameter("asdf");
    %>

  • Issue with displaying summary in the Page Bottom

    Hi Friends,
    I have an issue with displaying summary in the page bottom. for this i am using command BOTTOM and ENDBOTTOM in Main Window.
    I designed 2 pages are First and Next, in the first it displays PO Header details and Item details in the Main window and also Item details continuious in the Next Page also.
    If the lines are enough in Bottom then it displays the summary. But if the lines are not enough in bottom then it does not trigger the new page, so that it doesn't displays the Summary in Bottom.
    for ex: Total lines of the page 50 and Bottom required 15 lines. In the next page contains upto 35 lines, it triggers the Bottom.
    But if the lines are more than 35 and below than 50, it does not trigger the new page so that it does not shows the bottom.
    Please help me on the same, this is very urgent.I will give a rewatrd if it is helful.
    Regards,
    Subbarao

    HI,
    Try with printing the bottom data with Protect and ENDPROTECT along with your Bottom and endbottom.
    Eg: Protect
    bottom
    text
    endbottom
    endprotect.
    Regards,
    Venkatesh

Maybe you are looking for

  • Can I Return My Zen Mic

    I bought my Zen Micro on April 3, 2005 and I hate it. Can I return it's PLEASE GOD SAY YES!

  • Websites not displaying correctly since upgrading to FF 10.0

    Since upgrading to FF 10.0 on Mac OS X 10.7.2 i have noticed that some sites are not loading correctly or they do not function like they used to. For example: 1. The login page for Tumblr displays just the background image, not the login form. 2. In

  • Can i use iphone like "power point" on external monitor

    i would like to display the screen of my iphone ex. lyrcs of a song, on a tv. can this happen?

  • Cable tv and phone

    Hi all, A client is constructing a block with around 32 houses. They want the following service in every house 1) A phone (like intercom) (preferrably analog/digital phone but if not then we can work out ip phones) 2) Cable TV In my country, by cable

  • PO aging Report

    can anyone suggest any standard report close to the following user requirements, To monitor open PO with ageing period - PO number/item/qty/value - Balance PO qty and value - PR number - cost object / requisitioner - last GR/SES - ageing, from PO rel