I checked out the head CVS version just now; it fixed my problem.
Thanks!
Stephan Gruschke wrote:
>
> Hi,
>
> I don't know which version of the cvs the binary on the website is.
> Because much work was done the past days on the bmp entity bean module
> try to checkout the latest sources from cvs.
>
> Stephan.
>
> MVB> Thanks, it's not a big deal now that I know what's going on.
>
> MVB> Now, I have a new problem. My bean creates perfectly, and inserts a row
> MVB> into the database. I modified my client to call findByPrimaryKey() on
> MVB> the home interface, and print out what it got back. I think it's pretty
> MVB> standard code:
>
> MVB> Object pref = ctx.lookup("rhino/Person");
> MVB> System.out.println("got an object reference, now narrowing...");
> MVB> PersonHome pHome = (PersonHome)
> MVB> PortableRemoteObject.narrow(pref,PersonHome.class);
> MVB> System.out.println("home resolved, looking for person #16...");
> MVB> Person p16 = pHome.findByPrimaryKey(new Integer(16));
> MVB> System.out.println("got him, getting personal info...");
> MVB> PersonalInfo pInfo = p16.getPersonalInfo();
> MVB> System.out.println("personal info:");
> MVB> System.out.println(pInfo.getName());
>
> MVB> My client dies with a NullPointerException on the last line. My bean
> MVB> has log messages in every function now, and the only bean code that is
> MVB> executing is setEntityContext() and getPersonalInfo(). For some reason,
> MVB> ejbFindByPrimaryKey() and ejbLoad() never get called!
>
> MVB> Am I missing something stupid? I'm using the binary distribution from
> MVB> the website.
>
> MVB> Thanks for your time,
> MVB> Mattias
>
> MVB> Stephan Gruschke wrote:
> >>
> >> Hi Matthias,
> >>
> >> we are currently working on this issue. The problem is how the thrown
> >> exception from the bean should be routed through the modules to the
> >> client. I think we will be able to fix this soon.
> >>
> >> MVB> I got past this. I was thrown off by the way that the container is
> >> MVB> intercepting my exception and creating a new one, but not propagating my
> >> MVB> error message. When I explicitly print the stack trace before throwing
> >> MVB> my CreateException, I see the real problem and can fix it.
> >>
> >> MVB> "Mattias V. Bertelsen" wrote:
> >> >>
> >> >> I have read through the archives a bit, looked at the "getting started"
> >> >> docs on the web site, and read the docs that come with the binary
> >> >> distribution. I'm getting the impression that BMP is not fully
> >> >> supported yet. Is that true? What parts should work?
> >> >>
> >> >> I am getting the following exception in my client when calling
> >> >> create(...) on my BMP entity bean:
> >> >>
> >> >> javax.ejb.CreateException: Create
> >> >> failed:java.lang.reflect.InvocationTargetException
> >> >>
> >> >> My ejbCreate() method runs, but stops logging System.out.println() calls
> >> >> as soon as I call setInt() on a PreparedStatement in my insertRow() SQL
> >> >> function. There is no further output to the server console, and my
> >> >> client catches the exception.
> >> >>
> >> >> I am using the PostgreSQL 7.0.1 JDBC Driver and the binary JBoss
> >> >> distribution on Debian (frozen) linux with the Sun JDK 1.3 Beta
> >> >> refresh. I already have a stateless session bean deployed and working
> >> >> that generates primary keys using PostgreSQL sequences.
> >> >>
> >> >> I checked out the CVS version yesterday, but haven't tried to build it
> >> >> yet. Should I be working with the head of CVS, the snapshot, or the
> >> >> binary download? Should I even bother trying to use JBoss yet?
> >> >>
> >> >> By the way, I REALLY like the auto-deployer. I switched from jonas
> >> >> because of deployment and configuration headaches.
> >> >>
> >> >> The only other problem I've had with JBoss was that it took me forever
> >> >> to figure out how to correctly configure and look up my Datasource.
> >> >> This was solved by reading the mailing list.
> >> >>
> >> >> Thanks,
> >> >> Mattias V. Bertelsen
> >> >> N<.n�+?��n<,�ǫ�yb��(�H�?� ��&N<����r�>z6�ˬz�~X��
> >> >> +?)�v^,r??�?�zk#�|(�H�?� ��&
> >>
> >> MVB> --
> >> MVB> --------------------------------------------------------------
> >> MVB> To subscribe: [EMAIL PROTECTED]
> >> MVB> To unsubscribe: [EMAIL PROTECTED]
> >> MVB> Problems?: [EMAIL PROTECTED]
> >>
> >> --
> >> Best regards,
> >> Stephan mailto:[EMAIL PROTECTED]
> >>
> >> --
> >> --------------------------------------------------------------
> >> To subscribe: [EMAIL PROTECTED]
> >> To unsubscribe: [EMAIL PROTECTED]
> >> Problems?: [EMAIL PROTECTED]
>
> MVB> --
> MVB> --------------------------------------------------------------
> MVB> To subscribe: [EMAIL PROTECTED]
> MVB> To unsubscribe: [EMAIL PROTECTED]
> MVB> Problems?: [EMAIL PROTECTED]
>
> --
> Best regards,
> Stephan mailto:[EMAIL PROTECTED]
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]