Discussion:
Akonadi::PayloadException: Wrong payload type
kaushik
2011-11-12 13:17:05 UTC
Permalink
Hi,

When I am trying to run an application It is crashing with the error
message as

terminate called after throwing an instance of 'Akonadi::PayloadException'
what(): Akonadi::PayloadException: Wrong payload type (requested:
sp(0)<QByteArray>; present: sp(0)<History>


I tried to figure out the workround but could not. I tried different
versions of KdePilmibs but didnt work.
I tried the master and the stable version 4.7
I could only figure out by the previous mail threads that serializer could
not be found.

How do i fix this??
--
Greetings,
Gsoc KDE 2009 student
irc nick - roide
--There is no short cut to Success!
_______________________________________________
KDE PIM mailing list kde-***@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
Kevin Krammer
2011-11-14 20:03:26 UTC
Permalink
Post by kaushik
Hi,
When I am trying to run an application It is crashing with the error
message as
terminate called after throwing an instance of 'Akonadi::PayloadException'
sp(0)<QByteArray>; present: sp(0)<History>
I tried to figure out the workround but could not. I tried different
versions of KdePilmibs but didnt work.
I tried the master and the stable version 4.7
I could only figure out by the previous mail threads that serializer could
not be found.
How do i fix this??
Check the serializer's .desktop file.
Newer Akonadi versions require additional entries, check one of the current
serializers.

Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
Will Stephenson
2011-11-14 21:23:44 UTC
Permalink
Post by kaushik
Hi,
When I am trying to run an application It is crashing with the error
message as
terminate called after throwing an instance of 'Akonadi::PayloadException'
sp(0)<QByteArray>; present: sp(0)<History>
I tried to figure out the workround but could not. I tried different
versions of KdePilmibs but didnt work.
I tried the master and the stable version 4.7
I could only figure out by the previous mail threads that serializer could
not be found.
You get this if the plugin loader cannot find the serializer plugins. This
could happen if your XDG_DATA_DIRS environment variable and your ld.so config
do not agree about where to find the plugins.
Post by kaushik
How do i fix this??
Try with a new user using the stable distro packages?

Will

_______________________________________________
KDE PIM mailing list kde-***@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
kaushik
2011-11-15 17:41:51 UTC
Permalink
Post by Will Stephenson
You get this if the plugin loader cannot find the serializer plugins. This
could happen if your XDG_DATA_DIRS environment variable and your ld.so config
do not agree about where to find the plugins.
Post by kaushik
How do i fix this??
Try with a new user using the stable distro packages?
I fixed it finally. :)
I had proper entries in the serializer .desktop file, and it was getting
installed properly also.

Then i thought that something must be wrong in my app, but there also
everything turned out to be correct. In the end after playing around with
kdepimlibs it came down to the mime-type.
The mimetype of my application was not know so even thought my .desktop
file was getting read, in the function call findBestmatch somewhere in
kdepimlibs, it was getting ignored.
So I wrote a xml file for my mimetype and installed it, and wooo!
Everything worked! :)
--
Greetings,
Gsoc KDE 2009 student
irc nick - roide
--There is no short cut to Success!
_______________________________________________
KDE PIM mailing list kde-***@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
Loading...