File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Weired problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Weired problem" Watch "Weired problem" New topic
Author

Weired problem

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi all.
While I was creating my EJB system, I encountered the following problem :
I have a database server (MySQL) which has a table, this table has a PK and some other fields, these fields can be null (except ofcourse the PK field) -as I specified in the SQL creation command-
The following code generates : CreateException NAME field can't be null :


(I'm using JBoss 3.2.5)
Any ideas ??
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Using "this.name = name" instead of setName may be a problem. You didn't tell us if you're using BMP or CMP ....


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
 
wood burning stoves
 
subject: Weired problem
 
Similar Threads
Issue in CMR entity bean
Urgent J2EE deploytool help
Need help
entity with auto-generated primary key
Primary Key auto generation