Bug? inconsistent state after integer overflow

hi there,
im running java 6 se with the latest updates on macosx 10.6.4
i implemented a primality check, which didnt give the right answer in some cases.
several tests with the same input gave me different output, though the used algorithm is deterministic.
i could reduce the code to just a few lines. its attached.
the code gives me unpredictable results
mostly i get 20001 (which is correct), 1, 1025 or 199XX.
only u = 2^31-1 produces this behaviour.
the integer wraparound is a welldefined operation, i think.
so this is a serious bug, isnt it?
public class wtf
     public static void main(String... args)
          for (int i = 0; i < 20; i++)
               work(2147463647, 2147483647);
     static void work(int l, int u)
          int runs = 0;
          for (int i = l; (i <= u) && (i > 0); i++)
               runs++;
          System.out.println(runs);
}

I managed to sort this on my own and here's what I learned in case someone else comes across this issue in the future.
The library was not corrupted, but it was buggy. The lack of any available views caused the paths to go weird as described above. The allitems view was not deleted, however, but it was marked as hidden and had the name removed from it. I was able to recover
this by modifying the properties on the allitems view in the SPList.views collection. Not sure how it happened, but it was an easy fix.
The other issue was me being a newbie with SP. The user had uploaded new files for the list using explorer which appears to initially set them to be checked out. Since they never had a checked in version, they don't appear in any view, in search, etc. but
they are included in the SPList.ItemCount property. This resulted in a seemingly "empty" document library with files in it.
I hope this helps the next person to come along with a similar problem. Serious pain to figure this out, but I got a lot of good experience with the SP PowerShell environment, so it had a bit of a silver lining.

