Mantis - Hessian
Viewing Issue Advanced Details
3777 minor always 11-20-09 14:00 12-17-09 16:49
emil  
 
normal  
closed  
fixed  
none    
none 4.0.3  
0003777: npe on second hessian call (hessian flex)
(rep by Riccardo Cohen)

I have converted my tutorial
http://architectedulogiciel.fr/tutorials/resinutf8flex.php [^] to resin
4.0.1 with hessian flex library 4.0.0
When the flex client sends an object (a very simple one) to the server,
the first time it works, but the second time I have an error :

  java.lang.NullPointerException
  at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input.java:1609)
  at
com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:292)
  at
com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:195)
  at
com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:367)
  at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:1
+14)
  at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:184)
  at
com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:164)
  at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:264)
  at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:280)
  at
com.caucho.server.port.TcpConnection.handleRequests(TcpConnection.java:579)
  at
com.caucho.server.port.TcpConnection$KeepaliveTask.run(TcpConnection.java:1414)
  at com.caucho.util.ThreadPool$PoolThread.runTasks(ThreadPool.java:874)
  at com.caucho.util.ThreadPool$PoolThread.run(ThreadPool.java:787)

If I change only the flex library and put hessian-flex-3_1-snap.swc =>
it works back again. You'll find the source code here :

http://www.architectedulogiciel.fr/download/testutf8flex-401.zip [^]


Notes
(0004338)
ferg   
12-16-09 11:26   
The NPE has been fixed on the server side, but the problem is in the client. The client needs to clear the class references for the next call.
(0004347)
emil   
12-17-09 16:49   
ReferenceResetTest