[Users] Problème de déploiement de WS avec SOAP

theirman [via Petals Forums] ml-node+s974793n3922463h27 at n3.nabble.com
Thu Apr 19 11:03:23 CEST 2012



Bonjour,

  Je rencontre un problème dans le déploiement d'un WS sur Petals ESB. Une
erreur Java m'est retournée chaque fois que j'appelle l'une ou l'autre des
méthodes du service. J'ai essayé plusieurs fois de reconstruire et
redéployer les SU mais rien n'y fait. Auriez-vous une idée ?

En vous remerciant par avance,
Cordialement
Thierry

*Ce que j'ai fait : *
  - Je dispose d'un webservice (sivolService) fonctionnel testé avec soapUI
  - Dans PetalsStudio, j'ai créé un SU-provide pour mon service, puis un
SU-consume
  - Après un FastExport sur les deux SU, je l'ai installé sur PetalsESB 
(d'abord provide, puis consume)
  - Mon environnement est ainsi prêt
 
*Ce que j'obtiens :*
 - Je récupère via l'interface web
(http://138.102.50.13:8084/petals/services/listServices) l'adresse de mon
wsdl sur Petals
  - je crée un projet soapUI en fournissant ce wsdl
  - j'appelle ensuite ma méthode la plus simple (lireVersionWS) qui me
retourne, dans une chaine, la valeur de l'attribut version et l'erreur
ci-dessous survient (elle survient sur chacune des méthodes appelées)
  - L'erreur : /
      <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>java.lang.NullPointerException</faultstring>
         <detail>
            <Exception>org.apache.axis2.AxisFault:
java.lang.NullPointerException
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:204)
	at
org.ow2.petals.binding.soap.listener.incoming.servlet.SoapServlet.doPost(SoapServlet.java:153)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
	at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: java.lang.NullPointerException
	at
org.ow2.petals.binding.soap.listener.incoming.PetalsDispatchPhase.addAxisOperation(PetalsDispatchPhase.java:173)
	at
org.ow2.petals.binding.soap.listener.incoming.PetalsDispatchPhase.checkPostConditions(PetalsDispatchPhase.java:78)
	at org.apache.axis2.engine.Phase.invoke(Phase.java:334)
	at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
	at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
	... 17 more</Exception>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
/

*La configuration de mon serveur :*
  - OpenJDK6
  - Apache2
  - Tomcat6
  - Eclipse Helios PDT
  - Petals ESB 4.0
  - Petals Studio 1.3.1
  - Petals WebConsole 2.0.4
  - soapUI 4.0.1

*Listartefacts sous petals-cli*
petals-cli> listartefacts
#######################################################
#                   Binding Components                #
#######################################################
Name        : petals-bc-soap
State       : Started
Description : 

Name        : petals-bc-sql
State       : Started
Description : 

Name        : petals-bc-ftp
State       : Started
Description : 

Name        : petals-bc-sftp
State       : Started
Description : 

Name        : petals-bc-mail
State       : Started
Description : 


#######################################################
#                 Service Assemblies                  #
#######################################################
Name : sa-SOAP-sivolService-provide
State : Started
Description : 

--------------------Service Unit-----------------------
Name : su-SOAP-sivolService-provide
State : Started
Description : 

Name : sa-SOAP-TestOraclePortType-consume
State : Started
Description : 

--------------------Service Unit-----------------------
Name : su-SOAP-TestOraclePortType-consume
State : Started
Description : 

Name : sa-SOAP-sivolService-consume
State : Started
Description : 

--------------------Service Unit-----------------------
Name : su-SOAP-sivolService-consume
State : Started
Description : 

Name : sa-SOAP-TestOracleService-provide
State : Started
Description : 

--------------------Service Unit-----------------------
Name : su-SOAP-TestOracleService-provide
State : Started
Description : 


#######################################################
#                   Engine Components                 #
#######################################################
Name        : petals-se-quartz
State       : Started
Description : 

Name        : petals-se-xslt
State       : Started
Description : 

Name        : petals-se-bpel
State       : Started
Description : 

Name        : petals-se-jsr181
State       : Started
Description : 

Name        : petals-se-rmi
State       : Started
Description : 

Name        : petals-se-eip
State       : Started
Description : 

Name        : petals-se-validation
State       : Started
Description : 


#######################################################
#                    Shared Libraries                 #
#######################################################
Name        : petals-sl-xalan-2.7.1-1.0.0
State       : TODO
Description : TODO

Name        : petals-sl-mysql-5.1.10-1.0.0
State       : TODO
Description : TODO

Name        : petals-sl-hsql-1.8.0.10-1.0.0
State       : TODO
Description : TODO



_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://forum.petalslink.com/Probleme-de-deploiement-de-WS-avec-SOAP-tp3922463p3922463.html
To start a new topic under Users (get help, provide help), email ml-node+s974793n2681628h42 at n3.nabble.com
To unsubscribe from Users (get help, provide help), visit http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681628&code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20120419/01a7317b/attachment.htm>


More information about the Users mailing list