Similar Messages

  • Exchange 2013 SP1 Object is corrupted and inconsistent state after Lync 2013 Installation

    Hi Fellows,
    I am facing an issue with Exchange 2013 SP1 (5.0.847.32)
    environment. I recently installed Lync 2013 (version: 5.0.8308.0) a week ago and just recently start getting the below error when configuring delegation or modifying the users/groups from Exchange Control Panel:
    "The Object <object DN> has been corrupted, and it's in an inconsistent state. The following validation errors happened:
    The access control defines the ObjectType <object guid> that can't be resolved.."
    I can see some forum threads with same issue (links given below) but unable to find if this is a known issue and how to get it resolved. Need assistance if anyone has faced same and could help me out to figure it.
    http://social.technet.microsoft.com/Forums/exchange/en-US/72310530-d1de-4b39-a0fb-1592247df03f/access-control-entry-issue-after-installing-lync-2013-into-the-forest?forum=exchangesvrdeploy
     http://www.networksteve.com/exchange/topic.php/Issue_with_exchange_2013_lync_2013_intergration/?TopicId=37192&Posts=2
    J.A

    Hi
    Usually the affected SID objects are referring to deleted objects.
    Use the PsGetSid tool to try to resolve them.

  • BUG: Sandisk USB flash drive in "half-mounted" state after wake from sleep

    My Sandisk Cruzer Crossfire 4GB Flash Drive is left in a half-mounted state after wake from sleep. The Finder believes the drive is still mounted, the icon is on the Desktop. However opening a file on the drive, or trying to eject the drive, results in a long beach ball, followed by a message that I removed the drive without Ejecting it first. The same drive continues to work fine on my Tiger machine, and on PCs.
    Bug Report:
    Setup:
    Macbook 1st Gen (2.0 Ghz)
    Mac OS X Leopard 10.5 Clean Install
    Sandisk Cruzer Crossfire 4GB USB Flash Drive (in either port)
    Repro:
    Plug in the drive.
    Close the MacBook to put it to sleep
    Reopen the MacBook
    Result:
    The lights on the flash drive never light back up after wake from sleep. Navigating the drive, or trying to eject it results in a "you removed the device without ejecting it first" message.
    Expected:
    Drive should still be mounted and accessible after waking back up.

    It may be a design flaw in the device. Mac OS X does a lot more power management than most other OSes, including tearing devices down to little or no power during sleep. It is possible that the device simply misbehaves due to corrupted memory state or reports a substantially different GUID or something similarly bizarre upon wake. (Okay, that last one wouldn't technically be a power management issue....)
    If it doesn't have any problems except when sleeping the system, I would just make sure I unmounted it before putting the machine to sleep and wouldn't worry about it. Maybe check with Sandisk to see if they have a firmware updater for the device.

  • ORA-03120 :two-task conversion routine:integer overflow Vendor code 3120

    Hi,
    I got below mentioned error message, while i run the procedure in sql developer
    ORA-03120 :two-task conversion routine:integer overflow Vendor code 3120

    What version of the database are you on? 9.2.0.8 for a guess?
    >
    ORA-03120 is associated with bug 5671074 on Oracle Enterprise Edition; Version 9.2.0.8, occurring on any platform:
    After applying the 9.2.0.8 patchset, compilation of functions and/or materialized view refreshes that reference remote databases via database links start failing with:
    ORA-04052: error occurred when looking up remote object OMS.PREMISE@JEAUSER_OMPR_L.WORLD
    ORA-00604: error occurred at recursive SQL level 1
    ORA-03120: two-task conversion routine: integer overflow
    ORA-02063: preceding line from JEAUSER_OMPR_L
    Bug 5671074 "ORA-4052/ORA-3106 on Create / Refresh of Materialized View", can cause this problem. Contrary to the bug abstract and description, this bug does not just apply to materialized view creation and refresh. It can occur for any PL/SQL that references a remote object via database link where the 'Endianness' of the two platforms differs. If one platform is 'Big-Endian', and another platform is 'Little-Endian', then this bug can be triggered between them. A list of the endianness of different platforms can be obtained from the following query (note that the v$transportable_platform view is only available in 10.1 and above):
    To resolve ORA-03120, this solution is given:
    To implement the solution, it will be necessary to apply the one-off patch for Bug 5671074 to the 9.2.0.8 database. One-off patches to 9.2.0.8 for most platforms are already available for download on MOSC. Bug 5671074 to the 9.2.0.8 database. One-off patches to 9.2.0.8 for most platforms are already available for download on MOSC.
    >
    If not, post more information: {message:id=9360002}

  • ORA-03120: two-task conversion routine: integer overflow

    Hello DB Gurus!!
    Need your comments and help once again...
    I am trying to import a DUMP file into My Local Database ie. Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    The file exported was by different user on different Dabase of Oracle 10g i.e. Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    but while I am trying to import, I getting the following error..
    Please help.. and suggest the alternate..
    Warning: the objects were exported by XYZABC , not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    IMP-00008: unrecognized statement in the export file:
    . importing NEXOS_ADMIN_OLTP_API's objects into SHRICHANDRA_ABC123
    IMP-00003: ORACLE error 3120 encountered
    ORA-03120: two-task conversion routine: integer overflow
    . importing NEXOS_ADMIN_OLTP_TAB's objects into SHRICHANDRA_XYZ123
    IMP-00003: ORACLE error 3120 encountered
    ORA-03120: two-task conversion routine: integer overflow
    Thanks in advance..

    Thank Rajneesh,
    I suspect the same issue as you did, But unfortunately I don't have much option available, as other side all are production DB so All I can do is pull from there that is export and import to my local where I am stuck!!!
    Thanks..

  • Exception Message=Unable to connect to the VMM database because the database is in an inconsistent state.

    Hello,
    I have a problem with SCVMM 2012 R2, it always gives error when tries to "Run the dynamic optimizer" process. The process starts automatically every 30mins. When I analyzed report.txt file I found error message:Exception Message=Unable
    to connect to the VMM database because the database is in an inconsistent state.Contact an experienced SQL administrator whenever this error occurs. In some cases, it may be necessary to restore the VMM database. If the problem persists, contact
    Microsoft Help and Support.
    NOTE: If I start the process manually, it completes without any errors.
    Any help would be appreciated

    I'm led to believe this is a bug in UR5 and I think it was a bug in VMM 2012 SP1 RTM.
    Our TAM says this will be fixed in UR6. We had to turn off Dynamic optimizer or we could have rolled back to UR4 but there were other bugs in UR4 which hurt us more.

  • DPM 2012 SP1: Unable to connect to the DPM DB, because the DB is inconsistent state.

    We are getting the following error when we try to recover from a specific server ( Recovery Tab | Domain | File Server )
    Unable to connect to the DPM Database because the database is in an inconsistent state. (ID943)
    => There are no double entries for the specific server in the database. Verified by the following query:
    select servername, domainname from dbo.tbl_AM_Server order by servername
    => DBCC Check DPMDB results in no errors. 
    => Yesterday we used the following script to remove a ghost tape from our reports. The tape belongs to the PG where the File Server is member of.
    http://social.technet.microsoft.com/Forums/en-US/a654c323-7b48-4ab5-8812-850115d9e430/dpm-2012-ghost-tapes-in-weekly-report?forum=dpmtapebackuprecovery
    Is there a relation between our error and the removal of the ghost tape? Any idea how to fix this? 

    Hi,
    I have not heard of that script causing any problems in the past, so may or may not be related.  What are the details of the msdpm service crash found in the msdpmcurr.errlog after the error ?
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • [svn:fx-trunk] 12786: Fixed bug with state property value assignments.

    Revision: 12786
    Revision: 12786
    Author:   [email protected]
    Date:     2009-12-10 07:35:43 -0800 (Thu, 10 Dec 2009)
    Log Message:
    Fixed bug with state property value assignments. SetProperty pseudonym values (width/explicitWidth, height/explicitHeight) were not getting set correctly, causing values to be incorrectly assigned to 0 in some cases.
    QE notes: -
    Doc notes: -
    Bugs: sdk-24446
    Reviewer: Corey
    Tests run: checkintests, Mustella tests/States, tests/mx/states
    Is noteworthy for integration: Yes (fix requested by tools)
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-24446
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetProperty.as

    Add this to the end of your nav p CSS selector at Line 209 of your HTML file, after 'background-repeat...':
    margin-bottom: -2px;
    Your nav p will then look like this:
    nav p {
              font-size: 90%;
              font-weight: bold;
              color: #FFC;
              background-color: #090;
              text-align: right;
              padding-top: 5px;
              padding-right: 20px;
              padding-bottom: 5px;
              border-bottom-width: 2px;
              border-bottom-style: solid;
              border-bottom-color: #060;
              background-image: url(images/background.png);
              background-repeat: repeat-x;
              margin-bottom: -2px;

  • How can solve this ORA-03120: two-task conversion routine: integer overflow

    Hello everybody,
    I'm writing this query "SELECT rowid from <mytable>" and I get this error: ORA-03120
    Does anybody know how can i solve it?
    Thanks in advice

    Here is the cause and action as suggested in the Oracle Error Guide...please see if it helps you to fix the error
    ORA-03120:two-task conversion routine:integer overflow
    Cause: An integer value in an internal Oracle structure overflowed when being sent or received over a heterogeneous connection. This can happen when an invalid buffer length or too great a row count is specified. It usually indicates a bug in user application.
    Action: Check parameters to Oracle calls. If the problem recurs, reduce all integer parameters, column values not included, to less than 32767
    Regards,
    Murali Mohan

  • OALL8 is in an inconsistent state

    Hi,
    I am using 9.0.3 app server. I have a datasource with datasource class 'oracle.jdbc.pool.OracleConnectionCacheImpl' and JDBC Driver oracle.jdbc.driver.OracleDriver.
    Our oracle database gets restarted every night, so there will be some staled connections in the pool.. and when I use the application after the database is restarted I get the following error:
    java.sql.SQLException: OALL8 is in an inconsistent state.
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
         at oracle.jdbc.driver.T4C8Oall.init(T4C8Oall.java:308)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:166)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:661)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:893)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:693)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:988)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2884)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2925)
    I set the following connection attributes:
    max-connections="5"
    inactivity-timeout="30"
    wait-timeout="30"
    max-connect-attempts="2"
    connection-retry-interval="30"
    Is n't it automatically remove the staled connections and give fresh connections ?
    Thanks for any inputs, Kiran

    Hi Kiran,
    I am pretty sure that in 9.0.3 DriverManagerDataSource did not support stale connection checking. and I don't think OracleConnectionCacheImpl does either (at least there is no way through the config files).
    The only option might be through code, i.e. your application checks for stale connections since there is some driver settings that you could modify through code. I would suggest posting your question in the JDBC forum and do mention that you are running on OC4J and is there a way in the driver that you could check for stale connections, through code.
    Hope this helps.
    Deepak

  • OALL8 is in an inconsistent state / protocol violation

    When I try to define and test a oracle database location, I get this two error messages:
    1. OALL8 is in an inconsistent state
    2. Protocol violation
    Anyone have seen them before? Since I'm working on a fresh installation environment, I don't know whether the errors are caused by installation problems.
    Thanks a lot

    I have seen something similiar to this in a Portal installation, when the database has been restarted. Can it be that the database had gone down after you connected to the OWB design center?

  • Two-task conversion routine: integer overflow

    Hi!
    We're using JBuilder to connect an Oracle database remotely.
    Everything's fine when I do a stmt.executeQuery() with a single
    SQL command (like select field1 from table1). But when I use a
    SQL command using two or more fields (like Select field1, field2
    from table1) I receive the message "ORA-03120: two-task
    conversion routine: integer overflow".
    Can anyone help us with it ? We're needing this information
    fast for our graduation work of the college.
    Thanks!
    null

    I am using 8.1.6 database and 6.0.8.11.3 forms.
    I found that if I change the query stored procedure from passing the result set in a cursor variable, to a table variable the problem seems to go away. We are still testing though...
    When openning a cursor variable in a "open cursor_x for <select statement>" statement do you need to explicitly close the cursor?
    Thanks,
    Darryl

  • 1030: integer overflow on input

    while running a fortran code, I am getting an error "1030: integer overflow on input". It gives this error while reading some input from a .dat file. I am not able to figure out the reason. Could it be related with the formatting of the input file it is reading?

    it was giving error at read statement which was using free form. i changed it to fixed format reading & got rid of the error.

  • The object has been corrupted, and it's in an inconsistent state. The following validation errors happened:

    Dear Friend
    I have got below error message in the exchagne server 2013 while i tried to open the console of delegation mailbox . It was comes once i was deploy lync server 2013 in the same forest.
    warning
    The object has been corrupted, and it's in an inconsistent state. The following validation errors happened:
    The access control entry defines the ObjectType 'd819615a-3b9b-4738-b47e-f1bd8ee3aea4' that can't be resolved..
    The access control entry defines the ObjectType 'e2d6986b-2c7f-4cda-9851-d5b5f3fb6706' that can't be resolved..
    If you feel to ask to more clarification, please let  me know.
    Regards, Md Ehteshamuddin Khan All the opinions expressed here is mine. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Hi,
    Based on the description, you got warnings when you tried to click the mailbox delegation option of mailbox properties in EAC. Is it right?
    Did this issue affected only one user mailbox or all of them?
    From the error message, it seems that this issue is related to the corrupt permissions. Please use the
    Get-MailboxPermission cmdlet to retrieve permissions on a mailbox to check result.
    Best regards,
    Belinda Ma
    TechNet Community Support

  • Agent going to ready state after login

    Hi guys,
    I have UCCX 5.0(2) and I would like to force agent to go to state ready after login. There were some posts on this topic and they suggested to play with workflow:
    1. add add action agent ready at startup - for this I get: "Error on Startup Event. Error Message: An Agent State Action may only be used on Answered and Dropped Events."
    2. add macro - record putting agent in ready state (keystroke Ctrl +W). This I can do, but agent gets error during login: " Could not execute Macro Action. Unable to playback to windows program."
    Did you have similar problems? Did you solve it and how? Or maybe you have some other idea how to force agent to go in ready state after login?
    BR,
    Jelena

    Hi,
    Problem An agent using Windows XP was able to start Agent Desktop, but was
    not able to enter an active state.
    Solution Windows XP can be configured so that the Internet Connection Firewall
    (ICF) is active. ICF acts by keeping track of all traffic to and from the
    computer; it will only allow information through that has originated from
    that particular computer. If a message originates from outside the
    computer, it will be discarded.
    To solve this problem, either turn off ICF (requires someone with
    administrator rights to the computer) or override the defaults to include
    known “good” connections like the CAD servers.
    And also, is it by any chance happening during a failover or failback scenario in a High Availability (HA) setup?
    If its a HA setup, did you install this CAD after the HA setup is made i.e. the CAD has the entries for the ip address of the both the nodes.
    Hope it helps,
    Anand

