[jira] [Commented] (DELTASPIKE-1377) issue with @Repository + @Query annotation and clustered wildfly
[ https://issues.apache.org/jira/browse/DELTASPIKE-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16886063#comment-16886063 ] ASF subversion and git services commented on DELTASPIKE-1377: - Commit 7909fc405176ab4f718f3901350983e81378ac37 in deltaspike's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=deltaspike.git;h=7909fc4 ] DELTASPIKE-1377 also fix issue with nested arrays txs to Vladimir Dvorak (skybber) for the report and parts of the patch. > issue with @Repository + @Query annotation and clustered wildfly > - > > Key: DELTASPIKE-1377 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1377 > Project: DeltaSpike > Issue Type: Bug > Components: Data-Module >Affects Versions: 1.9.0 >Reporter: Andrew Schmidt >Assignee: Mark Struberg >Priority: Major > Attachments: cdri-test.zip, stack.txt > > > Setup: 2 x wildfly 15.0.1.Final (weld-core updated to 3.0.6) > Clustered standalone-full-ha setup, same machine with a port offset for the > second machine. > > Repo: > {code:java} > @Repository > @ApplicationScoped > public interface AnimalRepo extends EntityRepository > { >@Query( value = "select a from Animal a where ?1 = a.name" ) >Animal findByName(String name); > } > {code} > Session bean: > {code:java} > @SessionScoped > @Named > public class MyBean implements Serializable > { > private static final long serialVersionUID = 1L; > @Inject > private AnimalRepo animalRepo; > public Long getTest() > { > return animalRepo.count(); > } > } > {code} > index.xhtml > {code:java} > > #{myBean.test} > > {code} > Visiting the first server yields no error, but upon visiting the second > server: > {code:java} > WELD-001500: Failed to deserialize proxy object with beanId > org.apache.deltaspike.core.util.bean.ImmutableBeanWrapper:AnimalRepo[@javax.enterprise.context.ApplicationScoped()@org.apache.deltaspike.data.api.Repository(forEntity=class > > java.lang.Object,methodPrefix=)]{AnimalRepo.findByName[@org.apache.deltaspike.data.api.Query(hints=[Ljavax.persistence.QueryHint;@774c6737,isNative=false,lock=NONE,max=0,named=,singleResult=JPA,value=select > a from Animal where ?1 = a.name)](java.lang.String);} > {code} > Interestingly, If the @Query annotation is removed from the findByName > query, there is no issue. > See attached project. -- This message was sent by Atlassian JIRA (v7.6.14#76016)
[jira] [Commented] (DELTASPIKE-1377) issue with @Repository + @Query annotation and clustered wildfly
[ https://issues.apache.org/jira/browse/DELTASPIKE-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16886046#comment-16886046 ] Mark Struberg commented on DELTASPIKE-1377: --- Can you please test it now? And thanks Vladimir Dvorak for the patch! > issue with @Repository + @Query annotation and clustered wildfly > - > > Key: DELTASPIKE-1377 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1377 > Project: DeltaSpike > Issue Type: Bug > Components: Data-Module >Affects Versions: 1.9.0 >Reporter: Andrew Schmidt >Assignee: Mark Struberg >Priority: Major > Attachments: cdri-test.zip, stack.txt > > > Setup: 2 x wildfly 15.0.1.Final (weld-core updated to 3.0.6) > Clustered standalone-full-ha setup, same machine with a port offset for the > second machine. > > Repo: > {code:java} > @Repository > @ApplicationScoped > public interface AnimalRepo extends EntityRepository > { >@Query( value = "select a from Animal a where ?1 = a.name" ) >Animal findByName(String name); > } > {code} > Session bean: > {code:java} > @SessionScoped > @Named > public class MyBean implements Serializable > { > private static final long serialVersionUID = 1L; > @Inject > private AnimalRepo animalRepo; > public Long getTest() > { > return animalRepo.count(); > } > } > {code} > index.xhtml > {code:java} > > #{myBean.test} > > {code} > Visiting the first server yields no error, but upon visiting the second > server: > {code:java} > WELD-001500: Failed to deserialize proxy object with beanId > org.apache.deltaspike.core.util.bean.ImmutableBeanWrapper:AnimalRepo[@javax.enterprise.context.ApplicationScoped()@org.apache.deltaspike.data.api.Repository(forEntity=class > > java.lang.Object,methodPrefix=)]{AnimalRepo.findByName[@org.apache.deltaspike.data.api.Query(hints=[Ljavax.persistence.QueryHint;@774c6737,isNative=false,lock=NONE,max=0,named=,singleResult=JPA,value=select > a from Animal where ?1 = a.name)](java.lang.String);} > {code} > Interestingly, If the @Query annotation is removed from the findByName > query, there is no issue. > See attached project. -- This message was sent by Atlassian JIRA (v7.6.14#76016)
[jira] [Commented] (DELTASPIKE-1377) issue with @Repository + @Query annotation and clustered wildfly
[ https://issues.apache.org/jira/browse/DELTASPIKE-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16886039#comment-16886039 ] ASF subversion and git services commented on DELTASPIKE-1377: - Commit ab2fa0d1715084a364c666504ad4b4ea74a23cdc in deltaspike's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=deltaspike.git;h=ab2fa0d ] DELTASPIKE-1377 fix array handling for native types > issue with @Repository + @Query annotation and clustered wildfly > - > > Key: DELTASPIKE-1377 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1377 > Project: DeltaSpike > Issue Type: Bug > Components: Data-Module >Affects Versions: 1.9.0 >Reporter: Andrew Schmidt >Assignee: Mark Struberg >Priority: Major > Attachments: cdri-test.zip, stack.txt > > > Setup: 2 x wildfly 15.0.1.Final (weld-core updated to 3.0.6) > Clustered standalone-full-ha setup, same machine with a port offset for the > second machine. > > Repo: > {code:java} > @Repository > @ApplicationScoped > public interface AnimalRepo extends EntityRepository > { >@Query( value = "select a from Animal a where ?1 = a.name" ) >Animal findByName(String name); > } > {code} > Session bean: > {code:java} > @SessionScoped > @Named > public class MyBean implements Serializable > { > private static final long serialVersionUID = 1L; > @Inject > private AnimalRepo animalRepo; > public Long getTest() > { > return animalRepo.count(); > } > } > {code} > index.xhtml > {code:java} > > #{myBean.test} > > {code} > Visiting the first server yields no error, but upon visiting the second > server: > {code:java} > WELD-001500: Failed to deserialize proxy object with beanId > org.apache.deltaspike.core.util.bean.ImmutableBeanWrapper:AnimalRepo[@javax.enterprise.context.ApplicationScoped()@org.apache.deltaspike.data.api.Repository(forEntity=class > > java.lang.Object,methodPrefix=)]{AnimalRepo.findByName[@org.apache.deltaspike.data.api.Query(hints=[Ljavax.persistence.QueryHint;@774c6737,isNative=false,lock=NONE,max=0,named=,singleResult=JPA,value=select > a from Animal where ?1 = a.name)](java.lang.String);} > {code} > Interestingly, If the @Query annotation is removed from the findByName > query, there is no issue. > See attached project. -- This message was sent by Atlassian JIRA (v7.6.14#76016)
[jira] [Commented] (DELTASPIKE-1377) issue with @Repository + @Query annotation and clustered wildfly
[ https://issues.apache.org/jira/browse/DELTASPIKE-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16886038#comment-16886038 ] ASF subversion and git services commented on DELTASPIKE-1377: - Commit 6f7de55890adb92fca49985380fe9dfb65e821f8 in deltaspike's branch refs/heads/master from Vladimir Dvorak [ https://gitbox.apache.org/repos/asf?p=deltaspike.git;h=6f7de55 ] DELTASPIKE-1377 fix typeId evaluation Signed-off-by: Mark Struberg > issue with @Repository + @Query annotation and clustered wildfly > - > > Key: DELTASPIKE-1377 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1377 > Project: DeltaSpike > Issue Type: Bug > Components: Data-Module >Affects Versions: 1.9.0 >Reporter: Andrew Schmidt >Assignee: Mark Struberg >Priority: Major > Attachments: cdri-test.zip, stack.txt > > > Setup: 2 x wildfly 15.0.1.Final (weld-core updated to 3.0.6) > Clustered standalone-full-ha setup, same machine with a port offset for the > second machine. > > Repo: > {code:java} > @Repository > @ApplicationScoped > public interface AnimalRepo extends EntityRepository > { >@Query( value = "select a from Animal a where ?1 = a.name" ) >Animal findByName(String name); > } > {code} > Session bean: > {code:java} > @SessionScoped > @Named > public class MyBean implements Serializable > { > private static final long serialVersionUID = 1L; > @Inject > private AnimalRepo animalRepo; > public Long getTest() > { > return animalRepo.count(); > } > } > {code} > index.xhtml > {code:java} > > #{myBean.test} > > {code} > Visiting the first server yields no error, but upon visiting the second > server: > {code:java} > WELD-001500: Failed to deserialize proxy object with beanId > org.apache.deltaspike.core.util.bean.ImmutableBeanWrapper:AnimalRepo[@javax.enterprise.context.ApplicationScoped()@org.apache.deltaspike.data.api.Repository(forEntity=class > > java.lang.Object,methodPrefix=)]{AnimalRepo.findByName[@org.apache.deltaspike.data.api.Query(hints=[Ljavax.persistence.QueryHint;@774c6737,isNative=false,lock=NONE,max=0,named=,singleResult=JPA,value=select > a from Animal where ?1 = a.name)](java.lang.String);} > {code} > Interestingly, If the @Query annotation is removed from the findByName > query, there is no issue. > See attached project. -- This message was sent by Atlassian JIRA (v7.6.14#76016)