2 Replies Latest reply: Apr 20, 2012 5:05 PM by zenig RSS

SEAM 2.3 - Spring 3 - Hibernate 4 Integration bug ?

Stephane REMI Newbie

Hi,

 

Firstly, I'm very happy that SEAM 2.3 Beta1 is out. I think is a great news for Seam 2 community and I congratulate JBoss Seam Team for all works.

 

I use Seam 2.x and Spring on my project for 3 years ago and it's pretty cool but i would migrate to JSF2 and JPA 2.

 

Also I try Seam 2.3, with Spring 3.1 and Hibernate 4.1 but I've found a little problem...

 

When I would access to Hibernate currentSession, this exception is triggered :

 

18 avr. 2012;17:03:36.335 [http-bio-8080-exec-9] ERROR org.jboss.seam.exception.Exceptions - handled and logged exception
javax.servlet.ServletException: Could not instantiate Seam component: homeControler
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:606) ~[jsf-api-2.1.5.jar:2.1.5-SNAPSHOT]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) [catalina.jar:7.0.20]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.20]
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:42) [jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.20]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.20]
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) [catalina.jar:7.0.20]
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [catalina.jar:7.0.20]
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [catalina.jar:7.0.20]
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) [catalina.jar:7.0.20]
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [catalina.jar:7.0.20]
          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) [catalina.jar:7.0.20]
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.20]
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) [catalina.jar:7.0.20]
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:279) [tomcat-coyote.jar:7.0.20]
          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) [tomcat-coyote.jar:7.0.20]
          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) [tomcat-coyote.jar:7.0.20]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_24]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_24]
          at java.lang.Thread.run(Thread.java:662) [na:1.6.0_24]
Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: homeControler
          at org.jboss.seam.Component.newInstance(Component.java:2170) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.Component.getInstance(Component.java:2024) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.Component.getInstance(Component.java:1986) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.Component.getInstance(Component.java:1980) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) ~[jsf-impl-2.1.5.jar:2.1.5-SNAPSHOT]
          at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) ~[jsf-impl-2.1.5.jar:2.1.5-SNAPSHOT]
          at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) ~[jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
          at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34) ~[jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
          at org.jboss.el.parser.AstValue.getType(AstValue.java:28) ~[jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
          at org.jboss.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:174) ~[jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
          at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:98) ~[jsf-impl-2.1.5.jar:2.1.5-SNAPSHOT]
          at org.primefaces.component.datatable.DataTable.isLazy(DataTable.java:968) ~[primefaces-3.2.jar:na]
          at org.primefaces.component.datatable.DataTableRenderer.encodeMarkup(DataTableRenderer.java:191) ~[primefaces-3.2.jar:na]
          at org.primefaces.component.datatable.DataTableRenderer.encodeEnd(DataTableRenderer.java:108) ~[primefaces-3.2.jar:na]
          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875) ~[jsf-api-2.1.5.jar:2.1.5-SNAPSHOT]
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1764) ~[jsf-api-2.1.5.jar:2.1.5-SNAPSHOT]
          at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) ~[jsf-api-2.1.5.jar:2.1.5-SNAPSHOT]
          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) ~[jsf-api-2.1.5.jar:2.1.5-SNAPSHOT]
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757) ~[jsf-api-2.1.5.jar:2.1.5-SNAPSHOT]
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760) ~[jsf-api-2.1.5.jar:2.1.5-SNAPSHOT]
          at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) ~[jsf-impl-2.1.5.jar:2.1.5-SNAPSHOT]
          at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) ~[jsf-impl-2.1.5.jar:2.1.5-SNAPSHOT]
          at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:88) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) ~[jsf-impl-2.1.5.jar:2.1.5-SNAPSHOT]
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) ~[jsf-impl-2.1.5.jar:2.1.5-SNAPSHOT]
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) ~[jsf-impl-2.1.5.jar:2.1.5-SNAPSHOT]
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) ~[jsf-api-2.1.5.jar:2.1.5-SNAPSHOT]
          ... 32 common frames omitted