Maybe you are looking for

  • Taking Snow Leopard for a spin with CS4 . . .

    Back in September I purchased the Snow Leopard install DVD to use it's Drive Setup app to perform more reliable SATA hard drive partitioning on my '07 Mac Pro, before I re-installed Tiger, from the machine's OEM install DVD. Over the weekend, I insta

  • Implementing Digital Signature Strategy In Adobe Forms

    Hi Everyone, I need to know how to implement Digital Signatures with the use of Signature Strategy in my ECC 6.0 system.. Here is what i've done already, 1) Created a signature strategy with user authentication and registered the Signature Object in

  • Lightroom and Windows mouse focus issues.

    In one aspect Lightroom have been always behaving different from other Windows application: Its speed of grabbing mouse focus and moving window to the foreground is exaggerated. This problem will be observed only by people using their WinXP computers

  • Dropped phone in water

    Help, I was doing dishes and accidentally dropped my iPhone G4 in the water.  I retrieved it as soon as I could and dried if off.  I took out the sim card and it was dry, but I dried it anyway and I blew into everything to hopefully save it.  It acta

  • Roles created in CUA are not distributing?

    Hi,   I have configured CUA in my system between 3 clients.when am creating a user it is reflecting in the child systems but where as roles created are not reflecting in the child systems. Even i have check in SCUM roles are maintained GLOBALLY.what