Troubleshooting Enterprise Beas, Netbeans 5.0 and Creator 2

Hi Gurus. I am using Netbeans 5.0 to develop Enterprise Beans and Creator 2 to consume the beans, as a database I use Oracle 10g xe and Sun Application Server 8.2 as a App. Server (Not the one embedded in creator). I successfully created an enterprise bean with methods that create and get data in Netbeans 5.0 and also I am able to test them with a servlet without troubles. I consume the enterprise bean in creator, then I use it in a web page, after that I deployed into a remote server (8.2) all the application, but when I try to insert or get the data I get this Exception:

com.sun.rave.web.ui.appbase.ApplicationException: #{Ventas$Clientes.buttonNuevo_action}: javax.faces.el.EvaluationException: java.lang.RuntimeException: RemoteException occurred in server thread; nested exception is:

java.rmi.RemoteException

com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java: 601)

com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:302)

com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87 )

com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)

com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)

javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

java.lang.reflect.Method.invoke(Method.java:585)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)

java.security.AccessController.doPrivileged(Native Method)

javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

java.security.AccessController.doPrivileged(Native Method)

com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)

Am I doing something wrong in creator? did I miss a step configuring the bean? I followed the instructions in all the tutorials available to add and use Enterprise Beans. if I am able to use a enterprise bean in Netbeans 5.0 to insert and obtain data, Why I am not able to use it in Creator? I believe that I am so close to get the things working but that last step is killing me. I will appreciate any help. Thanks. (Sorry about grammar!!!!)

[2594 byte] By [Patricio] at [2007-11-26 10:06:49]
# 1

Assuming that you sucessfully imported your EJB Set (client jar), a remote exception implies an error generated inside your EJB Container and maybe is not related to Creator. For a guide for debug your EJBs consumed by your WebApp, see this thread: http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=63823.

Best regards

Antonio.

antoniovl at 2007-7-7 1:46:04 > top of Java-index,Development Tools,Java Tools...
# 2

Thanks for your help man. That was a very good advice. I rebuild everything in the application server bundled in creator, debugged and the the real problem appeared. I didn't take care about the size of data that I was willing to store in the jsp page. I was using toString() method to get the data from the text fields and after debugging I figured out is needed getText().toString() to get data form the fields, everything was out bout bounds. Now the application works fine. You save my life!!! How do I assign you the Duke dollars?

Message was edited by:

Patricio

Patricio at 2007-7-7 1:46:04 > top of Java-index,Development Tools,Java Tools...
# 3
Glad to know it helped.> How do I assign you the Duke dollars?> No idea...but a cold beer will also do the job. :-)Best regards.
antoniovl at 2007-7-7 1:46:04 > top of Java-index,Development Tools,Java Tools...