Number Overflow when it is within the range (Long)

Hi,
I am using Oracle JDBC Drivers to write a CMP (Container Managed Persistance) beans which has a CMP Field of long value in
the table it is Number(14) which is well under the limits of long datatype, the value is also currentmillis which is millis
from 1-1-1970, the value is also 1046836194640L which is withing long datatypes limits but gives the overflow exception,
please help me with the same. try to use the oracle.sql.NUMBER.toLong which expects a byte[] on the value it gives an error.
simple way to test this is get the above value from dual table get the rs.getBytes and take the byte[] and pass it to the
oracle.sql.NUMBER.toLong it will give the error. and one more strange observation i found is when this number is stored in the table and you try to just perform a select in SQL Query Manager or SQLPlus in windows 2000 you will receive an windows Excepton telling that program tried to refer to memeory outside and you have to quit the client app.
Database is oracle 8i on windows 2000 advanced Server
Expired Commands Not Found javax.ejb.FinderException: Exception in 'findExpiredCommandsOfThisMaster' while using result set:
'weblogic.jdbc.rmi.SerialResultSet@7d78ce'
java.sql.SQLException: Overflow Exception
java.sql.SQLException: Overflow Exception
at oracle.sql.NUMBER.toLong(NUMBER.java:371)
at oracle.jdbc.dbaccess.DBConversion.NumberBytesToLong(DBConversion.java:2915)
at oracle.jdbc.driver.OracleStatement.getLongValue(OracleStatement.java:4373)
at oracle.jdbc.driver.OracleResultSetImpl.getLong(OracleResultSetImpl.java:529)
at weblogic.jdbc.pool.ResultSet.getLong(ResultSet.java:107)
at weblogic.jdbc.rmi.internal.ResultSetImpl.getLong(ResultSetImpl.java:216)
at weblogic.jdbc.rmi.internal.ResultSetStraightReader.getLong(ResultSetStraightReader.java:62)
at weblogic.jdbc.rmi.SerialResultSet.getLong(SerialResultSet.java:204)
at
net.devicesWorld.deviceServer.server.device.command.InstructionalUnit_7krj5v__WebLogic_CMP_RDBMS.ejbFindExpiredCommandsOfThis
Master(Instruc
tionalUnit_7krj5v__WebLogic_CMP_RDBMS.java:1877)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.collectionFinder(RDBMSPersistenceManager.java:278)
at weblogic.ejb20.manager.BaseEntityManager.collectionFinder(BaseEntityManager.java:670)
at weblogic.ejb20.manager.BaseEntityManager.collectionFinder(BaseEntityManager.java:643)
at weblogic.ejb20.internal.EntityEJBHome.finder(EntityEJBHome.java:448)
at
net.devicesWorld.deviceServer.server.device.command.InstructionalUnit_7krj5v_HomeImpl.findExpiredCommandsOfThisMaster(Instruc
tionalUnit_7kr
j5v_HomeImpl.java:267)
at
net.devicesWorld.deviceServer.server.device.command.CommandsToSendBean.getCommandToSend(CommandsToSendBean.java:97)
at
net.devicesWorld.deviceServer.server.device.command.CommandsToSendBean_uqhqrf_EOImpl.getCommandToSend(CommandsToSendBean_uqhq
rf_EOImpl.java
:413)
at net.devicesWorld.deviceServer.server.device.command.PollOnline.process(PollOnline.java:110)
at net.devicesWorld.deviceServer.server.device.command.CmdMessageBean.onMessage(CmdMessageBean.java:267)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:268)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Regards
LJS Narayana

Hi Abrami,
Thank you for your reply. It is like this i am storing System.currentMillies() which gives Millis in long data type into a table having a number column with (14). Now i wrote a CMP bean which uses this table, for almost a year and half it is in production with no problem but from few days back when we try to use a finder method to query data SQL returns Exception telling that Number Overflow, a sample number for getting this overflow is 1046836194640L which represents 'Wed Mar 05 11:49:54 SGT 2003' this date. I found that the CMP which got generated is using oracle.sql.NUMBER.toLong(byte[] inputNumber) and thus giving the error. I try to use your suggested way, if we can directly work on the long it would be more convenient.
Regards
LJS Narayana

Similar Messages

  • "Battery serial does not validate", but the number is within the range

    My sister came home from abroad for Christmas, and I checked her PB 12-inch battery serial number. Her battery has the serial number ZZ3480FJPVEA as far as I can see. This falls into the replacement range:
    12-inch
    iBook G4 A1061 ZZ338 - ZZ427.
    On the exchange page, Apple writes: "If the first 5 digits of your battery’s 12-digit serial number fall within the noted ranges, please order a replacement battery immediately." But the battery serial does not validate even if I replace the zero with the letter "O".
    Are there batteries within the range that still are ok?
    Ingmar
    PowerBook G4 12-inch   Mac OS X (10.4.8)  

    I could not post an answer to the topic without marking the question
    "answered", though it wasn't!
    Strange, because the question is not marked as answered and it is not necessary to mark it in order to reply (simply click on the "reply" link near each post you want to reply to).
    However when you feel that your question is answered - or the forum cannot be of further assistance - mark the question as answered and maybe also give some final notes.
    If you got helpful replies, then you may award the posters by granting points. You can do so by clicking to "helpful" and "solved" buttons appearing near each post (you need to be logged in).
    The buttons mean what they state: "Helpful" in the sense of user gave a useful answer or further information allowing you to solve an issue with some work of your own. "Solved" means that this post of the user is mainly responsible for managing an issue.
    You can only mark one posting as "solved" in a thread, and - I hope this is correct - two or three times marking posts as "helpful". With the last, I'm not sure, you may have a look at "Help & Terms of Use".

  • SAP paging overflow when storing data in the ABAP/4 memory.

    I am trying to create a data source in  BI7.0 in the Datawarehousing Workbench. But along the process when i need to select a view i get an error detailed in the following error file extract: Please go through and assist.
    untime Errors         MEMORY_NO_MORE_PAGING
    Date and Time          06.06.2009 14:21:35
    Short text
    SAP paging overflow when storing data in the ABAP/4 memory.
    What happened?
    The current program requested storage space from the SAP paging area,
    but this request could not be fulfilled.
    of this area in the SAP system profile.
    What can you do?
    Note which actions and input led to the error.
    For further help in handling the problem, contact your SAP administrator
    You can use the ABAP dump analysis transaction ST22 to view and manage
    termination messages, in particular for long term reference.
    Error analysis
    The ABAP/4 runtime system and the ABAP/4 compiler use a common
    interface to store different types of data in different parts of
    the SAP paging area. This data includes the
    ABAP/4 memory (EXPORT TO MEMORY), the SUBMIT REPORT parameters,
    CALL DIALOG and CALL TRANSACTION USING, as well as internally defined
    macros (specified with DEFINE).
    To store further data in the SAP paging area, you attempted to
    allocate a new SAP paging block, but no more blocks were
    available.
    When the SAP paging overflow occurred, the ABAP/4 memory contained
    entries for 20 of different IDs.
    Please note:
    To facilitate error handling, the ABAP/4 memory was
    deleted.
    How to correct the error
    The amount of storage space (in bytes) filled at termination time was:
    Roll area...................... 8176
    Extended memory (EM)........... 13587912
    Assigned memory (HEAP)......... 0
    Short area..................... " "
    Paging area.................... 40960
    Maximum address space.......... " "
    By calling Transaction SM04 and choosing 'Goto' -> 'Block list',
    you can display an overview of the current roll and paging memory
    levels resulting from active users and their transactions. Try to
    decide from this whether another program requires a lot of memory
    space (perhaps too much).
    The system log contains more detailed information about the
    termination. Check for any unwanted recursion.
    Determine whether the error also occurs with small volumes of
    data. Check the profile (parameter "rdisp/PG_MAXFS", see
    Installation Guidelines).
    Is the disk or the file system that contains the paging file
    full to the extent that it cannot be increased, although it has
    not yet reached the size defined in the profile? Is the
    operating system configured to accommodate files of such a
    size?
    The ABAP processor stores different types of data in the SAP
    paging area. These include:
    (1) Data clusters (EXPORT ... TO MEMORY ...)
    (2) Parameters for calling programs (SUBMIT REPORT ...),
    Dialog modules (CALL DIALOG ...) and transactions
    (CALL TRANSACTION USING ...)
    (3) Internally defined program macros (DEFINE ...)
    Accordingly, you should check the relevant statements in a program
    that results in an overflow of the SAP paging area.
    It is critical when many internal tables, possibly with
    different IDs, are written to memory (EXPORT).
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "MEMORY_NO_MORE_PAGING" " "
    "SAPLWDTM" or "LWDTMU20"
    "TABC_ACTIVATE_AND_UPDATE"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.

    Hi Huggins,
    Maintenance of the Paging File is owned by your basis team.
    They should increase this in order for your transaction to process successfully.
    Just for your reference, in case the OS used is windows server 2003, paging file value can be checked through;
    Right click in the My Computer>properties.
    Then go to Advance tab;
    Then there should be a performance section, click the settings
    Then Advance tab again. The paging file can be seen from there.
    (and can be adjusted from there also)
    The value of the paging file in general will be dependent with the available RAM from the hardware.
    Hope this helps. Thanks a lot.
    - Jeff

  • I have a CS3 Creativ Suite. - I have uninstalled it fram XP the corret way. Now i have installed Windows 7 and try to reinstall the creative suite. It accept the first CD an the serial number, but when i get to the second CD it stop. Any one who can help?

    I have a CS3 Creativ Suite. - I have uninstalled it fram XP the corret way. Now i have installed Windows 7 and try to reinstall the creative suite. It accept the first CD an the serial number, but when i get to the second CD it stop. Any one who can help?

    If you have Windows 7 Pro you can try to install CS3 in XP mode.

  • Why would FCP crash when i click within the effect window?

    Why would FCP crash when I click within the effect window?

    I have an old system, but have not had this problem before.
    It is a MAC G5 tower...
    FCP 5.1.4
    MAC OS X version 10.4.``
    Quicktime 7.6.4

  • I have a problem when buying from within the game

    I have a problem when buying from within the game
    i used visa..

    All games? Settings > General > Restrictions has an option to prevent In-App Purchases. Is that on?

  • Some of my emails are not displaying images. When I click within the email, the webpage is the same. How can this be fixed?

    I use hotmail and the problem only happens with certain emails, like Homedepot and Redbox. Within the email, it states "Having trouble viewing this email? Click here.", but when I click this, the same problem persists, no images displayed. These are the only two I have noticed that are not displaying the images. Please help. Thanks

        Hello riopeltravel, let's solve this mystery! What make & model phone do you have? Also, have you tried deleting the email account off of the phone and re-adding with the username and password? How long have the email accounts stopped working? Keep us posted!
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • Cannot dial a number by clicking on it within the ...

    If you're looking up a business or phone number in the web browser, find the number, move the cursor over the number and click the phone should dial the phone number.
    Instead when i click on any phone number i get this error message: "Internet telephone not available."
    Any ideas? 

    have you tried Bolt? (http://boltbrowser.com/home.html) I personally think it's a far better browser than the Native one.
    Other browsers you can choose from are Skyfire (http://www.skyfire.com), Opera Mini (http://www.opera.com/mini/download/), Mobile Firefox (http://mobilefirefox.com/)
    Aside from firefox, I've tried and still use all of them. each one has it's strenghts and weaknesses depending on what you want the browser to do.

  • How can you find out what number comment you are on within the comments list?

    Hi everyone,
    I have looked around but I cannot seem to find an answer to what seems a very simple request.
    I have a PDF with over a hundred comments on it and I am making (slow) progress through the comments list. I would like to estimate how long this job will take me to complete by looking at the time I have spent on the job and a which comment number I am at (e.g. I am currently at comment 60 of 120 - half way through).
    I cannot seem to find a way to do this without manually counting the number of comments I have been through already - which seems a watse of my time.
    Is there an easy way to do this? I am sure I am missing something simple here.
    Thanks in advance,
    twordz

    Sorry, I guess I mis-spoke. I thought that it will be numbered sequentially
    for the entire document, but I guess it's per page.
    The problem with numbering comments is that their internal order does not
    necessarily correspond to their physical location in the file. The internal
    order is based on the order in which they were created. Having said that,
    it is possible to generate a summary of the comments with sequential
    numbers for the entire file (not just page by page), but it would require a
    custom-made script.

  • TS1398 MY BLUETOOTH UNABLE TO DETEC OTHERS IPAD OR PHONE WITHIN THE RANGE

    mu bluetooth unable to detect ipad, others model phone, it keep running searching until ages it does appear anything within seconds.

    It will not pair with them.  This is not a feature of ipad/iphone/ipod

  • Error Invalid Number, re-send using a 10 digit number when texting a certain number, but when I put the area code in it still sends to the 7 digit number

    About a month ago I added a friends number without the area code. I was in an area that I couldn't send texts from.  Two days ago he texted me and I tried to reply, but when I did I got the error message "Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code."
    So, I put in the area code in front of the number and when I sent it, the phone dropped the area code and just sent it to the 7 digit number.  I went ahead and deleted all of his contact information and text messages to him and re-entered the with the area code and saved him as a new contact.  I tried to text the number and it still sent it to only the 7 digit number!!!
    I have tried everything there is to try, but there seems to be a part of the phone that is remembering this number even after I've deleted it and everything associated with it.
    Does anybody have a solution for this??  I have called Apple and they told me they have never heard of this problem before.

    The fix for this problem is easy and is set out here: http://edctips.blogspot.com/2014/09/fixing-iphone-texting-problem.html

  • Query to find numeric range gaps within another range

    Hi All,
    Is it possible to find the solution with a SQL query for the following scenario.
    I have done it in PL/SQL but want to do it in SQL. I have tried with analytic functions but not able to find the expected results.
    Suppose i have a Table A with below data
    Range_Start     Range_End
    4                          16
    20                        100
    101                      200
    250                      300
    And Table B with below data
    SubRange_Start     SubRange_End
    7                               9
    10                             13
    20                             60
    70                             80
    110                           190
    270                           300
    i want to find the missing gaps in Table B within the ranges specified in Table A, like below
    Output
    start     end
    4          6
    14          16
    61          69
    81         100
    101          109
    191          200
    250          269

    Hi Dear,
    Can I do reverse I mean I can get output as your question from your output as below:
    I have this table
    FID      STARTD ATE END DATE
    1 01-MAY-10 03-MAY-10
    1 09-MAY-10 11-MAY-10
    1 03-JUN-10 04-JUN-10
    2 03-JUN-10 04-JUN-10
    2 04-AUG-10 04-AUG-10
    2 06-AUG-10 06-AUG-10
    I want like this.
    FID FDATE
    1 01-MAY-10
    1 02-MAY-10
    1 03-MAY-10
    1 09-MAY-10
    1 10-MAY-10
    1 11-MAY-10
    1 03-JUN-10
    1 04-JUN-10
    2 03-JUN-10
    2 04-JUN-10
    2 04-AUG-10
    2 06-AUG-10
    And:
    How can i get date wise entry from Joining date to relieving date like..
    FID      START DATE END DATE
    1 01-MAY-10 03-MAY-12
    1 09-MAY-10 11-MAY-11
    2 04-AUG-10 04-AUG-11
    I want like this.
    FID FDATE
    1 01-MAY-10
    1 03-MAY-10
    1 04-MAY-10
    1 05-MAY-10
    1 16-MAY-10
    1 17-MAY-10
    1 08-May-10
    1 09-May-10
    1 03-May-12
    Can you please help me.
    Thanks,
    Edited by: 978452 on Dec 24, 2012 12:02 AM

  • Find date columns outside the range

    I have a start and end dates and I have to check mark the record if the ship date is outside my start and end date range. To find out whether my ship date is within the range I can use between but to check to see the outside of the range I am having trouble.
    Any one have any idea.
    Thanks in advance.

    What's the opposite of BETWEEN? Not between.
    not between :start_date and :end_date

  • Trying to change my best buy account number on best buy cc to the one i actually use

    I recently was approved for a best buy credit card and when I applied they did not attach my old my best buy account number so it automatically issued a new one. I know my membership number and when i click on the link that allows me to link a different my best buy membership, it says the member id does not exist. I try looking it up using the information on my best buy and it also says it cannot find it. I should have points on my old account, but I cannot access the account to find out if I have enough for a certificate yet. Help!

    Greetings kjacks58, and welcome to the Best Buy forum,
    Before you try linking your accounts (BestBuy.com and My Best Buy™), I would suggest we look into merging your two My Best Buy™ accounts.  The new account that is associated with your Best Buy credit card would be made the primary account, and any active points/certificates in the secondary account would transfer over to the primary following the merge.
    With that being said, I will need some additional information from you before I can look into performing a merge.  Please send me a private message with the information below and I will see what I can do to help.  You can send a private message by clicking on the blue button in my signature that is labeled "Private Message."
    Name
    Phone # (current and old)
    Mailing address (current and old)
    Email address
    My Best Buy ID #s
    Merging My Best Buy™ Accounts
    Thank you for posting and for being a member of the My Best Buy™ program!
    Derek|Social Media Specialist | Best Buy® Corporate
     Private Message

  • When I call someone, the caller ID says a differen...

    When I call someone, the caller ID says a different number than my Skype number.
    How do I fix it so it says my purchased skype number?
    When a person calls the number back, it says that it's not in service.
    How can I fix this?

    Contact the carrier.

Maybe you are looking for

  • Want to get an ibook + 1 question

    I am looking at lap tops to get. I'm checking out a couple of PC notebooks and the ibook G4 (14 inch). Probably going to get the ibook. I was wondering if anybody could tell me anything that I should purchase with the ibook (i.e. more RAM or somethin

  • Meaning of Inspection lot status

    Dear all guru, when we make any GR for a material which is applicable for quality inspection , SAP automatically creates a lot for the same and updates the status as CRTD CHCR SPR and go on updating as lot get undergo the quality inspetion stages, so

  • One step cross docking in wm

    hi, i am working on one step cross docking scenorio , i am missing some where in configuration. plz guide me. steps i followed i) checked the preallocated check box in omlj transaction for 101 - movt type ii)entered the preallocated stock details in

  • Filter on File Name

    The filtering options in Aperture 3 is very powerful but I can't find a way of filtering on the file name. In the "Add rule" in the pop-up menu for filtering there is no choice of "File name" but a whole lot of other choices. When I choose a picture

  • Illustrator CS2 ITA & fonts list problem

    Hi! I've a BIG problem with ILLUSTRATOR CS2 (ITALIAN VERSION). So, fonts are not displayed in the font list in the character palette. I tryed to repair but the problem remains. Any idea? I've also Ps CS3 & Acrobat Reader 9.1 on WinXP SP3 HELP ME PLS!