0 Replies Latest reply on Aug 19, 2009 12:35 AM by Anoop Kumar

    Error: org.jboss.util.NotImplementedException: getTextConten

    Anoop Kumar Newbie

      Hi,

      I was trying to write a SOAP client program using Servlet. When the service method called, I am getting the following error.

      16:05:02,236 ERROR [STDERR] org.jboss.util.NotImplementedException: getTextContent
      16:05:02,237 ERROR [STDERR] at org.jboss.ws.core.soap.NodeImpl.getTextContent(NodeImpl.java:611)
      16:05:02,237 ERROR [STDERR] at org.mobicents.slee.resource.http.LdapSearchServlet.service(LdapSearchServlet.java:85)
      16:05:02,237 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      16:05:02,237 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      16:05:02,238 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      16:05:02,238 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      16:05:02,238 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      16:05:02,238 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      16:05:02,238 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      16:05:02,238 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      16:05:02,239 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      16:05:02,239 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      16:05:02,239 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      16:05:02,239 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      16:05:02,239 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      16:05:02,239 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      16:05:02,240 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      16:05:02,240 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      16:05:02,240 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      16:05:02,240 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      16:05:02,240 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)



      The code I have written in Servelt is



      SOAPMessage responseSM = connection.call(sm, endpoint);
      SOAPPart soapPart = responseSM.getSOAPPart();
      SOAPEnvelope soapEnv = soapPart.getEnvelope();
      SOAPBody soapBody = soapEnv.getBody();
      out.println(soapBody.getFirstChild().getFirstChild().getTextContent());


      I am using the above code to print value of a text node and getting the above exception on runtime.

      I am using JBOSS 4.2.3GA and JDK 1.6.

      Please help me to solve this issue.


      Thanks
      Anoop