Exception in Behavior

Hello!
Well here's the thing. Me and my groupmates were supposed to create a simulation of a bacteria. So we have to do some "division". So far, I've encountered a lot of problems in doing the project since Ive only started using java3d this month. Now, my major concern is this exception i get with my behavior class. well, i made nested classes so that i could access some information from the other classes through the global variables. It worked ok but when i decided to do some collision detection, i started getting an exception. Guys!!!Please help me out!
Here's the code for my behavior class
class AcidTolerantRhizobiaBehavior1 extends Behavior{
          private TransformGroup targetTG;
          WakeupCriterion[] criterion;
          WakeupOnElapsedTime wake;
          WakeupOr oredCriteria;
          int ctrTester = 0;
          // create SimpleBehavior - set TG object of change
          AcidTolerantRhizobiaBehavior1(TransformGroup targetTGInput){
          targetTG = targetTGInput;
          System.out.println("hello");
          // initialize the Behavior
          // set initial wakeup condition
          // called when behavior becomes live
          public void initialize(){
               // set initial wakeup condition
               criterion = new WakeupCriterion[4];
               criterion[0] = new WakeupOnElapsedTime(150);
               criterion[1] = new WakeupOnCollisionEntry(targetTG);
          criterion[2] = new WakeupOnCollisionExit(targetTG);
          criterion[3] = new WakeupOnCollisionMovement(targetTG);
          oredCriteria = new WakeupOr(criterion);
          wakeupOn(oredCriteria);
          // called by Java 3D when appropriate stimulus occurs
          public void processStimulus(Enumeration criteria){
               // do what is necessary in response to stimulus
               //if (criteria.hasMoreElements()){
               WakeupCriterion theCriterion = (WakeupCriterion) criteria.nextElement();
          if (theCriterion instanceof WakeupOnCollisionEntry) {
               tester = false;
               ctrTester = 0;
          Node theLeaf = ((WakeupOnCollisionEntry) theCriterion)
          .getTriggeringPath().getObject();
          System.out.println("Collided with " + theLeaf.getUserData());
          } else if (theCriterion instanceof WakeupOnCollisionExit) {
          Node theLeaf = ((WakeupOnCollisionExit) theCriterion)
          .getTriggeringPath().getObject();
          System.out.println("Stopped colliding with "
          + theLeaf.getUserData());
          tester = false;
          ctrTester = 0;
          } else if (theCriterion instanceof WakeupOnCollisionMovement){
          Node theLeaf = ((WakeupOnCollisionMovement) theCriterion)
          .getTriggeringPath().getObject();
          System.out.println("Moved whilst colliding with "
          + theLeaf.getUserData());
          tester = false;
          ctrTester = 0;
               else {
          System.out.println("hello");
               Vector3f currentLocation = new Vector3f();
               Transform3D tempTransform = new Transform3D();
               //assign the transform3d of the target to tempTransform
               targetTG.getTransform(tempTransform);
               //get the currentlocation of the object
               tempTransform.get(currentLocation);
               System.out.println(currentLocation);
               TransformGroup tg = targetTG;
               double cmp = Math.random();
               Vector3f newLocation = null;
               if((cmp >= 0.0)&&(cmp <=0.25))
                    newLocation = new Vector3f(currentLocation.x + .5f, currentLocation.y , currentLocation.z);
               else if((cmp > 0.25)&&(cmp <=0.5))
                    newLocation = new Vector3f(currentLocation.x , currentLocation.y , currentLocation.z+ .5f);
               else if((cmp > 0.5)&&(cmp <=0.75))
                    newLocation = new Vector3f(currentLocation.x - .5f, currentLocation.y , currentLocation.z);
               else if((cmp > 0.75)&&(cmp <=1.0))
                    newLocation = new Vector3f(currentLocation.x, currentLocation.y , currentLocation.z - .5f);
               tempTransform.set(newLocation);
               targetTG.setTransform(tempTransform);
               if(ctrTester == 10){
                    tester = true;
                    ctrTester = 0;
                    idWillMultiply.add(id + ""); //idWillMultiply contains the id's of the bacteria that will multiply
               //this.initialize();                     
               ctrTester++;
               wakeupOn(oredCriteria);
....and the exception goes like this:
Exception occurred during Behavior execution:
java.util.NoSuchElementException: No more criterion
     at javax.media.j3d.WakeupCriteriaEnumerator.nextElement(WakeupCriteriaEnumerator.java:130)
     at simulation1$AcidTolerantRhizobia1$AcidTolerantRhizobiaBehavior1.processStimulus(simulation1.java:477)
     at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:172)
     at javax.media.j3d.J3dThread.run(J3dThread.java:256)
And it's really driving me nuts because i have to get it done this week and so far i got stuck with this problem.help!

I recently, was very much helped by this website: http://www.articles.maindevice.com/ or http://www.maindevice.com/
Here many technical articles.
How you think it interesting article? - " Does a Smartphone Beat a Laptop "
HERE: http: // www.articles.maindevice.com/mobile_art_10.htm
sourse: http: // www.articles.maindevice.com/

Similar Messages

  • TaskFlow Exception Handler Behavior

    Hi all,
    I have a question about taskflow exception handler.
    My customer is using method-call exception handler to display error detail as FacesMessage dialog in their taskflow.
    And they are now trying to find the way to call exception handler but not to show the dialog in case that some sort of exceptions happen.
    To achieve this requirement they delete FacesContext.addMesage() from their exception handler, but when not call addMessage() they always get return code 500 (internal server error).
    From the behavior we've got, do we always need to call addMessage() in it to come back to original page?
    Regards,
    Atsushi

    Hi Frank,
    Thank you for your reply. Please let me ask you another question.
    When method-call error handler is executed it returns an outcome. And the outcome determines the next activity I get to.
    My question is whether it is a designed behavior of method-call error handler that when the below two conditions are met I get back to the original error page to see facesMessage dialog.
    1. The method-call outcome doesn't match any control flow case
    2. addMessage() is called in the method defined at method-call
    If any, I'd like to know how to get back the original page after error handler is executed without faces message.
    Thanks,
    Atsushi

  • Exceptions, odd behavior of streaming data to outputstream

    I have a servlet which writes mp3 data to the dataoutputstream of a servlet response object. For some reason, the servlet method writes the data out and gets an exception. Then the method/servlet is called again automatically and begins to write the data out again. The exception is below. In the end the mp3 is delivered to the client fine, however with server side exceptions and odd behavior.
    try {
              int len = 0;
              resp.setContentType("audio/mpeg");
              String filename = req.getParameter("file");
              File mp3 = new File(mediaDir + filename);
              byte[] buf = new byte[1024];
              FileInputStream fis = new FileInputStream(mp3);
              DataOutputStream o = new DataOutputStream(resp.getOutputStream());
              while( (len = fis.read(buf)) != -1) {            
                 o.write(buf, 0, len);            
              o.flush();
              resp.flushBuffer();
              o.close();
              fis.close();
           catch(Exception e) {
              System.out.println(e.getMessage());
              e.printStackTrace();
    null
    ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
         at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
         at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
         at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
         at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392)
         at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)
         at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:76)
         at java.io.DataOutputStream.write(DataOutputStream.java:90)
         at TrafficControl.streamAudio(TrafficControl.java:639)
         at TrafficControl.processRequest(TrafficControl.java:136)
         at TrafficControl.doGet(TrafficControl.java:61)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)thanks
    Edited by: black_lotus on 19-Feb-2009 3:08 PM

    There are some versions of some browsers (MS IE) that can call a servlet twice; they only look at the headers at the first request, in order to decide whether to display a "save or open" dialog, or some such reason. Try different browsers; also log the User-Agent header to see if it is "contype", which is present when the multiple request thing happens.
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;q293792
    "Connection reset" can also happen if the client closes the connection without reading the entire response. Occasional resets will happen as users cancel download.
    Not a source of exceptions but something you may still want to consider when sending large responses: by default, the servlet container will have to buffer the entire file in memory to find out its length. To save memory, either set content length before writing the data, or use chunked encoding (google should find details.) That way your write() actually streams data to the user.

  • Re: Raising Exceptions Vs returning erro[Ref:C809787]

    Hi Steve !
    Probably the following explanation might help in resolving the issue raised by
    you:
    At a more abstract level, there is only one thing, i.e. the EVENT. According to
    it's definition, an event is a relatively infrequent occurrence in one portion (lets
    call it event raiser) of the application, which some other portion (or portions,
    lets call them event handlers) (of the same application) are interested to respond
    to it. Now there are two scenarios:
    (A) Event raiser and Event handler(s) are being executed under different threads
    of control (Asynchronous) and
    (B) Event raiser and Event Handler(s) are being executed under same thread of
    control (Synchronous).
    So, Exception Handling belongs to scenario B where the method raising the
    exception (Event Raiser or exception raiser) and the method handling it (Event
    Handler or exception block) are under the same thread of control. More ever it has
    to be insured that at a time only one handler (first the inner most one) receives
    the message.
    Fort&eacute; provides a generic Event handling mechanism (Post Event and Event Loop) to
    handle the scenario A (which is the more generic one). But it also provides a
    specialized Event Handling mechanism (Raise Exception and Exception block) to
    efficiently handle the relatively simple scenario B. Why I am saying that the later
    is efficient because it won't be needing to register the event queue address of the
    interested task (after all there is only one task involved) and put the event
    message in queue.
    Finally let me mentioned that it is just my view based on the understanding I
    have and it may not be true. Only a person from fort&eacute; can confirm it. I will really
    appreciate if somebody correct and or refine it.
    Wish a Very Very Happy New Year to all Fort&eacute; Users
    Regard,
    Kailash.
    [email protected] wrote:
    I would agree with Eric entirely. Exceptions seem to me to be a much more
    complete solution to the problem of error handling. A little bit of effort up
    front in making clear the strategy for exception handling and specifying the
    exceptions that can be raised by a class\method will provide an excellent method
    for error handling.
    In the case of ensuring exceptions are always handled, a top level handler for
    GenericException will usually do the job, allowing you to write error
    information out to logs, screen, etc, and then shut down gracefully.
    The only issue I would raise with exceptions is that they are not propagated
    outside an asynchronous task. If an exception is not handled within an
    asynchronous, it will not propagate to the task that started that asynchronous
    task. Forte provides return and exception events when starting asynchronous
    tasks to cope with this, but it seems a shame to have one method of dealing with
    errors (exceptions) for synchronous behaviour, and another (events) for
    asynchronous behaviour.
    Steve Elvin
    Systems Developer
    Frontline Ltd.
    UK
    Mark,
    The problem with return codes is that there is an underlying assumption
    that the receiver will always catch and interpret that error code. This
    may or may not be good thing, depending on how you architect your
    application. If, on the other hand, you want to ensure that an error is
    always handled, if not by the receiver then by the Forte, Exceptions are
    the way to go. To extend this mechanism further, I would subclass
    GenericException and created my own error code attribute on that
    subclass. That way the receiver has the choice of interpreting the
    exception based on that error code, and wrapping it in a
    MessageDialog/window or do the usual 'errormgr.showerrors()'.
    Exceptions seem a more flexible approach to me. That is, if you can live
    with the fact that by using it, you're violating the 'exceptions for
    behavioral anomalies' software engineering principle !
    Best wishes.
    Eric Pereira
    Forte Consultant
    ----Original Message Follows----
    From: "Kallambella, Ajith" <[email protected]>
    To: "'Mark Sundsten'" <[email protected]>, [email protected]
    Cc: [email protected]
    Subject: RE: Raising Exceptions Vs returning error codes
    Date: Wed, 30 Dec 1998 08:52:39 -0500
    Reply-To: "Kallambella, Ajith" <[email protected]>
    Mark,
    Identifying conditions where you would rather use an exception
    to an error_code ( and vice-versa ) normally depends on
    your application design. Usually exceptions
    are used to handle behavioral anomalies which are
    not expected during the normal course of execution of
    the program, and which would affect the continuity of
    your algorithm if ignored. Examples would be a fatal
    error, a semantically invalid( but syntactically-valid
    token ) etc.
    Error_codes and return status's can be used to handle
    anticipated and recoverable errors. Example would
    be presentation layer validations. In any normal
    UI system, the user is expected to make errors and it
    would be annoying to throw an exception( and to handle
    it ), every time user enters wrong data. A well
    modeled client layer should not only handle
    data-validation errors , but should be smart enough
    to encourage users to input correct or
    "near-correct" data. Examples could be
    making use of look-up windows etc. Interestingly,
    Express uses exceptions to handle data-validations.
    As you see, exceptions fit well into your processing
    logic where severity of damage caused by an error
    is more. Where as error_codes fit well into presentation
    logic( and some not-so-critical processing logic ) where
    errors are usually recoverable and normal path of
    execution can be easily restored.
    Hope this helps. I would be very interested to hear
    what others have to say.
    Ajith Kallambella. M
    Forte Systems Engineer,
    International Business Corporation.
    -----Original Message-----
    From: Mark Sundsten [mailto:[email protected]]
    Sent: Tuesday, December 29, 1998 2:10 PM
    To: [email protected]
    Cc: [email protected]
    Subject: Raising Exceptions vs returning error codes
    When dealing with error handling, I find myself struggling with the
    choice
    of
    raising exceptions (and handling them) from the caller
    vs returning an error code of somekind.
    When would you want to use one over the other?
    Should you always use exception handling?
    Any discussion would be appreciated.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Steve !
    Probably the following explanation might help in resolving the issue raised by
    you:
    At a more abstract level, there is only one thing, i.e. the EVENT. According to
    it's definition, an event is a relatively infrequent occurrence in one portion (lets
    call it event raiser) of the application, which some other portion (or portions,
    lets call them event handlers) (of the same application) are interested to respond
    to it. Now there are two scenarios:
    (A) Event raiser and Event handler(s) are being executed under different threads
    of control (Asynchronous) and
    (B) Event raiser and Event Handler(s) are being executed under same thread of
    control (Synchronous).
    So, Exception Handling belongs to scenario B where the method raising the
    exception (Event Raiser or exception raiser) and the method handling it (Event
    Handler or exception block) are under the same thread of control. More ever it has
    to be insured that at a time only one handler (first the inner most one) receives
    the message.
    Fort&eacute; provides a generic Event handling mechanism (Post Event and Event Loop) to
    handle the scenario A (which is the more generic one). But it also provides a
    specialized Event Handling mechanism (Raise Exception and Exception block) to
    efficiently handle the relatively simple scenario B. Why I am saying that the later
    is efficient because it won't be needing to register the event queue address of the
    interested task (after all there is only one task involved) and put the event
    message in queue.
    Finally let me mentioned that it is just my view based on the understanding I
    have and it may not be true. Only a person from fort&eacute; can confirm it. I will really
    appreciate if somebody correct and or refine it.
    Wish a Very Very Happy New Year to all Fort&eacute; Users
    Regard,
    Kailash.
    [email protected] wrote:
    I would agree with Eric entirely. Exceptions seem to me to be a much more
    complete solution to the problem of error handling. A little bit of effort up
    front in making clear the strategy for exception handling and specifying the
    exceptions that can be raised by a class\method will provide an excellent method
    for error handling.
    In the case of ensuring exceptions are always handled, a top level handler for
    GenericException will usually do the job, allowing you to write error
    information out to logs, screen, etc, and then shut down gracefully.
    The only issue I would raise with exceptions is that they are not propagated
    outside an asynchronous task. If an exception is not handled within an
    asynchronous, it will not propagate to the task that started that asynchronous
    task. Forte provides return and exception events when starting asynchronous
    tasks to cope with this, but it seems a shame to have one method of dealing with
    errors (exceptions) for synchronous behaviour, and another (events) for
    asynchronous behaviour.
    Steve Elvin
    Systems Developer
    Frontline Ltd.
    UK
    Mark,
    The problem with return codes is that there is an underlying assumption
    that the receiver will always catch and interpret that error code. This
    may or may not be good thing, depending on how you architect your
    application. If, on the other hand, you want to ensure that an error is
    always handled, if not by the receiver then by the Forte, Exceptions are
    the way to go. To extend this mechanism further, I would subclass
    GenericException and created my own error code attribute on that
    subclass. That way the receiver has the choice of interpreting the
    exception based on that error code, and wrapping it in a
    MessageDialog/window or do the usual 'errormgr.showerrors()'.
    Exceptions seem a more flexible approach to me. That is, if you can live
    with the fact that by using it, you're violating the 'exceptions for
    behavioral anomalies' software engineering principle !
    Best wishes.
    Eric Pereira
    Forte Consultant
    ----Original Message Follows----
    From: "Kallambella, Ajith" <[email protected]>
    To: "'Mark Sundsten'" <[email protected]>, [email protected]
    Cc: [email protected]
    Subject: RE: Raising Exceptions Vs returning error codes
    Date: Wed, 30 Dec 1998 08:52:39 -0500
    Reply-To: "Kallambella, Ajith" <[email protected]>
    Mark,
    Identifying conditions where you would rather use an exception
    to an error_code ( and vice-versa ) normally depends on
    your application design. Usually exceptions
    are used to handle behavioral anomalies which are
    not expected during the normal course of execution of
    the program, and which would affect the continuity of
    your algorithm if ignored. Examples would be a fatal
    error, a semantically invalid( but syntactically-valid
    token ) etc.
    Error_codes and return status's can be used to handle
    anticipated and recoverable errors. Example would
    be presentation layer validations. In any normal
    UI system, the user is expected to make errors and it
    would be annoying to throw an exception( and to handle
    it ), every time user enters wrong data. A well
    modeled client layer should not only handle
    data-validation errors , but should be smart enough
    to encourage users to input correct or
    "near-correct" data. Examples could be
    making use of look-up windows etc. Interestingly,
    Express uses exceptions to handle data-validations.
    As you see, exceptions fit well into your processing
    logic where severity of damage caused by an error
    is more. Where as error_codes fit well into presentation
    logic( and some not-so-critical processing logic ) where
    errors are usually recoverable and normal path of
    execution can be easily restored.
    Hope this helps. I would be very interested to hear
    what others have to say.
    Ajith Kallambella. M
    Forte Systems Engineer,
    International Business Corporation.
    -----Original Message-----
    From: Mark Sundsten [mailto:[email protected]]
    Sent: Tuesday, December 29, 1998 2:10 PM
    To: [email protected]
    Cc: [email protected]
    Subject: Raising Exceptions vs returning error codes
    When dealing with error handling, I find myself struggling with the
    choice
    of
    raising exceptions (and handling them) from the caller
    vs returning an error code of somekind.
    When would you want to use one over the other?
    Should you always use exception handling?
    Any discussion would be appreciated.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • ER: How can I show a list of exceptions form validateEntity?

    I'm working with JDeveloper, ADF BC, Struts and JSP.
    I,ve tried to follow the instructions in [Business Rules in ADF BC|http://www.oracle.com/technology/products/jdev/collateral/papers/10131/businessrulesinadfbctechnicalwp.pdf] form page 63 to the end, but the transaction still stops at the first error, and not when te validateEntity row is completed.
    I'd like to show a list of exceptions, but one only exception is showed for each time.
    Could anyone help me, please?

    Overriding validateEntity() is not best practice since when you do it you take on the responsibility of correctly catching and rebundling any exceptions that are thrown in order to keep the "bundled exception mode" behavior intact.
    Instead, as recommended in the ADF Developer's Guide for Forms/4GL Developers in [9.3 Using Method Validators | http://download.oracle.com/docs/html/B25947_01/bcrules003.htm#sm0234 ] you should use method validators for each separate programmatic validation rule that you want to implement. In so doing, the framework automatically maintains the bundled exception handling for you and you will see all failed exceptions in your page.

  • Last Value Exception Aggregation

    Hi.
    I have a KF with excpetion aggregation with Last Value based on CALWEEK. I have to calculate the 'for the month' and the YTD value for this in a query. When I execute the query, the system fetches the last value for the month for 'for the month'. However, it gets the same last value for the YTD as well. How do I change this to get the sum of last value of all the months for the YTD Value. For example, if I am looking in sep 2008, the for the month value should be the last week of Sep 2008 and the YTD should be the sum of all the last values for months Jan -08 to Sep-08.
    Cheers
    Anand

    Hello Vikram
    One possible solution I can think of is to use an extra ODS in order to hold your data in an aggregated form that suits you. Unfortunately the exceptional aggregation behaviour does not work outside reporting thus in the transfer rules from your data provider to this new ODS you should add a formula checking whether the new record to be transfered to the ODS has a date newer than the ones already transfered in the ODS. Else it should skip the current record and proceed to the next one.
    Another possible solution would be to use the APD and transfer the results of the query you are already playing in an ODS (this way you take advantage of the exceptional aggregation behavior) and by transfering your records to a second ODS you can achieve the aggregation you need.
    Assign points if any of the above helped

  • Exception aggregation - Last Value

    Hi,
    We are having requirement where we have a table in non R/3 system for SKU - Customer level closing stocks on particular day are maintained. We want to create a cube for the table in BI. This table contains entries for SKU + Customer for diff days. We want to show the closing stock of last(/latest) day for which Customer+ SKU record exists. To achieve this we have used Calculated Key figure on Closing stock with Exception Aggregation - Last value with ref to Calendar Day.
    It woks fine only if I have Customer & SKU both used in query. But we have to show these stocks aggregated on Plant level. (Customer are linked to Plants and it is directly avbl in our cube). In this case aggregation does'nt work.
    Lets say following are the closing stocks for SKU- M1 & 3 customers from Plant = 1101
              date-> 1/1/2007  2/1/2007  3/1/2007
    Cust1             10                           15
    Cust2                            20
    Cust3             25            
    In above case if i have to see closing stock on 3/1/2007 for SKU-M1 @plant 1101 (sum of latest closing stock @ all customer sites under plant 1101), i should get = 60 (152025). But it gives me 15 only.
    Could anyone explain how to design a query for this? Or in cube design/uploads it can be managed.
    Regards,
    Vikram.

    Hello Vikram
    One possible solution I can think of is to use an extra ODS in order to hold your data in an aggregated form that suits you. Unfortunately the exceptional aggregation behaviour does not work outside reporting thus in the transfer rules from your data provider to this new ODS you should add a formula checking whether the new record to be transfered to the ODS has a date newer than the ones already transfered in the ODS. Else it should skip the current record and proceed to the next one.
    Another possible solution would be to use the APD and transfer the results of the query you are already playing in an ODS (this way you take advantage of the exceptional aggregation behavior) and by transfering your records to a second ODS you can achieve the aggregation you need.
    Assign points if any of the above helped

  • Exception Aggregation LAST

    Hi all!
    We use BCS and in my cube 0FISYEAR, 0FISPER3.
    So i need to create KF like       amount in the end of the period
    I need to create Exception aggregate for my KF ?
    Exception Aggregation LAST and Referen. char. 0FISPER3
    Right?
    Thanks!

    Hello Vikram
    One possible solution I can think of is to use an extra ODS in order to hold your data in an aggregated form that suits you. Unfortunately the exceptional aggregation behaviour does not work outside reporting thus in the transfer rules from your data provider to this new ODS you should add a formula checking whether the new record to be transfered to the ODS has a date newer than the ones already transfered in the ODS. Else it should skip the current record and proceed to the next one.
    Another possible solution would be to use the APD and transfer the results of the query you are already playing in an ODS (this way you take advantage of the exceptional aggregation behavior) and by transfering your records to a second ODS you can achieve the aggregation you need.
    Assign points if any of the above helped

  • IPhone turns "old " podcast to "new"

    I listen to many podcast, and I use the function that syncs only podcast marked as "new" to my iPhone. With the ver2.0 on my iPhone I have noticed that the phone turns "old" (and podcast that I already listened to) to "new" and syncs them back to my iPhone. Has anyone else noticed this bug?

    same issue here. except the behavior is not consistent. sometimes the playcount gets synced from iphone back to itunes correctly, and the podcast gets deleted. other times, the blue dot that resembles a "new" podcast is revived, and thus synced back to the iphone.
    itunes 7.7.1, iphone 2.0 (EDGE). 10.5.4

  • Sum by and drill down

    hi, there are 3 levels in a dimension (grand total level , market and sub market)
    due to the complicated setting in RPD, I cannot use the normal method to GET "grand total" of a table.
    I found that I need to use "SUM(value BY market)" in the column formula to get the grand total.
    ( I have enabled "grand total" of the table (clicked on the imagebutton)).
    (if the column formula is value, not using SUM BY, the issued sql : *...... AGGREGATE(value by ) .....* )
    however, due to there is drill down on market.
    the excepted ui behavior is : when users click one of the markets, the sub markets and their values are shown.
    However, due to using SUM ... BY market, the values are still values of markets (not values of sub markets)
    are there any tricks to handle this ??
    thanks !!

    I have directly avoided this problem by using other ways.

  • TDMS Low level file functions and Saving Front Panel image

    Am using TDMS low level file functions to save while also plotting data in my data acquisition programme.  However, I also want to programmatically be saving the front panel image on every run of my data acquisition.  I have coded all other aspects, except the behavior of functionality of saving the front panel image on every successive runs of the application.  Unfortunately, I just have no idea on how to code this aspect on LabVIEW, and all effort to search for example codes on so far have not been successful.
    I would appreciate any useful hints or steps from anyone for me to follow, in order to accomplish this behavior, and that is being able to programmatically save my front panel images while using TDMS low level file functions in my File IO system of my application.
    Thanks in advance.

    Tebefia wrote:
    Am using TDMS low level file functions to save while also plotting data in my data acquisition programme.  However, I also want to programmatically be saving the front panel image on every run of my data acquisition.  I have coded all other aspects, except the behavior of functionality of saving the front panel image on every successive runs of the application.  Unfortunately, I just have no idea on how to code this aspect on LabVIEW, and all effort to search for example codes on so far have not been successful.
    I would appreciate any useful hints or steps from anyone for me to follow, in order to accomplish this behavior, and that is being able to programmatically save my front panel images while using TDMS low level file functions in my File IO system of my application.
    Thanks in advance.
    Did you see this link?
    CLA, LabVIEW Versions 2010-2013

  • All text behaviors are missing except Text Animation

    Final Cut Studio 2 installed several weeks ago. I started up Motion 3 for the first time today. Upon clicking "Add Behavior" icon all of the text behaviors are missing except Text Animation. (ie. Text-Basic, Text-Fade, Text-Glow, etc). Am I missing something? Thanks.

    Hi,
    My problem is i have selections texts in standard program previously i have descriptions for that.
    By mistaken all the texts were disappered and selection texts are existing.
    Now i eant to enter selection text name for that.AS it is a standard program i can't change it.
    Can you please give me an idea on this.
    Thanks,
    Swapna.

  • Exception behavior

    Hi,
    I have question about scheduler exception behavior. Currently, I have this chain:
    DATA_PREP -> BUILD_1 -> TEST_1
    -> BUILD_2 -> TEST_2 -> CLEAN_UP
    The DATA_PREP is the first step and the CLEAN_UP is the last step. The DATA_PREP prepares the common data to be used by BOTH BUILD_1 and BUILD_2. The CLEAN_UP is executed upon TEST_1 AND TEST_2 completion, and it will clean up any temp tables that were created in the DATA_PREP step. If there is any exception in the BUILD step, I will NOT raise the exception to the scheduler. Because doing so will stall the chain, thus prevent the CLEAN_UP step to process. In this case, I will "eat" the exception and make the dependent TEST step state to SKIP, so the control flow will eventually get to the CLEAN_UP step. The problem with this approach is the FAILURE state doesn't reflect in the chain step meta data (and maybe confusion to the user looking at the meta data). Any better way to handle the exception case and have the clean up processed.
    Thanks,
    Denny

    I think I may not need the FAIL step, I just need to
    change the rule to handle the FAIL state .That would work too, just change the rule to be "step completed" instead of "step succeeded" then the failed build steps will be visible in the chain history/logs.
    How does a step get into the "STOPPED" state?If a step is running, you can do dbms_scheduler.stop_job('schema.job.step') and the step will be stopped. Or if the database is shutdown while a chain step is running, when the database is restarted the step will be marked stopped.
    How do I stop the Chain, just disable the chain?You can't really stop a chain since it doesn't directly run but you can stop the job running the chain by using dbms_scheduler.stop_job('jobname')
    All the running steps still run into completion?If you stop a job that is running a chain then all running steps will be stopped. If you disable the job, then it will run to completion.
    If the db is shut down while the chain is running,
    what happens? Will the chain be rerun again next
    time the db is up?In this case, when that database is started, all chain steps that were running are marked stopped and the chain continues from that point.
    Hope this helps,
    Ravi.

  • [OT] surprising instance variable initialization exception behavior

    No real question here. Just something that caught me quite off guard. I thought I understood the object instantiation process pretty well, but there's clearly at least one significant gap in my knowledge.
    Not surprisingly, the following gives "Error:Error:line (4)unreported exception java.lang.Exception; must be caught or declared to be thrown" for the new WTF2() line.
    public class WTF1 {
      private final WTF2 wtf2 = new WTF2();
      WTF1() /* throws Exception */ {}
    class WTF2 {
      WTF2() throws Exception {}
    }Quite surprisingly (to me at least) if we uncomment "throws Exception" in the WTF1() c'tor declaration, the compiler is happy.
    Reading [JLS 12.5 Creation of New Class Instances|http://java.sun.com/docs/books/jls/third_edition/html/execution.html#12.5], I can see that executing the instance initializers is step 4 of "the indicated constructor is processed to initialize the new object using the following procedure", so I guess I can see how executing the initializer can be considered "part of" executing the c'tor, and hence covered by its catch block. It just looks a little weird, and I always thought that the initializer executed before the c'tor, and had to catch checked exceptions.
    Now that I've learned something, I'm ready to count this day as a win and head to the pub. :-)

    BIJ001 wrote:
    wtf2 is an instance variable, so (the appropriate copy) must be initialized in (every) constructor.Eh? No.
    It's final, so therefore it must have it's value set by every normal completion of every ctor. But that's irrelevant to what I'm looking at. I'm talking about the fact that the declaration/initialization line complains or doesn't based on the throws clause of the c'tor.
    I see now why it works that way, but I just thought the initializer execution was "outside of" the c'tor execution. I thought that if new WTF2() could throw a checked exception, I'd have to do something like we do for static initializers:
    private final WTF2 wtf2;
      try {
        wtf2 = new WTF2();
      catch (Exception e) {
        throw some unchecked exception
    }As it turns out, the initializer is executed "inside" the c'tor in a way I didn't expect.

  • How/where do I contact Mozilla regarding an exception thrown by Firefox which inaccurately (and arrogantly) claims user behavior as the problem?

    I'm trying to voice a complaint regarding THIS user interface ("mozilla support") and the exception message returned to me from Firefox. There's also an ACTUAL browser issue I need to resolve. Here are a few details:
    (A) I am unable to use Mozilla Firefox for much at all because it's deciding to attempt secure HTTP connections ("https://..."), seemingly at-will. Not all of the sites I've attempted to reach suggest, require, or support secure HTTP connections.
    (B) I cannot install Firebug (at least not without another browser or Fiddler), even when trying to "Confirm Security Exception" repeatedly. I get a 200 OK in my developer tools when requesting "https://addons.cdn.mozilla.net/user-media/addons/1843/firebug-2.0.7-fx.xpi", but then receive a notification stating, "The add-on could not be downloaded because of a connection failure on addons.mozilla.org."
    (C) The exception message displayed is infuriating and, in my opinion, unacceptable. It claims, "You have asked Firefox to connect securely..." as it begins describing the exception scenario. I can assure that the only thing about which I was explicit was a request to try the same URL again WITHOUT a secure connection. It sounds really arrogant to say, "Here's how YOU screwed up," when it's definitely more along the lines of, "Here's how THE BROWSER APPLICATION screwed up." If a fresh, default install of Mozilla Firefox can't even download Firebug with a healthy Internet connection (yes, in the context of an intranet but no other browsers are giving me grief), how is that my fault? Even if it is my fault, how dare Mozilla speak to its users in such a manner?
    (D) I've tried every proxy setting of which I can think, but that doesn't appear to be the issue.
    (E) Too much of my time has been wasted today attempting to relay this information to Mozilla. I was forced to navigate through five or so web pages, answering questions, such that I didn't inconvenience YOU. I've boycotted product lines and/or companies for less, and am trying to "bite my tongue" as best I can, but it shouldn't take an hour to submit a constructive feedback message along the lines of "Your browser isn't working for PRACTICALLY ANYTHING and HERE ARE THE DETAILS." I actually had to accumulate complaints in my mind so I didn't lose them throughout your feedback process (since I don't get to actually provide feedback until somewhere around the fifth step of the process).
    Thanks,
    Mike

    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".
    :[[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

Maybe you are looking for

  • SSO from non sap application server to SAP systems

    Mysapsso2 cookie has been generated after we are login into the portal https://FQDN/irj/portal for all the backend systems in client browser. Since it is working fine. After login into the portal , while clicking the URL iview of external JBoss appli

  • How to include fields in an infocube

    Hi experts, I want to include  following fields in the cube 0FIAR_C03. Fields: 0clr_doc_no 0alloc_nmbr 0createdon 0doc_number 0inv_doc_no 0inv_item 0inv_year 0postxt 0rc_account 0ref_doc_no 0sp_gl_tt 0fi_dsbitem 0item_num Anyone please guide me in wh

  • Crystal Reports 2008 in InfoView

    Hi all, please enlight me - is it possible to design/modify crystal reports in InfoView (BO XI 3.1) like in InfoView XI R2 (using CR Explorer)? This funcionality is missing in XI 3.0 - am i right? Design/modify only in standalone CR Designer? Thanks

  • How do I sync my 'on my mac' contacts to contact in iCloud?

    Can somebody help me sync or transfer my contacts from 'on my mac' contacts (which I got by syncing it with google contacts) to iCloud so that all my apple devices will have the same contacts please. Or better yet, here's my current situation: I rece

  • Problems with install "Super Drive Update 3.0"

    Hi! I cannot install the "Super Drive Update 3.0" on my MacBook Pro 15´. Everytime I want to install it, I recive the massage, that the update was not successfull, I should try to close all programms and try it agin, otherwise I should contact the ap