0 Replies Latest reply on Dec 14, 2009 1:33 AM by Yulei Chen

    Urgent: erros when invoking web services

    Yulei Chen Newbie

      Hi,

       

      I have successfully deployed juddi onto jboss, but I login to juddi, the server and client get error msg as following:

       

      server's side:

       

      10:49:31,423 INFO  [STDOUT] 2009-12-14 10:49:31,423 [http-127.0.0.1-8086-2] ERRO
      R org.apache.juddi.registry.AbstractService  - Unable to create message factory
      for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl
      10:49:31,439 INFO  [STDOUT] 2009-12-14 10:49:31,439 [http-127.0.0.1-8086-2] ERRO
      R org.apache.juddi.registry.AbstractService  - A serious error has occured while
      assembling the SOAP Fault.
      java.lang.NullPointerException
              at org.apache.juddi.registry.AbstractService.doPost(AbstractService.java
      :315)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:230)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:175)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:179)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:84)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:157)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:262)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:583)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
      6)
              at java.lang.Thread.run(Thread.java:595)
      10:49:31,439 ERROR [[UDDIV2PublishService]] Servlet.service() for servlet UDDIV2
      PublishService threw exception
      java.lang.NullPointerException
              at org.apache.juddi.registry.AbstractService.doPost(AbstractService.java
      :344)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:230)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:175)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:179)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:84)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:157)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:262)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:583)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
      6)
              at java.lang.Thread.run(Thread.java:595)

       

      juddi client's(using jaxr package) side:

       

      2009-12-14 10:49:31 com.sun.xml.messaging.saaj.soap.MessageImpl identifyContentType:
      serious: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message
      javax.xml.registry.JAXRException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
      at com.sun.xml.registry.uddi.RegistryServiceImpl.jaxmSend(Unknown Source)
      at com.sun.xml.registry.uddi.RegistryServiceImpl.send(Unknown Source)
      at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
      at com.sun.xml.registry.uddi.UDDIMapper.getAuthorizationToken(Unknown Source)
      at com.sun.xml.registry.uddi.ConnectionImpl.setCredentials(Unknown Source)
      at main.JAXRClient.setCredentials(JAXRClient.java:342)
      at main.JAXRClient.getThisInstance(JAXRClient.java:54)
      at main.RegistryBrowser.<init>(RegistryBrowser.java:84)
      at main.RegistryBrowser.getInstance(RegistryBrowser.java:71)
      at main.RegistryBrowser.main(RegistryBrowser.java:369)
      Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
      at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:127)
      ... 10 more
      Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
      ... 10 more
      Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
      at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.java:581)
      at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:70)
      at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:374)
      at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:150)
      ... 12 more

      Can anyone help me with this?

       

      Thanks.

       

      Sara