java - type mismatch between read and write methods wildfly 9.0.0 -
i'm getting error when run application in eclipse wildfly 9.0.0.final, wildfly 8.0.0.final it's working fine, it's same code , configuration.
i'm working hibernate.
i copy server logs
11:16:01,536 error [org.jboss.msc.service.fail] (serverservice thread pool -- 64) msc000001: failed start service jboss.undertow.deployment.default-server.default-host./ws: org.jboss.msc.service.startexception in service jboss.undertow.deployment.default-server.default-host./ws: java.lang.runtimeexception: org.springframework.beans.factory.beancreationexception: error creating bean name 'cfilter': injection of autowired dependencies failed; nested exception org.springframework.beans.factory.beancreationexception: not autowire field: com.service.residentservice com.security.customfilter.residentservice; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in "/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods @ org.wildfly.extension.undertow.deployment.undertowdeploymentservice$1.run(undertowdeploymentservice.java:85) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) @ org.jboss.threads.jbossthread.run(jbossthread.java:320) caused by: java.lang.runtimeexception: org.springframework.beans.factory.beancreationexception: error creating bean name 'cfilter': injection of autowired dependencies failed; nested exception org.springframework.beans.factory.beancreationexception: not autowire field: com.service.residentservice com.security.customfilter.residentservice; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in "/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods @ io.undertow.servlet.core.deploymentmanagerimpl.deploy(deploymentmanagerimpl.java:224) @ org.wildfly.extension.undertow.deployment.undertowdeploymentservice.startcontext(undertowdeploymentservice.java:100) @ org.wildfly.extension.undertow.deployment.undertowdeploymentservice$1.run(undertowdeploymentservice.java:82) ... 6 more caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'cfilter': injection of autowired dependencies failed; nested exception org.springframework.beans.factory.beancreationexception: not autowire field: com.service.residentservice com.security.customfilter.residentservice; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in "/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.postprocesspropertyvalues(autowiredannotationbeanpostprocessor.java:287) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1106) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:517) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:456) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:294) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:225) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:291) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:193) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:585) @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:913) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:464) @ com.profile.intializer.applicationcontextinitializerforprofile.initialize(applicationcontextinitializerforprofile.java:41) @ org.springframework.web.context.contextloader.customizecontext(contextloader.java:499) @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:384) @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:284) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:111) @ io.undertow.servlet.core.applicationlisteners.contextinitialized(applicationlisteners.java:173) @ io.undertow.servlet.core.deploymentmanagerimpl.deploy(deploymentmanagerimpl.java:195) ... 8 more caused by: org.springframework.beans.factory.beancreationexception: not autowire field: com.service.residentservice com.security.customfilter.residentservice; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in "/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredfieldelement.inject(autowiredannotationbeanpostprocessor.java:506) @ org.springframework.beans.factory.annotation.injectionmetadata.inject(injectionmetadata.java:87) @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.postprocesspropertyvalues(autowiredannotationbeanpostprocessor.java:284) ... 25 more caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in "/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:527) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:456) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:294) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:225) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:291) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:193) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.findautowirecandidates(defaultlistablebeanfactory.java:848) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.doresolvedependency(defaultlistablebeanfactory.java:790) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.resolvedependency(defaultlistablebeanfactory.java:707) @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredfieldelement.inject(autowiredannotationbeanpostprocessor.java:478) ... 27 more caused by: org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods @ org.springframework.beans.cachedintrospectionresults.<init>(cachedintrospectionresults.java:262) @ org.springframework.beans.cachedintrospectionresults.forclass(cachedintrospectionresults.java:149) @ org.springframework.beans.beanwrapperimpl.getcachedintrospectionresults(beanwrapperimpl.java:324) @ org.springframework.beans.beanwrapperimpl.getpropertydescriptors(beanwrapperimpl.java:331) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.filterpropertydescriptorsfordependencycheck(abstractautowirecapablebeanfactory.java:1242) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1101) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:517) ... 36 more caused by: java.beans.introspectionexception: type mismatch between read , write methods @ java.beans.propertydescriptor.findpropertytype(propertydescriptor.java:661) @ java.beans.propertydescriptor.setreadmethod(propertydescriptor.java:257) @ org.springframework.beans.extendedbeaninfo.addorupdatepropertydescriptor(extendedbeaninfo.java:282) @ org.springframework.beans.extendedbeaninfo.addorupdatepropertydescriptor(extendedbeaninfo.java:180) @ org.springframework.beans.extendedbeaninfo.<init>(extendedbeaninfo.java:171) @ org.springframework.beans.cachedintrospectionresults.<init>(cachedintrospectionresults.java:224) ... 42 more 11:16:01,552 error [org.jboss.as.controller.management-operation] (controller boot thread) wflyctl0013: operation ("deploy") failed - address: ([("deployment" => "ws.war")]) - failure description: {"wflyctl0080: failed services" => {"jboss.undertow.deployment.default-server.default-host./ws" => "org.jboss.msc.service.startexception in service jboss.undertow.deployment.default-server.default-host./ws: java.lang.runtimeexception: org.springframework.beans.factory.beancreationexception: error creating bean name 'cfilter': injection of autowired dependencies failed; nested exception org.springframework.beans.factory.beancreationexception: not autowire field: com.service.residentservice com.security.customfilter.residentservice; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in \"/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class\": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods caused by: java.lang.runtimeexception: org.springframework.beans.factory.beancreationexception: error creating bean name 'cfilter': injection of autowired dependencies failed; nested exception org.springframework.beans.factory.beancreationexception: not autowire field: com.service.residentservice com.security.customfilter.residentservice; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in \"/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class\": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'cfilter': injection of autowired dependencies failed; nested exception org.springframework.beans.factory.beancreationexception: not autowire field: com.service.residentservice com.security.customfilter.residentservice; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in \"/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class\": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods caused by: org.springframework.beans.factory.beancreationexception: not autowire field: com.service.residentservice com.security.customfilter.residentservice; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in \"/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class\": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in \"/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class\": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods caused by: org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods caused by: java.beans.introspectionexception: type mismatch between read , write methods"}} 11:16:01,619 info [org.jboss.as.server] (serverservice thread pool -- 37) wflysrv0010: deployed "ws.war" (runtime-name : "ws.war") 11:16:01,620 info [org.jboss.as.server] (serverservice thread pool -- 37) wflysrv0010: deployed "ui-main.war" (runtime-name : "ui-main.war") 11:16:01,668 info [org.jboss.as.controller] (controller boot thread) wflyctl0183: service status report wflyctl0186: services failed start: service jboss.undertow.deployment.default-server.default-host./ws: org.jboss.msc.service.startexception in service jboss.undertow.deployment.default-server.default-host./ws: java.lang.runtimeexception: org.springframework.beans.factory.beancreationexception: error creating bean name 'cfilter': injection of autowired dependencies failed; nested exception org.springframework.beans.factory.beancreationexception: not autowire field: com.service.residentservice com.security.customfilter.residentservice; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'residentservice' defined in "/c:/program files/wildfly/wildfly-9.0.0.final/standalone/deployments/ws.war/web-inf/classes/com/service/residentserviceimpl.class": initialization of bean failed; nested exception org.springframework.beans.fatalbeanexception: failed obtain beaninfo class [com.service.residentserviceimpl]; nested exception java.beans.introspectionexception: type mismatch between read , write methods 11:16:02,124 info [org.jboss.as] (controller boot thread) wflysrv0060: http management interface listening on http://127.0.0.1:9990/management 11:16:02,125 info [org.jboss.as] (controller boot thread) wflysrv0051: admin console listening on http://127.0.0.1:9990 11:16:02,125 error [org.jboss.as] (controller boot thread) wflysrv0026: wildfly full 9.0.0.final (wildfly core 1.0.0.final) started (with errors) in 21986ms - started 520 of 708 services (2 services failed or missing dependencies, 246 services lazy, passive or on-demand) 11:16:02,188 info [org.jboss.as.connector.deployers.jdbc] (msc service thread 1-3) wflyjca0019: stopped driver service driver-name = ws.war_com.mysql.jdbc.driver_5_1 11:16:02,442 info [org.jboss.as.server.deployment] (msc service thread 1-8) wflysrv0028: stopped deployment ws.war (runtime-name: ws.war) in 266ms 11:16:02,649 info [org.jboss.as.server] (deploymentscanner-threads - 1) wflysrv0009: undeployed "ws.war" (runtime-name: "ws.war") 11:16:02,653 info [org.jboss.as.controller] (deploymentscanner-threads - 1) wflyctl0183: service status report wflyctl0184: new missing/unsatisfied dependencies: service jboss.deployment.unit."ws.war".component."com.sun.faces.config.configurelistener".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."javax.faces.webapp.facettag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."javax.servlet.jsp.jstl.tlv.permittedtaglibstlv".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."javax.servlet.jsp.jstl.tlv.scriptfreetlv".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.orm.hibernate4.support.opensessioninviewfilter".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.security.web.session.httpsessioneventpublisher".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.context.contextloaderlistener".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.filter.delegatingfilterproxy".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.filter.hiddenhttpmethodfilter".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.filter.httpputformcontentfilter".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.multipart.support.multipartfilter".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.dispatcherservlet".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.binderrorstag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.bindtag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.escapebodytag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.evaltag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.htmlescapetag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.messagetag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.nestedpathtag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.paramtag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.themetag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.transformtag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.urltag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.buttontag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.checkboxtag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.checkboxestag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.errorstag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.formtag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.hiddeninputtag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.inputtag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.labeltag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.optiontag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.optionstag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.passwordinputtag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.radiobuttontag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.radiobuttonstag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.selecttag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.deployment.unit."ws.war".component."org.springframework.web.servlet.tags.form.textareatag".start (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] service jboss.undertow.deployment.default-server.default-host./ws (missing) dependents: [service jboss.deployment.unit."ws.war".deploymentcompleteservice] wflyctl0186: services failed start: service jboss.undertow.deployment.default-server.default-host./ws
i found 1 solution, wildfly9 (with runtime jdk 1.8) in eclipse throw error
type mismatch between read , write methods
the solution is:
- change runtime wildfly 9 jdk 1.7
- check in project: properties -> project facets -> java = 1.7
- check java compiler jdk 1.7
at moment jdk 8 failing me when try launch wildfly 9
Comments
Post a Comment