File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Null Pointer while creating a new records Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Null Pointer while creating a new records" Watch "Null Pointer while creating a new records" New topic
Author

Null Pointer while creating a new records

Ramneek Handa
Ranch Hand

Joined: Nov 10, 2000
Posts: 44
Hi,
I am facing a problem of null pointer exception while inserting a record in DB.
I am using CMP- Entity Bean on Weblogic6.1 and Oracle8.1.7.
I think this is the problem of weblogic 'coz record is getting insearted in database though inseart command in SQLPlus.
Say, In a table PO there are 15 fields out of will 5 are not null able and 10 are null able. Out of these 10 null able fields two fields are of Varchar2 and Date type.
Now, when I create a new record with the mandatory fields only it throws Null Pointer Exception. But When I create a new record with not null able fields and that Varchar2 and date type fields, it creates a new records.
I don't know why it is throwing null pointer exception for null able fields.
Although I can handle this for Varchar2 by sending blank space but what is the solution of Date then.
I will appreciate any help for u.
Please respond soon...Thanks
 
 
subject: Null Pointer while creating a new records
 
Threads others viewed
Oracle Stored Procedure Problem
URGENT- NullProinter while creating new record
Hibernate-Oracle Sequence...
Need to insert 1.5 into a sql colunm on Number(2,2)
How to return a collection of records from a stored procedure?
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture