- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Misinterpretation of current dates on HP-UX
Operating System - HP-UX
1752565
Members
5678
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 10:08 AM
тАО11-10-2008 10:08 AM
Misinterpretation of current dates on HP-UX
Hi,
We are facing an issue on HP-UX (ver 11i) JDK 1.4.2.13 whereby current dates are being misinterpreted as dates in the future. For example a date such as 2008-11-05 00:00:00.0 is being misinterpreted as 2280-08-06 03:35:14.0 when the following call is made:
java.sql.PreparedStatement.setTimestamp(1, new java.sql.Timestamp.Timestamp(startDate.getTime()))
where startDate is of type java.util.Date and in this case would be 2008-11-05. This call sets the timestamp parameter in a prepared statement to be executed against the database. From our analysis, we feel that the issue could be occurring due to the JIT compiler incorrectly compiling the above call. The issue is not readily reproducible, hence we can't be a 100% sure.
I was wondering if anyone has experienced a similar issue and what the resolution was. I found a similar thread ( http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1226085465927+28353475&threadId=58414 ) from some time back, however a solution is not documented.
Any thoughts would be appreciated.
Thanks.
SP
We are facing an issue on HP-UX (ver 11i) JDK 1.4.2.13 whereby current dates are being misinterpreted as dates in the future. For example a date such as 2008-11-05 00:00:00.0 is being misinterpreted as 2280-08-06 03:35:14.0 when the following call is made:
java.sql.PreparedStatement.setTimestamp(1, new java.sql.Timestamp.Timestamp(startDate.getTime()))
where startDate is of type java.util.Date and in this case would be 2008-11-05. This call sets the timestamp parameter in a prepared statement to be executed against the database. From our analysis, we feel that the issue could be occurring due to the JIT compiler incorrectly compiling the above call. The issue is not readily reproducible, hence we can't be a 100% sure.
I was wondering if anyone has experienced a similar issue and what the resolution was. I found a similar thread ( http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1226085465927+28353475&threadId=58414 ) from some time back, however a solution is not documented.
Any thoughts would be appreciated.
Thanks.
SP
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 07:00 PM
тАО11-11-2008 07:00 PM
Re: Misinterpretation of current dates on HP-UX
Hi Patel,
does the "date" command also Misinterpretation of current dates on HP-UX .?
Do you time sync the server with your "NTP_Server"..?
if not either you can time_sync HPUX Server with your ntp server. using ntp
ntpq -p or could be you firewall ipaddress,
Thanks,
Johnson
does the "date" command also Misinterpretation of current dates on HP-UX .?
Do you time sync the server with your "NTP_Server"..?
if not either you can time_sync HPUX Server with your ntp server. using ntp
ntpq -p
Thanks,
Johnson
Problems are common to all, but attitude makes the difference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 07:33 AM
тАО11-12-2008 07:33 AM
Re: Misinterpretation of current dates on HP-UX
Hi Johnson,
Thanks for the reply. The 'date' command on the server returns correctly.
We find that the misinterpretation only starts when the method containing the above call gets called repeatedly. Unfortunately, we haven't been able to determine how many times.
Swastik
Thanks for the reply. The 'date' command on the server returns correctly.
We find that the misinterpretation only starts when the method containing the above call gets called repeatedly. Unfortunately, we haven't been able to determine how many times.
Swastik
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP