1 Reply Latest reply on Feb 27, 2002 4:38 AM by Andreas Schouten

    java.io.NotSerializableException: org.jboss.jetty.JBossUserR

    Andreas Schouten Newbie

      Hi,

      trying to upgrade my application from jboss2.4.3 jetty 3.1.1 to jboss2.4.4 jetty 3.1.3.

      The ejb-server returns a handle of a SFSB to the jsp-client. While the
      client call 'getEJBObject' on the handle it get's the exception below.
      I added this jboss bug at sourceforge, but maybe somebody here has a fix or workaround?

      Has somebody experience with ejb handles in jboss 2.4.4?

      Andreas


      [Default] java.rmi.ServerException: Could not get EJBObject; nested
      exception is
      :
              java.io.NotSerializableException: org.jboss.jetty.JBossUserRealm
      [Default] java.io.NotSerializableException: org.jboss.jetty.JBossUserRealm
      [Default]       at
      java.io.ObjectOutputStream.outputObject(ObjectOutputStream.ja
      va:1148)
      [Default]
      [Default]       at
      java.io.ObjectOutputStream.writeObject(ObjectOutputStream.jav
      a:366)
      [Default]
      [Default]       at
      java.io.ObjectOutputStream.outputClassFields(ObjectOutputStre
      am.java:1827)
      [Default]
      [Default]       at
      java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStr
      eam.java:480)
      [Default]
      [Default]       at
      java.io.ObjectOutputStream.outputObject(ObjectOutputStream.ja
      va:1214)
      [Default]
      [Default]       at
      java.io.ObjectOutputStream.writeObject(ObjectOutputStream.jav
      a:366)
      [Default]
      [Default]       at
      org.jboss.ejb.plugins.jrmp.interfaces.RemoteMethodInvocation.
      writeExternal(RemoteMethodInvocation.java:256)
      [Default]
      [Default]       at
      java.io.ObjectOutputStream.outputObject(ObjectOutputStream.ja
      va:1172)
      [Default]
      [Default]       at
      java.io.ObjectOutputStream.writeObject(ObjectOutputStream.jav
      a:366)
      [Default]
      [Default]       at
      java.rmi.MarshalledObject.(MarshalledObject.java:95)
      [Default]
      [Default]       at
      org.jboss.ejb.plugins.jrmp.interfaces.StatefulHandleImpl.getE
      JBObject(StatefulHandleImpl.java:127)
      [Default]
      [Default]       at eacm.jsp_frame.RemoteData.getData(Unknown Source)
      [Default]
      [Default]       at eacm.jsp_frame.RemoteData.create(Unknown Source)
      [Default]
      [Default]       at eacm.jsp_frame.RemoteData.create(Unknown Source)
      [Default]
      [Default]       at eacm.jsp_frame.RemoteData.(Unknown Source)
      [Default]
      [Default]       at java.lang.reflect.Constructor.newInstance(Native Method)
      [Default]
      [Default]       at eacm.jsp_frame.Reflect.getInstanceOf(Unknown Source)
      [Default]
      [Default]       at eacm.jsp_frame.SessionDataFactory.newObject(Unknown
      Source)
      [Default]
      [Default]       at
      eacm.jsp_frame.SessionDataFactory.getTargetByRequest(Unknown
      Source)
      [Default]
      [Default]       at eacm.tagext.control.Void.doStartTag(Unknown Source)
      [Default]
      [Default]       at
      pages._0002fpages_0002fstatus_0002ejspstatus_jsp_0._jspServic
      e(_0002fpages_0002fstatus_0002ejspstatus_jsp_0.java:127)
      [Default]
      [Default]       at
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.jav
      a:119)
      [Default]
      [Default]       at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet$JspServletWrapper.servic
      e(JspServlet.java:176)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
      t.java:307)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
      380)
      [Default]
      [Default]       at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default]       at
      org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.
      java:488)
      [Default]
      [Default]       at
      org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:
      339)
      [Default]
      [Default]       at
      org.apache.jasper.runtime.PageContextImpl.include(PageContext
      Impl.java:414)
      [Default]
      [Default]       at
      _0002feacm_0002ejspeacm_jsp_0._jspService(_0002feacm_0002ejsp
      eacm_jsp_0.java:1082)
      [Default]
      [Default]       at
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.jav
      a:119)
      [Default]
      [Default]       at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet$JspServletWrapper.servic
      e(JspServlet.java:176)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
      t.java:307)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
      380)
      [Default]
      [Default]       at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default]       at
      org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.
      java:488)
      [Default]
      [Default]       at
      org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandle
      r.java:403)
      [Default]
      [Default]       at
      org.mortbay.http.HandlerContext.handle(HandlerContext.java:10
      37)
      [Default]
      [Default]       at
      org.mortbay.http.HandlerContext.handle(HandlerContext.java:99
      2)
      [Default]
      [Default]       at org.mortbay.http.HttpServer.service(HttpServer.java:699)
      [Default]
      [Default]       at
      org.mortbay.http.HttpConnection.service(HttpConnection.java:7
      45)
      [Default]
      [Default]       at
      org.mortbay.http.HttpConnection.handleNext(HttpConnection.jav
      a:918)
      [Default]
      [Default]       at
      org.mortbay.http.HttpConnection.handle(HttpConnection.java:76
      0)
      [Default]
      [Default]       at
      org.mortbay.http.SocketListener.handleConnection(SocketListen
      er.java:148)
      [Default]
      [Default]       at
      org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:28
      7)
      [Default]
      [Default]       at
      org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716
      )
      [Default]
      [Default]       at java.lang.Thread.run(Thread.java:484)
      [Default]
      [Default] java.lang.reflect.InvocationTargetException:
      [Default] java.lang.NullPointerException
      [Default]       at eacm.jsp_frame.RemoteData.create(Unknown Source)
      [Default]
      [Default]       at eacm.jsp_frame.RemoteData.create(Unknown Source)
      [Default]
      [Default]       at eacm.jsp_frame.RemoteData.(Unknown Source)
      [Default]
      [Default]       at java.lang.reflect.Constructor.newInstance(Native Method)
      [Default]
      [Default]       at eacm.jsp_frame.Reflect.getInstanceOf(Unknown Source)
      [Default]
      [Default]       at eacm.jsp_frame.SessionDataFactory.newObject(Unknown
      Source)
      [Default]
      [Default]       at
      eacm.jsp_frame.SessionDataFactory.getTargetByRequest(Unknown
      Source)
      [Default]
      [Default]       at eacm.tagext.control.Void.doStartTag(Unknown Source)
      [Default]
      [Default]       at
      pages._0002fpages_0002fstatus_0002ejspstatus_jsp_0._jspServic
      e(_0002fpages_0002fstatus_0002ejspstatus_jsp_0.java:127)
      [Default]
      [Default]       at
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.jav
      a:119)
      [Default]
      [Default]       at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet$JspServletWrapper.servic
      e(JspServlet.java:176)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
      t.java:307)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
      380)
      [Default]
      [Default]       at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default]       at
      org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.
      java:488)
      [Default]
      [Default]       at
      org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:
      339)
      [Default]
      [Default]       at
      org.apache.jasper.runtime.PageContextImpl.include(PageContext
      Impl.java:414)
      [Default]
      [Default]       at
      _0002feacm_0002ejspeacm_jsp_0._jspService(_0002feacm_0002ejsp
      eacm_jsp_0.java:1082)
      [Default]
      [Default]       at
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.jav
      a:119)
      [Default]
      [Default]       at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet$JspServletWrapper.servic
      e(JspServlet.java:176)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
      t.java:307)
      [Default]
      [Default]       at
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
      380)
      [Default]
      [Default]       at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default]       at
      org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.
      java:488)
      [Default]
      [Default]       at
      org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandle
      r.java:403)
      [Default]
      [Default]       at
      org.mortbay.http.HandlerContext.handle(HandlerContext.java:10
      37)
      [Default]
      [Default]       at
      org.mortbay.http.HandlerContext.handle(HandlerContext.java:99
      2)
      [Default]
      [Default]       at org.mortbay.http.HttpServer.service(HttpServer.java:699)
      [Default]
      [Default]       at
      org.mortbay.http.HttpConnection.service(HttpConnection.java:7
      45)
      [Default]
      [Default]       at
      org.mortbay.http.HttpConnection.handleNext(HttpConnection.jav
      a:918)
      [Default]
      [Default]       at
      org.mortbay.http.HttpConnection.handle(HttpConnection.java:76
      0)
      [Default]
      [Default]       at
      org.mortbay.http.SocketListener.handleConnection(SocketListen
      er.java:148)
      [Default]
      [Default]       at
      org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:28
      7)
      [Default]
      [Default]       at
      org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716
      )
      [Default]
      [Default]       at java.lang.Thread.run(Thread.java:484)
      [Default]
      [JettyService] WARNING: Servlet Exception for
      /eacm/eacm.jsp?eacm_page=status
      java.lang.NullPointerException
              at eacm.tagext.control.Void.doStartTag(Unknown Source)
              at
      pages._0002fpages_0002fstatus_0002ejspstatus_jsp_0._jspService(_0002f
      pages_0002fstatus_0002ejspstatus_jsp_0.java:127)
              at
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at
      org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
      vlet.java:176)
              at
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      07)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at
      org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:488
      )
              at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:339)
              at
      org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
      a:414)
              at
      _0002feacm_0002ejspeacm_jsp_0._jspService(_0002feacm_0002ejspeacm_jsp
      _0.java:1082)
              at
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at
      org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
      vlet.java:176)
              at
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      07)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at
      org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:488
      )
              at
      org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:4
      03)
              at org.mortbay.http.HandlerContext.handle(HandlerContext.java:1037)
              at org.mortbay.http.HandlerContext.handle(HandlerContext.java:992)
              at org.mortbay.http.HttpServer.service(HttpServer.java:699)
              at org.mortbay.http.HttpConnection.service(HttpConnection.java:745)
              at
      org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:918)
              at org.mortbay.http.HttpConnection.handle(HttpConnection.java:760)
              at
      org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
      148)
              at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
              at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716)
              at java.lang.Thread.run(Thread.java:484)