• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to deal with boolean fields in EJB2.0?

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cannot help you with the mapping but regarding the error I can help you. In case you want to see the exception then you need to add the pPstgreSQL classes to the client as well which you can do by just adding the JDBC archive of postgres into the clients classpath.

-Andy
reply
    Bookmark Topic Watch Topic
  • New Topic