<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> 
        <base href="https://hibernate.atlassian.net"> 
        <title>Message Title</title> 
    </head> 
    <body class="jira" style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.429"> 
        <table id="background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; background-color: #f5f5f5; border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0" bgcolor="#f5f5f5"> 
            <!-- header here --> 
            <tbody>
                <tr> 
                    <td id="header-pattern-container" style="padding: 0; border-collapse: collapse; padding: 10px 20px"> 
                        <table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                            <tbody>
                                <tr> 
                                    <td id="header-avatar-image-container" valign="top" style="padding: 0; border-collapse: collapse; vertical-align: top; width: 32px; padding-right: 8px" width="32"> <img id="header-avatar-image" class="image_fix" src="https://secure.gravatar.com/avatar/9d09f05d50ce6624040126d9eaf727b8?d=mm&amp;s=48" height="32" width="32" border="0" style="border-radius: 3px; vertical-align: top"> </td> 
                                    <td id="header-text-container" valign="middle" style="padding: 0; border-collapse: collapse; vertical-align: middle; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> <a class="user-hover" rel="emmanuel" id="email_emmanuel" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=emmanuel" style="color:#6c797f;; color: #3b73af; text-decoration: none">Emmanuel Bernard</a> <strong>created</strong> an issue </td> 
                                </tr> 
                            </tbody>
                        </table> </td> 
                </tr> 
                <tr> 
                    <td id="email-content-container" style="padding: 0; border-collapse: collapse; padding: 0 20px"> 
                        <table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; border-spacing: 0; border-collapse: separate"> 
                            <tbody>
                                <tr> 
                                    <!-- there needs to be content in the cell for it to render in some clients --> 
                                    <td class="email-content-rounded-top mobile-expand" style="padding: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 15px; background-color: #ffffff; border-left: 1px solid #cccccc; border-top: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom: 0; border-top-right-radius: 5px; border-top-left-radius: 5px; height: 10px; line-height: 10px; padding: 0 15px 0 16px; mso-line-height-rule: exactly" height="10" bgcolor="#ffffff">&nbsp;</td> 
                                </tr> 
                                <tr> 
                                    <td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff"> 
                                        <table class="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                            <tbody>
                                                <tr> 
                                                    <td class="page-title-pattern-first-line " style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; padding-top: 10px"> <a href="https://hibernate.atlassian.net/browse/HSEARCH" style="color: #3b73af; text-decoration: none">Hibernate Search</a> / <a href="https://hibernate.atlassian.net/browse/HSEARCH-2636" style="color: #3b73af; text-decoration: none"><img src="cid:jira-generated-image-avatar-1492370a-3489-4d6a-b077-8a44338dca51" height="16" width="16" border="0" align="absmiddle" alt="Improvement" style="vertical-align: text-bottom"></a> <a href="https://hibernate.atlassian.net/browse/HSEARCH-2636" style="color: #3b73af; text-decoration: none">HSEARCH-2636</a> </td> 
                                                </tr> 
                                                <tr> 
                                                    <td style="vertical-align: top;; padding: 0; border-collapse: collapse; padding-right: 5px; font-size: 20px; line-height: 30px; mso-line-height-rule: exactly" class="page-title-pattern-header-container"> <span class="page-title-pattern-header" style="font-family: Arial, sans-serif; padding: 0; font-size: 20px; line-height: 30px; mso-text-raise: 2px; mso-line-height-rule: exactly; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HSEARCH-2636" style="color: #3b73af; text-decoration: none">Be more resilient to the presence of id in the _source</a> </span> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <tr> 
                                    <td class="email-content-main mobile-expand  wrapper-special-margin" style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; padding-top: 10px; padding-bottom: 5px" bgcolor="#ffffff"> 
                                        <table class="keyvalue-table" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                            <tbody>
                                                <tr> 
                                                    <th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Issue Type:</th> 
                                                    <td class="has-icon" style="padding: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <img src="cid:jira-generated-image-avatar-1492370a-3489-4d6a-b077-8a44338dca51" height="16" width="16" border="0" align="absmiddle" alt="Improvement" style="vertical-align: text-bottom"> Improvement </td> 
                                                </tr> 
                                                <tr> 
                                                    <th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Affects Versions:</th> 
                                                    <td style="padding: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> 5.6.1.Final </td> 
                                                </tr> 
                                                <tr> 
                                                    <th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Assignee:</th> 
                                                    <td style="padding: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> Unassigned </td> 
                                                </tr> 
                                                <tr> 
                                                    <th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Created:</th> 
                                                    <td style="padding: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> 13/Mar/2017 06:56 AM </td> 
                                                </tr> 
                                                <tr> 
                                                    <th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Priority:</th> 
                                                    <td class="has-icon" style="padding: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <img src="cid:jira-generated-image-static-major-daf045a2-418e-43c7-ae47-f902c64b4efc" height="16" width="16" border="0" align="absmiddle" alt="Major" style="vertical-align: text-bottom"> Major </td> 
                                                </tr> 
                                                <tr> 
                                                    <th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Reporter:</th> 
                                                    <td style="padding: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <a class="user-hover" rel="emmanuel" id="email_emmanuel" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=emmanuel" style="color:#6c797f;; color: #3b73af; text-decoration: none">Emmanuel Bernard</a> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <tr> 
                                    <td class="email-content-main mobile-expand  issue-description-container" style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; padding-top: 5px; padding-bottom: 10px" bgcolor="#ffffff"> 
                                        <table class="text-paragraph-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 2px"> 
                                            <tbody>
                                                <tr> 
                                                    <td class="text-paragraph-pattern-container mobile-resize-text " style="padding: 0; border-collapse: collapse; padding: 0 0 10px"> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0; margin-top: 0">I have upgraded the application from 5.6.0.Beta3 to 5.6.1.Final without reindexing. The index structure was generated by 5.6.0.Beta3 but read by 5.6.1.Final.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">I received the following exception</p> 
                                                        <div class="code panel" style="border-width: 1px;; border: 1px solid #cccccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #cccccc; -moz-border-radius: 3px; border-radius: 3px; margin: 9px 0">
                                                            <div class="codeContent panelContent" style="padding: 9px 12px"> 
                                                                <pre class="code-java" style="margin: 10px 0 0; margin-top: 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal">
