HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP - UNIX JVM
Operating System - HP-UX
1828747
Members
3120
Online
109985
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
Forums
Discussions
Discussions
Discussions
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
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
03-24-2003 11:15 AM
03-24-2003 11:15 AM
HP - UNIX JVM
Can anyone help me out why i am getting this exception?. What are the possible reasons? I think, i allocated enough memory to the JVM. But still it's not printing the stack trace.
java.lang.NullPointerException
<>
java.lang.NullPointerException
<
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2003 03:52 AM
03-25-2003 03:52 AM
Re: HP - UNIX JVM
Hi
I think you're using the object somewhere that hasn't been constructed before.
AFAIK in Java whenever you declare an object of any class, you declare only the reference that has to be initialised with a new constructed object. If you don't do it, I guess, you get NullPointerException.
This rule doesn't fit to builtin basic types, like int etc. - these are declared explicitly, not as reference.
Hope this helps
Good luck
Adam
I think you're using the object somewhere that hasn't been constructed before.
AFAIK in Java whenever you declare an object of any class, you declare only the reference that has to be initialised with a new constructed object. If you don't do it, I guess, you get NullPointerException.
This rule doesn't fit to builtin basic types, like int etc. - these are declared explicitly, not as reference.
Hope this helps
Good luck
Adam
I do everything perfectly, except from my mistakes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2003 09:26 AM
03-25-2003 09:26 AM
Re: HP - UNIX JVM
Thanks Adam. I declared the ResultSet Object and set it to null. But when i execute the query it should set some value. But it looks like the program is not going to that statment. Because of that when i tried to close it in the finally block, it throws the null pointer exception
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2003 04:25 AM
03-26-2003 04:25 AM
Re: HP - UNIX JVM
Hi
Mayby this is your problem.
>>
set it to null. But when i execute the query it should set some value
<<
I guess you try to set the value for the object fields. But are you sure you have the object itself? You must have the object before you modify it. Simple setting value to a field won't create a new object.
Good luck
Adam
Mayby this is your problem.
>>
set it to null. But when i execute the query it should set some value
<<
I guess you try to set the value for the object fields. But are you sure you have the object itself? You must have the object before you modify it. Simple setting value to a field won't create a new object.
Good luck
Adam
I do everything perfectly, except from my mistakes
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP