Uploaded image for project: 'Wise'
  1. Wise
  2. WISE-211

Fix conversion between field names and getter methods

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    Description

      WSDL: http://www.webservicex.net/geoipservice.asmx?WSDL

      The generated java bean is:

      @XmlAccessorType(XmlAccessType.FIELD)
      @XmlType(name = "GeoIP", propOrder = {
          "returnCode",
          "ip",
          "returnCodeDetails",
          "countryName",
          "countryCode"
      })
      public class GeoIP {
      
          @XmlElement(name = "ReturnCode")
          protected int returnCode;
          @XmlElement(name = "IP")
          protected String ip;
          @XmlElement(name = "ReturnCodeDetails")
          protected String returnCodeDetails;
          @XmlElement(name = "CountryName")
          protected String countryName;
          @XmlElement(name = "CountryCode")
          protected String countryCode;
      
          /**
           * Gets the value of the returnCode property.
           *
           */
          public int getReturnCode() {
              return returnCode;
          }
      
          /**
           * Sets the value of the returnCode property.
           *
           */
          public void setReturnCode(int value) {
              this.returnCode = value;
          }
      
          /**
           * Gets the value of the ip property.
           *
           * @return
           *     possible object is
           *     {@link String }
           *
           */
          public String getIP() {
              return ip;
          }
      
          /**
           * Sets the value of the ip property.
           *
           * @param value
           *     allowed object is
           *     {@link String }
           *
           */
          public void setIP(String value) {
              this.ip = value;
          }
      
      ...
      

      Exception:

      11:52:39,335 ERROR [org.jboss.wise.gui.ClientConversationBean] (default task-5) : org.jboss.wise.core.exception.WiseRuntimeException: Error calling getter method for field protected java.lang.String net.webservicex.GeoIP.ip
      	at org.jboss.wise.gui.treeElement.WiseTreeElementBuilder.buildFromClass(WiseTreeElementBuilder.java:178) [classes:]
      	at org.jboss.wise.gui.treeElement.WiseTreeElementBuilder.buildTreeFromType(WiseTreeElementBuilder.java:77) [classes:]
      	at org.jboss.wise.gui.treeElement.WiseTreeElementBuilder.buildTreeFromType(WiseTreeElementBuilder.java:61) [classes:]
      	at org.jboss.wise.gui.ClientHelper.convertOperationResultToGui(ClientHelper.java:91) [classes:]
      	at org.jboss.wise.gui.ClientConversationBean.performInvocation(ClientConversationBean.java:158) [classes:]
      	at org.jboss.wise.gui.ClientConversationBean.changePanel(ClientConversationBean.java:218) [classes:]
      	at org.jboss.wise.gui.ClientConversationBean$Proxy$_$$_WeldClientProxy.changePanel(Unknown Source) [classes:]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_17]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_17]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_17]
      	at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_17]
      	at com.sun.el.parser.AstValue.invoke(AstValue.java:275) [javax.el-3.0-b07.jar:3.0-b07]
      	at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304) [javax.el-3.0-b07.jar:3.0-b07]
      	at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40) [weld-core-impl-2.1.1.Final.jar:2013-12-03 09:59]
      	at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50) [weld-core-impl-2.1.1.Final.jar:2013-12-03 09:59]
      	at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40) [weld-core-impl-2.1.1.Final.jar:2013-12-03 09:59]
      	at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50) [weld-core-impl-2.1.1.Final.jar:2013-12-03 09:59]
      	at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.2.4-jbossorg-1.jar:]
      	at org.richfaces.event.MethodExpressionEventListener.processEvent(MethodExpressionEventListener.java:125) [richfaces-components-ui-4.3.2.Final.jar:4.3.2.Final]
      	at org.richfaces.event.MethodExpressionItemChangeListener.processItemChange(MethodExpressionItemChangeListener.java:54) [richfaces-components-ui-4.3.2.Final.jar:4.3.2.Final]
      	at org.richfaces.event.ItemChangeEvent.processListener(ItemChangeEvent.java:101) [richfaces-components-api-4.3.2.Final.jar:4.3.2.Final]
      	at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:813) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
      	at org.richfaces.component.AbstractTogglePanel.broadcast(AbstractTogglePanel.java:560) [richfaces-components-ui-4.3.2.Final.jar:4.3.2.Final]
      	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
      	at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:1256) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
      	at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:78) [jsf-impl-2.2.4-jbossorg-1.jar:]
      	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.2.4-jbossorg-1.jar:]
      	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198) [jsf-impl-2.2.4-jbossorg-1.jar:]
      	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
      	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:70)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:67) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:164) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:654) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
      	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
      Caused by: java.lang.NoSuchMethodException: net.webservicex.GeoIP.getIp()
      	at java.lang.Class.getMethod(Class.java:1624) [rt.jar:1.7.0_17]
      	at org.jboss.wise.gui.treeElement.WiseTreeElementBuilder.buildFromClass(WiseTreeElementBuilder.java:175) [classes:]
      	... 52 more
      

      The procedure described in JAXB D.2 "The Name to Identifier Mapping Algorithm" needs to be properly implemented / used.

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            rhn-support-asoldano Alessio Soldano
            Archiver:
            rhn-support-adandapa Aitik Dandapat

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty