This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes How to deal with boolean fields in EJB2.0? 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 » Products » JBoss/WildFly
Bookmark "How to deal with boolean fields in EJB2.0?" Watch "How to deal with boolean fields in EJB2.0?" New topic
Author

How to deal with boolean fields in EJB2.0?

Pras Tiwari
Ranch Hand

Joined: Nov 07, 2005
Posts: 186
Hi,

I am developing web applicaton using EJB2.0 Spec with JBOSS-4.0.3, PostgreSQL8.0 as DAtabase. Now in my database there is one table "partsmaster" in which there is one field "rfqpart" with type "bool" in POstgreSQL.
Now I want to insert values in that field using EJB from Client. I tried a field in my bean implementation Class with type "Boolean" & then
I tried to insert data into Table with client accessing that bean. When I tried to insert data I got Error as follows:-
============================
Cannot create Bean: java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
java.lang.ClassNotFoundException: org.postgresql.util.PSQLException (no security manager: RMI class loader disabled)
===============================

Also I tried with simply "boolean" instead of "Boolean" type iinto my EJB for corresponding column in database. But I am getting same Error.
& when I am omittimg the field "rfqpart" from my EJB implementation file then I am able to insert data into database.
So how to deal here with "rfqpart" field? Also What datatype (primary or generic) should I use here so that i can insert data into "rfqpart" field from my Client progarm using EJB2.0?

Please help me.

Thanx in advance.

Prash.


********Deserve Before You Desire********
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to deal with boolean fields in EJB2.0?
 
Similar Threads
Many to one unidirectional relationship and ejbCreate
How to deal with boolean fields in EJB2.0?
How to manage CMP field with Boolean type????
map integer[] column to EJB 3
ClasscastException