Caused by: java.lang.ClassCastException: org.springframework.orm.hibernate4.SessionHolder cannot be cast to org.springframework.orm.hibernate3.SessionHolder
          at org.springframework.orm.hibernate3.SessionFactoryUtils.doGetSession(SessionFactoryUtils.java:289) ~[spring-orm-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.orm.hibernate3.SessionFactoryUtils.doGetSession(SessionFactoryUtils.java:258) ~[spring-orm-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.jboss.seam.ioc.spring.SeamManagedSessionFactoryBean$SeamManagedSessionFactoryHandler.invoke(SeamManagedSessionFactoryBean.java:178) ~[jboss-seam-ioc-2.3.0.Beta1.jar:2.3.0.Beta1]
          at $Proxy52.getCurrentSession(Unknown Source) ~[na:na]
          at com.testArchi.sandbox.dao.socle.hibernate.AbstractGenericsHibernateDAO.getCurrentSession(AbstractGenericsHibernateDAO.java:347) ~[AbstractGenericsHibernateDAO.class:na]
          at com.testArchi.sandbox.dao.socle.hibernate.AbstractGenericsHibernateDAO.findAll(AbstractGenericsHibernateDAO.java:60) ~[AbstractGenericsHibernateDAO.class:na]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_24]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_24]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_24]
          at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_24]
          at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at $Proxy53.findAll(Unknown Source) ~[na:na]
          at com.testArchi.sandbox.service.socle.entity.AbstractGenericsEntityService.findAll(AbstractGenericsEntityService.java:96) ~[AbstractGenericsEntityService.class:na]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_24]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_24]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_24]
          at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_24]
          at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
          at $Proxy56.findAll(Unknown Source) ~[na:na]
          at com.testArchi.sandbox.web.socle.AbstractControlerList.initialize(AbstractControlerList.java:33) ~[AbstractControlerList.class:na]
          at com.testArchi.sandbox.web.HomeController.initialize(HomeController.java:41) ~[HomeController.class:na]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_24]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_24]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_24]
          at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_24]
          at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:56) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at com.testArchi.sandbox.web.HomeController_$$_javassist_seam_2.initialize(HomeController_$$_javassist_seam_2.java) ~[HomeController.class:na]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_24]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_24]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_24]
          at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_24]
          at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.Component.callComponentMethod(Component.java:2275) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.Component.callCreateMethod(Component.java:2198) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          at org.jboss.seam.Component.newInstance(Component.java:2158) ~[jboss-seam-2.3.0.Beta1.jar:2.3.0.Beta1]
          ... 62 common frames omitted

 

For more detail :

 

Component.xml contains :

 

 

        <persistence:managed-persistence-context name="entityManagerManaged"
                                                            entity-manager-factory="#{springEntityManagerFactory}"
                                                            auto-create="true"/>

          <factory name="hibernateSession"
                              scope="STATELESS"
                              auto-create="true"
                              value="#{entityManagerManaged.delegate}" />

          <spring:spring-transaction platform-transaction-manager="#{transactionManager}" />

 

 

ApplicationContext.XML contains :

 

          <!-- Bean définisant le defaultDataSource -->
          <bean id="defaultDatasource" class="org.springframework.jndi.JndiObjectFactoryBean">
                    <property name="jndiName">
                              <value>java:comp/env/jdbc/sandbox_defaultDatasource</value>
                    </property>
          </bean>

          <!-- Configuration de l'EntityManager Factory -->
          <bean id="springEntityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
                    <property name="persistenceUnitName" value="persistenceUnitSandbox" />
                    <property name="persistenceXmlLocation" value="classpath:com/testArchi/sandbox/jpa/persistenceUnitSandbox.xml" />
                    <property name="dataSource" ref="defaultDatasource" />
                    <property name="jpaVendorAdapter">
                              <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" />
                    </property>
          </bean>

          <!-- Configuration de la Seam Managed Session Factory = SMSF -->
          <bean id="seamSessionFactory" class="org.jboss.seam.ioc.spring.SeamManagedSessionFactoryBean">
                    <property name="sessionName" value="hibernateSession" />
          </bean>

          <!-- Transaction manager Hibernate (et non JPA) pour y injecter la SMSF -->
          <bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
                    <property name="sessionFactory" ref="seamSessionFactory" />
          </bean>

          <!-- Gestion des annotations de transaction Spring -->
          <tx:annotation-driven transaction-manager="transactionManager" />

          <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/>

 

 

I search in "org.jboss.seam.ioc.spring.SeamManagedSessionFactoryBean" at line 178 and I found a dependency to "org.springframework.orm.hibernate3.SessionFactoryUtils". Unfortunately, Spring use "org.springframework.orm.hibernate4.SessionFactoryUtils" to manage Hibernate api 4.x. And I can't return to hibernate 3.x api because Seam 2.3 work only with hibernate api 4.x.

 

If this bad dependency is a bug , a seam team member could add this bug to JIRA to correct it in futur BETA 2 ??

 

If I missed a step in my SEAM 2.3 integration, anybody could help me and show me what is wrong ??

 

Stephane.