java - WebServiceException : Class do not have a property of the name debug -
i generated java proxy classes using 'xjc'. getting "do not have property of name debug" webservice exception when deploy application production environment. however, in staging environment works fine. referring same web-service both environments, endpoint url & wsdl same.
any appreciated.
built on java 6, deployed on jboss 6.x
here client code using call webservices.
==========client code===========
processaccountsiteunitwsd service = new processaccountsiteunitwsd(); final processaccountsiteunitwsdporttype port = service.getgesfdcpwaccountsiteunitserviceswebservicesproviderprocessaccountsiteunitwsdport(); final bindingprovider hb = ((bindingprovider) port); hb.getrequestcontext().put(bindingprovider.endpoint_address_property, resources.getstring("endpoint_address")); hb.getrequestcontext().put(bindingprovider.username_property, resources.getstring("username")); hb.getrequestcontext().put(bindingprovider.password_property, resources.getstring("password")); accountsiteunitrequest req = new accountsiteunitrequest(); req.setcontactsso(userid); accountsiteunitresponse resp = port.processaccountsiteunit(req,""); if(resp != null){ //process response }
=============error log===============
javax.xml.ws.webserviceexception: class com.abc.xyz.abcxyz.ge_sfdc_pw_accountsiteunit_services.webservices.provider.processaccountsiteunit_wsd.processaccountsiteunit not have property of name debug @ com.sun.xml.ws.client.sei.bodybuilder$doclit.<init>(bodybuilder.java:245) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.client.sei.stubhandler.<init>(stubhandler.java:132) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.db.databindingimpl.initstubhandlers(databindingimpl.java:141) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.db.databindingimpl.<init>(databindingimpl.java:104) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.db.databindingproviderimpl.create(databindingproviderimpl.java:74) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.db.databindingproviderimpl.create(databindingproviderimpl.java:58) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.db.databindingfactoryimpl.createruntime(databindingfactoryimpl.java:127) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.client.wsservicedelegate.buildruntimemodel(wsservicedelegate.java:863) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.client.wsservicedelegate.createseiportinfo(wsservicedelegate.java:879) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.client.wsservicedelegate.addsei(wsservicedelegate.java:843) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.client.wsservicedelegate.getport(wsservicedelegate.java:446) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.client.wsservicedelegate.getport(wsservicedelegate.java:415) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.client.wsservicedelegate.getport(wsservicedelegate.java:397) [jaxws-rt.jar:2.2.8] @ javax.xml.ws.service.getport(service.java:99) [jboss-jaxws-api_2.2_spec-2.0.1.final-redhat-2.jar:2.0.1.final-redhat-2] @ com.abc.xyz.abcxyz.ge_sfdc_pw_accountsiteunit_services.webservices.provider.processaccountsiteunit_wsd.processaccountsiteunitwsd.getgesfdcpwaccountsiteunitserviceswebservicesproviderprocessaccountsiteunitwsdport(processaccountsiteunitwsd.java:72) [classes:] @ com.abc.xyz.abcxyz.repairreports.controller.repairreportscontroller.getserialnumberlist(repairreportscontroller.java:293) [classes:] @ com.abc.xyz.abcxyz.repairreports.controller.repairreportscontroller.loadreportslist(repairreportscontroller.java:84) [classes:] @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) [rt.jar:1.7.0_03] @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) [rt.jar:1.7.0_03] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) [rt.jar:1.7.0_03] @ java.lang.reflect.method.invoke(method.java:601) [rt.jar:1.7.0_03] @ org.springframework.web.method.support.invocablehandlermethod.invoke(invocablehandlermethod.java:213) [spring-web-3.1.1.release.jar:3.1.1.release] @ org.springframework.web.method.support.invocablehandlermethod.invokeforrequest(invocablehandlermethod.java:126) [spring-web-3.1.1.release.jar:3.1.1.release] @ org.springframework.web.servlet.mvc.method.annotation.servletinvocablehandlermethod.invokeandhandle(servletinvocablehandlermethod.java:96) [org.springframework.web.servlet-3.1.1.release.jar:3.1.1.release] @ org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter.invokehandlermethod(requestmappinghandleradapter.java:617) [org.springframework.web.servlet-3.1.1.release.jar:3.1.1.release] @ org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter.handleinternal(requestmappinghandleradapter.java:578) [org.springframework.web.servlet-3.1.1.release.jar:3.1.1.release] @ org.springframework.web.servlet.mvc.method.abstracthandlermethodadapter.handle(abstracthandlermethodadapter.java:80) [org.springframework.web.servlet-3.1.1.release.jar:3.1.1.release] @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:923) [org.springframework.web.servlet-3.1.1.release.jar:3.1.1.release] @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:852) [org.springframework.web.servlet-3.1.1.release.jar:3.1.1.release] @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:882) [org.springframework.web.servlet-3.1.1.release.jar:3.1.1.release] @ org.springframework.web.servlet.frameworkservlet.doget(frameworkservlet.java:778) [org.springframework.web.servlet-3.1.1.release.jar:3.1.1.release] @ javax.servlet.http.httpservlet.service(httpservlet.java:734) [jboss-servlet-api_3.0_spec-1.0.2.final-redhat-1.jar:1.0.2.final-redhat-1] @ javax.servlet.http.httpservlet.service(httpservlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.final-redhat-1.jar:1.0.2.final-redhat-1] @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:295) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:214) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:230) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:149) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ org.jboss.modcluster.container.jbossweb.jbosswebcontext$requestlistenervalve.event(jbosswebcontext.java:91) @ org.jboss.modcluster.container.jbossweb.jbosswebcontext$requestlistenervalve.invoke(jbosswebcontext.java:72) @ org.jboss.as.web.security.securitycontextassociationvalve.invoke(securitycontextassociationvalve.java:169) [jboss-as-web-7.2.1.final-redhat-10.jar:7.2.1.final-redhat-10] @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:145) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:97) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:102) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:336) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ org.apache.coyote.http11.http11processor.process(http11processor.java:856) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:653) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:920) [jbossweb-7.2.2.final-redhat-1.jar:7.2.2.final-redhat-1] @ java.lang.thread.run(thread.java:722) [rt.jar:1.7.0_03] caused by: javax.xml.bind.jaxbexception: debug not valid property on class com.abc.xyz.abcxyz.ge_sfdc_pw_accountsiteunit_services.webservices.provider.processaccountsiteunit_wsd.processaccountsiteunit @ com.sun.xml.bind.v2.runtime.jaxbcontextimpl.getelementpropertyaccessor(jaxbcontextimpl.java:985) [jaxb-impl.jar:2.2.7] @ com.sun.xml.ws.db.glassfish.jaxbricontextwrapper.getelementpropertyaccessor(jaxbricontextwrapper.java:120) [jaxws-rt.jar:2.2.8] @ com.sun.xml.ws.client.sei.bodybuilder$doclit.<init>(bodybuilder.java:242) [jaxws-rt.jar:2.2.8] =====================================
i faced issue few months , turns out using xjc generating java proxy classes issue. not sure reason was, recommend generate java proxy classes using apache axis orcxf solved issue me irrespective of environment.
Comments
Post a Comment