Re: Exception in Hessian Serialization

From: Toby Hede <toby.hede@xxx.biz>
Date: Sun Nov 14 2004 - 15:24:35 PST

I think the "Unknown Source" is just Eclipse not having access to the
source code for the file that is causing the error.
The client and server methods definitely match.

Thanks for the help.
Toby

Kotesh wrote:

>Hi Toby,
> As shown in the Stack Trace i think i could be coz of unknown source
>which means ur client side interface
>methods doesnot match with the serverside interface methods properly like
>method signature..etc
>bye
>
>
>
>
>
>-----Original Message-----
>From: owner-hessian-interest@xxx.com
>[mailto:owner-hessian-interest@xxx.com]On Behalf Of Toby Hede
>Sent: Friday, November 12, 2004 11:29 AM
>To: hessian-interest@xxx.com
>Subject: Exception in Hessian Serialization
>
>
>I have a strange problem with Hessian.
>I am transferring files - the object being transferred through Hessian
>contains a File field.
>I have one object for which this works perfectly. I have another object
>which fails inelegantly. Both objects use the same code to get the file
>into the system (JFileChooser etc etc). Even using the same file when
>testing , the result is the same. Object 1 works, Object 2 fails.
>
>I am using Windows XP, Eclipse 3 and JDK1.4.2_05
>
>I found a similar issue on the Sun Java Forums, which states that this
>is probably a bug in Hessian:
>http://forum.java.sun.com/thread.jsp?forum=62&thread=520000&tstart=135&trang
>e=15
>
>Any help would be appreciated.
>
>Stack Trace:
>
>java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
>Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at
>com.caucho.hessian.io.JavaDeserializer.instantiate(JavaDeserializer.java:168
>)
> at
>com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:103)
> at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:995)
> at
>com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:128)
> at
>com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:105)
> at
>com.caucho.hessian.io.SerializerFactory.readMap(SerializerFactory.java:222)
> at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:1120)
> at
>com.caucho.hessian.io.CollectionDeserializer.readList(CollectionDeserializer
>.java:106)
> at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:1015)
> at
>com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:128)
> at
>com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:105)
> at
>com.caucho.hessian.io.SerializerFactory.readMap(SerializerFactory.java:222)
> at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:1120)
> at
>com.caucho.hessian.io.CollectionDeserializer.readList(CollectionDeserializer
>.java:106)
> at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:1015)
> at
>com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:128)
> at
>com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:105)
> at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:999)
> at
>com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:128)
> at
>com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:105)
> at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:999)
> at
>com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:134)
> at
>com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:293)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>FilterChain.java:237)
> at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>ain.java:157)
> at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:214)
> at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.java:104)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
>Valve.java:198)
> at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>va:152)
> at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.java:104)
> at
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
>.java:462)
> at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.java:102)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
>)
> at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.java:104)
> at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
>)
> at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.java:102)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>:109)
> at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.java:104)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> at
>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
>ction(Http11Protocol.java:705)
> at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
>a:683)
> at java.lang.Thread.run(Unknown Source)
>Caused by: java.lang.NullPointerException
> at sun.awt.shell.Win32ShellFolder2.<init>(Unknown Source)
> ... 53 more
>
>
>--
>Toby Hede
>Software Engineer
>
>Web Alive Technologies Pty Ltd
>The OSSI Group Pty Ltd
>Level 1, Innovation Building
>Digital Harbour, 1010 La Trobe Street
>Melbourne VIC 3000
>P: +61 3 9934 0888
>F: +61 3 9934 0899
>E: toby.hede@xxx.biz
>W: www.webalive.biz
>
>
>This email (including all attachments) is intended solely for the named
>addressee. It is confidential and may contain legally privileged
>information. If you receive it in error, please let us know by reply email,
>delete it from your system and destroy any copies. This email is also
>subject to copyright. No part of it should be reproduced, adapted or
>transmitted without the written consent of the copyright owner. Emails may
>be interfered with, may contain computer viruses or other defects and may
>not be successfully replicated on other systems. We give no warranties in
>relation to these matters. If you have any doubts about the authenticity of
>an email purportedly sent by us, please contact us immediately.
>
>
>
>
>
>
>
>
>

-- 
Toby Hede
Software Engineer
Web Alive Technologies Pty Ltd
The OSSI Group Pty Ltd
Level 1, Innovation Building
Digital Harbour, 1010 La Trobe Street
Melbourne VIC 3000
P: +61 3 9934 0888
F: +61 3 9934 0899
E: toby.hede@xxx.biz
W: www.webalive.biz
 
This email (including all attachments) is intended solely for the named addressee. It is confidential and may contain legally privileged information. If you receive it in error, please let us know by reply email, delete it from your system and destroy any copies. This email is also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner.  Emails may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems. We give no warranties in relation to these matters. If you have any doubts about the authenticity of an email purportedly sent by us, please contact us immediately.
Received on Sun 14 Nov 2004 15:24:35 -0800

This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:40 PDT