Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5957

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException issue while accessing the service

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.6, 1.7.8
    • Fix Version/s: None
    • Component/s: client-api
    • Labels:
    • Flags:
      Important
    • Docs Text:
      Hide
       



       


      2019-04-24 10:25:49,934 INFO tcPTDaemonLogger - axisMniReqObject: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <ModifyNetworkInventoryRequest xmlns:ns5="&quot;http://granite.it.att.com/mni/v2" xmlns:ns2="http://v2.mni.granite.it.att.com/xsd" xmlns:ns4="http://v3.commonheader.cio.att.com/xsd" xmlns:ns3="http://granite.it.att.com/mni/v2">
          <schema_version>RFEB</schema_version>
          <site>
              <actionType>U</actionType>
              <siteType>FST</siteType>
              <name>F 223 AVERY ST NE FST</name>
              <status>Live</status>
              <servingWireCenterCLLI></servingWireCenterCLLI>
              <parentSiteName>F 298 AVERY ST NE PFP</parentSiteName>
              <siteLFACSAddress></siteLFACSAddress>
              <siteCLLI></siteCLLI>
              <latitude></latitude>
              <longitude></longitude>
              <street>F 223 AVERY ST NE FST</street>
              <structureType></structureType>
              <structureValue></structureValue>
              <elevationType></elevationType>
              <elevationValue></elevationValue>
              <unitType></unitType>
              <unitValue></unitValue>
              <city></city>
              <county></county>
              <state>GA</state>
              <postal_Code_1></postal_Code_1>
              <postal_Code_2></postal_Code_2>
              <taperCode>110503</taperCode>
              <comment></comment>
              <matDescription></matDescription>
              <newName></newName>
              <newType></newType>
              <newParentSiteName></newParentSiteName>
              <terminalIndicator></terminalIndicator>
              <sharedSiteIndicator></sharedSiteIndicator>
              <graniteLUId></graniteLUId>
              <graniteID></graniteID>
              <conversionDate></conversionDate>
          </site>
      </ModifyNetworkInventoryRequest >

      2019-04-24 10:25:49,935 INFO tcPTDaemonLogger - method End ....
      2019-04-24 10:25:49,935 INFO tcPTDaemonLogger - Got MNI request objec from MNI request XML!
      2019-04-24 10:25:49,936 INFO tcPTDaemonLogger - MNI Request Object: ModifyNetworkInventoryRequest [association=null, associationSpecified=null, cable=null, cableSpecified=null, equipment=null, equipmentSpecified=null, lag=null, lagSpecified=null, newSite=null, newSiteSpecified=null, path=null, pathSpecified=null, rename=null, renameSpecified=null, schema_version=RFEB, site=Site_T [actionType=U, siteType=FST, name=F 223 AVERY ST NE FST, status=Live, npatta=null, servingWireCenterCLLI=javax.xml.bind.JAXBElement@69b68153, parentSiteName=F 298 AVERY ST NE PFP, street=F 223 AVERY ST NE FST, city=, county=, state=GA, postalCode1=javax.xml.bind.JAXBElement@410dd1b6, postalCode1Specified=null, postalCode2=javax.xml.bind.JAXBElement@6a335ce5, taperCode=110503, newName=javax.xml.bind.JAXBElement@152fdf82, newNameSpecified=null, newType=], siteSpecified=null]
      2019-04-24 10:25:49,941 INFO tcPTDaemonLogger - Invoking MNI service ....org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler@67e180b3
      2019-04-24 10:27:19,975 ERROR tcPTDaemonLogger - WSException
      javax.xml.ws.soap.SOAPFaultException: javax.xml.bind.JAXBException: class com.att.it.granite.mni.v2.ModifyNetworkInventory nor any of its super class is known to this context.
                      at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.createSystemException(MethodMarshallerUtils.java:1326)
                      at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.demarshalFaultResponse(MethodMarshallerUtils.java:1052)
                      at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitWrappedMethodMarshaller.demarshalFaultResponse(DocLitWrappedMethodMarshaller.java:659)
                      at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.getFaultResponse(JAXWSProxyHandler.java:578)
                      at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createResponse(JAXWSProxyHandler.java:520)
                      at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:386)
                      at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:171)
                      at com.sun.proxy.$Proxy12.modifyNetworkInventory(Unknown Source)
                      at com.planet.ls.ws.commun.type.mni.MNIWebServiceInvoker.invokeMNIService(MNIWebServiceInvoker.java:77)
                      at com.planet.ls.ws.commun.sys.tc.ProcessTcWSReqResp.processTcWSReqResp(ProcessTcWSReqResp.java:46)
                      at com.planet.ls.ws.commun.sys.tc.ProcessTcWSReqResp.run(ProcessTcWSReqResp.java:91)
                      at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.xml.bind.JAXBException: class com.att.it.granite.mni.v2.ModifyNetworkInventory nor any of its super class is known to this context.
                      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:593)
                      at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:482)
                      at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323)
                      at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:251)
                      at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:95)
                      at org.apache.axis2.datasource.jaxb.JAXBDSContext$1.run(JAXBDSContext.java:477)
      Show
          2019-04-24 10:25:49,934 INFO tcPTDaemonLogger - axisMniReqObject: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ModifyNetworkInventoryRequest xmlns:ns5="&quot; http://granite.it.att.com/mni/v2 " xmlns:ns2=" http://v2.mni.granite.it.att.com/xsd " xmlns:ns4=" http://v3.commonheader.cio.att.com/xsd " xmlns:ns3=" http://granite.it.att.com/mni/v2 ">     <schema_version>RFEB</schema_version>     <site>         <actionType>U</actionType>         <siteType>FST</siteType>         <name>F 223 AVERY ST NE FST</name>         <status>Live</status>         <servingWireCenterCLLI></servingWireCenterCLLI>         <parentSiteName>F 298 AVERY ST NE PFP</parentSiteName>         <siteLFACSAddress></siteLFACSAddress>         <siteCLLI></siteCLLI>         <latitude></latitude>         <longitude></longitude>         <street>F 223 AVERY ST NE FST</street>         <structureType></structureType>         <structureValue></structureValue>         <elevationType></elevationType>         <elevationValue></elevationValue>         <unitType></unitType>         <unitValue></unitValue>         <city></city>         <county></county>         <state>GA</state>         <postal_Code_1></postal_Code_1>         <postal_Code_2></postal_Code_2>         <taperCode>110503</taperCode>         <comment></comment>         <matDescription></matDescription>         <newName></newName>         <newType></newType>         <newParentSiteName></newParentSiteName>         <terminalIndicator></terminalIndicator>         <sharedSiteIndicator></sharedSiteIndicator>         <graniteLUId></graniteLUId>         <graniteID></graniteID>         <conversionDate></conversionDate>     </site> </ModifyNetworkInventoryRequest > 2019-04-24 10:25:49,935 INFO tcPTDaemonLogger - method End .... 2019-04-24 10:25:49,935 INFO tcPTDaemonLogger - Got MNI request objec from MNI request XML! 2019-04-24 10:25:49,936 INFO tcPTDaemonLogger - MNI Request Object: ModifyNetworkInventoryRequest [association=null, associationSpecified=null, cable=null, cableSpecified=null, equipment=null, equipmentSpecified=null, lag=null, lagSpecified=null, newSite=null, newSiteSpecified=null, path=null, pathSpecified=null, rename=null, renameSpecified=null, schema_version=RFEB, site=Site_T [actionType=U, siteType=FST, name=F 223 AVERY ST NE FST, status=Live, npatta=null, servingWireCenterCLLI=javax.xml.bind.JAXBElement@69b68153, parentSiteName=F 298 AVERY ST NE PFP, street=F 223 AVERY ST NE FST, city=, county=, state=GA, postalCode1=javax.xml.bind.JAXBElement@410dd1b6, postalCode1Specified=null, postalCode2=javax.xml.bind.JAXBElement@6a335ce5, taperCode=110503, newName=javax.xml.bind.JAXBElement@152fdf82, newNameSpecified=null, newType=], siteSpecified=null] 2019-04-24 10:25:49,941 INFO tcPTDaemonLogger - Invoking MNI service ....org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler@67e180b3 2019-04-24 10:27:19,975 ERROR tcPTDaemonLogger - WSException javax.xml.ws.soap.SOAPFaultException: javax.xml.bind.JAXBException: class com.att.it.granite.mni.v2.ModifyNetworkInventory nor any of its super class is known to this context.                 at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.createSystemException(MethodMarshallerUtils.java:1326)                 at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.demarshalFaultResponse(MethodMarshallerUtils.java:1052)                 at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitWrappedMethodMarshaller.demarshalFaultResponse(DocLitWrappedMethodMarshaller.java:659)                 at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.getFaultResponse(JAXWSProxyHandler.java:578)                 at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createResponse(JAXWSProxyHandler.java:520)                 at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:386)                 at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:171)                 at com.sun.proxy.$Proxy12.modifyNetworkInventory(Unknown Source)                 at com.planet.ls.ws.commun.type.mni.MNIWebServiceInvoker.invokeMNIService(MNIWebServiceInvoker.java:77)                 at com.planet.ls.ws.commun.sys.tc.ProcessTcWSReqResp.processTcWSReqResp(ProcessTcWSReqResp.java:46)                 at com.planet.ls.ws.commun.sys.tc.ProcessTcWSReqResp.run(ProcessTcWSReqResp.java:91)                 at java.lang.Thread.run(Thread.java:745) Caused by: javax.xml.bind.JAXBException: class com.att.it.granite.mni.v2.ModifyNetworkInventory nor any of its super class is known to this context.                 at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:593)                 at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:482)                 at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323)                 at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:251)                 at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:95)                 at org.apache.axis2.datasource.jaxb.JAXBDSContext$1.run(JAXBDSContext.java:477)

      Description

      1. Issue Faced:

      •  We are creating a soap client using Axis 2 1.7.6 library and here while hitting the service from our client we are getting below error :
        org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://v2.mni.granite.it.att.com}modifyNetworkInventoryRequest

       

      •  While when we created a client from ws-import and performed the same action we got different error mentioned below:
        javax.xml.ws.soap.SOAPFaultException: javax.xml.bind.JAXBException: class com.att.it.granite.mni.v2.ModifyNetworkInventory nor any of its super class is known to this context.

      2. Analysis done:

      • While doing the analysis we didn't find any missing field or tag .
      • We also checked for all the xmns: urls and end point url which seems to be fine and accessible for machine.
      • When we try the same stub generated xml from soap UI we are not facing the above issue.

      3. Help Required: Analysis of issue and comments if we are missing something. WSDL,both of the stub files and logs are attached.

        Attachments

        1. WSClient_test.zip
          1.02 MB
          Vishal Chawla
        2. Service.zip
          1.45 MB
          Vishal Chawla
        3. MNIservice.zip
          558 kB
          Vishal Chawla
        4. MNIService.wsdl
          57 kB
          Vishal Chawla

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Vishal1234 Vishal Chawla
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 12h
                12h
                Remaining:
                Remaining Estimate - 12h
                12h
                Logged:
                Time Spent - Not Specified
                Not Specified