[mapserver-users] mapscript - java exception

Umberto Nicoletti umberto.nicoletti at gmail.com
Wed Jul 20 12:45:12 EDT 2011


The reason is that the servlet container is trying to serialize your
session and the mapscript objects are not serializable.
Also remember that, although it might work for some use cases, storing
mapscript objects in session and reusing them is not the recommended
best practice.

hth,
umberto

On Tuesday, July 19, 2011, ahmet temiz <ahmettemiz88 at gmail.com> wrote:
> hello
>
> I am dealing with mapscript - java.
>
> I received this error message.
> Could you tell me what the reason might be ?
>
> regards
>
>
> Caused by: java.io.NotSerializableException: edu.umn.gis.mapscript.mapObj
>         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
>         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
>         at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1676)
>
> --
> Ahmet Temiz
> Jeoloji Müh.
> Afet ve Acil Durum Yönetimi Başkanlığı
> Planlama ve Zarar Azaltma Dairesi Başkanlığı
> Bilgi ve CBS grubu
> Eskişehir Yolu 10. km.
> Lodumlu / Ankara
> Tel : 0 312 2872680 / 1535
> ________________________
>
> Ahmet Temiz
> Geological Eng.
> Information Systems - GIS Group
> Disaster and Emergency Management
> of Presidency
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list