-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
io.netty.handler.codec.DecoderException: java.io.IOException: unhandled type: 0xd #67
Comments
Thanks for the bug report. Support for JavaScript code was not yet implemented. |
Thanks for your quick fix. I've updated my maven project and it got the newest version from 05.05. 17:01.
|
The stacktrace shows that you did not test with the updated version:
|
I’ve just released version |
Thanks for the new version. As I checked in https://docs.mongodb.com/manual/reference/mongodb-wire-protocol/#wp-request-opcodes 2010 stands for OP_COMMAND | 2010 | Cluster internal protocol representing a command request. As we are sending mongo the commands as well, is there a work around for this? |
Can you describe what kind of internal commands you are sending to the server? |
In the meantime, the error has been changed. Basically, the problem is with javascript command. The error message now is: 2019-05-17 11:22:47.900 WARN 13984 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'primaryMongoPreparator': Invocation of init method failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Write failed with error code 10156 and error message 'cannot update system collection'; nested exception is com.mongodb.WriteConcernException: Write failed with error code 10156 and error message 'cannot update system collection' In the bean primaryMongoPreparator we have built a @PostConstruct where we register a javascript function using org.springframework.data.mongodb.core.ScriptOperations; The javascript defines a function, like the following: String script = "function doSth() "+ It seems that this script is causing problem. |
Dear all,
I've tried your library to integrate an embedded mongodb into springboot application.
Everything works fine until I met up with the exception:
io.netty.handler.codec.DecoderException: java.io.IOException: unhandled type: 0xd
After I checked the source code, I see that it seems your mongo-java-server is not supporting javascript as message type for mongo server. Is that true?
I need to upload extended functionalities of mongodb using javascript. Would there be any work around? Or am I missing something here?
Followed is the complete error message:
The text was updated successfully, but these errors were encountered: