Find Logical Erros Causing an Odd Error in BlackJack

This doesn't happen too often but sometimes it does.
I can't seem to find a reason why.
If i enter 1, it should enter the while loop but it instead ends the process.
--------------------Configuration: <Default>--------------------
You drew a 10
You drew a Queen
Your score is 20
Press 1 to hit or 2 to stand
1
Process completed.
This seems to me that whenever I go over 21, it ends everything
can someone find an error to what might be causing the problem?
If you need ConsoleReader tell me
import java.io.*;
import java.util.*;
class BlackJackFixed
public static void main ( String [] args)
        int cont = 1;
    ConsoleReader console = new ConsoleReader( System.in );
    Random generator=new Random();
    int pscore = 0; //playerscore
    int dscore = 0; // dealerscore
     int pcard1 = 1 + generator.nextInt(13);
     int pcard2 = 1 + generator.nextInt(13);
     int dcard1 = 1 + generator.nextInt(13);
     int dcard2 = 1 + generator.nextInt(13);
     if(pcard1 == 1)
    System.out.println("You drew an A. Would you like it to be 1 or 11?");
     int ace = console.readInt();
     System.out.println("Your ace is now " +ace);
     pcard1 = ace;
     else if(pcard1 == 11)
     System.out.println("You drew a Jack");
     pcard1 = 10;
     else if(pcard1 == 12)
     System.out.println("You drew a Queen");
     pcard1 = 10;
     else if(pcard1 == 13)
     System.out.println("You drew a King");
     pcard1 = 10;
     else if (pcard1 <= 10 || pcard1 != 1)
     System.out.println("You drew a " + (pcard1));
     if(pcard2 == 1)
    System.out.println("You got an A. Would you like it to be 1 or 11?");
     int ace = console.readInt();
     System.out.println("Your ace is now " +ace);
     pcard2 = ace;
     else if(pcard2 == 11)
     System.out.println("You drew a Jack");
     pcard2 = 10;
     else if(pcard2 == 12)
     System.out.println("You drew a Queen");
     pcard2 = 10;
     else if(pcard2 == 13)
     System.out.println("You drew a King");
     pcard2 = 10;
     else if (pcard2 <= 10 || pcard2 != 1)
     System.out.println("You drew a " + (pcard2));
     pscore = pcard1 + pcard2;
     dscore = dcard1 + dcard2; // dealers card to check BlackJack
     if(pcard1 + pcard2 == 21)
     System.out.println("You win. You have BLACKJACK!");
     else if(dcard1 + dcard2 == 21)
     System.out.println("Dealer BlackJack. You lose");
     else if(pscore < 21)
     System.out.println("Your score is " + (pscore));
     System.out.println("Press 1 to hit or 2 to stand");
     cont = 0;
     cont = console.readInt();
   while(cont == 1 && pscore < 21 && dscore < 21)
    int pcard3 = 1 + generator.nextInt(13);
    dscore = dcard1 + dcard2;
     if(pcard3 == 1)
    System.out.println("You got an A. Would you like it to be 1 or 11?");
     int ace = console.readInt();
     System.out.println("Your ace is now " +ace);
     pcard3 = ace;
     else if(pcard3 == 11)
     System.out.println("You drew a Jack");
     pcard3 = 10;
     else if(pcard3 == 12)
     System.out.println("You drew a Queen");
     pcard3 = 10;
     else if(pcard3 == 13)
     System.out.println("You drew a King");
     pcard3 = 10;
     else if (pcard3 <= 10 || pcard3 != 1)
     System.out.println("You drew a " + (pcard3));
     pscore += pcard3;     
     if(pscore > 21)
     System.out.println("Busted. You went over 21. Quit Gambling");
     if(dscore > 21)
     System.out.println("Dealer is Busted. It went over 21. Bad Computer!");
     else if(pcard1 + pcard2 == 21)
     System.out.println("BlackJack! You Win!");
     else if(pscore < 21) //did not use else just to be safe
     System.out.println("Your total is " + (pscore));
     System.out.println("Dealer total is " + (dscore));
     System.out.println("Press 1 to hit or 2 to stand");
     cont = 0;
     cont = console.readInt();
  while (dscore < 17 && pscore < 21)
    int dcard4 = 1 + generator.nextInt(13);
    System.out.println("Deaer total is " + ( dscore ));
       System.out.println("Dealer drew a " +(dcard4));
        dscore += dcard4;
         if(pscore > dscore || dscore > 21)
      System.out.println("You win");
      System.out.println("Dealer has " +(dscore));
      break;
      if(dscore > pscore || pscore > 21)
      System.out.println("You lose!");
      System.out.println("Dealer has " +(dscore));
      break;
      else if(dscore == pscore)
      System.out.println("It's a Draw. Dealer also had " +(pscore)); // used pscore just to be safe.
      break;
        while (cont == 2 && pscore < 21 && dscore < 21)
         while (dscore < 17)
         int dcard4 = 1 + generator.nextInt(13);     
         System.out.println("Deaer total is " + ( dscore ));
         System.out.println("Dealer drew a " +(dcard4));
         dscore += dcard4;
      if(pscore > dscore || dscore > 21)
      System.out.println("You win");
      System.out.println("Dealer has " +(dscore));
      break;
      else if(dscore > pscore || pscore > 21)
      System.out.println("You lose!");
      System.out.println("Dealer has " +(dscore));
      break;
      else if(dscore == pscore)
      System.out.println("It's a Draw.");
      break;
}.

import java.io.*;
import java.util.*;
class BJF2
    public static void main(String[] args)
        int cont = 1;
        int test = 1; //replay
        ConsoleReader console = new ConsoleReader( System.in );
        Random generator=new Random();
        int pscore = 0; //playerscore
        int dscore = 0; // dealerscore
        int pcard1 = 1 + generator.nextInt(13);
        int pcard2 = 1 + generator.nextInt(13);
        int dcard1 = 1 + generator.nextInt(13);
        int dcard2 = 1 + generator.nextInt(13);
        System.out.println("Welcome to the World of BlackJack");
        System.out.println("Remember that We're Follwoing the English Royal Rule");
        System.out.println("This means the Computer will HIT only if his " +
                           "score is less than 17 \n");
        if(pcard1 == 1)
            System.out.println("You drew an A. Would you like it to be 1 or 11?");
            int ace = console.readInt();
            System.out.println("Your ace is now " +ace);
            pcard1 = ace;
        else if(pcard1 == 11)
            System.out.println("You drew a Jack");
            pcard1 = 10;
        else if(pcard1 == 12)
            System.out.println("You drew a Queen");
            pcard1 = 10;
        else if(pcard1 == 13)
            System.out.println("You drew a King");
            pcard1 = 10;
        else //if (pcard1 <= 10 || pcard1 != 1)
            System.out.println("You drew a " + (pcard1));
        if(pcard2 == 1)
            System.out.println("You got an A. Would you like it to be 1 or 11?");
            int ace = console.readInt();
            System.out.println("Your ace is now " +ace);
            pcard2 = ace;
        else if(pcard2 == 11)
            System.out.println("You drew a Jack");
            pcard2 = 10;
        else if(pcard2 == 12)
            System.out.println("You drew a Queen");
            pcard2 = 10;
        else if(pcard2 == 13)
            System.out.println("You drew a King");
            pcard2 = 10;
        else //if (pcard2 <= 10 || pcard2 != 1)
            System.out.println("You drew a " + (pcard2));
        if(dcard1 == 11)
            dcard1 = 10;
        else if(dcard1 == 12)
            dcard1 = 10;
        else if(dcard1 == 13)
            dcard1 = 10;
        if(dcard2 == 11)
            dcard2 = 10;
        else if(dcard2 == 12)
            dcard2 = 10;
        else if(dcard2 == 13)
            dcard2 = 10;
        pscore = pcard1 + pcard2;
        dscore = dcard1 + dcard2; // dealers card to check BlackJack
        if(pscore == 21)
            System.out.println("You win. You have BLACKJACK!");
        else if(dscore == 21)
            System.out.println("Dealer BlackJack. You lose");
        else if(pscore < 21)
            System.out.println("Your score is " + (pscore));
            System.out.println("Press 1 to hit or 2 to stand");
            cont = 0;
            cont = console.readInt();
        // Player goes first:
        // This loop does not need to be concerned about dscore.
        // The player has selected a hit so we will stay in this
        // loop as long as the player continues to select another hit.
        while(cont == 1)
            int pcard3 = 1 + generator.nextInt(13);
            if(pcard3 == 1)
                System.out.println("You got an A. Would you like it to be 1 or 11?");
                int ace = console.readInt();
                System.out.println("Your ace is now " +ace);
                pcard3 = ace;
            else if(pcard3 == 11)
                System.out.println("You drew a Jack");
                pcard3 = 10;
            else if(pcard3 == 12)
                System.out.println("You drew a Queen");
                pcard3 = 10;
            else if(pcard3 == 13)
                System.out.println("You drew a King");
                pcard3 = 10;
            else //if (pcard3 <= 10 || pcard3 != 1)
                System.out.println("You drew a " + (pcard3));
            pscore += pcard3;
            if(pscore > 21)
                System.out.println("Busted. You went over 21.");
            if(pscore >= 21)
                break;
            System.out.println("Your total is " + (pscore));
            System.out.println("Dealer total is " + (dscore));
            System.out.println("Press 1 to hit or 2 to stand");
            cont = 0;  // I don't see the need for this line.
            cont = console.readInt();
        // The player has finished their turn.
        // Now it's the dealer's turn:
        // The dealer only plays if the player is still in the game.
        if(pscore <= 21)
            while(dscore < 17)
                int dcard4 = 1 + generator.nextInt(14);
                System.out.println("Deaer total is " + ( dscore ));
                if(dcard4 == 11)
                    System.out.println("Dealer drew a Jack");
                    dcard4 = 10;
                else if(dcard4 == 1)
                    System.out.println("Dealer drew an ACE and used it as a 1");
                    dcard4 = 1;
                else if(dcard4 == 14)
                    System.out.println("Dealer drew an ACE and used it as a 11");
                    dcard4 = 11;
                    /* Used Random ACE Selection for Computer without AI to make it
                       slightly easier for the player to win */
                else if(dcard4 == 12)
                    System.out.println("Dealer drew a Queen");
                    dcard4 = 10;
                else if(dcard4 == 13)
                    System.out.println("Dealer drew a King");
                    dcard4 = 10;
                else if(dcard4 <= 10)
                    System.out.println("Dealer drew a " +(dcard4));
                dscore += dcard4;
                if(dscore > 21)
                    System.out.println("Dealer is Busted. It went over 21.");
        // The dealer has finsihed it's turn.
        // Now, if the game is still on, we evaluate the scores for each.
        if(pscore <= 21 && dscore <= 21)
            if(pscore > dscore)
                System.out.println("You win");
                System.out.println("Dealer has " +(dscore));
            else if(dscore > pscore)
                System.out.println("You lose!");
                System.out.println("Dealer has " +(dscore));
            else if(dscore == pscore)
                // used pscore just to be safe.
                System.out.println("It's a Draw. Dealer also had " +(pscore));
}