java.lang.NullPointerException
        at org.hibernate.search.query.hibernate.impl.EntityInfoLoadKey.hashCode(EntityInfoLoadKey.java:47)
        at java.util.HashMap.hash(HashMap.java:338)
        at java.util.HashMap.put(HashMap.java:611)
        at org.hibernate.search.query.hibernate.impl.QueryLoader.executeLoad(QueryLoader.java:82)
        at org.hibernate.search.query.hibernate.impl.AbstractLoader.load(AbstractLoader.java:58)
        at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.list(FullTextQueryImpl.java:199)
        at org.hibernate.search.jpa.impl.FullTextQueryImpl.getResultList(FullTextQueryImpl.java:157)
        at org.hibernate.demos.HibernateSearchWithDbIT.lambda$queryOnSingleField$1(HibernateSearchWithDbIT.java:110)
        at org.hibernate.demos.HibernateSearchWithDbIT$$Lambda$16/1653153736.accept(Unknown Source)
        at org.hibernate.demos.TestBase.inTransaction(TestBase.java:21)
        at org.hibernate.demos.HibernateSearchWithDbIT.queryOnSingleField(HibernateSearchWithDbIT.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
        at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
        at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
        at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)
        at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

[2017-03-13 14:47:55,445][INFO ][org.hibernate.jpa.internal.util.LogHelper] HHH000204: Processing PersistenceUnitInfo [
        name: videoGamePu
        ...]
