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 web878

  • 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) )
  • 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.writeValueAsString(ObjectMapper.java:2777) at com.couchbase.lite.store.SQLiteViewStore.emit(SQLiteViewStore.java:588) at com.couchbase.lite.store.SQLiteViewStore$2.emit(SQLiteViewStore.java:372) at com.couchbase.lite.javascript.scopes.MapGlobalScope.emit(MapGlobalScope.java:39) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) 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.SQLiteViewStore.updateIndexes(SQLiteViewStore.java:545) 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:2401) at com.couchbase.lite.router.Router.do_GET_DesignDocument(Router.java:2433) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.couchbase.lite.router.Router.start(Router.java:570) 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:818)

    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

    Once, 1 month ago
    Once, 2 months ago
    2 times, 5 months ago
    2 times, 7 months ago
    Once, 9 months ago
    28 more bugmates