Runtime Error 1009 After Converting from Flex 3.6 to 4.5.1

I am in the process of converting my application from SDK 3.6 to 4.5.1.  The process is going smoothly thanks to the many resources out there including Greg Lafrance's series http://www.adobe.com/devnet/flex/articles/migrating-flex-apps-part1.html
I am now getting an error while the application is loading in the browser.  The error text is:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at main/initApp()...
The error occurs in the AS code where I am attempting to get the URL from the player using the mx.utils.URLUtil library.  In particular, I am setting a global variable in my app to the URL of the visitor.  The specific code for this is:
this.stServerName=URLUtil.getServerName(mainApp.url);
Is URLUtil still in use in Flex 4.5.1?  If not, is there another way to get the server name from the host?
Thanks!
Lee

URLUtil still exists.  I would verify what is null.

Similar Messages

  • Unable to install iTunes after converting from Windows Vista to Windows 7.  Am told installation was successful, then "iTunes was not installed correctly", followed by "Error 7 (Windows error 193).

    Unable to install iTunes after converting from Windows Vista to Windows 7.  Am told installation was successful, then "iTunes was not installed correctly", followed by "Error 7 (Windows error 193).  I have my iPod plugged into my computer via USB port.  What am I doing wrong?

    i have the only account on my laptop so have checked and am the account administrator
    i run windows 7 home premium
    I have the same problem and
    have followed the link uninstalling in the correct order,
    then restarted as per instructions,
    went to Apple to download itunes,
    hit download now,
    Visit the iTunes download page. Click Download Now to download the iTunes installer. When prompted, click Save (instead of Run).
    did not get a save instead of run prompt
    Right click on iTunesSetup or iTunes64Setup (the installer you downloaded in step 3).
    If you have Windows Vista, Windows 7, and Windows 8: Choose "Run as administrator."
    i can only click run as administrator from right clicking the shortcut on my desktop screen
    If iTunes fails to install or repair, it might be necessary to remove components left from a previous installation of iTunes and then reinstall.
    sick of doing this
    at least 7 or 8 times i have re installed itunes to no avail
    troubleshooting no better
    please help. pulling my hair out at this stage
    it was working fine until 2 days ago when i opened itunes it offered to update to 12.1
    not working since i clicked yes
    also i have gone to restore previous point and ffs there are no restore points before my multiple reinstalls
    really dont want to have to restore factory settings

  • When using Adobe Export PDF - I cannot save a document after converting from PDF.  Why not?

    When using Adobe Export PDF - I cannot save a document after converting from PDF.  Why not?

    What happens when you click the Save/Download button after the file conversion is complete?

  • What does mean error 1009 when download from appstore?

    What does mean error 1009 when download from appstore?
    This is not fair only for my location or anything I have a product and expect to support my device
    This is not question I got my answer on other posts but didn't satisfactory.
    Thank you.

    I got this iphone from a guy and everytime i tried to update the applications stored in this phone it keeps asking me the password that the guy used to use, even thou i created a new apple ID of my own and updated the account of icloud and everything in this iphone with the new apple ID, it still asks me the password of the account that the guy used to use whenever i tried to update the applications, and i cant find the guy who gave me this iphone...wt should i do???

  • Receiving a message in my word document after converting from a PDF to word. Please advise

    After converting and dowloading that converted file from a  Adobe PDF file to a word document I then open the word document to see a message stateing
    "To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html
    For further support, go to www.adobe.com/support/products/acrreader.html"
    Please proivde advise on how to sucessfully convert the Adobe PDF file to a word document.

    Hi Buster,
    The error message you were receiving occurs when you try to convert a dynamic PDF file created with Adobe LiveCycle Designer.  This file is usually already a fillable form.  Unfortunately there is no workaround available for converting documents like this within the ExportPDF service.
    I'm sorry for the inconvenience.
    Please let me know if you have any questions or if I can be of further assistance.
    -David

  • Runtime Error! after installation of Photoshop Elements 10

    Yesterday I installed Photoshop Elements 10 and Premier Elements 10. After installation, whenever I log into my user account in Windows 7, I receive a Microsoft Visual C++ Runtime Library Runtime Error! It further says Program: C:\Program Files (x86)\Adobe... This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. In addition to logging into the windows account, the same error sometimes occurs when Photoshop Elements Organizer, editor and Premier Elements is started. My wife has another account in windows and does not get this error in any of the above cases. After clearing the error, I seem to be able to use the programs, but this occurs every now and then.
    What can I do to repair the installation? I tried uninstalling and reinstalling, but the problem remains. Any help with this would be appreciated. Thanks.

    More information. I tried uninstalled PSE and then set up a new user account. Reinstalled PSE from the new account. Everything works fine in the new user account and my wife's user account. The account with problems continues to get the same error when logging in or starting PSE.
    Checked the error using event viewer and found that the problem is with dynamiclinkmanager.exe. After logging in to the working accounts dynamiclinkmanager is running, but is not in the problem account. Cannot find any differences between the accounts. Below is the event viewer data. Any help is appreciated.
    Log Name:      Application
    Source:        Application Error
    Date:          1/9/2012 5:50:34 PM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Desktop-VM
    Description:
    Faulting application name: dynamiclinkmanager.exe, version: 3.0.0.0, time stamp: 0x4e5e6ffc
    Faulting module name: MSVCR90.dll, version: 9.0.30729.4940, time stamp: 0x4ca2ef57
    Exception code: 0x40000015
    Fault offset: 0x0005beae
    Faulting process id: 0xdb4
    Faulting application start time: 0x01cccf21115396c1
    Faulting application path: C:\Program Files (x86)\Adobe\Elements 10 Organizer\CAHeadless\32\dynamiclinkmanager.exe
    Faulting module path: C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb 9a742\MSVCR90.dll
    Report Id: 56d13743-3b14-11e1-a1e8-bcaec523a610
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2012-01-09T22:50:34.000000000Z" />
        <EventRecordID>48682</EventRecordID>
        <Channel>Application</Channel>
        <Computer>Desktop-VM</Computer>
        <Security />
      </System>
      <EventData>
        <Data>dynamiclinkmanager.exe</Data>
        <Data>3.0.0.0</Data>
        <Data>4e5e6ffc</Data>
        <Data>MSVCR90.dll</Data>
        <Data>9.0.30729.4940</Data>
        <Data>4ca2ef57</Data>
        <Data>40000015</Data>
        <Data>0005beae</Data>
        <Data>db4</Data>
        <Data>01cccf21115396c1</Data>
        <Data>C:\Program Files (x86)\Adobe\Elements 10 Organizer\CAHeadless\32\dynamiclinkmanager.exe</Data>
        <Data>C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916 076bcb9a742\MSVCR90.dll</Data>
        <Data>56d13743-3b14-11e1-a1e8-bcaec523a610</Data>
      </EventData>
    </Event>

  • Runtime Error "RUNT_ILLEGAL_SWITCH" after Kernel upgrade to 640 (274)

    Hi All,
    We have upgraded our kernel from 640 (175) to 640 (274) after which we are getting frequent runtime errors RUNT_ILLEGAL_SWITCH in thousands. The program that is terminating is "SAPMSDYP" because of the incorrect system state.
    We are on Sun Solaris, Oracle 9.2.0.4 with SAP 4.7 (640)
    This is specifically happening in Test system. TheDev system is fine with the new kernel. This also happens only on the central Instance of the test system.
    Can you please help me if you have had this situation and steps to solve it.
    Thanks
    Vijay

    Hi,
    This is most likely due to buffer inconsistancy problem, have you tried rebooting the server?
    Also take a look at SAP note 351695.
    Best regards,
    Warren

  • Runtime error Calling Java Methods from C++

    I'm trying to add Java methods to an existing C++ program.
    I'm working in W2000 enviroment using Cygnus GCC compiler.
    Before adding these methods, I tested invoke example from Jni tutorial.
    All worked properly. But the problems arouse when I tried to run non-static methods.
    Here is the code I'm testing now:
    #include <stdio.h>
    #include <jni.h>
    #define PATH_SEPARATOR ';'
    #define USER_CLASSPATH "." /* where Prog.class is */
    int main(int argc, char *argv[]) {
    JNIEnv *env;
    JavaVM *jvm;
    JDK1_1InitArgs vm_args;
    jint res;
    jclass cls;
    jmethodID mid;
    jobject jobj;
    char classpath[1024];
    vm_args.version = 0x00010001;
    JNI_GetDefaultJavaVMInitArgs(&vm_args);
    sprintf(classpath, "%s%c%s",
    vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
    vm_args.classpath = classpath;
    res = JNI_CreateJavaVM(&jvm,(void **)&env,&vm_args);
    if (res < 0) {
    fprintf(stderr, "Can't create Java VM\n");
    exit(1);
    cls = env->FindClass("Prog");
    if (cls == 0) {
    fprintf(stderr, "Can't find consola class\n");
    exit(1);
    mid = env->GetStaticMethodID(cls, "Entrada", "()V");
    if (mid == 0) {
    fprintf(stderr, "Can't find consola.consola\n");
    exit(1);
    env->CallStaticVoidMethod(cls, mid);
    /*     jobj = env->NewObject(cls, mid);
    if (jobj == 0) {
    fprintf(stderr, "Can't find Prog.main\n");
    exit(4);
    jvm->DestroyJavaVM();
    And the java code Prog.java:
    public class Prog {
    public static void Entrada() {
    Consola Cons = new Consola();
    And Consola a user class tha shows a Java window and let's do something more.
    These code works fine and The Prog and Consola classes run properly.
    But when I try to change Entrada method to non-static, following error appears in a window.
    Microsoft Visual C++ Runtime library
    Runtime Error !
    Program: D:\javaini\JNI-INVOKE\invoke.exe
    abnormal program termination
    If I try
    jobj = env->NewObject(cls, mid);
    if (jobj == 0) {
    fprintf(stderr, "Can't find Prog.main\n");
    exit(4);
    instead of
    env->CallVoidMethod(cls, mid);
    I get the same error.
    Could anybody help me ?
    Am I doing anything wrong ?
    Thanks in advance. Ignasi Villagrasa.

    I found it.
    In JNI examples I saw
    mid = env->GetMethodID(cls, "<init>", "()V");
    to run constructor.
    And then NewObject function.
    So it's solved.
    But I find another problem now.
    If the class I'm calling is a graphic java class (In this case from swing), when the window is closed the application in C++ stops too.
    Should I create another thread to manage the window ?
    Couldn't I follow running lines after NewObject method ?
    Thanks in advance, Ignasi Villagrasa.

  • Error 1009 / Using swf in Flex

    Hi all.
    I am creating a small Flex Application which will include a swf.
    The application consists of two panels, with the left being a Flash app. As the user moves the mouse over the Flash, it should trigger different messages on the right panel.
    A screenshot is attached to get an idea of what I'm aiming for.
    This is the error I'm getting:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at flash_component_fla::MainTimeline/frame1()
    Additionally, I'm struggling with two things:
    How do I get the output panel to display in the Rockwell font
    How do I get the Flash part to send the mouse position to the Flex?
    So this is what I have:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
         xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         height="610" width="750"
         creationComplete="showCursor()" backgroundColor="white" cornerRadius="10" borderStyle="solid">
         <mx:Style>
         .boxClass {
            fontFamily: Rockwell, Trebuchet MS, Helvetica, "_sans";
            color: Red;
            fontSize: 12;
            fontWeight: bold;
        </mx:Style>
        <mx:Script>
        <![CDATA[
        [Bindable] public var clickText:XMLList;
        private var panelText:XML =
                     <textDetails>
                          <bodyPart>
                                  <partName>throat</partName>
                                  <partNo>You cannot donate when you have a sore throat or a throat infection</partNo>
                                  <partYes>Once the sore throat has cleared, or a week after any antibiotics have finished, you can donate.</partYes>
                             </bodyPart>
                             <bodyPart>
                                  <partName>pregnancy</partName>
                                  <partNo>You cannot donate wwhile you are pregnant</partNo>
                                  <partYes>You can donate when the expected baby iis nine months old</partYes>
                             </bodyPart>
                             <bodyPart>
                                  <partName>hayfever</partName>
                                  <partNo>Only restricted iif you are feeling unwell</partNo>
                                  <partYes>You can donate iif you are feeling well, even iif you are taking medication</partYes>
                             </bodyPart>
                             <bodyPart>
                                  <partName>dentist</partName>
                                  <partNo>Wait seven days after complicated dental work, such aas tooth extractions</partNo>
                                  <partYes>You can donate after simple inspections, or after 24hrs after fillings.</partYes>
                             </bodyPart>
                             <bodyPart>
                                  <partName>asthma</partName>
                                  <partNo>If you having the effects of the asthma</partNo>
                                  <partYes>You can donate iif you are feeling well, even iif you uuse a preventative inhaler</partYes>
                             </bodyPart>
                             <bodyPart>
                                  <partName>Surgery</partName>
                                  <partNo>Major Surgery: Please call the helpline</partNo>
                                  <partYes>Minor Surgery: As long aas there were no complications and the donor has recovered.</partYes>
                             </bodyPart>
                        </textDetails>
              import mx.managers.CursorManagerPriority;
               import mx.managers.CursorManager;
               import flash.events.Event;
               private function functions():void     {
                             throat.addEventListener(MouseEvent.CLICK, changeText);
              private function changeText(event:Event):void {
                             clickText = panelText.bodyPart[0].partYes;
                             output.text= clickText;
         [Embed("nbs1.gif")]
          private var customCursor:Class;
         private function showCursor():void
            CursorManager.setCursor(
              customCursor,
              CursorManagerPriority.HIGH,
              -1,
              -1);
         ]]>
           </mx:Script>
         <mx:Panel x="481" y="69" width="250" height="516" layout="absolute" id="rt">
              <mx:Text x="10" y="10" text="Other Considerations..."/>
              <mx:Accordion x="8" y="36" width="212" height="277">
                   <mx:Canvas label="Blood Transfusions" width="100%" height="100%" dropShadowEnabled="true" dropShadowColor="#F50B0B">
                        <mx:Text x="10" y="10" width="190">
                             <mx:htmlText>If you have recieved a blood transfusion since the beginning of 1980, you cannot currently donate.</mx:htmlText>
                        </mx:Text>
                   </mx:Canvas>
                   <mx:Canvas label="Travel" width="100%" height="100%">
                   <mx:Text x="10" y="10" width="190">
                             <mx:htmlText>Travellers to malarial areas and countries with West Nile Virus should contact the helpline for more details.</mx:htmlText>
                        </mx:Text>
                   </mx:Canvas>
                   <mx:Canvas label="Weight" width="100%" height="100%">
                   <mx:Text x="10" y="10" width="190">
                             <mx:htmlText>You need to weigh 50kg, or 7st 12lb to donate.</mx:htmlText>
                        </mx:Text>
                   </mx:Canvas>
                   <mx:Canvas label="Tattoos and piercings" width="100%" height="100%">
                        <mx:Text x="10" y="10" width="190">
                             <mx:htmlText>Any new piercings or tattoos, or acupuncture? You now have to wait just four months before being eligible to donate.</mx:htmlText>
                        </mx:Text>
                   </mx:Canvas>
                   <mx:Canvas label="Age Limits" width="100%" height="100%">
                        <mx:Text x="10" y="10" width="190">
                             <mx:htmlText>
                                  Under 16: Too young. Sorry!
                                  16 - 17: You can register, but not donate 17 - 65: Please register! 66 - 70: If you have ever donated, you can donate 70+: Only if you have donated in the last two years.
                             </mx:htmlText>
                        </mx:Text>
                   </mx:Canvas>
                   <mx:Canvas label="Antibiotics" width="100%" height="100%">
                        <mx:Text x="10" y="10" width="190">
                             <mx:htmlText>
                                  You can donate seven days after the antibiotics have finished, as long as the infection has cleared.
                             </mx:htmlText>
                        </mx:Text>
                   </mx:Canvas>
                   <mx:Canvas label="Common Cold" width="100%" height="100%">
                        <mx:Text x="10" y="10" width="190">
                             <mx:htmlText>
                                  You can donate when the cold has cleared and you are feeling well.
                             </mx:htmlText>
                        </mx:Text>
                   </mx:Canvas>
              </mx:Accordion>
              <mx:TextArea
                   id="output"
                   x="10" y="321"
                   text="Move the cursor over the bodies to find out more about how your health affects blood donation!"
                   width="210" color="#F21212" styleName="boxClass" height="68"/>
         </mx:Panel>
         <mx:Image x="667" y="35" source="NHS.jpg" width="65" height="26"/>
         <mx:Image x="10" y="22" source="headline.gif"/>
         <mx:SWFLoader x="10" y="69" source="flash_component.swf" id="throat"/>
    </mx:Application>

    Hmm, thanks Flex HarUI... IU I kinda think the boffins at Adobe are less likely than me to have the problems.
    I'm going to attach the swf and it's associated .fla if that is any more help.
    For the record this is the Error Message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at flash_component_fla::MainTimeline/frame1()
    Any help would be hugely appreciated...

  • Portal Runtime Error when previewing iViews from BP for CRM 4.0 (60.2)

    Hello,
    We have imported Business Package for CRM 4.0 (60.2) into EP 6.0 (Version: 6.0.19.0.0) according to the installation guide(InstGuide_EN_CRM40_502.pdf). We have also defined SAP_CRM and SAP_R3 Systems in  Portal System Landscape Editor. And we have also set the permissions for the user with which we are logged in on the "Portal Content->Migrated Content->EP 5.0" folder with "Read" permission and checked the "End User" option.
    Now when we do a test preview for "Portal Content->Migrated Content->EP 5.0->iViews->SAP CRM 4.0: Sales->Activities" iView in PCD i get Portal Runtime Error in a new window with following information:
    <b>Portal Runtime Error
    An exception occurred while processing a request for :
    iView : com.sap.portal.appintegrator.sap.BSP
    Component Name : com.sap.portal.appintegrator.sap.BSP
    Error occurs during the rendering of jsp component.
    Exception id: 08:40_22/01/07_0001_6052850
    See the details for the exception ID in the log file
    </b>
    We get this similar message for few other iViews as well. Following is the details from the log file for this exception ID:
    <b>###Exception ID:08:40_22/01/07_0001_6052850
    [EXCEPTION]
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : com.sap.portal.appintegrator.sap.BSP
    Component class : com.sapportals.portal.sapapplication.SAPApplicationIntegratorComponent
    User : <USER_ID>
         at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
         at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
         at com.sapportals.portal.appintegrator.Utils.includeJSP(Utils.java:199)
         at com.sapportals.portal.appintegrator.layer.HTTPRenderLayer.render(HTTPRenderLayer.java:249)
         at com.sapportals.portal.appintegrator.LayerProcessor.processContentPass(LayerProcessor.java:226)
         at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:100)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.sapapplication.bwc.AbstractBWCComponent.doContent(AbstractBWCComponent.java:63)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: Error occurs during the compilation of java generated from the jsp
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:108)
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:140)
         at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:291)
         at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:141)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
         at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
         ... 46 more
    Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error occurs during the rendering of jsp component
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2189)
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:81)
         ... 52 more
    </b>
    Why am i getting this error page and how to resolve this? Please help. Thanks.
    Regards,

    I am facing one more problem now. I tried to create a new user in Portal and when i try to login with this new account i get following error message:
    <b>Portal Runtime Error
    An exception occurred while processing a request for :
    iView : com.sap.portal.runtime.logon.default
    Component Name : com.sap.portal.runtime.logon.default
    Error occurs during the rendering of jsp component.
    Exception id: 10:04_22/01/07_0010_6052850
    See the details for the exception ID in the log file</b>
    Following is the error message snippet from the log file for this exception ID:
    <b>
    ###Exception ID:10:04_22/01/07_0010_6052850
    [EXCEPTION]
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : com.sap.portal.runtime.logon.default
    Component class : com.sapportals.portal.ume.component.logon.SAPMLogonComponent
    User : J2EE_GUEST
         at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
         at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
         at com.sap.security.core.logonadmin.ComponentAccessToLogic.gotoPage(ComponentAccessToLogic.java:109)
         at com.sap.security.core.sapmimp.logon.SAPMLogonLogic.executeRequest(SAPMLogonLogic.java:251)
         at com.sapportals.portal.ume.component.logon.SAPMLogonComponent.doContent(SAPMLogonComponent.java:37)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.ume.component.logon.SAPMLogonCertComponent.doContent(SAPMLogonCertComponent.java:33)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
         at com.sap.portal.navigation.Gateway.service(Gateway.java:101)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: Error occurs during the compilation of java generated from the jsp
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:108)
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:140)
         at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:291)
         at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:141)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
         at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
         ... 49 more
    Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error occurs during the rendering of jsp component
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2189)
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:81)
         ... 55 more</b>
    Though i am still able to login with any of my old accounts, but not with the newly created ones. I thought this might have been because of the new roles that i assigned, but i see the above error message even when i haven't assigned any role. How do i get rid of this one now?
    Thanks and Regards,

  • Runtime Error : MOVE_TO_LIT_NOTALLOWED_NODATA after ALV execution

    Hi experts
    I'm facing this runtime error after execute an interface and show an ALV grid for data processed.
    ShrtText
        Assignment error: Overwriting a protected field.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLKKBL" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    Error analysis
    The program tried to assign a new value to the field "<L_UNIT>" even though
        it is protected against changes.
        The following objects are protected:
        - Character or numeric literals
        - Constants (CONSTANTS)
        - Parameters of the category IMPORTING REFERENCE for functions
          and methods
        - Untyped field symbols to which a field has not yet been assigned
          using ASSIGN
        - TABLES parameters if the corresponding actual parameter is protected
          against changes
        - USING reference parameters and CHANGING parameters for FORMs if
          the actual parameter for this is protected against changes
        - Field symbols if the field assigned using ASSIGN or ASSIGNING
          is protected against changes
        - External write accesses to READ-ONLY attributes
        - Key components of lines in internal tables of the type HASHED or
          SORTED TABLE
          SORTED TABLE.
    What I must check on ABAP code for fix it. When I debug I found that the totals(in Yellow) are of two lines. The first line displays with the total values of the respective columns, but the second line is blank. So During the debug it clears the value "lflg_show" which causes the short dump.
    Pleaase help me with this.
    Thanks in advance.

    Hi experts
    I'm facing this runtime error after execute an interface and show an ALV grid for data processed.
    ShrtText
        Assignment error: Overwriting a protected field.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLKKBL" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    Error analysis
    The program tried to assign a new value to the field "<L_UNIT>" even though
        it is protected against changes.
        The following objects are protected:
        - Character or numeric literals
        - Constants (CONSTANTS)
        - Parameters of the category IMPORTING REFERENCE for functions
          and methods
        - Untyped field symbols to which a field has not yet been assigned
          using ASSIGN
        - TABLES parameters if the corresponding actual parameter is protected
          against changes
        - USING reference parameters and CHANGING parameters for FORMs if
          the actual parameter for this is protected against changes
        - Field symbols if the field assigned using ASSIGN or ASSIGNING
          is protected against changes
        - External write accesses to READ-ONLY attributes
        - Key components of lines in internal tables of the type HASHED or
          SORTED TABLE
          SORTED TABLE.
    What I must check on ABAP code for fix it. When I debug I found that the totals(in Yellow) are of two lines. The first line displays with the total values of the respective columns, but the second line is blank. So During the debug it clears the value "lflg_show" which causes the short dump.
    Pleaase help me with this.
    Thanks in advance.

  • Sending mail after converting from otf to pdf

    Hi all,
    i have an requirement of converting script output i.e., otf to pdf converting and i want send that account statement to the mail id which is maintatined in XD03 t.code,based on different customers differnt account statement should post ,
    please suggest me ASAP.

    use the function module
    CONVERT to pdf
    SX_OBJECT_CONVERT_OTF_PDF
    - Email the PDF data using
    SO_NEW_DOCUMENT_ATT_SEND_API1
    examples
    Option 1.
    - converting OTF data returned from CLOSE_FORM (requested in OPEN_FORM) to PDF format using SX_OBJECT_CONVERT_OTF_PDF
    - Email the PDF data using SO_NEW_DOCUMENT_ATT_SEND_API1
    Result
    >> Everything works fine except that the output cannot be sent to spool and previewed (due the request of OTF table in OPEN_FORM)
    >> The PDF attachment can be downloaded and view directly.
    Option 2.
    - converting spool to PDF format using CONVERT_OTFSPOOLJOB_2_PDF
    - Email the PDF data using
    SO_NEW_DOCUMENT_ATT_SEND_API1
    Result
    >> The output can be previewed and sent to spool. No error returned from sending mail.
    >> However, the attachment of PDF file cannot be downloaded (from SBWP Business Workspace). An error message "Database error for <GET DATA FROM KPRO>" was displayed when I try to download the PDF file
    You can try something like this
    IF SY-UCOMM = 'VIEW'.
    CLEAR ITCPO-TDGETOTF.
    ENDIF.
    ***OPEN_FORM
    *etc
    ***CLOSE_FORM
    IF NOT SY-UCOMM = 'VIEW'.
    **SEND MAIL
    ENDIF.
    example code
    REPORT ZSENDPDF NO STANDARD PAGE HEADING.
    TABLES: TST05,
    TSP01,
    NAST,
    T685B,
    USR01.
    DATA: BEGIN OF TAB_PDF OCCURS 0,
    TLINE(255).
    DATA : END OF TAB_PDF.
    DATA: BEGIN OF TAB_OTF OCCURS 0,
    TLINE(255).
    DATA : END OF TAB_OTF.
    DATA: BEGIN OF TAB_DATA_SET OCCURS 0,
    DATA_LENGTH(5),
    PRECOL(1),
    DATA_LINE(1000).
    DATA : END OF TAB_DATA_SET.
    DATA: BEGIN OF TAB_OTF_PAGE OCCURS 0.
    INCLUDE STRUCTURE ITCOO.
    DATA: END OF TAB_OTF_PAGE.
    DATA : BEGIN OF TAB_OTF_PAGE_INDEX OCCURS 0,
    LINE_NUM TYPE P.
    DATA : END OF TAB_OTF_PAGE_INDEX.
    DATA: BEGIN OF TAB_DATA_SET_LINE,
    DATA_LENGTH(5),
    PRECOL(1),
    DATA_LINE(1000).
    DATA : END OF TAB_DATA_SET_LINE.
    DATA : BEGIN OF TAB_TSP01 OCCURS 0,
    RQIDENT LIKE TSP01-RQIDENT,
    RQCOPIES LIKE TSP01-RQCOPIES.
    DATA : END OF TAB_TSP01.
    DATA :
    LEN_OUT LIKE SOOD-OBJLEN,
    LEN_IN LIKE SOOD-OBJLEN,
    OTF_PAGES TYPE P,
    *otf_max_pages type p value 100,
    OTF_MAX_PAGES TYPE P VALUE 1000,
    DATA_SET_LINECOUNT TYPE P,
    *data_set_max_lines type p value 1000000,
    DATA_SET_MAX_LINES TYPE P VALUE 100000,
    DATA_SET_IS_OTF TYPE C VALUE ' ',
    DATA_SET_LENGTH(5) TYPE C,
    DSN_TYPE( TYPE C,
    RC(10) TYPE C,
    ERRMSG(100) TYPE C,
    LINE_MAX TYPE P VALUE '100000',
    STATUS LIKE SY-SUBRC,
    H_PATH(20) TYPE C,
    H_MASK(20) TYPE C VALUE ',.pdf ,.pdf. ',
    FILE_NAME(20),
    FILENAME LIKE RLGRAP-FILENAME,
    C_PAGE_BREAK TYPE I,
    K_PAGE_BREAK TYPE I.
    PARAMETER : P_RQID(5) TYPE C.
    START-OF-SELECTION.
    END-OF-SELECTION.
    PERFORM GET_TAB_OTF.
    CLEAR K_PAGE_BREAK.
    LOOP AT TAB_OTF_PAGE WHERE TDPRINTCOM = 'EP'.
    ADD 1 TO K_PAGE_BREAK.
    ENDLOOP.
    CLEAR C_PAGE_BREAK.
    LOOP AT TAB_OTF_PAGE.
    IF TAB_OTF_PAGE-TDPRINTCOM EQ 'EP'.
    ADD 1 TO C_PAGE_BREAK.
    IF C_PAGE_BREAK GE 3 AND C_PAGE_BREAK LT K_PAGE_BREAK.
    TAB_OTF-TLINE = 'EP'.
    APPEND TAB_OTF.
    ENDIF.
    ENDIF.
    TAB_OTF-TLINE = TAB_OTF_PAGE.
    APPEND TAB_OTF.
    ENDLOOP.
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    FORMAT_SRC = 'OTF'
    FORMAT_DST = 'PDF'
    DEVTYPE = 'ASCIIPRI'
    LEN_IN = LEN_IN
    IMPORTING
    LEN_OUT = LEN_OUT
    TABLES
    CONTENT_IN = TAB_OTF
    CONTENT_OUT = TAB_PDF
    EXCEPTIONS
    ERR_CONV_FAILED = 1
    OTHERS = 2.
    PERFORM GET_PATH USING 'PDF_FILE'.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    FILENAME = FILENAME
    FILETYPE = 'BIN'
    BIN_FILESIZE = LEN_OUT
    TABLES
    DATA_TAB = TAB_PDF
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_WRITE_ERROR = 2
    INVALID_FILESIZE = 3
    INVALID_TABLE_WIDTH = 4
    INVALID_TYPE = 5
    NO_BATCH = 6
    UNKNOWN_ERROR = 7
    OTHERS = 8.
    *& Form GET_tab_otf
    FORM GET_TAB_OTF.
    DATA: PART(4) VALUE '0001',
    BEGIN OF MSG,
    A(40),
    B(40),
    C(40),
    END OF MSG.
    REFRESH TAB_DATA_SET.
    DATA_SET_LINECOUNT = 0.
    DATA_SET_IS_OTF = ' '.
    OTF_PAGES = 0.
    REFRESH TAB_OTF_PAGE_INDEX.
    CALL 'RSPOACSD'.
    SELECT * FROM TST05 WHERE DTHREAD = 'X'.
    CALL 'RSPOAOSD'
    ID 'ID' FIELD P_RQID
    ID 'TYPE' FIELD TST05-DTYPE
    ID 'RECTYP' FIELD 'VYL----'
    ID 'RC' FIELD RC
    ID 'ERRMSG' FIELD ERRMSG.
    STATUS = SY-SUBRC.
    IF STATUS = 0.
    DSN_TYPE = TST05-DTYPE.
    IF DSN_TYPE(3) = 'OTF'.
    DATA_SET_IS_OTF = 'X'.
    ENDIF.
    ENDIF.
    IF STATUS <> 24. EXIT. ENDIF.
    ENDSELECT.
    DATA_SET_MAX_LINES = ( LINE_MAX * '1.1' ) + 100.
    DO.
    CLEAR: TAB_DATA_SET_LINE, DATA_SET_LENGTH.
    CALL 'RSPOARSD'
    ID 'BUFF' FIELD TAB_DATA_SET_LINE+5
    ID 'DATALEN' FIELD DATA_SET_LENGTH
    ID 'RC' FIELD RC
    ID 'ERRMSG' FIELD ERRMSG.
    STATUS = SY-SUBRC.
    IF STATUS = 36.
    WHILE STATUS = 36.
    CALL 'RSPOACSD'
    ID 'RC' FIELD RC
    ID 'ERRMSG' FIELD ERRMSG.
    ADD 1 TO PART.
    IF DATA_SET_IS_OTF = ' '.
    CALL 'RSPOAOSD'
    ID 'ID' FIELD P_RQID
    ID 'TYPE' FIELD DSN_TYPE
    ID 'PART' FIELD PART
    ID 'RECTYP' FIELD 'VYL----'
    ID 'RC' FIELD RC
    ID 'ERRMSG' FIELD ERRMSG.
    ELSE.
    CALL 'RSPOAOSD'
    ID 'ID' FIELD P_RQID
    ID 'PART' FIELD PART
    ID 'TYPE' FIELD DSN_TYPE
    ID 'RECTYP' FIELD 'VYL----'
    ID 'RC' FIELD RC
    ID 'ERRMSG' FIELD ERRMSG.
    ENDIF.
    IF SY-SUBRC NE 0. EXIT. ENDIF.
    CLEAR: TAB_DATA_SET_LINE, DATA_SET_LENGTH.
    CALL 'RSPOARSD'
    ID 'BUFF' FIELD TAB_DATA_SET_LINE+5
    ID 'DATALEN' FIELD DATA_SET_LENGTH
    ID 'RC' FIELD RC
    ID 'ERRMSG' FIELD ERRMSG.
    STATUS = SY-SUBRC.
    ENDWHILE.
    ENDIF.
    IF STATUS <> 0 AND STATUS <> 40. EXIT. ENDIF.
    TAB_DATA_SET = TAB_DATA_SET_LINE.
    IF NOT ( DATA_SET_LENGTH IS INITIAL ).
    TAB_DATA_SET-DATA_LENGTH = DATA_SET_LENGTH - 1.
    ENDIF.
    APPEND TAB_DATA_SET.
    ADD 1 TO DATA_SET_LINECOUNT.
    IF DATA_SET_IS_OTF = ' '.
    IF DATA_SET_LINECOUNT >= DATA_SET_MAX_LINES.
    CLEAR TAB_DATA_SET.
    APPEND TAB_DATA_SET.
    MOVE '----
    ' TO TAB_DATA_SET-DATA_LINE.
    APPEND TAB_DATA_SET.
    CLEAR TAB_DATA_SET.
    APPEND TAB_DATA_SET.
    WRITE: 'Abbruch nach'(029) TO MSG-A.
    WRITE: DATA_SET_MAX_LINES TO MSG-B.
    WRITE: 'Zeilen.'(030) TO MSG-C.
    CONDENSE MSG.
    TAB_DATA_SET-DATA_LINE = MSG.
    APPEND TAB_DATA_SET.
    EXIT.
    ENDIF.
    ELSE.
    MOVE TAB_DATA_SET_LINE-DATA_LINE TO TAB_OTF_PAGE.
    APPEND TAB_OTF_PAGE.
    IF TAB_OTF_PAGE(2) = 'EP'.
    ADD 1 TO OTF_PAGES.
    IF OTF_PAGES >= OTF_MAX_PAGES.
    MESSAGE S229(PO) WITH OTF_MAX_PAGES.
    EXIT.
    ENDIF.
    ELSEIF TAB_OTF_PAGE(2) = 'OP'.
    TAB_OTF_PAGE_INDEX-LINE_NUM = DATA_SET_LINECOUNT.
    APPEND TAB_OTF_PAGE_INDEX.
    ENDIF.
    ENDIF.
    ENDDO.
    IF STATUS <> 0 AND STATUS <> 12.
    CALL 'RSPOACSD'.
    MESSAGE E112(PO) WITH STATUS RC ERRMSG.
    ENDIF.
    CALL 'RSPOACSD'.
    STATUS = SY-SUBRC.
    IF STATUS <> 0.
    MESSAGE E112(PO) WITH STATUS RC ERRMSG.
    ENDIF.
    ENDFORM.
    *& Form GET_PATH
    FORM GET_PATH USING P_FILENAME.
    CLEAR: H_PATH, FILE_NAME.
    FILE_NAME = P_FILENAME.
    CALL FUNCTION 'WS_QUERY'
    EXPORTING
    QUERY = 'CD' "// Current Directory
    IMPORTING
    RETURN = H_PATH.
    CONCATENATE FILE_NAME '.pdf' INTO FILE_NAME.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = FILE_NAME
    DEF_PATH = H_PATH
    MASK = H_MASK
    MODE = 'O'
    IMPORTING
    FILENAME = FILENAME"dbname
    EXCEPTIONS
    INV_WINSYS = 1
    NO_BATCH = 2
    SELECTION_CANCEL = 3
    SELECTION_ERROR = 4
    OTHERS = 5.
    ENDFORM. " GET_PATH
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Mar 5, 2008 9:50 AM

  • A C-runtime error occured (bad allocation) from xmlViewService

    Hi There,
    I have a .NET code which calls OBI webservice xmlViewService. I observed xmlViewService.executeXMLQuery works fine when there are records between 0 - 80000, but when records go beyond 80000-100000 it fails & returns an exception "A C-runtime error occured (bad allocation)".
    I tried gradually increasing the maxRowsPerPage from 10 to 100000 but in vain.
    Below is the code am using:
    sawSessionService = new SAWSessionService(obieeWebServiceUrl);
    sawSessionService.Timeout = obieeTimeout;
    XmlViewService xmlViewService = new XmlViewService(obieeWebServiceUrl);
    xmlViewService.Timeout = obieeTimeout;
    SAWSessionParameters sawSessionParms = CreateSawSessionParameters();
    AuthResult logonResult = sawSessionService.logonex(obieeUserId, obieePassword, sawSessionParms);
    sessionID = logonResult.sessionID;
    ReportRef reportRef = new ReportRef();
    reportRef.reportPath = request.ReportPath;
    XMLQueryExecutionOptions xmlQueryOptions = new XMLQueryExecutionOptions();
    xmlQueryOptions.async = false;
    xmlQueryOptions.refresh = false;
    xmlQueryOptions.maxRowsPerPage = 100000; //10;
    xmlQueryOptions.presentationInfo = true;
    xmlQueryOptions.type = "";
    ReportParams reportParams = new ReportParams();
    QueryResults queryResults = new QueryResults();
    queryResults = xmlViewService.executeXMLQuery(reportRef, XMLQueryOutputFormat.SAWRowsetSchemaAndData, xmlQueryOptions, reportParams, sessionID);
    Please help me solving the issue. Highly Appreciate any help.
    Thanks - harry
    Edited by: 887426 on Sep 26, 2011 12:45 AM

    Hi Harry,
    We face this issue, when the criteria returns lot of data. Is the issue resolved for you now? If yes, can you share your solution.
    Thanks,
    madhu

  • Runtime Error When executing Method from JavaScript

    Greetings In the name of the creator of all things, space, and time. I have a problem with scripting an applet using Javascript (JScript). The problem is as follows: I receive the runtime error - An outgoing call cannot be made since the application is dispatching an input-synchronous call.
    I invoke the applet from a JavaScript from within a web page. The applet populates and display a JTable. From the Table I select an element in a row and press a button which kicks off another page. From within the page I called one of the applet's method i.e. _applet.cfquery(window, hastable).
    This method connects to a data source and returns some data. When the method is invoked I receive the runtime error.
    What is the problem and How do I resolve it? Note: The same code works with Netscape 7.0 with out any problems.
    Particulars:
    Browser: Internet Explorer 6.0 - Version 6.0.2800.1106C (SP1)
    Operating System : Windows 2000 (Service Pack 3)
    Scripting Interface: LiveConnect.
    Scripting Version: JavaScript (1.5)
    I know Microsoft Uses ActiveX to support embedded object. I recently came up on the JavaScript Object
    ActiveXObject(appname.className [,remoteServiceName]). Could I use it to access my applet and how would I specify the name of my applet's? What do they mean by class name. Please help me I have searched the Internet until my eyes almost fall out by I have not found any solutions.

    If the javascript to invoke applet.cfquery(window, hastable) happens automatically (onload,...), try adding a button to your page and using that to invoke applet.cfquery(window, hastable). See if waiting until the applet loads and settles down makes a difference.

  • Runtime Error 217 after GroupWise closes (C# C3PO)

    Hello,
    I made a C3PO with C#, everything works fine until i close the GroupWise Client (8.0.2, Win 7 , 32 Bit). 2 seconds after closing, I get a GroupWise-MessageBox: 'Runtime Error 217'.
    The Windows Event Log says the error occured in the Kernelbase.dll.
    Did anyone have this error some time and knows how to fix this?

    Hi Sankar,
    Clearly RFC destination WORKFLOW_LOCAL_250 doesnot exist. But please don't create it directly using Sm59.
    Log into client 250 and go to transaction SWU3. Here you will get option for creating RFC destination making use of user WF-BATCH. In case there is workflow expert in your project take his help.
    Once this is done this dump should not come.
    Regards.
    Ruchit.

Maybe you are looking for

  • HELP!  I am missing calls while listening to music on my iPhone 5.

    Device: iPhone 5 Completelty upgraded to iOS 7.1.1 Apps set to automatically update Carrier: Verizon Location - Atlanta, GA This use to happen occassionally, but has become a more frequent issue as of late. When I am listening to my music player or w

  • RE: Automatic creation of Purchase Order.

    Hello All, I am creating automatic PO with ME59 and gettin the error message:" no updation of customer order .. from purchase order ". Can you all please help me in solvin this issue. Purchase Requisition is created. Regards, Smitha

  • CODING HELP ME!!!

    I know that I can use System.out.print() to display messages to the screen. How can I input messages that the user types at my prompt into a program? Thank you

  • Error in X11 (unable to start device PNG)

    Hello. I have a problem with running embedded R script. First script runs fine: begin sys.rqScriptCreate('Example1', 'function() { ID <- 1:10 res <- data.frame(ID = ID, RES = ID / 100) res}'); end; The second one is not so fine: select * from table(r

  • Urgent- Help abt  User Exit MV45AFZZ

    very good morning to all the SAP Masters out there.... I had already posted a thread regarding the same but didnt get helpful answers... Hope I will get some this time... It is Interesting actually... I need ur help for solving an issue... when Sales