[ejabberd] Problem with creating a module using erlang-mongodb driver (ets:update_counter badarg error)

Shaun Kruger shaun.kruger at gmail.com
Wed Jan 25 21:50:21 MSK 2012


Is it possible that the mongodb_app isn't getting started?

Run this in debug or live mode and make sure mongodb_app is in the list.
application:which_applications().

If it isn't then make sure that application:start(mongodb_app) is in
your module startup.  If that is in your module start function then it
is probably time to check the return value of the application:start().

You can probably also investigate the status of the table with
ets:info(mongdb_app). and ets:tab2list(mongdb_app).

mongdb_app:init() seems to be declaring the table as a public table so
there shouldn't be any owning process issues so I'm not sure what else
I would suggest other than debugging the state of the mongodb_app and
working your way back into your code from any clues you find there.

Shaun

On Wed, Jan 25, 2012 at 8:29 AM, Michael Weibel
<michael.weibel+xmpp at gmail.com> wrote:
> Hi,
>
> I posted on stackoverflow the following question:
> http://stackoverflow.com/questions/9005265/mongodb-erlang-driver-mongodo-fails-because-of-mongodbnext-requestid-etsu
>
> Maybe someone of you can help me :)
>
> Thank you very much,
> Michael
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>


More information about the ejabberd mailing list