Crazy!! Tree object Casting... Error

I've created a Jtree, consisting of objects of type (String x, String y, String z), When i rename a leaf id like the first String "x" in the object to change accordingly and the rest to remain the same...
I've used a TreeModelListener with the treeNodesChanged methods to listen for a rename and the below code to change it, But i keep getting the following:-
java.lang.ClassCastException: java.lang.String
// Code
DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
MObject obj = (MObject) node.getUserObject(); //error
node.setUserObject(new MObject (obj.x, obj.y, obj.z));
the casting works perfectly in other sections of the code just not here. please help Thx

pl. giv code for ur MObject and node creation

Similar Messages

  • ABAP Objects Casting error

    Hi,
    I have declared two classes with names, ZCL_ONE, ZCL_TWO.
    ZCL_TWO is inhering ZCL_ONE.
    Now i am using them in the se38 program.
    While i use it, Narrow casting is working fine, But widening casting is not working.
    It is throwing an exception or a dump if i do not catch an exception.
    <i>Code:</i>
    DATA: OBJ1 TYPE REF TO ZCL_ONE,
               OBJ2 TYPE REF TO ZCL_TWO.
    CREATE OBJECT OBJ1.
    OBJ2 ?= OBJ1.
    The above code is giving me dump. Any guesses about how to solve it.
    I am able to work with the Narrow casting.. which is below code.. It is working fine.
    DATA: OBJ1 TYPE REF TO ZCL_ONE,
              OBJ2 TYPE REF TO ZCL_TWO.
    CREATE OBJECT OBJ2.
    OBJ1 = OBJ2.
    How to resolve the error.
    Thanks in Advance.

    obj1 should be the super(inherited) class of obj2....while using widening cast....
    example:
    INTERFACE i1.
      DATA a1 TYPE ...
    ENDINTERFACE.
    INTERFACE i2.
      INTERFACES i1.
      ALIASES a1 FOR i1~a1.
      DATA a2 TYPE ...
    ENDINTERFACE.
    CLASS c1 DEFINITION.
      PUBLIC SECTION.
        INTERFACES i2.
    ENDCLASS.
    CLASS c2 DEFINITION INHERITING FROM c1.
      PUBLIC SECTION.
        METHODS m1.
    ENDCLASS.
    DATA: iref TYPE REF TO i2,
          cref TYPE REF TO c1.
    CREATE OBJECT iref TYPE c2.
    ... iref->a1 ...
    ... iref->a2 ...
    TRY.
      cref ?= iref.
      CALL METHOD cref->('M1').
      CATCH cx_sy_move_cast_error
            cx_sy_dyn_call_illegal_method.
    ENDTRY.
    Message was edited by:
            Muthurajan Ramkumar

  • Inexplicable Object Required error in status bar?  Crazy.

    Hope someone can help.  Firstly, I'm developing in Classic ASP, DW8.0.2.
    I am receiving an inexplicable "Object Required" error in my status bar on the following page of a website I am developing:
    http://www.moviegossip.co.uk/movie-reviews.asp?m=1
    When the page initially loads, there is no error.  But click a link, or hit Refresh and the error appears!  And there are loads of errors too!  What gives?
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Timestamp: Fri, 12 Feb 2010 16:04:45 UTC
    Message: Object required
    Line: 53
    Char: 3
    Code: 0
    URI: http://www.moviegossip.co.uk/movie-reviews.asp?m=1
    Message: Object required
    Line: 53
    Char: 3
    Code: 0
    URI: http://www.moviegossip.co.uk/movie-reviews.asp?m=1
    Message: Object required
    Line: 53
    Char: 3
    Code: 0
    URI: http://www.moviegossip.co.uk/movie-reviews.asp?m=1
    Message: Object required
    Line: 53
    Char: 3
    Code: 0
    URI: http://www.moviegossip.co.uk/movie-reviews.asp?m=1
    Message: Object required
    Line: 53
    Char: 3
    Code: 0
    URI: http://www.moviegossip.co.uk/movie-reviews.asp?m=1
    Message: Object required
    Line: 53
    Char: 3
    Code: 0
    URI: http://www.moviegossip.co.uk/movie-reviews.asp?m=1
    Message: Object required
    Line: 53
    Char: 3
    Code: 0
    URI: http://www.moviegossip.co.uk/movie-reviews.asp?m=1
    Message: Object required
    Line: 53
    Char: 3
    Code: 0
    URI: http://www.moviegossip.co.uk/movie-reviews.asp?m=1
    Line 53 of my code is:
    rsMOVIE_cmd.CommandText = "SELECT movieID, movie, cinedvd, moviecert, movierelease, moviecast, movietrailerID, livemovie FROM dbo.movies WHERE movieID = ?"
    However, I know this isn't the problem because I've completely rewritten the code and it always flags line 53, char 3 no matter what code is on that line.
    Hope someone can shed some light on the matter.  Thanks.
    Regards
    Nath.

    Thank you, again, for your response Bregent.
    The line in the client code, that's being reported as being an error is:
    <div class="reviewlayout">
    Can I just confirm with you though, when the page initially loads I don't receive the error.  It's only when I either select another link, from that page, or refresh the page.  Is that also happening for you?  It sounds like you're not seeing the error initially either, but I am wondering if, like me, you receive the error when you choose a link, or refresh?  I'm getting that in IE8 and Firefox 3.6:
    http://www.moviegossip.co.uk/movie-reviews.asp?m=1
    Why would an innocuous bit of CSS code be causing this error?
    Appreciate the input, thanks.
    Nath.

  • Cast error in java sound

    Hey, i got a little run-time error:
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: com.sun.media.sound.PortMixer$PortMixerPort
    the code segment it occurs at is here:
    case 0:
          targetDataLine1 = (TargetDataLine)mixer1.getLine(targetInfo);
          targetDataLine2 = targetDataLine1;
    }Some background info: I used getTargetLines() method of Mixer to obtain an arraylist of all the Line.Info objects (for targetLines) in a mixer, then I passed this into a GUI class, and made a vector to display in combo box. once user selects an item, it casts it back into Line.Info, and calls the mixer's "getLine()" method to retrieve the line. But I get the cast error. I know you can cast from Line to TargetDataLine (since TargetDataLine is a subinterface of Line) -- and I saw it on a tutorial, so I don't know what's wrong. Any help?
    If you need more info, just tell me.

    But still, the tutorial I looked at
    (http://java.sun.com/j2se/1.5.0/docs/guide/sound/progr
    ammer_guide/chapter3.html#113154)
    still showed it down-casting from a Line object to a
    TargetDataLine object.
    You need to understand the difference between a reference and an object. The object itself was a TargetDataLine object, otherwise the cast wouldn't have worked. The reference to it was of type Line.
    // obj is a reference of type Object. The object it points to is a String:
    Object obj = "I am a String";
    // Which explains why this works:
    String s = (String)obj;
    // and why this fails:
    Integer i = (Integer)obj;
    Not to mention, the java API says that the
    getLine(Line.Info) object returns an object of type
    Line.
    And I still don't understand why you can't cast from
    a superclass to a subclass. I know intuitively, it
    makes since, since not all RECTANGLES are SQAURES,
    but all SQUARES are RECTANGLES. But still, I know
    enough programming to remember numerous instances of
    casting Object as other classes....
    See above.
    Oh, and what does the $ symbol in
    com.sun.media.sound.PortMixer$PortMixerPort mean?It means that the the class PortMixerPort is an inner class (or nested class, I never remember the difference :-) in the class PortMixer.

  • Field symbols - casting error

    Hi,
       I created a table dynamically and assigned it to field symbol. Now i want to write the contents of the internal table to a flat file in app server. Here is what i am doing.
    parameters: p_table(30) type c default 'PA0008',
                p_file LIKE RLGRAP-FILENAME default '/usr/sap/tmp/test.txt'.         " Path to save files to
    FIELD-SYMBOLS: <w_table> type standard table,
                   <w_wa>   TYPE any,
                   <w_field> type any.
    DATA: w_dyn_wa type ref to data,
          w_dyn_table type ref to data.
    CREATE DATA w_dyn_wa TYPE (p_table). "Suitable work area
    ASSIGN w_dyn_wa->* TO <w_wa>.
    create data w_dyn_table type standard table of (p_table).
    assign w_dyn_table->* to <w_table>.
    data w_dyn_data(5000) type c.
    SELECT * FROM (p_table) INTO table <w_table> where endda >= sy-datum.
    Data: w_temp type string.
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE encoding default.
    IF SY-SUBRC = 0.
      loop at <w_table> into <w_wa>.
      w_temp = ''.
        do.
          assign component sy-index of structure <w_wa> to <w_field>.
          if sy-subrc <> 0.
            exit.
          endif.
          concatenate w_temp <w_field> into w_temp respecting blanks.
          if sy-index = 1.
            transfer '' to p_file.
          endif.
         transfer <w_field> to p_file no end of line.
        enddo.
       transfer w_temp to p_file no end of line.
       write:/ w_temp.
      endloop.
    endif.
    close dataset p_file.
    when i run the program with PA0008 i am getting a casting error "Object not char like". How do i get rid of this error?. I tried moving the contents of field symbol to a string and appending it. It worked, but i lost the exact formatting of data in the file. In other words, it got rid of extra blanks. I need exact structure of internal table in the file.
    Thanks,
    Sandeep
    Thanks,
    Sandeep

    Hi
    Have u tried to use MOVE statament instead of CONCATENATE?
    do.
    assign component sy-index of structure <w_wa> to <w_field>.
    if sy-subrc <> 0.
    exit.
    endif.
    DESCRIBE FIELD <W_FIELD> LENGTH V_LEN.
    MOVE <W_FIELD> TO w_temp+V_OFFSET(V_LEN).
    V_OFFSERT = V_OFFSET + V_LEN.
    Max

  • Application-defined or Object-defined error

    Hello,
    When I open Input schedule through open dynamic templates I get the following error message
    Application-defined or Object-defined error
    Version : BPC 7.0
    SP05
    Request your guidance.
    Thanks,
    Ramsiva

    I have experienced much the same problem which I have documented in details here:
    Excel Spreadsheet being opened in preview mode by some machines
    (Note that I am only surmising the preview mode is the problem as I get the exact same error if I open it on the Development machine in preview mode).
    My only workaround at the moment is to open the spreadsheet on the target machine and then replace the vba code and save the file locally (Copy Paste), or apply a digital certificate to the existing VBA code, although the latter only seems to work sometimes.
    If I fix the problem on the target machine and then copy, open and close the file on the development machine when the file is sent back to the target machine the problem occurs again.
    I have ruled out emailing being the problem as I have copied the file instead of emailing. 
    The development machine had a number of Office applications and Windows 7 updates applied around the time that the problem occurred, i.e. one day everything is fine, the next day it is impossible to run a new spreadsheet on certain machines.
    The highlighted error is also with a .select statement but I isolated the code and put it into a test spreadsheet and that ran okay so it seems to be a more subtle problem.
    It doesn't happen on all the machines and I can't see any pattern as to what machines it works on and those it doesn't. They are mostly Windows 7 64bit running Office 2010 and 2013, seems to be about 50/50 split as to working and not working. 
    I've ensured that the Windows Updates are up to date on all the problem machines.
    I think it is the same problem and it helps knowing that someone else has experienced the same thing in order that I don't think I'm going crazy but it's a major problem for me and none of the suggestions so far seem to be close to explaining what is going
    on.
    If anyone wants samples in order to investigate the problem I am more than happy to send them the spreadsheets. 

  • Object Casting

    hi ,i have a question for .Base on this example below , i need to understand some casting basic .I understand how premitives values widening rules works but not on object casting rules.
    Question 1.
    Okay ,base on the example below why 'c=(Test) a' will always give compile error while "a=b" does not .Let takes this example , b already extends A and should have information of A class while A only have it own .I know i was thinking another way round.Can any one help.
    Question 2.
    How to make " c = (Test) a to run without any problem ,as long as a is assign to a is ok.
    Question 3.
    I have a statement from Khalid book page 202 and i don't understand .
    First statement:=Conversion which preserve the inheritance is a relationship are allowed ,other conversion      require an explicit case or are illegal.
    Fecond statement:=There is no notion of promotion for reference values.
    Question 4.
    What is the benefit of using casting and when we need to use it .Can give a short example.??
    class A {int Athing = 1;}
    class B extends A {int Bthing = 2;}
    class Test extends A
    { int Cthing = 3;
    public static void main(String args[])
    A a = new A();
    B b = new B();
    Test c = new Test();
    //c = (Test) a; //runtime error
    a = b;

    Ron, does your mommy know you're here? Shoudn't you be out riding your bike or doing homework or watching X Men or something instead of interrupting the grown-ups?
    Wikey: The answer to your question is that you can always (and implicitly) cast to a subclass because the subclass is always a member of the class, but you can't always even explicitly cast to the parent or higher class. To give a concrete example, all Toyota Camries are cars, but not all cars are Toyota Camries. There are things you can do with a Toyota Camry that you can't do with all cars. In your code, if you had coded A a = new Test();, you woudn't have a runtime error.
    Doug

  • Why alert casting error when module url changed?

    Hi, everyone.
    I occurred a stranger error when click the item in DataGrid
    which is redirected by "ModuleLoader" url.
    Error #1034: Cast Error:Cannot cast
    mx.managers::DragManagerImpl@482f971 to
    mx.managers.IDragManager。
    at mx.managers::DragManager$/get
    impl()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:152]
    at mx.managers::DragManager$/get
    isDragging()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:18 7]
    at
    mx.controls.listClasses::ListBase/dragScroll()[E:\dev\3.0.x\frameworks\projects\framework \src\mx\controls\listClasses\ListBase.as:7148]
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at <anonymous>()
    at SetIntervalTimer/onTimer()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    Actually I never modify about DragManagerImpl...
    In my main.mxml there is a
    <mx:ModuleLoader id="module"
    url="modules/DeviceRegisterSelectWizardModule.swf"/>
    this ModuleLoader control is to load a new swf module when
    change the url.
    Althought the first loaded module which included DataGrid is
    OK, it popup the error when this module is the second time switched
    by the url...
    The error is the above when click the item in it.
    Actually all cast operation is error as I tried:
    And is there any solution for it? ModuleLoader has such a
    bug?
    Thank you very much.

    Hi,
    Another way to "find" the URL for the oamconsole, that I use if I'm not familiar with the configuration I'm working on is to first log into the Adminserver WL Console, then go to "Deployments".
    Then, find "oamconsole" in the Deployments listed (on the right).
    Click on that, then on the next page, look for the "Testing" tab. Click on the "Testing" tab, which which show the /oamconsole app.
    Click on the "+" to expand the tree, and you should see a bunch of different URLs on the right, e.g., if you have OAM console deployed to managed servers, etc., there'll be different URLs for those, etc., and you can just click on the links to open up OAM Console in your browser.
    Jim

  • Encountered Incompatible combination of objects (QP0004) error!

    Support Case for BOXI
    Title: encountered Incompatible combination of objects (QP0004) error!
    BOXI version: Business Objects boe XIR2 SP2
    OS: PARISC HPUX 11.11
    Description:
    In the Customer Inventory report document, there are three report tabulation and three filter conditions to limit Display relevant customer and date result
    It works incorrectly while the report has three filter conditions,but two filter conditions it works correctly. in the begin i doubt the generate sqls are incorrectly,i copy the sql sentence in the sqlplus envirement and execute , sql sentence syntax and result were correctly.but in BO Edit Query when the report has three filter conditions,i click SQL button and generate sqls there display error .
    so i checked design object and found out why will appear this error, in the designer I put this object(name is 'Is Srvc Level Created in time frame') into Query panel, then click SQL button generate sql,
    This mistake will show:'Incompatible combination of objects (QP0004)'
    'Is Srvc Level Created in time frame' object sql code as follows:
    select:
               CASE WHEN @Select(Service Level\Service Level Creation Date) >= @Select(Time\TIME - Period Start Date) AND @Select(Service Level\Service Level Creation Date)  <= @Select(Time\TIME - Period End Date) THEN 1 ELSE 0 END
    where:
    filter conditions generate sqls like below sentence,please pay attention to bold sentence:
    SELECT
    /*+ LEADING(time_dim) */ 1,
    CUSTOMER_DIM.NAME,
    ( SI_AND_SCI_DIM.LABEL )||' ('||( SI_AND_SCI_DIM.NAME )||')',
    ( SLA_DIM.LABEL )||' ('||( SLA_DIM.NAME )||')',
    CAST(SI_AND_SCI_DIM.DELETION_DATE AS DATE),
    CAST(SLA_DIM.CREATION_DATE AS DATE),
    CAST(SLA_DIM.DELETION_DATE AS DATE),
    ( CUSTOMER_DIM.LABEL )||' ('||( CUSTOMER_DIM.NAME )||')'||'['||( CUSTOMER_DIM.ID )||']',
    CAST(SI_AND_SCI_DIM.CREATION_DATE AS DATE),
    SLA_DIM.NAME,
    CAST(CUSTOMER_DIM.CREATION_DATE AS DATE),
    CASE WHEN ( CAST(SLA_DIM.CREATION_DATE AS DATE) ) >= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_START.FULL_DATE) AS DATE) ) AND ( CAST(SLA_DIM.CREATION_DATE AS DATE) ) <= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_END.FULL_DATE) AS DATE) ) THEN 1 ELSE 0 END,
    CASE WHEN ( CAST(SI_AND_SCI_DIM.CREATION_DATE AS DATE) ) >= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_START.FULL_DATE) AS DATE) ) AND ( CAST(SI_AND_SCI_DIM.CREATION_DATE AS DATE) ) <= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_END.FULL_DATE) AS DATE) ) THEN 1 ELSE 0 END,
    CASE WHEN ( CAST(SL_DIM.CREATION_DATE AS DATE) ) >= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_START.FULL_DATE) AS DATE) ) AND ( CAST(SL_DIM.CREATION_DATE AS DATE) ) <= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_END.FULL_DATE) AS DATE) ) THEN 1 ELSE 0 END FROM
    SI_AND_SCI_DIM,
    CUSTOMER_DIM,
    SLA_DIM,
    TIME_DIM TIME_FRAME_START,
    TIME_DIM TIME_FRAME_END,
    GRANULARITY_DIM,
    SI_VIEW_SCI_HEALTH,
    VIEW_TIME_DIM
    WHERE
    ( CUSTOMER_DIM.ID=SI_VIEW_SCI_HEALTH.DM$CUSTOMER_REF )
    AND ( SI_VIEW_SCI_HEALTH.DM$TIME_REF=VIEW_TIME_DIM.ID )
    AND ( SI_VIEW_SCI_HEALTH.DM$SI_OR_SCI_REF=SI_AND_SCI_DIM.ID )
    AND ( SI_VIEW_SCI_HEALTH.DM$GRANULARITY=GRANULARITY_DIM.KEY_ID )
    AND ( VIEW_TIME_DIM.ID>=TIME_FRAME_START.ID )
    AND ( VIEW_TIME_DIM.ID<TIME_FRAME_END.ID )
    AND ( SI_VIEW_SCI_HEALTH.DM$SLA_REF=SLA_DIM.ID )
    AND ( SI_AND_SCI_DIM.IS_SERVICE = 'T' )
    AND ( SLA_DIM.CUSTOMER_REF = ( CUSTOMER_DIM.ID ) )
    AND
    ( ( CUSTOMER_DIM.LABEL ) in decode(@Prompt('Choose Customer','A','Customer\Customer Label',MONO,FREE), '*', ( CUSTOMER_DIM.LABEL ), @Prompt('Choose Customer','A','Customer\Customer Label',MONO,FREE)) )
    AND
    ( ( TIME_FRAME_START.ID ) = bo_tools.getFirstTimeRef(
    'M',
    NULL,
    'YYYY/MM',
    @Prompt('Enter month and year (date format: YYYY/MM)','A',,MONO,FREE))
    AND
    ( TIME_FRAME_END.ID ) = bo_tools.getLastTimeRef(
    'M',
    @Prompt('Enter month and year (date format: YYYY/MM)','A',,MONO,FREE),
    'YYYY/MM') )
    AND
    GRANULARITY_DIM.KEY_ID = 'M'
    However at the same time, if there has third filter condition,BO Edit Query can not generate sqls and display error.
    I confirm by checking the sqls sentence in the sqlplus, the results are correctly.but in BO Edit Query are not correctly.
    Any one who encountered this before? I think it is a bug, I post this message asking for help and hope it can be fixed soon.
    if you need more info I can send you screen shot, thanks!

    Sorry I didn't read the whole thing above.. But I can advice you as I encountered the same error.
    It happened to me because of a loop that was forming between the tables .
    loop in the sense: A-B-C-D-A
    When i checked Short Cut join in the join properties I was not getting this error message. but... it was joining through a different longer path. It was then I realized that it had a loop. You can have a careful look to see if you are having the same issue. hope it helps people in future.

  • Encountered Incompatible combination of objects (QP0004) error! help please

    Support Case for BOXI
    Title: encountered Incompatible combination of objects (QP0004) error!
    BOXI version: Business Objects boe XIR2 SP2
    OS: PARISC HPUX 11.11
    Description:
    In the Customer Inventory report document, there are three report tabulation and three filter conditions to limit Display relevant customer and date result
    It works incorrectly while the report has three filter conditions,but two filter conditions it works correctly. in the begin i doubt the generate sqls are incorrectly,i copy the sql sentence in the sqlplus envirement and execute , sql sentence syntax and result were correctly.but in BO Edit Query when the report has three filter conditions,i click SQL button and generate sqls there display error .
    so i checked design object and found out why will appear this error, in the designer I put this object(name is 'Is Srvc Level Created in time frame') into Query panel, then click SQL button generate sql,
    This mistake will show:'Incompatible combination of objects (QP0004)'
    'Is Srvc Level Created in time frame' object sql code as follows:
    select:
               CASE WHEN @Select(Service Level\Service Level Creation Date) >= @Select(Time\TIME - Period Start Date) AND @Select(Service Level\Service Level Creation Date)  <= @Select(Time\TIME - Period End Date) THEN 1 ELSE 0 END
    where:
    filter conditions generate sqls like below sentence,please pay attention to bold sentence:
    SELECT
    /*+ LEADING(time_dim) */ 1,
    CUSTOMER_DIM.NAME,
    ( SI_AND_SCI_DIM.LABEL )||' ('||( SI_AND_SCI_DIM.NAME )||')',
    ( SLA_DIM.LABEL )||' ('||( SLA_DIM.NAME )||')',
    CAST(SI_AND_SCI_DIM.DELETION_DATE AS DATE),
    CAST(SLA_DIM.CREATION_DATE AS DATE),
    CAST(SLA_DIM.DELETION_DATE AS DATE),
    ( CUSTOMER_DIM.LABEL )||' ('||( CUSTOMER_DIM.NAME )||')'||'['||( CUSTOMER_DIM.ID )||']',
    CAST(SI_AND_SCI_DIM.CREATION_DATE AS DATE),
    SLA_DIM.NAME,
    CAST(CUSTOMER_DIM.CREATION_DATE AS DATE),
    CASE WHEN ( CAST(SLA_DIM.CREATION_DATE AS DATE) ) >= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_START.FULL_DATE) AS DATE) ) AND ( CAST(SLA_DIM.CREATION_DATE AS DATE) ) <= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_END.FULL_DATE) AS DATE) ) THEN 1 ELSE 0 END,
    CASE WHEN ( CAST(SI_AND_SCI_DIM.CREATION_DATE AS DATE) ) >= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_START.FULL_DATE) AS DATE) ) AND ( CAST(SI_AND_SCI_DIM.CREATION_DATE AS DATE) ) <= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_END.FULL_DATE) AS DATE) ) THEN 1 ELSE 0 END,
    CASE WHEN ( CAST(SL_DIM.CREATION_DATE AS DATE) ) >= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_START.FULL_DATE) AS DATE) ) AND ( CAST(SL_DIM.CREATION_DATE AS DATE) ) <= ( CAST(bo_tools.from_gmt_to_time_zone(TIME_FRAME_END.FULL_DATE) AS DATE) ) THEN 1 ELSE 0 END FROM
    SI_AND_SCI_DIM,
    CUSTOMER_DIM,
    SLA_DIM,
    TIME_DIM TIME_FRAME_START,
    TIME_DIM TIME_FRAME_END,
    GRANULARITY_DIM,
    SI_VIEW_SCI_HEALTH,
    VIEW_TIME_DIM
    WHERE
    ( CUSTOMER_DIM.ID=SI_VIEW_SCI_HEALTH.DM$CUSTOMER_REF )
    AND ( SI_VIEW_SCI_HEALTH.DM$TIME_REF=VIEW_TIME_DIM.ID )
    AND ( SI_VIEW_SCI_HEALTH.DM$SI_OR_SCI_REF=SI_AND_SCI_DIM.ID )
    AND ( SI_VIEW_SCI_HEALTH.DM$GRANULARITY=GRANULARITY_DIM.KEY_ID )
    AND ( VIEW_TIME_DIM.ID>=TIME_FRAME_START.ID )
    AND ( VIEW_TIME_DIM.ID<TIME_FRAME_END.ID )
    AND ( SI_VIEW_SCI_HEALTH.DM$SLA_REF=SLA_DIM.ID )
    AND ( SI_AND_SCI_DIM.IS_SERVICE = 'T' )
    AND ( SLA_DIM.CUSTOMER_REF = ( CUSTOMER_DIM.ID ) )
    AND
    ( ( CUSTOMER_DIM.LABEL ) in decode(@Prompt('Choose Customer','A','Customer\Customer Label',MONO,FREE), '*', ( CUSTOMER_DIM.LABEL ), @Prompt('Choose Customer','A','Customer\Customer Label',MONO,FREE)) )
    AND
    ( ( TIME_FRAME_START.ID ) = bo_tools.getFirstTimeRef(
    'M',
    NULL,
    'YYYY/MM',
    @Prompt('Enter month and year (date format: YYYY/MM)','A',,MONO,FREE))
    AND
    ( TIME_FRAME_END.ID ) = bo_tools.getLastTimeRef(
    'M',
    @Prompt('Enter month and year (date format: YYYY/MM)','A',,MONO,FREE),
    'YYYY/MM') )
    AND
    GRANULARITY_DIM.KEY_ID = 'M'
    However at the same time, if there has third filter condition,BO Edit Query can not generate sqls and display error.
    I confirm by checking the sqls sentence in the sqlplus, the results are correctly.but in BO Edit Query are not correctly.
    Any one who encountered this before? ,I post this message asking for help and hope it can be fixed soon.
    if you need more info I can send you screen shot, thanks!

    Sorry I didn't read the whole thing above.. But I can advice you as I encountered the same error.
    It happened to me because of a loop that was forming between the tables .
    loop in the sense: A-B-C-D-A
    When i checked Short Cut join in the join properties I was not getting this error message. but... it was joining through a different longer path. It was then I realized that it had a loop. You can have a careful look to see if you are having the same issue. hope it helps people in future.

  • Multiple web services on single server causing object undefined errors

    Hi,
    I've currently got a bit of a strange problem within a web service that is proving difficult to debug.
    There are the web service urls :
         api.domain.com                -> /var/www/html/api.domain.com/            -> CF mapping to MYSERVICE
         testapi.domain.com          -> /var/www/html/testapi.domain.com/     -> CF mapping to MYSERVICE_test
    In both instances the cfcs that contain the code to be translated into a WSDL reside in /api/..., in the case of this example, /api/common.cfc.  wsargs constists simply of refreshwsdl true.
    If I call the following 2 lines ...
         obj_myservice = CreateObject('webservice','http://api.domain.com/api/common.cfc?wsdl',wsargs);
         obj_myservice_test = CreateObject('webservice','http://testapi.domain.com/api/common.cfc?wsdl',wsargs);
    I then call the same method in both, and they are successful.  When checking the "Data & Services" -> "Web Services" panel within the CF control panel, only the web service "http://api.domain.com/api/common.cfc?wsdl" is listed, and not testapi.domain.com......
    If I reverse the order in which the WSDL's are loaded then this switches, and testapi.domain.com..... gets listed under "Web Services" but api.domain.com..... does not.  In essence it appears as though for some reason the CF server overwrites one with the other.  The exact "object undefined" error is proving difficult to reproduce reliably.
    This appears to happen no matter which server is accessing the web service, be it the same server or a remote server.  All servers involved are running CF8.  Accessing the 2 WSDL files in a browser results in the 2 WSDLs being rendered correctly with different namespace values.
    On the same server are 2 more services
         MYSERVICE2
         MYSERVICE2_test
    These reside in the /api2 directories on the same 2 subdomains, api. and testapi.   MYSERVICE2 and MYSERVICE2_test appear to conflict with each other.  MYSERVICE and MYSERVICE_test appear to conflict with each other.  MYSERVICE and MYSERVICE2 do not appear to conflict with each other.
    Is there a configuration change or anything like that which I should be aware of that would prevent me doing the above?  The 2 /api/ directories are nearly identical with the exception that the namespace and complex type names have been set to http://api.domain.com & MYSERVICE in the first, and http://testapi.domain.com & MYSERVICE_test in the second url.
    I have also tried mapping /MYSERVICE and /MYSERVICE_test within /opt/coldfusion8/WEB-INF/jrun-web.xml to no avail.
    Any help would be appreciated.  If there is any useful information that I have missed off please let me know and I'll dig it out.
    - Simon H

    Hi,
    As an extension to the above
    Server                Test service         "Live" service
    1 ("dev")                devtest                   devlive               http://dev(test/live).domain.com
    2 ("test")                testtest                   testlive               http://test(test/live).domain.com
    I currently have a test script (TEST1) that performs the following :
    CreateObject + call method from devlive
    CreateObject + call method from devtest
    CreateObject + call method from testtest
    The script errors on the third, when it attempts to call a method from devtest.  On the server on which this test script is running, by the end of this, there are the following 2 web services in the Coldfusion control panel :
    http://devlive.domain.com/api/common.cfc?wsdl
    http://testtest.domain.com/api/common.cfc?wsdl
    I have a second test script (TEST2) on a second server distinctfrom the first test script server, on which the following is performed :
    CreateObject + call method from testlive
    If I execute TEST2, then it executes fine.  If I execute TEST1 straight after, then I receive the following error on TEST1
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: Deserializing parameter 'objectFetchReturn':  could not find deserializer for type {http://common.types.WEBSERVICE_test}details
    Where WEBSERVICE.types.common.details is a complex type (/api/types/common/details.cfc). If I then run the TEST2 script again straight after, the same error appears (with WEBSERVICE in place of WEBSERVICE_test).  If I execute TEST2 twice in a row, or TEST1 twice in a row, then the error disappears"test" server has got jrun-web.xml  edited to include the following, which "dev" does not.
      <virtual-mapping>
        <resource-path>/WEBSERVICE_test</resource-path>
        <system-path>/var/www/html/testapi.domain.com/api</system-path>
      </virtual-mapping>
      <virtual-mapping>
        <resource-path>/WEBSERVICE</resource-path>
        <system-path>/var/www/html/api.domain.com/api</system-path>
      </virtual-mapping>
    I hope that this extended explaination helps.
    Simon H

  • Multiple tree objects in ApEx 4.0

    Hi all,
    I'm working on a project where i need to put 2 tree objects in one region.
    First tree object is correct but when i add my second tree below the first one no data is shown or the wrong data is shown.
    Strange thing is when i put the second tree above the first tree it all works well.
    Is there an explanation for this or is it a bug in ApEx?
    my apex version is 4.0.0.00.46
    Edited by: Mario DS on 15-nov-2011 14:20

    Hi,
    Pre-Apex4 you could make use of the A1 and A2 columns in the tree SQL along with the tree template to conditional set the color of the node text. Does anyone know how to achieve this in Apex4? I've tried using the tree SQL shown below but this displays the HTML (SPAN tags) as text.
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           '<span style="color:red;">'||"ENAME"||'</span>' as title,
           null as icon,
           "EMPNO" as value,
           null as tooltip,
           null as link
    from "#OWNER#"."EMP"
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME"Any assistance would be appreciated.
    Cheers.

  • Object expected error in java script...

    Dear All,
    we have Java Struts 1.1...
    I am getting "Object Expected" error while processing jsp page.
    I want to modify the text field so that only number and one dot(.) should be entered.
    I have one function and i am calling it as "onkeypress" event.
    Below is the function....
    function isNumberKey(evt)
    alert("here");
    var charCode;
    clearerror();
    charCode = (evt.which) ? evt.which : event.keyCode
    alert("here");
    if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
    return false;
    return true;
    and below are html tags...
    <td>Total No Of Customers  *</td>
    <td><html:text property="noOfCustomersUnit" onkeypress="return isNumberKey(event)" style="width:160px"/></td> Please suggest how to solve the issue....

    Why? This is not a javascript forum.
    In any case, run it in firefox which has decent Javascript error handling functionality, then do some Google searches on Javascript event handling to try and figure out what you're doing wrong. It might be something browser specific and I suggest you look into using something like JQuery for standardized and proven ways to do things like event handling logic in stead of rolling your own Javascript stuff.

  • CO Object assignment error in MB1B

    Dear All,
    While doing transfer posting with movement type 453, system is showing CO object assignment error.
    CO object not assigned to cost element error..........
    Wiating for reply.
    Thanks & regards

    hi
    go to OKB9 here give assignment of cost center and cost element
    regards
    kunal

  • Object Referenced Error When calling the Windows Form during Runtime

    Hi,
    I am getting  Object reference errors when running windows form during runtime. In debugging mode in MS Visual studio 2005, I am not getting this error. I'm calling the window form from menu and called the window in a thread as suggested in one of forums . I don't see anyone in the forum mentioned this problem I have. Any help would be deeply appreciated. Below are the error and code samples.
    ERROR Message
    Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Project1.Loadxml.Loadxml_Load(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Edited by: Albert Tio on Feb 16, 2011 9:55 AM

    Here is the code.
    Option Strict Off
    Option Explicit On
    Friend Class GetEvents
        Public WithEvents SBO_Application As SAPbouiCOM.Application
        Public SboGuiApi As SAPbouiCOM.SboGuiApi
        Public oForm As SAPbouiCOM.Form
        Public oDBDataSource As SAPbouiCOM.DBDataSource
        Public oCompany As SAPbobsCOM.Company
        Public RS As SAPbobsCOM.Recordset
        Public oPrev_Bank As String, oPrev_AcctType As String
        Public oLoadXml As Loadxml
        Public Sub SetApplication()
                 'Dim SboGuiApi As SAPbouiCOM.SboGuiApi
            Dim sConnectionString As String
            SboGuiApi = New SAPbouiCOM.SboGuiApi
            ' by following the steps specified above, the following
            ' statment should be suficient for either development or run mode
            sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
            ' connect to a running SBO Application
            SboGuiApi.Connect(sConnectionString)
            ' get an initialized application object
            SBO_Application = SboGuiApi.GetApplication()
        End Sub
        Public Sub SetCompany()
            Dim ret As Long
            Dim MsgStr As String
            Dim Cookie As String
            Dim ConnStr As String
            Try
                oCompany = New SAPbobsCOM.Company
                Cookie = oCompany.GetContextCookie
                ConnStr = SBO_Application.Company.GetConnectionContext(Cookie)
                '//before setting the SBO login context make sure the company is not connected
                If oCompany.Connected = True Then
                    oCompany.Disconnect()
                End If
                ret = oCompany.SetSboLoginContext(ConnStr)
                If Not ret = 0 Then
                    Exit Sub
                End If
                ret = oCompany.Connect
            Catch ex As Exception
                SBO_Application.MessageBox(ex.Message)
            End Try
            MsgStr = ""
            If Not ret = 0 Then
                oCompany.GetLastError(ret, MsgStr)
                SBO_Application.MessageBox(MsgStr)
            Else
            End If
        End Sub
        Public Sub New()
            MyBase.New()
            ' set SBO_Application with an initialized application object
            SetApplication()
            SetCompany()
            AddMenuItems()
        End Sub
        Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
            Dim myThread As New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf LoadXmlMainThread))
            Try
                If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
                    'SBO_Application.MessageBox("My sub menu item was clicked")
                    '// Create a form to be launched in response to a click on the
                    '// new sub menu item
                    myThread.SetApartmentState(System.Threading.ApartmentState.STA)
                    myThread.Start()
                    'Loadxml.ShowDialog()
                                End If
            Catch ex As Exception
                SBO_Application.MessageBox("1." & ex.Message)
            End Try
            'If (pVal.MenuUID = "MyGoToMenu") And (pVal.BeforeAction = False) Then
            '    SBO_Application.MessageBox("My GoTo Menu was clicked")
            'End If
            'If (pVal.MenuUID = "MySecondGoToMenu") And (pVal.BeforeAction = False) Then
            '    SBO_Application.MessageBox("My Second GoTo Menu was clicked")
            'End If
        End Sub
        Private Sub LoadXmlMainThread()
            'Dim lLoadxml As New Loadxml
            Try
                oLoadXml = New Loadxml
                oLoadXml.WindowState = FormWindowState.Maximized
                oLoadXml.ShowInTaskbar = True
                oLoadXml.TopMost = True
                oLoadXml.Activate()
                Application.Run(oLoadXml)
            Catch ex As Exception
                SBO_Application.MessageBox("2." & ex.Message)
            End Try
        End Sub
        Private Sub AddMenuItems()
            '// Let's add a separator, a pop-up menu item and a string menu item
            Dim oMenus As SAPbouiCOM.Menus
            Dim oMenuItem As SAPbouiCOM.MenuItem
            Dim i As Integer '// to be used as counter
            Dim lAddAfter As Integer
            Dim sXML As String
            '// Get the menus collection from the application
            oMenus = SBO_Application.Menus
            'Save an XML file containing the menus...
            'sXML = SBO_Application.Menus.GetAsXML
            'Dim xmlD As System.Xml.XmlDocument
            'xmlD = New System.Xml.XmlDocument
            'xmlD.LoadXml(sXML)
            'xmlD.Save("c:
    mnu.xml")
            Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
            oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
            oMenuItem = SBO_Application.Menus.Item("43520") 'moudles'
            Dim sPath As String
            sPath = Application.StartupPath
            'sPath = sPath.Remove(sPath.Length - 3, 3)
            If sPath.EndsWith("\") = False Then
                sPath = sPath & "\"
            End If
            '// find the place in wich you want to add your menu item
            '// in this example I chose to add my menu item under
            '// SAP Business One.
            oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
            oCreationPackage.UniqueID = "MyMenu01"
            oCreationPackage.String = "Unbridle Menu"
            oCreationPackage.Enabled = True
            oCreationPackage.Image = sPath & "unbridle.bmp"
            oCreationPackage.Position = 15
            oMenus = oMenuItem.SubMenus
            Try ' If the manu already exists this code will fail
                oMenus.AddEx(oCreationPackage)
                '// Get the menu collection of the newly added pop-up item
                oMenuItem = SBO_Application.Menus.Item("MyMenu01")
                oMenus = oMenuItem.SubMenus
                '// Create s sub menu
                oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                oCreationPackage.UniqueID = "MySubMenu"
                oCreationPackage.String = "Unbridle Monitoring"
                oMenus.AddEx(oCreationPackage)
            Catch er As Exception ' Menu already exists
                'SBO_Application.MessageBox("Menu Already Exists")
            End Try
        End Sub
    End Class
    Public Class Loadxml
        'Inherits System.Windows.Forms.Form
        Public sBPpath As String
        Public sGLpath As String
        Public sBillpath As String
        Public bRun As Boolean
        Private Sub Loadxml_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Me.TextGL.Text = System.Configuration.ConfigurationSettings.AppSettings("GLAcctDownloadPath").ToString()
            Me.TextBP.Text = System.Configuration.ConfigurationSettings.AppSettings("BPAcctUPloadPath").ToString()
            Me.TextBill.Text = System.Configuration.ConfigurationSettings.AppSettings("BillUPloadPath").ToString()
            Me.NotifyIcon1.Visible = False
        End Sub
    End Class

Maybe you are looking for

  • Power consumption and thermal dissipation for SG 100-24

    Hello, I need to know the following informations about Switch model SG 100-24 - power consumption (watt) - thermal dissipation (BTU/hour) Please may somebody help me out on this ? (by the way such information is not in the Cisco documentation) Thank

  • New IPhone Update

    I connectd to Wifi to download the new update and when I hit the update button the phone asked me to connect to Itunes. I connected to Itunes but the computer won't even read my phone. I have hard reset and everything and cannot figure out how to fix

  • Variable Authorizations for Cost elements (K_REPO_CCA)

    Hi everybody. I have a doubt regarding the posible options for an authorization on object K_REPO_CCA. Our system is R/3 version 5.0. Is it possible to create a variable, "$COST_ELEMENT" for example, and fill the values dinamically by a user_exit or m

  • How can I retrieve my phone contacts? I lost them when I upgraded to IOS 8.2

    I upgraded to IOS 8.2 and now have only Facebook Contacts on my phone. All other phone contacts are gone. And, I can no longer "add" new contacts as the + sign no longer appears in the top right corner of my contact screen. Need advice and help. Appl

  • How to acess audio on a video  clip... it plays when clicked on seperately,but not in movie.

    I have created a movie.  It will not play the audio, but when I expand the view to expert, the audio shows up.. it just does not play.  It does play the narration added to the pictures in the clip... What can I do.  Yes, the volume on the computer is