com.fasterxml.jackson.databind.JsonMappingException

No serializer found for class org.mozilla.javascript.Undefined and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )

Samebug tips1

Specify the order of serializing object field with the @JsonPropertyOrder annotation.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web879

  • via GitHub by hideki
    , 11 months ago
    No serializer found for class org.mozilla.javascript.Undefined and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )
  • via GitHub by hideki
    , 1 year ago
    No serializer found for class org.mozilla.javascript.Undefined and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )
  • No serializer found for class org.mozilla.javascript.Undefined and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )
  • Stack trace

    • com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.mozilla.javascript.Undefined and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:59) at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:26) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:129) at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3383) at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsBytes(ObjectMapper.java:2801) at com.couchbase.lite.store.ForestDBViewStore$1.emit(ForestDBViewStore.java:342) at com.couchbase.lite.javascript.scopes.MapGlobalScope.emit(MapGlobalScope.java:39) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:476) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3178) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at com.couchbase.lite.javascript.ViewMapBlockRhino.map(ViewMapBlockRhino.java:66) at com.couchbase.lite.store.ForestDBViewStore.emit(ForestDBViewStore.java:334) at com.couchbase.lite.store.ForestDBViewStore.updateIndexes(ForestDBViewStore.java:300) at com.couchbase.lite.View.updateIndexes(View.java:321) at com.couchbase.lite.View.updateIndex(View.java:294) at com.couchbase.lite.router.Router.queryDesignDoc(Router.java:2403) at com.couchbase.lite.router.Router.do_GET_DesignDocument(Router.java:2435) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.couchbase.lite.router.Router.start(Router.java:571) at com.couchbase.lite.listener.LiteServlet.service(LiteServlet.java:141) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2251) at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2176) at Acme.Serve.Serve$ServeConnection.run(Serve.java:1988) at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223) at java.lang.Thread.run(Thread.java:841)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    18 times, 3 months ago
    Unknown user
    Once, 1 year ago
    Once, 2 months ago
    Once, 3 months ago
    Unknown user
    2 times, 8 months ago
    22 more bugmates