{"id":1410,"date":"2024-11-05T12:11:51","date_gmt":"2024-11-05T12:11:51","guid":{"rendered":"https:\/\/adrianotanaka.com.br\/?p=1410"},"modified":"2024-11-05T12:19:41","modified_gmt":"2024-11-05T12:19:41","slug":"ora-40842-unsupported-value-embedded_oid-in-the-metadata","status":"publish","type":"post","link":"https:\/\/adrianotanaka.com.br\/index.php\/2024\/11\/05\/ora-40842-unsupported-value-embedded_oid-in-the-metadata\/","title":{"rendered":"ORA-40842 unsupported value EMBEDDED_OID in the metadata"},"content":{"rendered":"\n<p>I was assisting a customer with an issue related to the SODA\/MongoDB API. They were encountering the ORA-40842 error in Autonomous Database &#8211; Shared (19c). After several troubleshooting sessions, we determined that updating the application driver to the latest version resolves the problem. For Java, specifically, you need orajsoda-1.1.27(or newer) to accommodate some internal changes that support 23c JSON objects.<\/p>\n\n\n\n<p>You can find the update <a href=\"https:\/\/github.com\/oracle\/soda-for-java\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>. From release notes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SODA 1.1.27\n\n    Support for 23ai JSON collection table (new default collection on 23ai with compatible 23 or higher)\n    Support for Duality Views\n    Indexing and orderbys on JSON type\n    New item methods\n    Changed required dependencies from javax.json to jakarta.json (new JSONP API and its Parsson implementation)\n    Bug fixes\n<\/code><\/pre>\n\n\n\n<p>Using the old version<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"867\" height=\"169\" src=\"https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image-2.png\" alt=\"\" class=\"wp-image-1414\" srcset=\"https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image-2.png 867w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image-2-300x58.png 300w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image-2-768x150.png 768w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><\/figure>\n\n\n\n<p>Using orajsoda > 1.1.27<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"494\" height=\"140\" src=\"https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image-1.png\" alt=\"\" class=\"wp-image-1413\" srcset=\"https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image-1.png 494w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image-1-300x85.png 300w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/figure>\n\n\n\n<p>pom.xml to work with orajsoda 1.127, you must use the jakarta.json <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;project xmlns=\"http:\/\/maven.apache.org\/POM\/4.0.0\"\n         xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\n         xsi:schemaLocation=\"http:\/\/maven.apache.org\/POM\/4.0.0 http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\">\n    &lt;modelVersion>4.0.0&lt;\/modelVersion>\n    &lt;artifactId>soda-parent&lt;\/artifactId>\n    &lt;groupId>com.oracle.database.soda&lt;\/groupId>\n    &lt;version>${revision}&lt;\/version>\n    &lt;packaging>pom&lt;\/packaging>\n    &lt;name>parent&lt;\/name>\n\n    &lt;modules>\n        &lt;module>orajsoda&lt;\/module>\n    &lt;\/modules>\n\n    &lt;properties>\n        &lt;outputDirectory>..\/lib&lt;\/outputDirectory>\n        &lt;excludes>**\/*.ade_path\/**&lt;\/excludes>\n        &lt;label>github&lt;\/label>\n        &lt;revision>1.1.27&lt;\/revision>\n        &lt;project.build.sourceEncoding>UTF-8&lt;\/project.build.sourceEncoding>\n        &lt;maven.compiler.source>1.8&lt;\/maven.compiler.source>\n        &lt;maven.compiler.target>1.8&lt;\/maven.compiler.target>\n    &lt;\/properties>\n\n    &lt;build>\n        &lt;finalName>${project.artifactId}&lt;\/finalName>\n        &lt;plugins>\n            &lt;plugin>\n                &lt;artifactId>maven-compiler-plugin&lt;\/artifactId>\n                &lt;version>3.8.0&lt;\/version>\n                &lt;configuration>\n                    &lt;excludes>\n                        &lt;exclude>${excludes}&lt;\/exclude>\n                    &lt;\/excludes>\n                    &lt;testExcludes>\n                        &lt;exclude>${excludes}&lt;\/exclude>\n                    &lt;\/testExcludes>\n                &lt;\/configuration>\n            &lt;\/plugin>\n            &lt;plugin>\n                &lt;artifactId>maven-clean-plugin&lt;\/artifactId>\n                &lt;version>3.1.0&lt;\/version>\n                &lt;configuration>\n                    &lt;filesets>\n                        &lt;fileset>\n                            &lt;directory>lib&lt;\/directory>\n                            &lt;includes>\n                                &lt;include>*.jar&lt;\/include>\n                            &lt;\/includes>\n                            &lt;followSymlinks>false&lt;\/followSymlinks>\n                        &lt;\/fileset>\n                    &lt;\/filesets>\n                &lt;\/configuration>\n            &lt;\/plugin>\n            &lt;plugin>\n                &lt;groupId>org.apache.maven.plugins&lt;\/groupId>\n                &lt;artifactId>maven-dependency-plugin&lt;\/artifactId>\n                &lt;version>3.2.0&lt;\/version>\n                &lt;executions>\n                    &lt;execution>\n                        &lt;id>copy-dependencies&lt;\/id>\n                        &lt;phase>package&lt;\/phase>\n                        &lt;goals>\n                            &lt;goal>copy&lt;\/goal>\n                        &lt;\/goals>\n                        &lt;inherited>false&lt;\/inherited>\n                        &lt;configuration>\n                            &lt;artifactItems>\n                                &lt;artifactItem>\n                                    &lt;groupId>jakarta.json&lt;\/groupId>\n                                    &lt;artifactId>jakarta.json-api&lt;\/artifactId>\n                                    &lt;version>2.1.3&lt;\/version>\n                                    &lt;outputDirectory>lib&lt;\/outputDirectory>\n                                &lt;\/artifactItem>\n                                &lt;artifactItem>\n                                    &lt;groupId>org.eclipse.parsson&lt;\/groupId>\n                                    &lt;artifactId>jakarta.json&lt;\/artifactId>\n                                    &lt;version>1.1.5&lt;\/version>\n                                    &lt;outputDirectory>lib&lt;\/outputDirectory>\n                                &lt;\/artifactItem>\n                                &lt;artifactItem>\n                                    &lt;groupId>javax.json&lt;\/groupId>\n                                    &lt;artifactId>javax.json-api&lt;\/artifactId>\n                                    &lt;version>1.1.4&lt;\/version>\n                                    &lt;outputDirectory>lib&lt;\/outputDirectory>\n                                &lt;\/artifactItem>\n                                &lt;artifactItem>\n                                    &lt;groupId>com.oracle.database.jdbc&lt;\/groupId>\n                                    &lt;artifactId>ojdbc8&lt;\/artifactId>\n                                    &lt;version>23.3.0.23.09&lt;\/version>\n                                    &lt;outputDirectory>lib&lt;\/outputDirectory>\n                                &lt;\/artifactItem>\n                                &lt;artifactItem>\n                                    &lt;groupId>junit&lt;\/groupId>\n                                    &lt;artifactId>junit&lt;\/artifactId>\n                                    &lt;version>3.8.1&lt;\/version>\n                                    &lt;outputDirectory>lib&lt;\/outputDirectory>\n                                &lt;\/artifactItem>\n                            &lt;\/artifactItems>\n                        &lt;\/configuration>\n                    &lt;\/execution>\n                &lt;\/executions>\n            &lt;\/plugin>\n        &lt;\/plugins>\n    &lt;\/build>\n\n\n    &lt;dependencies>\n\n        &lt;dependency>\n            &lt;groupId>org.eclipse.parsson&lt;\/groupId>\n            &lt;artifactId>parsson&lt;\/artifactId>\n            &lt;version>1.1.7&lt;\/version>\n        &lt;\/dependency>\n\n\n        &lt;dependency>\n            &lt;groupId>jakarta.json&lt;\/groupId>\n            &lt;artifactId>jakarta.json-api&lt;\/artifactId>\n            &lt;version>2.1.3&lt;\/version>\n        &lt;\/dependency>\n\n\n        &lt;dependency>\n            &lt;groupId>jakarta.json&lt;\/groupId>\n            &lt;artifactId>jakarta.json-tck&lt;\/artifactId>\n            &lt;version>2.1.1&lt;\/version>\n            &lt;type>pom&lt;\/type>\n        &lt;\/dependency>\n\n    \n\n        &lt;dependency>\n            &lt;groupId>com.oracle.database.jdbc&lt;\/groupId>\n            &lt;artifactId>ojdbc11-production&lt;\/artifactId>\n            &lt;version>23.5.0.24.07&lt;\/version>\n            &lt;type>pom&lt;\/type>\n        &lt;\/dependency>\n\n    &lt;\/dependencies>\n&lt;\/project><\/code><\/pre>\n\n\n\n<p>All the MongoDB API commands are working with this collection:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"197\" src=\"https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image006-1024x197.png\" alt=\"\" class=\"wp-image-1415\" srcset=\"https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image006-1024x197.png 1024w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image006-300x58.png 300w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image006-768x148.png 768w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image006-1536x295.png 1536w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image006-2048x394.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"298\" src=\"https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image007-1024x298.png\" alt=\"\" class=\"wp-image-1416\" srcset=\"https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image007-1024x298.png 1024w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image007-300x87.png 300w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image007-768x224.png 768w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image007-1536x447.png 1536w, https:\/\/adrianotanaka.com.br\/wp-content\/uploads\/2024\/11\/image007.png 2015w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Keeping your application updated to the latest version is crucial for several reasons,updates often introduce new features and enhancements that can provide a better user experience and increase your productivity. By ensuring your application is always up-to-date, you can avoid compatibility issues with other software and benefit from the latest innovations and improvements.<\/p>\n\n\n\n<p>In short, regularly updating your application ensures it remains secure, efficient, and equipped with the latest features to meet your needs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was assisting a customer with an issue related to the SODA\/MongoDB API. They were encountering the ORA-40842 error in Autonomous Database &#8211; Shared (19c). After several troubleshooting sessions, we determined that updating the application driver to the latest version resolves the problem. For Java, specifically, you need orajsoda-1.1.27(or newer) to accommodate some internal changes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1414,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"material-hide-sections":[],"footnotes":""},"categories":[55,56,45,54,6,57],"tags":[],"class_list":["post-1410","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-atp","category-database","category-mongo","category-oracle","category-soda"],"_links":{"self":[{"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/posts\/1410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=1410"}],"version-history":[{"count":4,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/posts\/1410\/revisions"}],"predecessor-version":[{"id":1421,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/posts\/1410\/revisions\/1421"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/media\/1414"}],"wp:attachment":[{"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=1410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=1410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrianotanaka.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=1410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}