Similar Messages

  • Identify cause bdocs in error

    We are working trough several bdocs in error (smw01) (BUPA MAINS , MRKTPROF) and so on .
    Unfortunately it is quite troublesome to find the exact cause of the errors.
    Can we use the following guidelines in order to detect errors or does anybody see any objections in this way of working :
    <b>Go to transaction R3AC1 (Business Objects) R3AC3 (Customizing Objects) or R3AC5 (Condition objects) depending on what you are downloading.
    Select the appropriate business object and go into change mode.  On the header is a field called Block Size.  Set it to 1 and save.  Say no to the question of whether you wish to put it into a transport.
    Now do your download.  Monitor the download until it freezes.  Go to SMQ2 and double click on the download queue of the object.  It should be displaying the BDOC in error.  Now you can look at the error message and the data and work from there.</b>
    Thanks for your input.

    Hi,
    Check table CRMKUNNR in R/3 with the GUID. Get the customer number and run syncronization request with the customer number.
    Make the following test for 1 BP which is in error for the moment :
    - check if you have one entry in CRMKUNNR for your BP
    - if yes, delete it
    - send the BP back using a request or changing your filter in your adapter object and restart it via R3AS
    - check in SMW01/SMQ1/SMQ2 if BP is saved in CRM
    Regards,
    Amit

  • Help Identify the root cause of this error

    Hi,
    We have a dynamic region in a jsf page. Its value (bounded task flow) depends on the menu item being selected. Each bounded task flow has some task flows and fragments within. In production, users get this below error rarely. This error is not reproducable, but comes rarely like 1 out of 200 times. The error from the log:
    <May 2, 2013 4:47:07 PM CEST> <Warning> <com.view.common.AbstractBaseMB> <BEA-000000> <findIteratorBinding gives null, itrName = SecuritySearchVO1Iterator>
    < May 2, 2013 4:47:35 PM CEST> <Warning> <com.view.common.AbstractBaseMB> <BEA-000000> <findIteratorBinding gives null, itrName = SecuritySearchVO1Iterator>
    < May 2, 2013 4:49:10 PM CEST> <Warning> <com.view.common.AbstractBaseMB> <BEA-000000> <findIteratorBinding gives null, itrName = SecuritySearchVO1Iterator>
    < May 2, 2013 4:49:26 PM CEST> <Error> <oracle.adf.share.el.VariableResolverELContext> <BEA-000000> <The variable resolver, oracle.adf.model.binding.DCVariableResolverImpl, was used to evaluate expression, data. All variable resolvers have been deprecated. Please consult the documentation for the variable resolver and modify the expression to not depend upon the variable resolver.>
    < May 2, 2013 4:49:26 PM CEST> <Error> <oracle.adf.share.el.VariableResolverELContext> <BEA-000000> <The variable resolver, oracle.adf.model.binding.DCVariableResolverImpl, was used to evaluate expression, data. All variable resolvers have been deprecated. Please consult the documentation for the variable resolver and modify the expression to not depend upon the variable resolver.>
    < May 2, 2013 4:49:26 PM CEST> <Error> <com.view.ErrorHandlerMB> <BEA-000000> <error in view port
    javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bindings' resolved to null
    at com.sun.el.parser.AstValue.getTarget(Unknown Source)
    at com.sun.el.parser.AstValue.getMethodInfo(Unknown Source)
    at com.sun.el.MethodExpressionImpl.getMethodInfo(Unknown Source)
    at oracle.adf.controller.internal.util.ELInterfaceImpl.getReturnType(ELInterfaceImpl.java:214)
    at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:136)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1035)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:926)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:824)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:554)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:158)
    at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:115)
    at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:84)
    at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:50)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at java.security.AccessController.doPrivileged(AccessController.java:284)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:100)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bindings' resolved to null
    at com.sun.el.parser.AstValue.getTarget(Unknown Source)
    at com.sun.el.parser.AstValue.getMethodInfo(Unknown Source)
    at com.sun.el.MethodExpressionImpl.getMethodInfo(Unknown Source)
    at oracle.adf.controller.internal.util.ELInterfaceImpl.getReturnType(ELInterfaceImpl.java:214)
    at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:136)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1035)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:926)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:824)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:554)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:158)
    at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:115)
    at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:84)
    at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:50)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at java.security.AccessController.doPrivileged(AccessController.java:284)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:100)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    < May 2, 2013 4:49:26 PM CEST> <Error> <com.view.ErrorHandlerMB> <BEA-000000> <6. [ErrorHandlerMB] Error message Message = Target Unreachable, identifier 'bindings' resolved to null Exception class = javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bindings' resolved to null>
    < May 2, 2013 4:49:26 PM CEST> <Warning> <oracle.adfinternal.view.faces.lifecycle.LifecycleImpl> <BEA-000000> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.faces.view.facelets.TagAttributeException: /home.jsf @5,48 locale="#{sessionScope.userBean.userLocale}" Attribute did not evaluate to a String or Locale: null
    at com.sun.faces.facelets.tag.jsf.ComponentSupport.getLocale(ComponentSupport.java:278)
    at com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:128)
    at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
    at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:82)
    at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:744)
    at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.buildView(ViewDeclarationLanguageFactoryImpl.java:341)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:982)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at java.security.AccessController.doPrivileged(AccessController.java:284)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:100)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    < May 2, 2013 4:49:26 PM CEST> <Error> <oracle.adfinternal.view.faces.lifecycle.LifecycleImpl> <BEA-000000> <ADF_FACES-30179:For more information, please see the server's error log for an entry beginning with: The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.
    oracle.adf.controller.ControllerException: ADFC-00001: An exception is encountered.
    at oracle.adfinternal.controller.state.AdfcContext.getSessionBasedScopes(AdfcContext.java:368)
    at oracle.adfinternal.controller.state.PageFlowScopeStack.peek(PageFlowScopeStack.java:65)
    at oracle.adfinternal.controller.state.PageFlowStackEntry.getPageFlowScope(PageFlowStackEntry.java:268)
    at oracle.adfinternal.controller.state.ViewPortContextImpl.getCurrentStateInstance(ViewPortContextImpl.java:604)
    at oracle.adfinternal.controller.state.RequestState.setCurrentViewPortContext(RequestState.java:215)
    at oracle.adfinternal.controller.state.ControllerState.setRequestState(ControllerState.java:868)
    at oracle.adfinternal.controller.state.ControllerState.synchronizeStatePart1(ControllerState.java:359)
    at oracle.adfinternal.controller.application.SyncNavigationStateListener.beforePhase(SyncNavigationStateListener.java:151)
    at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:550)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
    I tried everything, but not able to find the root cause of the error. Kindly help.
    Edited by: Kartick on May 16, 2013 8:06 PM

    Hi,
    your code uses the following bean
    #{sessionScope.userBean.userLocale}
    to set a locale. This returns NULL and as such JSF does seem to have a problem to query the Home.jsf page, not creating the ADF binding context because of a missing UI View Root. So the question is : why is the userLocale "null" randomly. I would think that once you figure this out, you get a solution. A solution would be to change the getUserLocale() method in this bean to return a default user locale if the usre specific locale cannot be determined or is set to null.
    Frank

  • Issue while running a custom package:ORA-20100: File o2670336.tmp creation for FND_FILE failed.You will find more information on the cause of the error in request log. in Package PA_OPPORTUNITY_MGT_PVT Procedure modify_project_attributes ORA-20100: File o

    Hi Guys,
    We have created a custom package where in we are trying to call the standard API's of Oracle projects i.e PA_PROJECT_PUB.When we are trying to call these APIs we are facing the below issue.
    We have tried testing in two instances ,Initially it worked in both instances.
    Using the same API's multiple times we tested the same data set in these instances.
    For the first few runs it works fine.But when we go on using the same API's again and again for our testing we face now and then the below issue.
    Standard API's
    =========
    add_task
    update_project
    change_structure_status
    create_draft_plan
    Error:
    ORA-20100: File o2670336.tmp creation for FND_FILE failed.You will find more information on the cause of the error in request log. in Package PA_OPPORTUNITY_MGT_PVT Procedure modify_project_attributes ORA-20100: File o2670336.tmp creation for FND_FILE failed.
    You will find more information on the cause of the error in request log. in Package PA_PROJECT_PUB Procedure update_project:ORA-0000: normal, successful completionError while publishing the task
    Please let us know if anyone of has come across the same situation.
    Regards,
    Vijay

    But have issue only with validating invoice batch. I followed metalink ID's 605542.1, 167990.1,261693.1,1088553.1,749491.1, 461271.1 and few more.Was this working before? If yes, any changes have been done recently?
    Please see if these docs help.
    APXAPRVL: Invoice Validation Errors With MSG-00001 and REP-1419 [ID 333305.1]
    Invoice Validation Errors When Others:101505:Non-Oracle Exception Rep-1419 [ID 464125.1]
    Invoice Validation Fails with REP-1419 Error in Ap_approval_matched_pkg.Execute_matched_checks [ID 293425.1]
    Invoice Validation Failing On Fnd_file Could Not Write To File L0202306.Tmp [ID 461520.1]
    Invoice Validation (APPRVL) Errors ORA-20001 APP-SQLAP-10000 PSA_FUNDS_CONTROL_PKG.glxfck [ID 463184.1]
    Validate Invoice Error With ORA-20001: APP-SQLAP-10000: AP_FUNDS_CONTROL_PKG.Calc_QV [ID 432702.1]
    Invoice Validation Program Is Erroring Out [ID 382844.1]
    Error On Validation Of Invoices From Previous Periods [ID 412814.1]
    Thanks,
    Hussein

  • System.Data.SqlClient.SqlException (0x80131904): SQL Server detected a logical consistency-based I/O error: incorrect checksum

    Hello,
    I am migrating client's database to my hosted environment, the client runs
    SQL Server 2008 R2, and we run SQL Server 2014.
    I am stuck on restoring one log file, which left below error message when I restore it:
    Restoring files
      DBFile_20150401030954.trn
    Error Message: System.Data.SqlClient.SqlException (0x80131904): SQL Server detec
    ted a logical consistency-based I/O error: incorrect checksum (expected: 0x512cb
    ec3; actual: 0x512dbec3). It occurred during a read of page (1:827731)
    in databa
    se ID 49 at offset 0x000001942a6000 in file 'F:\MSSQL12.INSTANCE9\MSSQL\Data\Ody
    sseyTSIAKL_Data.mdf'.  Additional messages in the SQL Server error log or system
     event log may provide more detail. This is a severe error condition that threat
    ens database integrity and must be corrected immediately. Complete a full databa
    se consistency check (DBCC CHECKDB). This error can be caused by many factors; f
    or more information, see SQL Server Books Online.
    RESTORE LOG is terminating abnormally.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolea
    n breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception
    , Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObj
    ect stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand
     cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,
    TdsParserStateObject stateObj, Boolean& dataReady)
       at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
       at System.Data.SqlClient.SqlDataReader.get_MetaData()
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, Run
    Behavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBe
    havior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 time
    out, Task& task, Boolean asyncWrite, SqlDataReader ds)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehav
    ior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletio
    nSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehav
    ior, RunBehavior runBehavior, Boolean returnStream, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteScalar()
       at OnBoardingTrnRestore.FileRestorer.FileIsRestored(SqlConnection connection,
     String sourceBackupFileName, String sourceDatabaseName, String destinationDatab
    aseName, String databaseName, String strFileName) in c:\Dev\WiseCloud\OnBoarding
    TrnRestore\OnBoardingTrnRestore\FileRestorer.cs:line 223
    ClientConnectionId:6f583f98-9c23-4936-af45-0d7e9a9949ea
    Finished
    I have run restore filelistonly and verifyonly in both client and my box, and both worked well:
    XXX_Data D:\Program Files (x86)\XXX\Data\YYY_Data.mdf
    restore filelistonly:
    D PRIMARY
    70922469376 35184372080640
    1 0
    0 00000000-0000-0000-0000-000000000000
    0 0
    0 512 1
    NULL 279441000014839500242
    66CC6D17-575C-41E5-BB58-3FB4D33E288C
    0 1 NULL
    XXX_Log E:\Program Files (x86)\XXX\Log\YYY_Log.ldf
    L NULL
    31985762304 35184372080640
    2 0
    0 00000000-0000-0000-0000-000000000000
    0 0
    0 512 0
    NULL 0
    00000000-0000-0000-0000-000000000000 0
    1 NULL
    restore verifyonly:
    Attempting to restore this backup may encounter storage space problems. Subsequent messages will provide details.
    The path specified by "D:\Program Files (x86)\XXX\Data\YYY_Data.mdf" is not in a valid directory.
    Directory lookup for the file "E:\Program Files (x86)\XXX\Log\YYY_Log.ldf" failed with the operating system error 3(The system cannot find the path specified.).
    The backup set on file 1 is valid.
    Dbcc checkdb also confirmed there is no error in client sql server database.
    dbcc checkdb (XXX, NOINDEX) 
    Results as follows:
    DBCC results for 'XXX'.
    Warning: NO_INDEX option of checkdb being used. Checks on non-system indexes will be skipped.
    Service Broker Msg 9675, State 1: Message Types analyzed: 17.
    Service Broker Msg 9676, State 1: Service Contracts analyzed: 9.
    Service Broker Msg 9667, State 1: Services analyzed: 7.
    Service Broker Msg 9668, State 1: Service Queues analyzed: 7.
    Service Broker Msg 9669, State 1: Conversation Endpoints analyzed: 0.
    Service Broker Msg 9674, State 1: Conversation Groups analyzed: 0.
    Service Broker Msg 9670, State 1: Remote Service Bindings analyzed: 0.
    Service Broker Msg 9605, State 1: Conversation Priorities analyzed: 0.
    DBCC results for 'sys.sysrscols'.
    There are 23808 rows in 350 pages for object "sys.sysrscols".
    DBCC results for 'BMBoard'.
    There are 0 rows in 0 pages for object "BMBoard".
    DBCC results for 'CusOutturnHeader'.
    There are 0 rows in 0 pages for object "CusOutturnHeader".
    CHECKDB found 0 allocation errors and 0 consistency errors in database 'XXX'.
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    We use ftp to transfer the log files from the another country to here, I confirmed the file's MD5(checksum) is same as the copy in client's environment, we have tried to upload the file a couple of times, same outcome.
    The full backup is fine, I have successfully restored a series log backups prior to this file.
    Has anyone seen this issue before? It is strange, all information indicates the file is good,but somehow it goes wrong.
    Below are the version details:
    Client: 
    MICROSOFT SQL SERVER 2008 R2 (SP2) - 10.50.4000.0 (X64) 
    My environment:
    Microsoft SQL Server 2014 - 12.0.2480.0 (X64) 
    Jan 28 2015 18:53:20 
    Copyright (c) Microsoft Corporation
    Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: )
    Thanks,
    Albert

    Error Message: System.Data.SqlClient.SqlException (0x80131904): SQL Server detec
    ted a logical consistency-based I/O error: incorrect checksum (expected: 0x512cb
    ec3; actual: 0x512dbec3). It occurred during a read of page (1:827731)
    in databa
    se ID 49 at offset 0x000001942a6000 in file 'F:\MSSQL12.INSTANCE9\MSSQL\Data\Ody
    sseyTSIAKL_Data.mdf'.  Additional messages in the SQL Server error log or system
     event log may provide more detail. This is a severe error condition that threat
    ens database integrity and must be corrected immediately.
    Hi Albert,
    The above error message usually indicates that there is a problem with underlying storage system or the hardware or a driver that is in the path of the I/O request. You can encounter this error when there are inconsistencies in the file system or if the database
    file is damaged.
    Besides other suggestions, consider to use the
    SQLIOSim utility to find out if these errors can be reproduced outside of regular SQL Server I/O requests and change
    your databases to use the PAGE_VERIFY CHECKSUM option.
    Reference:
    http://support.microsoft.com/en-us/kb/2015756
    https://msdn.microsoft.com/en-us/library/aa337274.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Ipod not recognized, getting odd error message

    I've seen this posted a few times, but without any hints as to how to fix the problem.
    I have a 4G 20GB iPod, just over a year old (meaning, no warranty), that has worked fine until this morning. I turned it on, and all of a sudden, it kept skipping through all of my songs, and wouldn't respond to the pause, play, etc. buttons.
    I attached it to my computer via FireWire, and I keep getting this odd error message: "You have inserted a device that has no volumes that OSX can recognize" It asks me if I want to ignore, initialize, or eject the disc. I've been having it ignore it, or eject it (staying far away from initialization). After I ejected it, I noticed that all the songs on my iPod are now missing.
    I reset the iPod, which didn't do much, and now I can't restore it, because neither the computer or iTunes recognizes my iPod. It shows up in Disk Utility, but I'm not entirely sure how to proceed.
    What happened to my iPod? I can't seem to find anything in the Apple support pages that seems similar to my situation. Any suggestions on how to get the thing to work again?
    Edit: I am using iTunes version 4.9; I have not updated to 5.0

    This is the most frustrating tech trouble!
    The same thing has happened to my iPod. It worked fine, then one day I plug it in and it says "Disc inserted is unreadable by this computer". As far as I remember, I didnt' update anything, make any changes, or adjust any settings to any of my hardware. SO WHAT HAPPENED?? And now I can't restore or doctor the iPod hardware bc my computer won't recognize it as actual hardware...
    pleeeeease help, if anyone has a way to fix this.
    The weirdest part, is that when I look at the information of the "unreadable hardware" it describes it with all the information, like how many gigs are available, how much space is used up, latest updates etc. So it can transfer information, but it pretends its unreadable? i dont understand.

  • Odd Error with decode function in Order By Clause

    I am trying to compile a procedure and can't get around an error with a dynamic order by that doesn't make much sense to me. I can repoduce the error with a plain select statment in sql plus so I can rule out a declaration error. Here is an example with 2 numeric columns and a date column.
    select task_id, display_date, remark_id from task_list
    where task_id > 1000
    order by decode('Task_ID', 'Task_ID',Task_ID, 'Display_Date', Display_Date, 'Remark_ID',Remark_ID)
    returns the error:
    select task_id, display_date, remark_id from task_list
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected NUMBER got DATE
    I'm not sure why this error is occuring, because it doesn't even hit the Display_Date field in the Decode statment. If I take the Display_date out of the statement, it runs properly. If I change Display_Date to To_Char(Display_Date) it also runs fine, but the sorting is incorrect. Also I'm running 9.2, and do not want to use dynamic sql to build my query. Any Ideas out there as to the cause of this error?

    I did find a workaround to this issue by breaking the decode statment into three separate statement, but I still think that the way it is written above should work, and may be a bug, or an error that I don't understand fully.
    The Order by was rewritten like this:
    order by decode(pSort, 'Task_ID',Task_ID), decode(pSort, 'Display_Date', Display_Date),
    decode(pSort, 'Remark_ID',Remark_ID);
    Thanks

  • What is causing a disk error when saving psd files or writing to cache?

    The problem only happens when running Photoshop CC (2104) and Bridge (actually these are the only two programs I really use my external drive for) during a save or write operation to an external hard drive.  I can work for hours, with multiple files open, saving, creating, etc. without a problem and then suddenly I'll get a message from Photoshop saying, "Could not save .... because of a disk error." or from Bridge saying, ".. unable to write to cache..".
    When I quit and try to troubleshoot the problem, I find that, for some reason, Mavericks has put system files on my external (non boot) drive or, for whatever reason, thinks there is a system file on it.  Consequently, the drive cannot  be ejected (Error message: "... one or more programs may be using it...") and I cannot repair it using Disk Utility (Error message: " ... live file system repair is not supported").  I also cannot write to it (Error message: "... unexpected disk error has occurred (error code: -50)").  The problem persists even after quitting all other programs, which wouldn't surprise me if Mavericks thinks there is a system file on it.
    I have force ejected the drive a couple of times but became concerned that I might be compounding the problem. Now I just restart my computer and run Disk Utility Repair Disk.  (Don't know which is worse.)  Disk Utility either doesn't find a problem or, if it finds one, it repairs it.  After that, Photoshop and Bridge work fine for a while.
    System information:
    MacBook Pro 13" 2.4GHz with 16GB RAM, 500 GB HD (recently upgraded)
    Apple Cinema Display
    Mavericks (up to date)
    G-Technology G-Drive (Gen 5) 2TB HD connected via Firewire 800 (latest firmware)
    Unconfirmed observation: I believe the first few times this problem occurred, Firefox was up an running.  I made a point of quitting all programs except System Monitor when running Photoshop and Bridge and I can't remember having the problem again.  The the last time the issue occurred, today, however, Safari was up and running.
    Is this an OS problem, a hardware (disk drive, cable, etc.) problem, a software problem (PS, Bridge) or some combination? I have put this much detail in the post hoping someone can share some insight into the cause.  I will be sending this report to Apple and G-Technology and I will report any resolution, if and, hopefully when, I find one.

    The only thing that will cause a disk error is an actual error from the disk.
    Photoshop is just telling you what that OS told it about the error.
    It sounds like you need to boot off another disk and try to repair your disk.
    Also, make sure you have a backup. And check the SMART status to see if it is failing and needs to be replaced.

  • Odd error message when attempting installation of iTunes 8

    When I try to install the iTunes 8 (the most recent version), I get an odd error message and am unable to successfully complete the installation. This is the message:
    Could not access network location
    %USERPROFILE%\Start Menu\Programs\Startup\
    This message is then followed by Retry or Cancel; Retry has not worked at all with the same error message popping up. There is no error number that I can see. After I finally hit cancel out of frustration, this message shows up:
    The installation of QuickTime did not complete successfully. iTunes requires QuickTime.
    I think that the first message occurs during the program's attempt to do QuickTime before the iTunes. I tried downloading and upgrading QuickTime separately, but that was also unsuccessful. I do now have an earlier version of QuickTime on my computer, but that is only because I recently added some software (Rosetta Stone to be exact) that requires the 5.0 version and downloads it automatically. I also have tried the troubleshooting tips on the Apple site.
    My computer is a Dell, with Windows XP Home Edition. I do have the second Service Pack from Microsoft, and should have all of the latest updates. Please help! I'm getting really frustrated with my computer and have no idea on what to do next.

    When you get a message about not being able to access a network location you usually need the Microsoft installer cleanup utility.
    Here is a method:
    Download a fresh copy of iTunes and the stand alone version of Quicktime (the one without iTunes)
    http://www.apple.com/quicktime/download/win.html
    http://www.apple.com/itunes/download/
    Download and install Microsoft Installer cleanup utility, there are instructions on the page as well as the download. Note that what you download is the installer not the program – you have to run it to install the program. The installer doesn't give any message to confirm the installation.
    http://support.microsoft.com/kb/290301/
    (To run the program – All Programs>>Windows Install)
    Now use the following method to remove iTunes and its components:
    XP
    http://support.apple.com/kb/HT1925
    Vista
    http://support.apple.com/kb/HT1923
    *If you hit a problem with one of the uninstalls don't worry*, carry on with the deleting of files and folders as directed in the method.
    When you get to deleting Quicktime files in the system32 folder as advised in the method, you can delete any file or folder with Quicktime in the name.
    Restart your PC.
    Run the Microsoft Installer Cleanup Utility. (Start > All Programs > Windows Install Clean Up)
    Remove any references you find to the programs you removed - strictly speaking you only need to worry about those programs where the uninstall failed.
    If you don’t see an entry for one of the programs that did not uninstall, look out for blank entries or numeric entries that look like version numbers e.g. 7.x for Quicktime or 1.x for Bonjour.
    restart your PC
    Install the stand alone Quicktime and check that it works.
    If it does, install iTunes.

  • No Fact table Exists and [nQSError: 14070] Cannot find logical table source

    Hi,
    I have 3 tables A(fact),B(dim) and C(dim). there are some other dims. i am getting Errors here.
    A is joined with B and B is joined with C .
    1) In report if i pull columns from A and B its giving data. If i include C table Columns in the report i am getting Error like
    No Fact table Exists.
    2) If i pull the C table columns only in the Criteria i am getting error [nQSError: 14070] Cannot find logical table source
    How can i resolve this.
    Thanks

    In Logical table B source properties general tab ->Click on Add button and add table C and pull required columns from Physical layer table C.
    If helps mark for any issues let me know.
    Edited by: Srini VEERAVALLI on Feb 13, 2013 6:42 AM

  • Odd error originating from NI-5411 (Error code: BFFA0002) when trying to load arbitrary waveform

    Hello everyone. 
    We have some equipment (PCI NI-5411) that is misbehaving in an odd and new way. When trying to load an arbitrary waveform onto the AWG (using a library call to the "niFgen Write Binary 16 Waveform"), it produces an error. The error code is "BFFA0002", but I haven't been able to find any information that can show what this error code provides. Previously, we had some problem when the system wouldn't find the file and produces an error even though the file is there. After changing our code so the file access is attempted several times, the problem was resolved. However, that doesn't work in this case and we do not know here the problem is.
    This is a pretty much shooting wild and hoping that something falls down, but if anyone could provide me with information about the error code or another probable error source I would be highly grateful.
    Thanks in advance!
    With best regards,
    Niclas

    Hi Niclas,
    That error code suggests that a file cannot be opened. This error is defined in IVI as  IVI_ERROR_CANNOT_OPEN_FILE.I don't think we return this error code from the NI-FGEN driver.
    You mentioned that you have an issue with finding a file. Is that file specific to your application? How is it being open or used? What API do you use to open that file?
    For NI-FGEN specific error code (and generic IVI error codes), you can query the error message by calling niFgen_error_message function or niFgen Error Message.vi.
    Thanks,
    - Liusdi

  • SSRS in SharePoint2013:Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModule

    SSRS in SharePoint2013: There is a report in SharePoint and it contains a sub-report and the sub-report hyperlink. When I click the hyperlink to go to the sub-report, after >10min, I click the "Back to.." button
    on IE to go to the previous page. Then it catch the error as:
    Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near '
    <!DOCTYPE html PUB'.
    I am using SQL2012 and Sharpoint2013.

    Hi Alisa,
    Thanks for your reply, I changed the web.config, but the issue did not resolved. 
    I add the codes in two parts of the web.config as below, you can find in by keywords “aspnet:MaxHttpCollectionKeys”
    This issue can not reproduce on Chrome only occur on IE.
    So, do you have some details suggestion for me to fix it?
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <configuration>
    <configSections>
    <sectionGroup name="SharePoint">
    </sectionGroup>
    <location path="_layouts/15/TA_AppMonitoringDetails.aspx">
    <appSettings>
    <add key="ChartImageHandler" value="storage=memory;timeout=20" />
    </appSettings>
    </location>
    <location path="_layouts/15/ReportServer/RSViewerPage.aspx">
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    </appSettings>
    </location>
    <system.net>
    <defaultProxy />
    </system.net>
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    <add key="aspnet:RestrictXmlControls" value="true" />
    <add key="FeedCacheTime" value="300" />
    <add key="FeedPageUrl" value="/_layouts/15/feed.aspx?" />
    <add key="FeedXsl1" value="/Style Library/Xsl Style Sheets/Rss.xsl" />
    <add key="ReportViewerMessages" value="Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    </appSettings>

  • New Phone Cause Code 64 Error Class 2

    I just bought and activated my new Droid Incredible 2 when I tried to send a text message if failed to send. I looked at the details and saw that it said cause code 64 error class 2. What does this mean, and what should I do to fix it? Thank you.
    -Erin
    (removed email address to comply with Verizon Wireless Terms of Service)
    Message was edited by:  Verizon Moderator

        Hi naywah,
    I know how important texting is to users. I appreciate you calling *228, did the programming finish successfully? Are you getting the same error messages when sending the messages? Please confirm that you're using the regular texting application and not a 3rd party application. I also recommend you check the content being sent (ex: are you sending plain text or containing special characters or emoticans) and the type of signal arriving to the device. I look forward to hearing back from you to find how the trouble was resolved.
    Thank you,
    MariaC_VZW
    Please follow us on Twitter @VZWSupport

  • Select count(*) cause time out error

    I invoke the following statement:
    select count(*) as total from table1
    where table1 is large(30000 rows), total size of the database is more than 20GB.
    The above statement will cause time out error. How to solve the problem?

    Hallo chcw,
    a timeout in a table with 30.000 records is very unusual (for a simple SELECT COUNT). From my point of view Dan is on the right way and you will have a typical blocking scenario.
    1. if you have LOBs they won't be part of a SELECT COUNT (either its a heap of a clustered index)
    2. Microosft SQL Server will ALWAYS use the smallest index for such a simple SELECT
    3. if it is a heap you will run into a blocking scenario if someone is updating records and transaction has not committed.
    4. Check the isolation level of the transactions - but I expect the standard which is "read committed".
    Just a demonstration of "SELECT COUNT" will work whether it is a clustered index or a heap. The next script will create a heap with a LOB and additional attributes:
    CREATE TABLE dbo.foo
    Id INT NOT NULL IDENTITY(1,1),
    n1 INT NOT NULL,
    n2 SMALLINT NULL,
    c1 CHAR(250) NOT NULL,
    c2 CHAR(250) NULL,
    c3 VARCHAR(MAX) NOT NULL DEFAULT (REPLICATE('A', 15000))
    GO
    Now we enter 30,000 records into the table
    SET NOCOUNT ON;
    DECLARE @i INT = 1;
    WHILE @i <= 30000
    BEGIN
    INSERT INTO dbo.foo (n1, c1) VALUES (@i, 'Just a filler');
    SET @i += 1;
    END
    GO
    Keep in mind that we have a HEAP and NO indexes! To check the IO i use the following command befor any of the following examples:
    SET STATISTICS IO ON;
    GO
    Let's start with a first try and you will check as a result the produced IO depending on the affected table partitions:
    -- USE SELECT in a HEAP
    SELECT COUNT(*) FROM dbo.foo;
    GO
    Output:
    Table 'foo'. Scan count 1, logical reads 2508, ..., lob logical reads 0,
    As you can see from the result the LOB-data won't be attached only the "in-row-data" are affected (which are stored in 2508 pages. The reason is a quite simple one: Microsoft SQL Server uses different allocation units for in-row-data and LOB
    SELECT p.object_id, p.index_id, p.rows, au.total_pages
    FROM sys.partitions AS P INNER JOIN sys.allocation_units AS AU
    ON(p.partition_id = au.container_id)
    WHERE object_id = OBJECT_ID('dbo.foo');
    Now I create a simple index on the column n1 which is an INT-datatype
    SELECT p.object_id, p.index_id, p.rows, au.total_pages
    FROM sys.partitions AS P INNER JOIN sys.allocation_units AS AU
    ON(p.partition_id = au.container_id)
    WHERE object_id = OBJECT_ID('dbo.foo');
    and run the SELECT COUNT again with the following IO-output:
    Table 'foo'. Scan count 1, logical reads 69, ...
    WOW - only 69 pages have to be read. The explanation is a quite simple one - now we have an index which is quite small. Microsoft SQL Server WILL use the smallest index of a table to scan the number of records. Let's try it again with n2 which is a smallint
    (2 bytes)
    CREATE NONCLUSTERED INDEX ix_foo_n2 ON dbo.foo (n2);
    GO
    The IO will be 62 (or less) because MORE index records a fitting to one data page!
    Conclusion is that either you have small record size or long record size - The query optimizer will always use the smallest index for the execution (that's maybe why Visahk has asked for the execution plan).
    I don't believe it is because of the "huge amount of data" but - as Dan has pointed out - it HAS TO BE a blocking scenario which can have multiple reasons. For demonstration of a blocking scenario open SSMS and start in the query windows with the following
    command(s):
    BEGIN TRANSACTION
    UPDATE dbo.foo
    SET c1 = 'This is my name'
    WHERE Id = 10000;
    -- What locks do we have now in the database
    SELECT resource_description,
    resource_associated_entity_id,
    request_mode,
    request_type
    FROM sys.dm_tran_locks AS DTL
    WHERE resource_database_id = DB_ID() AND
    resource_type != 'DATABASE';
    Your result should look like that (with differences in the entity_id and resource descriptions :)
    The above pic demonstrates the "locking chain". As you can see the slot 7 on PAGE 82400 has an exclusive lock. This means that NO OTHER request can currently obtain another lock to it!
    Now open a second query window and run a SELECT COUNT... - it will not finish!
    The reason is that the second requests has to wait for the release of the locked resources by the first transaction! Leave the statement and change back to the first transaction and finish the transaction by cancellation of the query. In the moment the locks
    have been released the second query will finish immediate.
    So - from my point of view - Dan has given the correct answer. Against wide spreaded statements a heap won't block the whole table exclusivly but - as in a cluster, too - only the row itself (see the 7 which is the slot where the record exists).
    MCM - SQL Server 2008
    MCSE - SQL Server 2012
    db Berater GmbH
    SQL Server Blog (german only)

  • List of Characters Set that cause Unreadable format Errors

    I am trying to understand, what are the characters that cause, unreadable format Errors when a file is being opened in Xlsx format (Excel 2007)
    Please can anybody help me at the earliest

    Hi,
    This issue could be caused by several reasons, not only the Characters Set setting.
    Please try searching your computer for the following .DLL:
    C:\Program Files\Common Files\Apple\Internet Services\ShellStreams.dll
    or
    C:\Program Files(x86)\Common Files\Apple\Internet Services\ShellStreams.dll
    For our most affected customers, renaming this particular .dll file, or uninstalling the application that put it there, has been a workaround to this problem. (If you find a ShellStreams64.dll instead, most likely it will not help renaming
    it and you need to check the other folder instead.)
    For more causes about this issue, please refer to the following blog article:
    http://blogs.technet.com/b/emeaoffice/archive/2012/11/29/you-may-receive-quot-unreadable-content-quot-when-opening-files-from-within-excel-2007-if-you-have-a-shellstreams-dll-file.aspx
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for

  • Calling OIM API from a remote system

    Hi. I have OIM 9031 server installed on a computer HostA. And I have multiple copies of the 3rd party java program installed on HostB, HostC and so on. I need to be able to call some OIM API from that custom java program (for example, receive the lis

  • Call a procedure through a DB LINK ???

    Hey, I would like to execute a distant procedure in a process. I have an HTML DB database with the "HTML DB application". I have a second db with my "data". With my "data" database I have a procedure, that I would like to execute in my HTMLDB databas

  • UI delegate for a custom component

    Hello folks, I am trying to write (as said in the subject) a UI delegate for a custom component. I found the following in a Java FAQ (http://www.mindspring.com/~scdrye/java/faq.html#plaf_delegate): 8.3. How do I create a UI delegate for my custom com

  • Does Firefox 4 have the same cache policy as 3.6 ?

    Hi, FF4 doesn't seem to cache all SWF files, like 3.6 used to. For instance, check it out for yourself on this 6.7 MB file... http://pantheondev.dyndns.org/dummy.swf No matter how many times you view the SWF file, it always loads from the server and

  • Securing Data Services-Webservice

    I have the Data Services with Webservices mapping (.ws) defined and policies (auth/encrypt/sign/map) associated with the Service. Once this application is deployed I have created a webservice security (default_wss) with key pairs in key store generat