aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Weired problem" Watch "Weired problem" New topic

Weired problem

Hussein Baghdadi
clojure forum advocate

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 " = name" instead of setName may be a problem. You didn't tell us if you're using BMP or CMP ....

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Weired problem
Similar Threads
Need help
Primary Key auto generation
entity with auto-generated primary key
Urgent J2EE deploytool help
Issue in CMR entity bean