• Post Reply Bookmark Topic Watch Topic
  • New Topic

Webservice Axis2 problem in Eclipse  RSS feed

 
sandya thota
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote code in java bean for executing select query and I added every record in java bean and I added that object to ArrayList. I return the ArrayList object and I created webservice in Axis2 for that class. When I was running the webservice I got error. Why I got the error please help me. How to resolve it? Here is the error.


[ERROR] org.apache.axis2.AxisFault: Mapping qname not fond for the package: info.pinfo
java.lang.RuntimeException: org.apache.axis2.AxisFault: Mapping qname not fond for the package: info.pinfo
at org.apache.axis2.databinding.utils.BeanUtil.getPropertyQnameList(BeanUtil.java:264)
at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:72)
at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:993)
at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:831)
at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:71)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:668)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)
at org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:75)
at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:776)
at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:754)
at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:316)
at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:237)
at org.apache.axiom.soap.impl.llom.SOAPBodyImpl.addChild(SOAPBodyImpl.java:231)
at org.apache.axis2.rpc.receivers.RPCUtil.processResponseAsDocLitWrapped(RPCUtil.java:441)
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:155)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.axis2.AxisFault: Mapping qname not fond for the package: info.pinfo
at org.apache.axis2.databinding.utils.BeanUtil.getPropertyQnameList(BeanUtil.java:131)
... 33 more


I wore code like this.


ArrayList list=new ArrayList();

Statement stmt=JDBCUtil.getJdbcConnection().createStatement();
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()){
Payslipbean pbean = new Payslipbean();
pbean.setEmpid(rs.getString(1));
pbean.setPayslip(rs.getString(2));
list.add(pbean);
}
return list;

Why I got the error how to resolve it? please help me. Thank you.
 
Campbell Ritchie
Marshal
Posts: 56576
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Please avoid coloured text; many people find it difficult to read, so I have turned your text all to black.
Please be sure you are posting the exact error message; the spelling errors suggest you may have copied it wrongly. Use copy‑and‑paste.

I don't think we can help without more information. What does it say in the documentation for AxisFault? It is an Exception I am not familiar with. Where is the package info.pinfo? Which line in your code corresponds to the error message?
 
sandya thota
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I run project on Server. I select service option from browser then I selected EmpPaySlip. I selected empPaySlip(empid) method then I run the webservice in Axis2 that time I got the error. Please help me How to resolve it. Thank you very much.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!