Logical infix expression to postfix error

Hi,
I've got a program which takes input at command line as an infix expressions and then aims to convert it to postfix for later evaluation . I carry this out using two stacks. My coding for this to happen is below( only parts i felt needed):
private String postfix = "";
    private static Stack<Character> operatorStack = new Stack<Character>();
    private static Stack<Character> operandStack = new Stack<Character>();
            userEntry.trim();
            char[] temp = userEntry.toCharArray();
            for (int i = 0 ; i < temp.length ; i++) {
                char a = temp;
System.out.println(a);
dump(temp);
if(userEntry.startsWith("end")) {
finished = true;
System.out.println("Thank You for using Calculator");
* dump. Places the input into a char array and push each
* char to stack.
* @param temp array of strings to be tokenized and
* pushed ontop of stack
private void dump(char[] temp)
for(char c : temp) {
Character C = new Character(c);
String token;
token = C.toString();
System.out.println("Testing token "+token);
//its a number just add to the postfix string
if (Character.isDigit(C)) {
postfix = postfix + "" + (Integer.parseInt(token));
System.out.println("new infix"+ postfix);
//its an operator so push it to operator stack
else if (token.equals("(")) {
operatorStack.push(C);
System.out.println(operatorStack.peek());
// pop everthing before the ")" until you hit an "(" , this will be the operands
else if (token.equals(")")) {
while ((operatorStack.peek()).charValue() != '(') {
char ch = operatorStack.pop();
postfix = postfix + " " + ch;
System.out.println(operatorStack.empty()+"operator stack is empty");
System.out.println("new postfix 2 "+postfix);
System.out.println(operatorStack.pop()+"jus kicked somthin off");
else if (token.equals(" ")){}
//find the order of operators and put this in to the postfix script, the operators +-,/,- never make it on to the stack
else {               
System.out.println(operatorStack.empty()+"operator stack is empty");
System.out.println(C);
while (!(operatorStack.empty()) && !((operatorStack.peek()).equals('('))
&& ((setPrecedence(C)) <= (setPrecedence((operatorStack.peek()).charValue())))) {
System.out.println("precedence test"+operatorStack.peek());
operatorStack.push(C);
postfix = postfix + " " + operatorStack.pop();
System.out.println("just pushed operator");
while (!operatorStack.empty()) {
postfix = postfix + " " + operatorStack.pop();
System.out.println("last postfix :"+postfix);
public int setPrecedence(char x)
if (x == '+'|| x == '-') {
return 1;
if (x == '*' || x == '/' || x == '%') {
return 2;
return 0;
}if i was to enter at the command line ( 2 + 4 ) * 3 ( must have spaces)
instead of the postfix conversion being "24+3* it results in "243".
I've got various print statement in my code but  still can seem to figure out what am doing wrong. I believe the problem lies in my else block of statements.
Example of entering an expression result :
( 2 * 4 ) * 3
2
4
3
Testing token (
Testing token 
Testing token 2
new infix
Testing token 
Testing token *
falseoperator stack is empty
Testing token 
Testing token 4
new infix24
Testing token 
Testing token )
falseoperator stack is empty
new postfix 2 24
(jus kicked somthin off
Testing token 
Testing token *
trueoperator stack is empty
Testing token 
Testing token 3
new infix243
last postfix :243
If you can see any reason why its producing this instead of the desired or any thing you disapprove of i would be  greatful if you would kindly say so.
Thanks alot.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

* CORRECTED CODING INDENTION sorry* hopefully a little clearer.
Hi,
I've got a program which takes input at command line as an infix expressions and then aims to convert it to postfix for later evaluation . I carry this out using two stacks. My coding for this to happen is below( only parts i felt needed):
private String postfix = "";
private static Stack<Character> operatorStack = new Stack<Character>();
private static Stack<Character> operandStack = new Stack<Character>();
            userEntry.trim();
            char[] temp = userEntry.toCharArray();
            for (int i = 0 ; i < temp.length ; i++) {
                char a = temp;
System.out.println(a);
dump(temp);
if (userEntry.startsWith("end")) {
finished = true;
System.out.println("Thank You for using Calculator");
* dump. Places the input into a char array and push each
* char to stack.
* @param temp array of strings to be tokenized and
* pushed ontop of stack
private void dump(char[] temp)
for(char c : temp) {
Character C = new Character(c);
String token;
token = C.toString();
System.out.println("Testing token "+token);
//its a number just add to the postfix string
if (Character.isDigit(C)) {
postfix = postfix + "" + (Integer.parseInt(token));
System.out.println("new infix"+ postfix);
//its an operator so push it to operator stack
else if (token.equals("(")) {
operatorStack.push(C);
System.out.println(operatorStack.peek());
// pop everthing before the ")" until you hit an "(" , this will be the operands
else if (token.equals(")")) {
while ((operatorStack.peek()).charValue() != '(') {
char ch = operatorStack.pop();
postfix = postfix + " " + ch;
System.out.println(operatorStack.empty()+"operator stack is empty");
System.out.println("new postfix 2 "+postfix);
System.out.println(operatorStack.pop()+"jus kicked somthin off");
else if (token.equals(" ")) {
//do nothing
//find the order of operators and put this in to the postfix script, the operators +-,/,- never make it on to the stack
else {               
System.out.println(operatorStack.empty()+"operator stack is empty");
System.out.println(C);
while (!(operatorStack.empty()) && !((operatorStack.peek()).equals('('))
&& ((setPrecedence(C)) <= (setPrecedence((operatorStack.peek()).charValue())))) {
System.out.println("precedence test"+operatorStack.peek());
operatorStack.push(C);
postfix = postfix + " " + operatorStack.pop();
System.out.println("just pushed operator");
while (!operatorStack.empty()) {
postfix = postfix + " " + operatorStack.pop();
System.out.println("last postfix :"+postfix);
public int setPrecedence(char x)
if (x == '+'|| x == '-') {
return 1;
if (x == '*' || x == '/' || x == '%') {
return 2;
return 0;
}if i was to enter at the command line ( 2 + 4 ) * 3 ( must have spaces)
instead of the postfix conversion being "24+3* it results in "243".
I've got various print statement in my code but still can seem to figure out what am doing wrong. I believe the problem lies in my else block of statements.
Example of entering an expression result :
( 2 * 4 ) * 3
2
4
3
Testing token (
Testing token
Testing token 2
new infix
Testing token
Testing token *
falseoperator stack is empty
Testing token
Testing token 4
new infix24
Testing token
Testing token )
falseoperator stack is empty
new postfix 2 24
(jus kicked somthin off
Testing token
Testing token *
trueoperator stack is empty
Testing token
Testing token 3
new infix243
last postfix :243
If you can see any reason why its producing this instead of the desired or any thing you disapprove of i would be greatful if you would kindly say so.
Thanks alot.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Infix Expression - Postfix Expressions

    Hello
    I have a program that uses 2 stacks (InfixStack and OperatorStack) to evaluate an infix expression that a user inputs. My problem is that i want to also output the postfix form of the infix expression, i know that i need another stack (PostfixStack). I don't know what the algorithm for converting Infix --> Postfix. I would appreciate any help regrading this matter, a description of the algorithum or psdeou code.
    Thanks

    Try these links:
    http://www.cs.uct.ac.za/courses/Course1/116/Tut0/help/inpostalg.html
    http://joda.cis.temple.edu/~koffman/cis223/InfixToPostfix.doc (MS Word DOC)
    This is a really nice paper in PDF:
    http://www.utdallas.edu/~vinod/publications/Prefix.pdf

  • Which version is good for me to buy? Logic 8 express or Logic studio?

    As I said in another post, I did till now all my work in Garageband. I compose mainly classical music for all kind of instruments, I don't do anything with electronic music, nor do I write pop kind of music. What I did in Garageband was setting up my tracks for the orchestra instruments, or solo piano, or chamber instruments, give them a pan position according to the Jam pack orchestra manual, and added at the end of the recording some reverb. The result is mostly good enough but especially for bigger instrumental groups, like orchestra or strings, I am not happy with the result.
    This is the reason I am looking around in the Logic 8 world. I want to have better results. My question now is should I buy Logic Studio or Logic 8 express?
    What is the difference between the two except the extra jam packs? I already have the Orchestra and voices jam pack and have many orchestral sound fonts that I bought in the past.
    Mainstage is meant to be used for stage performence, right? I will never use something like that if it is, or maybe I didn't understand yet what Mainstage is about.
    Studio effects: Logic 8 express does also have reverb effect, but are they good enough to make a good classical orchestral recording? Or do I need Studio for this?
    Soundtrack Pro 2: A wave editor. This maybe I could use although I never felt the need for this in Garageband. Still, you never know.
    SO what do I miss exactly when buying the express version?
    Hope to get some advice on this.
    Andr+e

    Continue to use GarageBand until some new update for Logic Pro is released because upon opening your GarageBand 09 v5.0.1 projects into Logic Pro 8.0.2 you will receive the message, "Warning! This Project was created by a newer Logic Pro version. This may cause problems. Please update Logic Pro." After I hit "OK", a message says, "Logic Pro: Plug-in “Pedals” not available!, and then "Logic Pro: Plug-in “AmpSim2” not available!
    Logic Pro is not for sampling right now because of my experience using it with my Mac Pro (Early 2008) 8 Core 3.2GHz, 32 Gig RAM, and Quadro FX 5600. I told the Apple store sales guy at the Apple Store that I needed comparable hardware and software for my new Mac Pro comparable to my Tascam GigaSampler PC workstation. He also had me get advice from the top trainer for Apple Logic Pro One to One training at their store. I made it clear my needs were to have the same capabilities and performance at that time that are possible with Tascam GigaSampler. The trainer said he sold his PC he used for sampling. So, in order to afford my Mac Pro, I sold my PC. Big mistake. Now I have not been able to continue working on many projects, now in the in-progress archive of mine, that I can not open anymore because Logic will not access even 3 Gigs of memory for projects with the EXS24 or any other sampler for that matter. With my Tascam Gigasampler accessing 16 Gigs was a breeze with no error messages. This enhancement will not be available until some update is released for Logic Pro above version 8.0.2.

  • Display function Reset in RPD logical column expression

    Hello All,
    I want to reset display function like below in RPD's logical column expression (Its OBIEE 111171) . I am able to use reset RMIN value using "BY" syntax within obiee report but not able to apply same in RPD expression builder)
    RMIN (COLX BY COLB)
    Any idea ???
    Thanks in advance.
    -Devendra

    Exactly. As I wrote, B contains some functions (mainly SUBSTR and CAST) that depend on other columns from the same dimension (all other colums are physical).
    Funny thing is, when I drag D01.B into the analysis alone, it works all fine... Adding a measure also leads to the said error.

  • Yamaha Motif XS8 -  USB Midi to Logic 8 Express, anyone??

    Hi Everybody!
    I have just purchased a Yamaha Motif XS8 to run with my Logic 8 Express.
    The people at the store told me that I could set it up just like I had done with my midi controller through a USB straight into the Mac. But there is abso no sound, signal coming from the Motif.
    How do I get the Motif to talk to the Mac via USB Midi?
    The driver for the Motif is installed, and the mac can find it on the Mac's integrated Midi-setup. Cool. Fine.
    BUT...
    Am I doing something wrong? Cause I can't get no signal from the Motif in Logic??
    Can someone please explain how to set up a right set-up when you have a :
    Motif XS8 ->USB -> MacBook Pro/ With Logic 8-> USB- M-Audio Firewire 410 Interface?
    I want to get to know the Motif with time and really "walk the walk" and learn as I go, but,
    some sound would be nice......
    Anyone??
    Thanks in advance, anyone who can help......
    Best,
    Applecake

    You are making 2 kinds of errors:
    1. you are recording in MIDI tracks whose task is to transmit all the data to external synths (just the way it's happening to you).
    You have to use Intruments tracks and assign a Logic (or AU) instrument to each of them.
    In this case the MIDI data will be forwarded to those and not to your Motif.
    2. the Motif USB interface is a MIDI interface; if you want to record the XS audio into Logic you will have to link the Firewire interface (that should be installed by default into the XS8) and install the right drivers (if nedeed).
    Another way is to send the Motif audio into Mac using the audio outs via an audio interface.
    BTW refer to the Motif manual to know more.
    cheers
    rob

  • Mail Setup Problem - Postfix error for username

    I set up some users with a structured userid of say xxxxx001 etc. For the email id I user their names separated by an underscore eg [email protected] I get my mail clients to logon to our server's IMAP service using the xxxx001 type of id with MD5 security and IMAP works fine. I also get them to logon to SMTP with the same id and security protocol but keep getting a postfix error: od[getpwnam_ext] no record for user fred_bloggs. As a test I setup a dummy user with the network id and first part of email address the same and that works fine. Could someone enighten me as to what is happening please? Is it the case that if I have a different network id and first part of email address that I need to add an alias, I ask because that seems to work aswell, however, it does seem odd that such action would be rquired. Any help gratefully received.

    Did you sign up for a .Mac trial account which is provided with each new Mac purchase and is good for 60 days or do you already have a .Mac paid account?
    If not, you cannot create and access a .Mac account.
    .Mac is the right account type if you have a .Mac account. With the Mail application your can create/access a .Mac account as a .Mac type account (which is really an IMAP account and behaves in the same way), IMAP or POP and you can create a .Mac account as an IMAP or POP account with other email clients on your Mac or on a Windows PC.
    I access my .Mac account as a .Mac type with Mail on my Mac and as an IMAP account with Outlook Express on my Windows PC at work. This way, I can keep all server stored mailboxes synchronized with both email clients.

  • Recording Audio and Midi at the same time in Logic 7 Express Can it be done

    I am wondering if I can record audio and midi at the same time in Logic 7 Express. I am running my guitar thrugh a Roland GR 33, and a line out and using the GR 33 to trigger sounds in the Logic's synth section but cant seem to record all three tracks at once. If any one knows how let me know. Oh and I am running the GR Synth and Guitar into the Prosonus Fire Fox and have the GR 33 out midi to the Fire Box as well. So I guss the question is how do I sent up two audo tracks and one midi track to record in real time. Thanks Victor

    I am wondering if I can record audio and midi at the
    same time in Logic 7 Express. I am running my guitar
    thrugh a Roland GR 33, and a line out and using the
    GR 33 to trigger sounds in the Logic's synth section
    but cant seem to record all three tracks at once. If
    any one knows how let me know. Oh and I am running
    the GR Synth and Guitar into the Prosonus Fire Fox
    and have the GR 33 out midi to the Fire Box as well.
    So I guss the question is how do I sent up two audo
    tracks and one midi track to record in real time.
    Thanks Victor
    Try arming the audio tracks, select one of the tracks, then while holding down the shift key, select the midi track you want to record, arming the "r" on the midi track. Press "record".....
    HL

  • After upgrading to 10.7.5 some of my AU plugins can not be validated in Logic pro. (I got error message "Remove property listener". I can not work anymore. What should I do?

    After upgrading to 10.7.5 some of my AU plugins can not be validated in Logic pro. (I got error message "Remove property listener". I can not work anymore. What should I do?
    VIBAC

    I downloaded and installed
    OS X Lion 10.7.5 Supplemental Update
    and that solved my problem completely. (368 AU plugins now works!)

  • 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

  • SQL Server detected a logical consistency-based I/O error

    Dear all,
    Please suggest me the solution of following error
    1). [Microsoft][SQL Native Client][SQL Server]SQL Server detected a logical consistency-based I/O error: torn page  '' (SEVT) (expected signature: 0x0; actual signature: 0x4104104). It occurred during a read of page (1:37304) in database ID 5 at offset 0

    Hi,
    Check SQL server event log for detailed error description and check for database consistency.
    also check http://www.bigresource.com/Tracker/Track-ms_sql-KkCLi1Iy/
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=154969
    Thanks,
    Neetu

  • Communication express address book error

    Hi Shane,
    My communication express display this error message when i search name > 1000 record.
    "Your server is not configured properly or your search query has exceeded the limit, Please check server configuration"
    Can i disable this settting or is there any parameter for me to turn ?
    Cheer
    UBD

    ubd wrote:
    My communication express display this error message when i search name > 1000 record.
    "Your server is not configured properly or your search query has exceeded the limit, Please check server configuration"
    Can i disable this settting or is there any parameter for me to turn ?This error could be due to a restriction at the Directory Server end or due to a restriction at the UWC/CE end.
    Check the directory server access logs to see if there is an error returned for the search.
    Also confirm that the lookthru_limit setting in <uwc_deploy_base>/WEB-INF/config/corp-dir/db_config.properties is more then 1000.
    Regards,
    Shane.

  • Converting Prefix expression to Infix Expression

    Hi!
    I need a little algorithm to convert a Prefix expression to an Infix expression. If I give the String
    AND(OR(sunday;saturday);OR(coffee;milk))
    the algorithm shoud give an expression of the form
    (sunday OR saturday) AND (coffee OR milk).
    Can somebody help?

    school assignment? I wasn't fond of this one either
    I don't want to give it all away, but the gist of this is that an arithmetic expression can be represented as a tree
    +
    | \
    a b
    To do prefix, input is "read node, get subnode 1, get subnode 2"
    output is "out node, out subnode1, outsubnode2"
    infix input is "read subnode1, read node, read subnode2"
    output is the same sort of thing
    You've got to implement that

  • Express document update error in me21n

    Hai
       Iam working on 000 client, Iam not able to see my PO in the list.
    The error is "document update terminated by the user"
    In SM13 ,i have checked the error log and it is showing the cause as
    Module name -
    >me_create_document
    Type----->V1
    Status----->Error
    Please help me in resolving this error.
    Regards
    Anu

    Hi Anushka..
    Did u find the solution for this error ?(Express document update error in me21n) .. while creating PO.
    I am having the same issue now.. need ur support @ the earliest.
    Thanks in advance.

  • ORA-22902 CURSOR expression not allowed Error Cause: CURSOR on a subquery..

    Hi,
    I found same issue in a metalink thread which is addressed in Oracle 12.1 which doesn't help me now. I need to rewrite the below query. Does anyone have any suggestions how to go about it?
    thanks,
    April
    working in Oracle 11.2.0.3.1, windows server, doing an upgrade from 10g to 11g. Piece of code is failing with following error via TOAD
    Oracle Database Error Code ORA-22902 Description :
    CURSOR expression not allowed
    Error Cause:
    CURSOR on a subquery is allowed only in the top-level SELECT list of a query.
    The below code is returning a tree of data for projects, units within the buildings.
    Code as follows:
    SELECT LEVEL
    , p.project_id
    || NVL (p.file_ref, ' ')
    || '] ['
    || NVL (p.project_ref, ' ')
    || '] '
    || p.project_name
    || ' ( '
    || (SELECT COUNT (*)
    FROM PROJECT p1
    WHERE p1.parent_project_id = p.project_id)
    || ' sub-projects, '
    || (SELECT COUNT (*)
    FROM PROJECT_ELEMENT pe2
    WHERE pe2.project_id = p.project_id)
    || ' elements)' AS project_description
    CURSOR
    (SELECT pe.element_id
    || pe.element_ref
    || '] '
    || pe.element_name
    || ' ('
    || pe.unit_count
    || ')' AS element_description
    CURSOR
    (SELECT hu.hu_id
    || hu.hu_ref
    || '] '
    || CASE
    WHEN hu.bedroom_count IS NOT NULL
    THEN ', Bedrooms: ' || hu.bedroom_count
    ELSE NULL
    END
    || CASE
    WHEN hu.bedspace_count IS NOT NULL
    THEN ', Bedspaces: ' || hu.bedspace_count
    ELSE NULL
    END AS hu_descripton
    FROM HOUSING_UNIT hu
    WHERE hu.element_id = pe.element_id
    ORDER BY hu.hu_ref
    ) AS housing_units
    FROM PROJECT_ELEMENT pe
    WHERE pe.project_id = p.project_id
    ORDER BY pe.element_ref, pe.element_name
    ) elements
    FROM PROJECT p
    START WITH p.project_id = l_root_project_id
    CONNECT BY PRIOR p.project_id = p.parent_project_id -- connect by used with LEVEL keyword
    ORDER SIBLINGS BY p.file_ref DESC
    , p.project_ref DESC
    , p.project_name DESC;
    Edited by: AprilM on Jul 17, 2012 10:28 AM

    Interesting. I am getting even worse results on 11.2.0.1.0:
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
      2  /
    select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00905: missing keyword
    SQL> connect scott
    Enter password: *****
    Connected.
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
      2  /
    DNAME          CURSOR(SELECTENAMEFR
    ACCOUNTING     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    CLARK
    KING
    MILLER
    RESEARCH       CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    SMITH
    JONES
    SCOTT
    ADAMS
    FORD
    SALES          CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    ALLEN
    WARD
    MARTIN
    BLAKE
    TURNER
    JAMES
    6 rows selected.
    OPERATIONS     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    no rows selected
    SQL> And double CURSOR also works fine in 10g:
    SQL> select cursor(select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d) from dual
      2  /
    CURSOR(SELECTDNAME,C
    CURSOR STATEMENT : 1
    CURSOR STATEMENT : 1
    DNAME          CURSOR(SELECTENAMEFR
    ACCOUNTING     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    CLARK
    KING
    MILLER
    RESEARCH       CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    SMITH
    JONES
    SCOTT
    ADAMS
    FORD
    SALES          CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    ALLEN
    WARD
    MARTIN
    BLAKE
    TURNER
    JAMES
    6 rows selected.
    OPERATIONS     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    no rows selectedSY.
    Edited by: Solomon Yakobson on Jul 17, 2012 1:27 PM

  • 'Express document terminated' - Error

    Hi, can anybody please advice on what is 'Express document terminated' - error?
    I am getting this error while posting for some particular confirmation numbers and it is against the table AFRU. Please advice. Thanks.

    HI sagar,
      Check if any user exit has a commit work statament with respect to this transaction.
    In general you get this type of error messages when you use a explicit commit in a place where you are not supposed to commit.
    Regards,
    Ravi

Maybe you are looking for