[jboss-user] [JNDI/Naming/Network] - Re: [[EJBInvokerServlet]] Servlet.service() for servlet EJB

nidget do-not-reply at jboss.com
Thu Apr 19 11:44:20 EDT 2007


I think there is a small problem in the code of the org.jboss.console.remote.InvokerServlet

In the processRequest() method, it has this in case an error occurs:

      catch(Throwable t)
  |       {
  |          t = org.jboss.mx.util.JMXExceptionDecoder.decode (t);
  |          org.jboss.invocation.InvocationException appException = new org.jboss.invocation.InvocationException (t);
  |          log.debug ("Invoke threw exception", t);
  |          // Marshall the exception
  |          response.resetBuffer ();
  |          org.jboss.invocation.MarshalledValue mv = new org.jboss.invocation.MarshalledValue (appException);
  |          javax.servlet.ServletOutputStream sos = response.getOutputStream ();
  |          java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream (sos);
  |          oos.writeObject (mv);
  |          oos.close ();
  |       }

It should probably surround the block of code after the comment "Marshal the exception" with a try catch on IllegalStateException, just in case the response cannot be sent back (for example, if the requester is disconnected).


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038941#4038941

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038941



More information about the jboss-user mailing list