1 Reply Latest reply on Nov 3, 2005 6:30 AM by Daniel Moldovan

    java.io.NotSerializableException: org.jboss.ejb3demo.Author

    Supriya Shiyekar Newbie

      Hi,

      I have installed jboss-4.0.3RC2 with EJB3.0 and going through Jboss Eclipse IDE TaileBlazer.
      http://trailblazer.demo.jboss.com/IDETrail/ejb3/index.html.
      In Step #6, Deploy and Debug, when I click on "create articles" button,
      I am getting following excpetion.

      2005-10-13 11:15:10,503 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/authors].[AuthorsServlet]] Servlet.service() for servlet AuthorsServlet threw exception
      java.lang.reflect.UndeclaredThrowableException
      at $Proxy77.addAuthor(Unknown Source)
      at org.jboss.ejb3demo.web.AuthorsServlet.createArticles(AuthorsServlet.java:57)
      at org.jboss.ejb3demo.web.AuthorsServlet.doPost(AuthorsServlet.java:49)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.io.NotSerializableException: org.jboss.ejb3demo.Author
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      at org.jboss.aop.joinpoint.InvocationResponse.writeExternal(InvocationResponse.java:86)
      at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:205)
      at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
      at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:37)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
      at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:88)
      ... 24 more

      I am new to JBoss and EJB as well.
      I did a search on this website but couldn't find simlilar problem posted by anybody.
      Any help is very much Appreciated.