Overcome the runtime error from Widening Cast

Good Afternoon.
I created a Super class and Sub Class.
I created an object for super class reference variable.
Then i pass like this.
sub ?= super.
Then call the Super Class emthods by using Sub class reference variable.
Then press the Execute button.
Then it goes to the DUMP.
While i am using Narrowing Cast then it is working Properly.
But for the Widening Cast only it is taking the problem. It goes to the dump.
In BSP Widening cast working properly.
For my program why it is going to dump.
How i over come that DUMP.
Is there any Exceptions or give me the reson why it is going it dump. how i will solve that problem.
Give the data on above problem with screen shorts if possible.
Thank you.
B. Krishna.

Hi Krishna,
You can down-cast(widening cast) a class ref variable into its sub-class' class ref variable only if you have already done an up-cast(narrowing cast) of sub-class' class ref variable into the super class' class ref variable ....
that is
sub ?= super.
is possible only if
super = sub.
was already done...
If u r getting MOVE_CAST_ERROR error, this could be the reason...
~Jose

Similar Messages

  • HT1349 iTunes will not start on my PC. I get a runtime error from the Visual C== runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    iTunes will not start on my PC. I get a runtime error from the Visual C++ runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    Click here and follow the instructions.
    (99035)

  • Runtime error from Microsoft Visual C++ R6034

    When installing latest iTunes update in Windows 7 I get Runtime error from Microsoft Visual C++ R6034.
    Suggestions?

    FYI, if you are sufficiently computer literate to follow the instructions in the Youtube link, Edgar's suggested fix is much easier/quicker than a complete uninstall/reinstall.
    Nice job Edgar!

  • WCF OData Service stored procedure call generates "Operation could destabilize the runtime" error with $select option

    I've been trying to call a stored procedure through Entity Framework and WCF Data Services (OData). It returns an entity not a complex type. Following walkthroughs found all over the web, I came up with this code inside my service:
    [WebGet]
    public IQueryable<Entity> GetEntitiesByParameterId(int parameterId)
    return CurrentDataSource.GetEntitiesByParameterId(parameterId).AsQueryable();
    Calling the proc this way: ~WcfService.svc/GetEntitiesByParameterId?parameterId=1 executes
    the stored procedure and returns entities that should be returned. No problem there.
    Everything works well until I try to use $select OData option ie. ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$select=name.
    Upon debugging, the method above runs without any error but it returns an Operation could destabilize the runtime error upon reaching the
    client. After so much research, apparently it is a very general error pointing to a lot of different causes. I haven't found one that really matches my particular problem. Closest are 
    http://stackoverflow.com/questions/378895/operation-could-destabilize-the-runtime
    https://social.msdn.microsoft.com/Forums/en-US/d2fb4767-dc09-4879-a62a-5b2ce96c4465/for-some-columns-entity-properties-executestorequery-failed-with-error-operation-could?forum=adodotnetdataservices 
    but none of the solutions worked on my end.
    Also, from the second article above:
    This is a known limitation of WCF DS. ...
    Second is that some of the queries won't work correctly because LINQ to EF needs little different LINQ expressions than LINQ to Objects in some cases. Which is the problem you're seeing.
    It has been posted on 2012. If it its true, are there still no updates on this? And is there any other workaround to get the $select working on the stored proc call?
    What works:
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$top=1
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$skip-5
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$filter={filter query}
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$expand=SomeNavigationProperty
    What doesn't work:
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$select=name
    Tech details:
    EntityFramework 5, WCF Data Service 5.0, OData V3
    *I've also tried upgrading to EF6 and WCF 5.6.2 and it still didn't work.
    Any help would be appreciated. Thanks!

    Someone from SO replied to my question there and said that $select is still not supported though I couldn't find any definitive documentation about it.
    From what I gather and observed, $select breaks the stored procedure call because it tries to alter the data shape already gotten from the database and attempts to return a dynamic entity instead. Something about the stored proc returning an ObjectResult might
    be messing it up. As I have said, these are merely my observations.
    Workaround: I found a simple and elegant workaround for it though. Since my stored procedures are only getting data from the database and does
    not alter data in any way (INSERT, UPDATE, DELETE), I tried using table-valued functions that returns a table equivalent to the entity on my EF. I've found that calling this function on the Service Operation method returns an IQueryable<Entity> which
    is basically what is needed. $select also works now and so does other OData query options.
    Steps:
    Create a function on the database
    Update EDMX -> Add function
    Add new Function Import with Entity return type
    Create service operation in WCF Data Service that calls CurrentDataSource.<FunctionName>()
    Test in fiddler.
    CODES
    Database Function:
    CREATE FUNCTION GetEntities(@parameter)
    RETURN @entites TABLE(
    [Id] [int],
    [Name] [nvarchar](100),
    AS
    BEGIN
    INSERT INTO @entities
    SELECT [Id], [Name], ... FROM [EntityTable]
    RETURN
    END
    WCF:
    [WebGet]
    public IQueryable<Entity> GetEntity(int parameter)
    return CurrentDataSource.GetEntity(parameter);
    It doesn't really solve the stored procedure problem but I'm marking this as answer until someone can provide a better one as it does solve what I'm trying to do.
    Hope this helps others too. :)

  • Runtime Error from Microsoft Visual C++

    "the application has requested the runtime to terminate it in an unusual way. Please contact the application support team for more information."
    The Runtime Error happens when I am playing with InstanceManager addinstance buttons. The error usually happens when I make a change to the script and or the buttons position in the hierarchy and then hit Save or when I switch view from Design View to Preview PDF.
    The New Form message occurs seemingly randomly after I make a change to the document, Save it, close it, come back later and try to open it.
    Anyone know the solution? Thanks

    FYI, if you are sufficiently computer literate to follow the instructions in the Youtube link, Edgar's suggested fix is much easier/quicker than a complete uninstall/reinstall.
    Nice job Edgar!

  • How to delete the runtime error in st22

    Hi all,
            How to delete the runtime error in ST22. I want to clear
    the list of short dump in st22
    is there any T.code or any table to clear?
    thanks in advance
    sundar.c

    Hi
    you cannot delete the dumps through any tcode.
    All the dumps are stored in table called SNAP, If there are more dumps the table gets filled therefore u have to reorganize the table.
    Run the report RSSNAPDL in SE38.
    or
    You have the default SAP background jobs, SAP_REORG_ABAPDUMPS which deletes the past dumps raised in the system.
    Scheduling the jobs in regular is very important
    For more information
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7ede505211d189550000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d8/a58b4275160d53e10000000a155106/frameset.htm
    Regards
    Bhaskar

  • How can I fix the Runtime Error R6034 so that I can correctly install iTunes on my PC ? I get a notice that states ' An application has made an attempt to load the C runtime library incorrectly - Please contact the application's support team for more info

    How can I fix the Runtime Error R6034 so that I can correctly install iTunes on my PC ? I get a notice that states ' An application has made an attempt to load the C runtime library incorrectly - Please contact the application's support team for more info

    Hey Debbiered1,
    Follow the steps in this link to resolve the issue:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    When you uninstall, the items you uninstall and the order in which you do so are particularly important:
    Use the Control Panel to uninstall iTunes and related software components in the following order and then restart your computer:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended affects.
    Let us know if following that article and uninstalling those components in that order helped the situation.
    Welcome to Apple Support Communities!
    Take care,
    Delgadoh

  • How do I find the "Preferences" file within Elements 10 to fix the runtime error?  I can't find it any where

    I am trying to fix the runtime error that occurs when I open the Photoshop Elements 10 editor and shuts down the program.  I am using the instructions found on the abode website here:
    http://helpx.adobe.com/x-productkb/global/troubleshoot-c-runtime-errors-products.html
    There are no good instructions telling me what the Preferences file is named or how to find it. If someone could help that would be great.

    If you are using Windows 7 then the preference file that needs to be renamed is at this location:
    <C:\Users\USERNAME\AppData\Roaming\Adobe\Photoshop Elements\10.0\Editor>
    In the above path, replace USERNAME with your windows profile name  which could be something like jblogetc or whatever.  Also the preference file is called: Adobe Photoshop Elements 10 Prefs.psp and this needs to be renamed to Adobe Photoshop Elements 10 Prefs.old
    Once this done, restart PSE 10 and then see if it works.

  • How do i solve the Runtime Error: java.lang.UnsatisfiedLinkError

    Runtime Error: java.lang.UnsatisfiedLinkError
    // Dialog_age
    import javax.swing.JOptionPane;
    public class Dialog_age
    public static void main(String arguments[])
    String Input_Age;
    int age;
    Input_Age = JOptionPane.showInputDialog("Enter a number.");
    age = Integer.parseInt(Input_Age);
    JOptionPane.showMessageDialog(null , "Your age is " + age);
    System.exit(0);
    }Whenever i run this program or a program similar to that program. I get the Runtime Error (anytime i run the program on a command prompt, but if i run it on my jGRASP it runs ok!): java.lang.UnsatisfiedLinkError.
    Here is my Error Message:
    C:\java>java Dialog_age
    Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.font.FontManager.initIDs(
    Z)V
    at sun.font.FontManager.initIDs(Native Method)
    at sun.font.FontManager.access$000(Unknown Source)
    at sun.font.FontManager$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.FontManager.<clinit>(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment.addDirFonts(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment.registerFontsInDir(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment.access$200(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.java2d.SunGraphicsEnvironment.<init>(Unknown Source)
    at sun.awt.Win32GraphicsEnvironment.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
    at javax.swing.RepaintManager.<clinit>(Unknown Source)
    at javax.swing.UIManager.initialize(Unknown Source)
    at javax.swing.UIManager.maybeInitialize(Unknown Source)
    at javax.swing.UIManager.getDefaults(Unknown Source)
    at javax.swing.UIManager.getString(Unknown Source)
    at javax.swing.UIManager.getString(Unknown Source)
    at javax.swing.JOptionPane.showInputDialog(Unknown Source)
    at javax.swing.JOptionPane.showInputDialog(Unknown Source)
    at Dialog_age.main(Dialog_age.java:14)
    But a few weeks ago i could run the program on a command prompt , perfectly!
    I recently came to the conclusion that it has something to do with me upgrading my IDE(jGRASP) and Java language.
    Now, since thats the case how do i resolve this error. That BUGGING the heck out of me!
    Thanks and Peace!

    Hi,
    Check which JRE/JDK is used by your jGRASP.Then set the path environment variables according to that.
    I'm afraid you have multiple jre/jdk in your system and one of that has problem with native libraries.
    Best of luck!!

  • What is the runtime error compute_bcd_overflow.

    Hi guys,
    pls let me know that when the runtime error compute_bcd_overflow occurs.what will be the causes for this program.

    You usually get that, if a number you calculate i getting bigger than the field it is stored in allows.
    Take a look at your short dump, in the details it should give you more information and also the place in the coding where the error happens.
    Hope that helps,
    Michael

  • Delete the Runtime Errors List from ST22 t-code

    HI all;
    Can any one Help on these Issue!
    How to delete the list of Runtime Errors, which are available in ST22 T-code .
    Thnaks
    Upender.

    Hello,
    you could use the report RSSNAPDL .
    Regards Wolfgang

  • Runtime error from null value

    I have a request to create a Function Module that will be assigned to an Action Box, which when executed will copy long text for Quality Notification tasks.  I have the module created and working, but after my code is executed a runtime error happens due to a null value being passed to a method in the SAP program QM07_UPDATE_ACTIONBOX.  It looks to me like it is trying to perform some kind of cleanup tasks, and is trying to delete a node tree that does not exist.  My code did nothing with any kind of node tree, so I am not sure how to avoid this runtime error.  My code works as desired, except for this error that occurs after my code is processed.  Any assistance would be greatly appreciated!  Below are more details from the error received...
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "QM07_UPDATE_ACTIONBOX" "(FUNCTION)", nor was it propagated by a RAISING clause.  Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated.
        The reason for the exception is:
        You attempted to use a 'NULL' object reference (points to 'nothing') access a component (variable: "TREE_ACTIONBOX").   An object reference must point to an object (an instance of a class) before it can be used to access components.  Either the reference was never set or it was set to 'NULL' using the CLEAR statement.
    Information on where terminated
        Termination occurred in the ABAP program "SAPLQM07" - in "QM07_UPDATE_ACTIONBOX".  The main program was "SAPLIQS0 ".
        In the source code you have the termination point in line 39 of the (Include) program "LQM07U12".  The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in procedure "QM07_UPDATE_ACTIONBOX" "(FUNCTION)", but it was neither handled locally nor declared in the RAISING clause of its signature.
        The procedure is in program "SAPLQM07 "; its source code begins in line 1 of the (Include program "LQM07U12 ".
       28 * bei Tree werden Knoten und Items gelöscht bei Table Control wird
       29 * nur g_control_tab neu aufgebaut
       30   if g_tree = c_x.
       31 *---- Löschen der bestehenden Knoten und Items
       32
       33 * Tabelle der Knotenschlüssel erzeugen
       34     loop at g_node_tab into l_node.
       35       append l_node-node_key to l_dnodes_tab.
       36     endloop.
       37
       38 * Items
    >>>>>     call method tree_actionbox->delete_all_items_of_nodes
       40       EXPORTING
       41         node_key_table          = l_dnodes_tab
       42       EXCEPTIONS
       43         failed                  = 1
       44         cntl_system_error       = 2
       45         error_in_node_key_table = 3
       46         dp_error                = 4.

    Yes, I have searched the notes.  I used the keywords suggested in the dump...
    If the error occures in a non-modified SAP program, you may be able to find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following keywords:
    "OBJECTS_OBJREF_NOT_ASSIGNED" "CX_SY_REF_IS_INITIAL"
    "SAPLQM07" or "LQM07U12"
    "QM07_UPDATE_ACTIONBOX"

  • Runtime error from LT03/LT06 after System upgrade

    Hi All,
    Currently we are upgrading our system from 4.7 to eec6.
    Not we are getting a runtime error while executing LT03/LT06 txns...
    the error is - Runtime error GETWA_NOT_ASSIGNED...
    Program - SAPLLPRI
    Include - LLPRIF00.
    Row 525.
    Module name - PROTO_TAB_READ.
    Please suggest me...if there is any SAP note .to be appied.
    Thnx
    RK

    Please search yourself for applicable SAP notes before asking others.
    Thread locked.
    Thomas

  • C program: Runtime error from GetStaticMethodId()

    I am new to Java and need help with .....
    I want to call a java method (native) from legacy C code.
    The java code has to return a Hashtable to the C code.
    My java works and I wrote another java file to call it. That
    also works fine and I can display my new Hashtable in
    the calling java code.
    However in my calling C code I get a runtime error when
    executing mid2 = GetStaticMethodId() // mid2 returns 0
    I believe the problem is in the method signature. If I
    make it an int method, it runs and returns an int
    but I want a hashtable to be returned.
    Using javah RMHash, produces RMHashData.h with nothing useful in it.
    My environment is: NT, jdk1.3, VIsual Studio cl.
    I hope someone can help me.
    Sample java code: This runs OK stand alone or called
    from another piece of java code.
    import java.util.Hashtable;
    import java.io.*;
    import java.util.*;
    public class RMHashData
    public RMHashData()
    public static Object getMasterData()
    Hashtable hash = new Hashtable(20);
    int rtnInt = 6;
    hash.put ("1050", new String("AAAAAA"));
    hash.put ("1051", new String("BBBBB"));
    hash.put ("1052", new String("CCCCCCCCC"));
    return hash;
    public static void main(String[] args)
    int RtnInt;
    Hashtable RtnHash;
    RtnHash = (Hashtable)RMHashData.getMasterData();
    Sample C code: (I had to retype this so cut out superfluous code)
    #include <stdio.h>
    #include <jni.h>
    main()
    JNIEnv *env;
    JavaVM *jvm;
    JavaVMOption options[4];
    JavaVMInitArgs vm_args;
    jint res;
    jclass cls;
    jmethodID mid, mid2;
    jstring jstr;
    jvalue result;
    jobjectArray args;
    char classPath[256];
    char libraryPath[256];
    vm_args.version = JNI_VERSION_1_2;
    /* set the options to pass to the VM */
    sprintf(classPath, "%s", "-Djava.class.path=c:\\data\\java_dev\\src");
    sprintf(libraryPath, "%s", "-Djava.library.path=c:\\jdk131\\lib");
    options[0].optionString = classPath;
    options[1].optionString = libraryPath;
    vm_args.options = options;
    vm_args.nOptions = 2;
    vm_args.ignoreUnrecognized = JNI_FALSE;
    /* Create the Java VM */
    res = JNI_CreateJavaVM(&jvm, (void **) &env, &vm_args);
    cls = (*env)->FindClass(env, "RMHashData");
    // *** Getting the main method works
    mid = (*env)->GetStaticMethodID(env, cls, "main", "([Ljava/lang/String;)V");
    // *** Getting this method FAILS
    mid2 = (*env)->GetStaticMethodID(env, cls, "getMasterData", "()[Ljava/lang/Object;");
    if (mid2 == 0) // ***** mid2 is 0
    fprintf(stderr, "Can't find Prog.getMasterData\n");
    return 1;
    result.l = (*env)->CallStaticObjectMethod (env,cls, mid, args);
    // Then comes more fun to pull apart the hashtable...

    Bill, Thank you very much - that was it!!!!!
    Not sure about your comment...
    Comment: Why don't you just return a Hashtable?The line: return hash;
    in getMasterData() does exactly that.
    If you mean my declaration of the method:
    public static Object getMasterData()
    where Object should be Hashtable.
    I thought the type in the declaration had to match the
    JNI call - CallStaticObjectMethod(). I notice there is no
    CallStaticHashtableMethod(). Well that is my guess and I only started looking at Java a few days ago and have lots to learn. Thank you again.
    Ron...

  • How to overcome the certificate error?

    Maximum Number Of Applications Are Getting certificate expired or error.how to overcome the problem.

    To add with above, you can change the date back to 2008 or 2009 in clock settings before installation and when installation finished change it to current 2010. this will only work with "Certificate expired".
    Previous Phones: 6600, 7610, 6230, 6230i, 1100, 1112, N70, N73, N95, N95 8GB, 5800XM, 5230, C5, iPhone 3GS, SE Xperia X10, N900, N8, SE Xperia Arc
    Current Phones: Nokia N9, iPhone 4

Maybe you are looking for

  • I am unable to access my Amercian Express online Account?

    Windows XP Pro 2002, service pack 3 Firefox v20.0.1 Two days ago, I found myself unable to access my American Express on-line account, with Firefox. As I attempt to login and I am unable to connect to https://online.amercianexpress.com... I have succ

  • How to see our processchain

    HI all, How to see our process chain in sm37? Regrds...

  • Are you sure you want to send a form?

    How do I keep this from popping up? When I try to page back I get this pop up all the time.

  • Classic mode of creating Odata services

    Hi, Am new to Odata service and was given a requirement to create notification using Odata service. Our system doesnot support SEGW. Please help me with steps how we can create Odata using classes/methods and how we register the service. Please share

  • Can't install Creative Suite CS5.5 on Macbook Pro

    I recently purchased a new Macbook Pro and tried to install the trial of Creative Suite CS 5.5 Master Collection. After pressing the "Download Now" button, a new window opened up saying "Install Adobe Download Assistant." When I double click that, th