On Aug 25, 6:19 pm, DanH <[email protected]> wrote:
> You can never load a class without its package name.
>
> The message is saying that a class in the "null" package named
> NewsSetCategory cannot be found.  Since classes in the null package
> are characteristic of "toy" applications, NewsSetCategory is probably
> a "toy" application on the source platform and is missing on the
> phone.

Well, the objects are created and serialized by a PHP script, so "toy"
is a fairly accurate description ;)
I'll try to shoehorn the PHP class names into the fully qualified Java
class name. The issue here is that the web service is also used by the
iPhone client, where the deserialization is completely custom-built,
so I'll have to tread lightly *sighs*

Thanks for the answers.

Regards,

Kevin

>
> On Aug 24, 3:39 pm, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > Hi all,
>
> > I am using the Hessian web protocol[1] or rather more the Android port
> > Hessdroid[2] to fetch and unserialize objects from a web server. It
> > works quite well but unfortunately I get this message:
>
> > W/SerializerFactory( 1071): Hessian/Burlap: 'NewsSetCategory' is an
> > unknown class in dalvik.system.pathclassloa...@43227dd0:
> > W/SerializerFactory( 1071): java.lang.ClassNotFoundException:
> > NewsSetCategory
>
> > when actually unserializing an object. The code within the library
> > that throws the warning is:
>
> >       try {
> >         Class cl = Class.forName(type, false,
> > getClass().getClassLoader());
> >         deserializer = getDeserializer(cl);
> >       } catch (Exception e) {
> >         log.warning("Hessian/Burlap: '" + type + "' is an unknown
> > class in " + getClass().getClassLoader() + ":\n" + e);
>
> >         log.log(Level.FINER, e.toString(), e);
> >       }
>
> > I guess the problem is that the class NewsSetCategory resides in a
> > package and so cannot be loaded without the whole package name by the
> > ClassLoader but this is a bling guess.
>
> > Is there a way to adapt the class path or to easily create a new
> > PathClassLoader that will load classes directly from the package? Or
> > does anybody else have any experience with Hessian on Android?
>
> > Thanks a lot,
>
> > Kevin
>
> > [1]http://hessian.caucho.com/
> > [2]http://code.google.com/p/hessdroid/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to