[2017-03-13 14:47:55,536][INFO ][org.hibernate.Version    ] HHH000412: Hibernate Core {5.1.3.Final}
[2017-03-13 14:47:55,537][INFO ][org.hibernate.cfg.Environment] HHH000206: hibernate.properties not found
[2017-03-13 14:47:55,538][INFO ][org.hibernate.cfg.Environment] HHH000021: Bytecode provider name : javassist
[2017-03-13 14:47:55,577][INFO ][org.hibernate.annotations.common.Version] HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
[2017-03-13 14:47:55,768][WARN ][org.hibernate.orm.connections.pooling] HHH10001002: Using Hibernate built-in connection pool (not <span class="code-keyword" style="color: #000091">for</span> production use!)
[2017-03-13 14:47:55,769][INFO ][org.hibernate.orm.connections.pooling] HHH10001005: using driver [<span class="code-keyword" style="color: #000091">null</span>] at URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
[2017-03-13 14:47:55,769][INFO ][org.hibernate.orm.connections.pooling] HHH10001001: Connection properties: {user=sa}
[2017-03-13 14:47:55,769][INFO ][org.hibernate.orm.connections.pooling] HHH10001003: Autocommit mode: <span class="code-keyword" style="color: #000091">false</span>
[2017-03-13 14:47:55,772][INFO ][org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl] HHH000115: Hibernate connection pool size: 20 (min=1)
[2017-03-13 14:47:55,936][INFO ][org.hibernate.dialect.Dialect] HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
[2017-03-13 14:47:56,307][INFO ][org.hibernate.search.engine.Version] HSEARCH000034: Hibernate Search 5.6.0.Final
[2017-03-13 14:47:56,443][INFO ][org.hibernate.orm.connections.access] HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@71984c3] <span class="code-keyword" style="color: #000091">for</span> (non-JTA) DDL execution was not in auto-commit mode; the Connection <span class="code-quote" style="color: #009100">'local transaction'</span> will be committed and the Connection will be set into auto-commit mode.
[2017-03-13 14:47:56,446][INFO ][org.hibernate.orm.connections.access] HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@1bc715b8] <span class="code-keyword" style="color: #000091">for</span> (non-JTA) DDL execution was not in auto-commit mode; the Connection <span class="code-quote" style="color: #009100">'local transaction'</span> will be committed and the Connection will be set into auto-commit mode.
[2017-03-13 14:47:56,464][INFO ][org.hibernate.tool.schema.internal.SchemaCreatorImpl] HHH000476: Executing <span class="code-keyword" style="color: #000091">import</span> script <span class="code-quote" style="color: #009100">'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@2c104774'</span>
[2017-03-13 14:47:56,765][INFO ][io.searchbox.client.AbstractJestClient] Setting server pool to a list of 1 servers: [http:<span class="code-comment" style="color: #808080">//127.0.0.1:9200]
</span>[2017-03-13 14:47:56,766][INFO ][io.searchbox.client.JestClientFactory] Using multi thread/connection supporting pooling connection manager
[2017-03-13 14:47:56,837][INFO ][io.searchbox.client.JestClientFactory] Using custom GSON instance
[2017-03-13 14:47:56,838][INFO ][io.searchbox.client.JestClientFactory] Node Discovery disabled...
[2017-03-13 14:47:56,838][INFO ][io.searchbox.client.JestClientFactory] Idle connection reaping disabled...
[2017-03-13 14:47:57,191][ERROR][org.hibernate.search.exception.impl.LogErrorHandler] HSEARCH000058: Exception occurred org.hibernate.search.elasticsearch.client.impl.BulkRequestFailedException: HSEARCH400008: Elasticsearch request failed.
 Request:
========
Operation: Bulk
URI:/_bulk?refresh=<span class="code-keyword" style="color: #000091">true</span>
Data:
{<span class="code-quote" style="color: #009100">"index"</span>:{<span class="code-quote" style="color: #009100">"_id"</span>:<span class="code-quote" style="color: #009100">"4"</span>,<span class="code-quote" style="color: #009100">"_index"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.videogame"</span>,<span class="code-quote" style="color: #009100">"_type"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.VideoGame"</span>}}
{<span class="code-quote" style="color: #009100">"id"</span>:<span class="code-quote" style="color: #009100">"4"</span>,<span class="code-quote" style="color: #009100">"title"</span>:<span class="code-quote" style="color: #009100">"Revenge of the Samurai"</span>,<span class="code-quote" style="color: #009100">"description"</span>:<span class="code-quote" style="color: #009100">"The Samurai is mad and takes revenge"</span>,<span class="code-quote" style="color: #009100">"rating"</span>:8,<span class="code-quote" style="color: #009100">"tags"</span>:[<span class="code-quote" style="color: #009100">"action"</span>,<span class="code-quote" style="color: #009100">"real-time"</span>,<span class="code-quote" style="color: #009100">"anime"</span>],<span class="code-quote" style="color: #009100">"publisher"</span>:{<span class="code-quote" style="color: #009100">"name"</span>:<span class="code-quote" style="color: #009100">"Samurai Games, Inc."</span>},<span class="code-quote" style="color: #009100">"characters"</span>:[{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Luigi"</span>},{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Dash"</span>}]}
{<span class="code-quote" style="color: #009100">"index"</span>:{<span class="code-quote" style="color: #009100">"_id"</span>:<span class="code-quote" style="color: #009100">"5"</span>,<span class="code-quote" style="color: #009100">"_index"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.videogame"</span>,<span class="code-quote" style="color: #009100">"_type"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.VideoGame"</span>}}
{<span class="code-quote" style="color: #009100">"id"</span>:<span class="code-quote" style="color: #009100">"5"</span>,<span class="code-quote" style="color: #009100">"title"</span>:<span class="code-quote" style="color: #009100">"Tanaka\u0027s <span class="code-keyword" style="color: #000091; color: #009100">return</span>"</span>,<span class="code-quote" style="color: #009100">"description"</span>:<span class="code-quote" style="color: #009100">"The famous Samurai Tanaka returns"</span>,<span class="code-quote" style="color: #009100">"rating"</span>:10,<span class="code-quote" style="color: #009100">"tags"</span>:[<span class="code-quote" style="color: #009100">"action"</span>,<span class="code-quote" style="color: #009100">"round-based"</span>],<span class="code-quote" style="color: #009100">"publisher"</span>:{<span class="code-quote" style="color: #009100">"name"</span>:<span class="code-quote" style="color: #009100">"Samurai Games, Inc."</span>},<span class="code-quote" style="color: #009100">"characters"</span>:[{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Frank"</span>},{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Dash"</span>},{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Luigi"</span>}]}
{<span class="code-quote" style="color: #009100">"index"</span>:{<span class="code-quote" style="color: #009100">"_id"</span>:<span class="code-quote" style="color: #009100">"6"</span>,<span class="code-quote" style="color: #009100">"_index"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.videogame"</span>,<span class="code-quote" style="color: #009100">"_type"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.VideoGame"</span>}}
{<span class="code-quote" style="color: #009100">"id"</span>:<span class="code-quote" style="color: #009100">"6"</span>,<span class="code-quote" style="color: #009100">"title"</span>:<span class="code-quote" style="color: #009100">"Ninja Castle"</span>,<span class="code-quote" style="color: #009100">"description"</span>:<span class="code-quote" style="color: #009100">"7 Ninjas live in a castle"</span>,<span class="code-quote" style="color: #009100">"rating"</span>:5,<span class="code-quote" style="color: #009100">"publisher"</span>:{<span class="code-quote" style="color: #009100">"name"</span>:<span class="code-quote" style="color: #009100">"Samurai Games, Inc."</span>},<span class="code-quote" style="color: #009100">"characters"</span>:[{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Frank"</span>}]}

Response:
=========
Status: 200
Error message: One or more of the items in the Bulk request failed, check BulkResult.getItems() <span class="code-keyword" style="color: #000091">for</span> more information.
Cluster name: <span class="code-keyword" style="color: #000091">null</span>
Cluster status: <span class="code-keyword" style="color: #000091">null</span>

Operation: index
  Index: org.hibernate.demos.hswithes.model.videogame
  Type: org.hibernate.demos.hswithes.model.VideoGame
  Id: 4
  Status: 400
  Error: {<span class="code-quote" style="color: #009100">"type"</span>:<span class="code-quote" style="color: #009100">"strict_dynamic_mapping_exception"</span>,<span class="code-quote" style="color: #009100">"reason"</span>:<span class="code-quote" style="color: #009100">"mapping set to strict, dynamic introduction of [id] within [org.hibernate.demos.hswithes.model.VideoGame] is not allowed"</span>}
Operation: index
  Index: org.hibernate.demos.hswithes.model.videogame
  Type: org.hibernate.demos.hswithes.model.VideoGame
  Id: 5
  Status: 400
  Error: {<span class="code-quote" style="color: #009100">"type"</span>:<span class="code-quote" style="color: #009100">"strict_dynamic_mapping_exception"</span>,<span class="code-quote" style="color: #009100">"reason"</span>:<span class="code-quote" style="color: #009100">"mapping set to strict, dynamic introduction of [id] within [org.hibernate.demos.hswithes.model.VideoGame] is not allowed"</span>}
Operation: index
  Index: org.hibernate.demos.hswithes.model.videogame
  Type: org.hibernate.demos.hswithes.model.VideoGame
  Id: 6
  Status: 400
  Error: {<span class="code-quote" style="color: #009100">"type"</span>:<span class="code-quote" style="color: #009100">"strict_dynamic_mapping_exception"</span>,<span class="code-quote" style="color: #009100">"reason"</span>:<span class="code-quote" style="color: #009100">"mapping set to strict, dynamic introduction of [id] within [org.hibernate.demos.hswithes.model.VideoGame] is not allowed"</span>}

Subsequent failures:
        Entity org.hibernate.demos.hswithes.model.VideoGame  Id 4  Work Type  org.hibernate.search.backend.AddLuceneWork
        Entity org.hibernate.demos.hswithes.model.VideoGame  Id 5  Work Type  org.hibernate.search.backend.AddLuceneWork
        Entity org.hibernate.demos.hswithes.model.VideoGame  Id 6  Work Type  org.hibernate.search.backend.AddLuceneWork

org.hibernate.search.elasticsearch.client.impl.BulkRequestFailedException: HSEARCH400008: Elasticsearch request failed.
 Request:
========
Operation: Bulk
URI:/_bulk?refresh=<span class="code-keyword" style="color: #000091">true</span>
Data:
{<span class="code-quote" style="color: #009100">"index"</span>:{<span class="code-quote" style="color: #009100">"_id"</span>:<span class="code-quote" style="color: #009100">"4"</span>,<span class="code-quote" style="color: #009100">"_index"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.videogame"</span>,<span class="code-quote" style="color: #009100">"_type"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.VideoGame"</span>}}
{<span class="code-quote" style="color: #009100">"id"</span>:<span class="code-quote" style="color: #009100">"4"</span>,<span class="code-quote" style="color: #009100">"title"</span>:<span class="code-quote" style="color: #009100">"Revenge of the Samurai"</span>,<span class="code-quote" style="color: #009100">"description"</span>:<span class="code-quote" style="color: #009100">"The Samurai is mad and takes revenge"</span>,<span class="code-quote" style="color: #009100">"rating"</span>:8,<span class="code-quote" style="color: #009100">"tags"</span>:[<span class="code-quote" style="color: #009100">"action"</span>,<span class="code-quote" style="color: #009100">"real-time"</span>,<span class="code-quote" style="color: #009100">"anime"</span>],<span class="code-quote" style="color: #009100">"publisher"</span>:{<span class="code-quote" style="color: #009100">"name"</span>:<span class="code-quote" style="color: #009100">"Samurai Games, Inc."</span>},<span class="code-quote" style="color: #009100">"characters"</span>:[{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Luigi"</span>},{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Dash"</span>}]}
{<span class="code-quote" style="color: #009100">"index"</span>:{<span class="code-quote" style="color: #009100">"_id"</span>:<span class="code-quote" style="color: #009100">"5"</span>,<span class="code-quote" style="color: #009100">"_index"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.videogame"</span>,<span class="code-quote" style="color: #009100">"_type"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.VideoGame"</span>}}
{<span class="code-quote" style="color: #009100">"id"</span>:<span class="code-quote" style="color: #009100">"5"</span>,<span class="code-quote" style="color: #009100">"title"</span>:<span class="code-quote" style="color: #009100">"Tanaka\u0027s <span class="code-keyword" style="color: #000091; color: #009100">return</span>"</span>,<span class="code-quote" style="color: #009100">"description"</span>:<span class="code-quote" style="color: #009100">"The famous Samurai Tanaka returns"</span>,<span class="code-quote" style="color: #009100">"rating"</span>:10,<span class="code-quote" style="color: #009100">"tags"</span>:[<span class="code-quote" style="color: #009100">"action"</span>,<span class="code-quote" style="color: #009100">"round-based"</span>],<span class="code-quote" style="color: #009100">"publisher"</span>:{<span class="code-quote" style="color: #009100">"name"</span>:<span class="code-quote" style="color: #009100">"Samurai Games, Inc."</span>},<span class="code-quote" style="color: #009100">"characters"</span>:[{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Frank"</span>},{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Dash"</span>},{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Luigi"</span>}]}
{<span class="code-quote" style="color: #009100">"index"</span>:{<span class="code-quote" style="color: #009100">"_id"</span>:<span class="code-quote" style="color: #009100">"6"</span>,<span class="code-quote" style="color: #009100">"_index"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.videogame"</span>,<span class="code-quote" style="color: #009100">"_type"</span>:<span class="code-quote" style="color: #009100">"org.hibernate.demos.hswithes.model.VideoGame"</span>}}
{<span class="code-quote" style="color: #009100">"id"</span>:<span class="code-quote" style="color: #009100">"6"</span>,<span class="code-quote" style="color: #009100">"title"</span>:<span class="code-quote" style="color: #009100">"Ninja Castle"</span>,<span class="code-quote" style="color: #009100">"description"</span>:<span class="code-quote" style="color: #009100">"7 Ninjas live in a castle"</span>,<span class="code-quote" style="color: #009100">"rating"</span>:5,<span class="code-quote" style="color: #009100">"publisher"</span>:{<span class="code-quote" style="color: #009100">"name"</span>:<span class="code-quote" style="color: #009100">"Samurai Games, Inc."</span>},<span class="code-quote" style="color: #009100">"characters"</span>:[{<span class="code-quote" style="color: #009100">"nickName"</span>:<span class="code-quote" style="color: #009100">"Frank"</span>}]}

Response:
=========
Status: 200
Error message: One or more of the items in the Bulk request failed, check BulkResult.getItems() <span class="code-keyword" style="color: #000091">for</span> more information.
Cluster name: <span class="code-keyword" style="color: #000091">null</span>
Cluster status: <span class="code-keyword" style="color: #000091">null</span>

Operation: index
  Index: org.hibernate.demos.hswithes.model.videogame
  Type: org.hibernate.demos.hswithes.model.VideoGame
  Id: 4
  Status: 400
  Error: {<span class="code-quote" style="color: #009100">"type"</span>:<span class="code-quote" style="color: #009100">"strict_dynamic_mapping_exception"</span>,<span class="code-quote" style="color: #009100">"reason"</span>:<span class="code-quote" style="color: #009100">"mapping set to strict, dynamic introduction of [id] within [org.hibernate.demos.hswithes.model.VideoGame] is not allowed"</span>}
Operation: index
  Index: org.hibernate.demos.hswithes.model.videogame
  Type: org.hibernate.demos.hswithes.model.VideoGame
  Id: 5
  Status: 400
  Error: {<span class="code-quote" style="color: #009100">"type"</span>:<span class="code-quote" style="color: #009100">"strict_dynamic_mapping_exception"</span>,<span class="code-quote" style="color: #009100">"reason"</span>:<span class="code-quote" style="color: #009100">"mapping set to strict, dynamic introduction of [id] within [org.hibernate.demos.hswithes.model.VideoGame] is not allowed"</span>}
Operation: index
  Index: org.hibernate.demos.hswithes.model.videogame
  Type: org.hibernate.demos.hswithes.model.VideoGame
  Id: 6
  Status: 400
  Error: {<span class="code-quote" style="color: #009100">"type"</span>:<span class="code-quote" style="color: #009100">"strict_dynamic_mapping_exception"</span>,<span class="code-quote" style="color: #009100">"reason"</span>:<span class="code-quote" style="color: #009100">"mapping set to strict, dynamic introduction of [id] within [org.hibernate.demos.hswithes.model.VideoGame] is not allowed"</span>}

        at org.hibernate.search.elasticsearch.client.impl.JestClient.executeBulkRequest(JestClient.java:225)
        at org.hibernate.search.elasticsearch.client.impl.BulkRequest.execute(BulkRequest.java:61)
        at org.hibernate.search.elasticsearch.client.impl.BackendRequestProcessor.doExecute(BackendRequestProcessor.java:106)
        at org.hibernate.search.elasticsearch.client.impl.BackendRequestProcessor.executeSync(BackendRequestProcessor.java:76)
        at org.hibernate.search.elasticsearch.impl.ElasticsearchIndexManager.performOperations(ElasticsearchIndexManager.java:424)
        at org.hibernate.search.backend.impl.LocalBackendQueueProcessor.applyWork(LocalBackendQueueProcessor.java:38)
        at org.hibernate.search.backend.impl.WorkQueuePerIndexSplitter.commitOperations(WorkQueuePerIndexSplitter.java:46)
        at org.hibernate.search.backend.impl.BatchedQueueingProcessor.performWorks(BatchedQueueingProcessor.java:83)
        at org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.afterCompletion(PostTransactionWorkQueueSynchronization.java:76)
        at org.hibernate.search.backend.impl.EventSourceTransactionContext$DelegateToSynchronizationOnAfterTx.doAfterTransactionCompletion(EventSourceTransactionContext.java:187)
        at org.hibernate.engine.spi.ActionQueue$AfterTransactionCompletionProcessQueue.afterTransactionCompletion(ActionQueue.java:957)
        at org.hibernate.engine.spi.ActionQueue.afterTransactionCompletion(ActionQueue.java:491)
        at org.hibernate.internal.SessionImpl.afterTransactionCompletion(SessionImpl.java:2369)
        at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.afterTransactionCompletion(JdbcCoordinatorImpl.java:497)
        at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.afterCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:167)
        at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.access$200(JdbcResourceLocalTransactionCoordinatorImpl.java:38)
        at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:233)
        at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:65)
        at org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:61)
        at org.hibernate.demos.TestBase.inTransaction(TestBase.java:22)
        at org.hibernate.demos.HibernateSearchWithDbIT.setUpTestData(HibernateSearchWithDbIT.java:43)
        at org.hibernate.demos.HibernateSearchWithDbIT.setUpEmf(HibernateSearchWithDbIT.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
        at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
        at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
        at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)
        at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

<span class="code-object" style="color: #910091">Process</span> finished with exit code 255
</pre> 
                                                            </div>
                                                        </div> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">The root cause is that the <tt>_source</tt> includes the id in 5.6.0.Final and uses it to retrieve the entity id whereas the 5.6.0.Beta3 did not include it and was expecting the id from the index structure proper.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">I wonder a few things:</p> 
                                                        <ul class="alternate" type="square"> 
                                                            <li>should we have thrown the inner exception of the bulk operations instead of swallowing (strict mapping error).</li> 
                                                            <li>should we catch any EntityInfo with a null id early on during query and raise a more meaningful exception? That one is a rhetorical question, of course we should.</li> 
                                                            <li>should we be more lenient toward older mappings and fallback to reading id the old fashion way?</li> 
                                                        </ul> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <tr> 
                                    <td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff"> <script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "EmailMessage",
  "description": "View Issue",
  "potentialAction": {
    "@type": "ViewAction",
        "target": "https://hibernate.atlassian.net/browse/HSEARCH-2636?inbox=true&",
    "name": "View Issue"
      },
  "publisher": {
    "@type": "Organization",
    "name": "Atlassian",
    "url": "https://www.atlassian.com"
  }
}
</script> 
                                        <table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> 
                                            <tbody>
                                                <tr> 
                                                    <td id="actions-pattern-container" valign="middle" style="padding: 0; border-collapse: collapse; padding: 10px 0 10px 24px; vertical-align: middle; padding-left: 0"> 
                                                        <table align="left" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                                            <tbody>
                                                                <tr> 
                                                                    <td class="actions-pattern-action-icon-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HSEARCH-2636#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none"> <img class="actions-pattern-action-icon-image" src="cid:jira-generated-image-static-comment-icon-d8439f57-a59b-43ce-9de9-bbb97b919916" alt="Add Comment" title="Add Comment" height="16" width="16" border="0" style="vertical-align: middle"> </a> </td> 
                                                                    <td class="actions-pattern-action-text-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px"> <a href="https://hibernate.atlassian.net/browse/HSEARCH-2636#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none">Add Comment</a> </td> 
                                                                </tr> 
                                                            </tbody>
                                                        </table> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <!-- there needs to be content in the cell for it to render in some clients --> 
                                <tr> 
                                    <td class="email-content-rounded-bottom mobile-expand" style="padding: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 5px; line-height: 5px; background-color: #ffffff; border-top: 0; border-left: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; mso-line-height-rule: exactly" height="5" bgcolor="#ffffff">&nbsp;</td> 
                                </tr> 
                            </tbody>
                        </table> </td> 
                </tr> 
                <tr> 
                    <td id="footer-pattern" style="padding: 0; border-collapse: collapse; padding: 12px 20px"> 
                        <table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                            <tbody>
                                <tr> 
                                    <td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0; border-collapse: collapse; color: #999999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px"> This message was sent by Atlassian JIRA <span id="footer-build-information">(v1000.824.1#100035-<span title="96b2fd83c41f75dc61677524901c7c3622557cf0" data-commit-id="96b2fd83c41f75dc61677524901c7c3622557cf0}">sha1:96b2fd8</span>)</span> </td> 
                                    <td id="footer-pattern-logo-desktop-container" valign="top" style="padding: 0; border-collapse: collapse; padding-left: 20px; vertical-align: top"> 
                                        <table style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                            <tbody>
                                                <tr> 
                                                    <td id="footer-pattern-logo-desktop-padding" style="padding: 0; border-collapse: collapse; padding-top: 3px"> <img id="footer-pattern-logo-desktop" src="cid:jira-generated-image-static-footer-desktop-logo-407977d1-f3ac-4f37-bbba-7539b6a2b1f5" alt="Atlassian logo" title="Atlassian logo" width="169" height="36" class="image_fix"> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                            </tbody>
                        </table> </td> 
                </tr> 
            </tbody>
        </table>   
    </body>
</html>