I am totally stumped about this error, I'm getting it when I try to create
my Entity Bean in a servlet.

Article article =
(Article)PortableRemoteObject.narrow(articleHome.create(),
                                     Article.class);

The create method in ArticleEJB is very simple, 

public Long ejbCreate() throws CreateException{

  long newId;   
  try {
    newId = CounterUtils.getNextID("java:comp/env/Counter","Article");
  }catch(javax.naming.NamingException ne) {
    throw new CreateException("Naming Exception: "+ne.getMessage());
  }catch(java.rmi.RemoteException rme) {
    throw new CreateException("Remote Exception: "+rme.getMessage());
  }catch(javax.ejb.FinderException fe) {
    throw new CreateException ("Finder Exception: "+fe.getMessage());
  }
  this.id = new Long(newId);
  return null;
}


Here's the Stack trace.
javax.ejb.CreateException: Error creating EntityBean: InputStream as
parameter not supported
        at
ArticleHome_EntityHomeWrapper10.create(ArticleHome_EntityHomeWrapper10.java:458)
        at CreateArticles.doGet(CreateArticles.java:66)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at com.evermind.server.http.di.pw(JAX)
        at com.evermind.server.http.di.forward(JAX)
        at com.evermind.server.http.dr.p1(JAX)
        at com.evermind.server.http.dr.p0(JAX)
        at com.evermind.util.f.run(JAX)



Reply via email to