EJB3: Irrational behaviour
Given a stateless Session Bean.
Return type List works fine like in following example
public List getFilmTypes() {
Query q = em.createNamedQuery("Film.all");
List l = q.getResultList();
return l;
}
Next example
public Film getFilm(String id) {
Film film = em.find(Film.class, id);
return film;
}
generates following Exception:
com.sun.corba.ee.impl.encoding.CDRInputStream_1_0 read_value
WARNING: "IOP00810257: (MARSHAL) Could not find class"
org.omg.CORBA.MARSHAL:vmcid: SUN minor code: 257 completed: Maybe ..........
The same method, same code,
but returning a string with some values from Film properties works fine again.
In short: standard class types works as return type,
custom classes as return type fail, resulting in the same error.
I'm using Sun App server 9.0,
and EJB3 generated by Netbeans5.5 for database access and persistency.

