Re: Help Axis don't work under https - First Element must contain the local name, Envelope , but found html

2009-05-08 Thread Cesar de Almeida Correia

My tests with Firefox weren't very reliable. With acces log Valve in Tomcat
was possible find the problem. My test in Firefox was done in same session
that the web application that has the client, and already done login. My
service in web.xml was asking for authorization and the server, after
handshake, presented the login page in html. I withdrew the auth constraint
configuration for the web service and everything worked fine.

Thanks for the help!!

Best Regards,

Cesar.



   
   
   
   Re: Help Axis don't work under https - First Element must contain the
   local name, Envelope , but found html   
   
   
   Cesar de Almeida Correia
   para:   
   axis-user   
   07/05/2009 18:08
   
   
  Responda a axis-user 
   
   
   






Hi,

I had convert my cert to pkcs12 and imported in Firefox. Calling the web
service method via Firefox, using a web http call, all works fine. I had
enable the Tomcat acces log valve. He told me that all POSTS and GET to
call with Firefox. With my client only one POST is showed. I guess that my
client has some misconfiguration. Well, I builded my client under http
enviroment. Actually, should I have to build it under https?

Thanks in advance.
   
   
   


Oculta??o de detalhes inativa deRe: Help Axis don't work under https -
First Element must contain the local name, Envelope , buRe: Help Axis don't
work under https - First Element must contain the local name, Envelope ,
but found html

   
   
   
   
 Re: Help Axis don't work under https - First Element must contain
 the local name, Envelope , but found html 
   
   
   
 Andreas Veithen   
   
 para: 
   
  axis-use
  r
   
  07/05/2009 16:15
   
   
   
 Responda a axis-user  
   
   
   





The error message tells you that the root element of the returned
document is html. In general this means an error page. So you have
to investigate on the server side.

Andreas

On Thu, May 7, 2009 at 20:20, Cesar de Almeida Correia
cesa...@lcc.ufmg.br wrote:
 Hello all,

 I have some services under apache axis. It work fine under http, but with
 https fail. Finished certs configuration in service and client, I am
getting
 the folowing error. Is missing some exta configuration to use https?

 Thanks in advance.

 INFO org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBuilder

Help Axis don't work under https - First Element must contain the local name, Envelope , but found html

2009-05-07 Thread Cesar de Almeida Correia
Hello all,

I have some services under apache axis. It work fine under http, but with
https fail. Finished certs configuration in service and client, I am
getting the folowing error. Is missing some exta configuration to use
https?

Thanks in advance.

INFO org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBuilder
org.apache.axiom.soap.SOAPProcessingException: First Element must contain
the local name, Envelope , but found html
  at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
StAXSOAPModelBuilder.java:251)
  at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:209)
  at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement
(StAXSOAPModelBuilder.java:191)
  at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(
StAXOMBuilder.java:172)
  at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:156)
  at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(
StAXSOAPModelBuilder.java:105)
  at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(
BuilderUtil.java:677.)
  at org.apache.axis2.transport.TransportUtils.createDocumentElement(
TransportUtils.java:182)
  at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
TransportUtils.java:112)
  at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
TransportUtils.java:88)
  at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:353)
  at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:416)
  at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
OutInAxisOperation.java:228)
  at org.apache.axis2.client.OperationClient.execute(
OperationClient.java:163)
  at
br.ufmg.lcc.pcollecta.ws.client.PCollectaServiceStub.getRequestItemStatus(
PCollectaServiceStub.java:2010)
  at
br.ufmg.lcc.pcollecta.ws.client.PCollectaWebServiceClient.getRequestItemStatus
(
PCollectaWebServiceClient.java:266)
  at
br.ufmg.lcc.pcollecta.model.data.PCollectaWSDAO.getRequestItemStatus(
PCollectaWSDAO.java:246)
  at
br.ufmg.lcc.pcollecta.model.EtlProcessBO.waitForHarvestItemApproval(
EtlProcessBO.java:640)
  at br.ufmg.lcc.pcollecta.model.EtlProcessBO.prepareToRun(
EtlProcessBO.java:513)
  at br.ufmg.lcc.pcollecta.model.EtlProcessBO.processEtl(
EtlProcessBO.java:91)
  at br.ufmg.lcc.pcollecta.model.ImportProcessBO.doTransferProcess(
ImportProcessBO.java:866)
  at br.ufmg.lcc.pcollecta.model.ImportProcessBO.runEtls(
ImportProcessBO.java:425)
  at br.ufmg.lcc.pcollecta.model.ImportProcessBO.runProcessScheduled(
ImportProcessBO.java:210)
  at br.ufmg.lcc.pcollecta.model.PcollectaFacade.runProcessScheduled(
PcollectaFacade.java:58)
  at br.ufmg.lcc.pcollecta.controller.ScheduleAgentController
$ScheduleThread$1.run(ScheduleAgentController.java:878)

Re: Help Axis don't work under https - First Element must contain the local name, Envelope , but found html

2009-05-07 Thread Andreas Veithen
The error message tells you that the root element of the returned
document is html. In general this means an error page. So you have
to investigate on the server side.

Andreas

On Thu, May 7, 2009 at 20:20, Cesar de Almeida Correia
cesa...@lcc.ufmg.br wrote:
 Hello all,

 I have some services under apache axis. It work fine under http, but with
 https fail. Finished certs configuration in service and client, I am getting
 the folowing error. Is missing some exta configuration to use https?

 Thanks in advance.

 INFO org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBuilder
 org.apache.axiom.soap.SOAPProcessingException: First Element must contain
 the local name, Envelope , but found html
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:251)
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:209)
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement(StAXSOAPModelBuilder.java:191)
 at
 org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:172)
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:156)
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPModelBuilder.java:105)
 at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:677)
 at
 org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:182)
 at
 org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:112)
 at
 org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:88)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:353)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
 at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
 at
 br.ufmg.lcc.pcollecta.ws.client.PCollectaServiceStub.getRequestItemStatus(PCollectaServiceStub.java:2010)
 at
 br.ufmg.lcc.pcollecta.ws.client.PCollectaWebServiceClient.getRequestItemStatus(PCollectaWebServiceClient.java:266)
 at
 br.ufmg.lcc.pcollecta.model.data.PCollectaWSDAO.getRequestItemStatus(PCollectaWSDAO.java:246)
 at
 br.ufmg.lcc.pcollecta.model.EtlProcessBO.waitForHarvestItemApproval(EtlProcessBO.java:640)
 at
 br.ufmg.lcc.pcollecta.model.EtlProcessBO.prepareToRun(EtlProcessBO.java:513)
 at br.ufmg.lcc.pcollecta.model.EtlProcessBO.processEtl(EtlProcessBO.java:91)
 at
 br.ufmg.lcc.pcollecta.model.ImportProcessBO.doTransferProcess(ImportProcessBO.java:866)
 at
 br.ufmg.lcc.pcollecta.model.ImportProcessBO.runEtls(ImportProcessBO.java:425)
 at
 br.ufmg.lcc.pcollecta.model.ImportProcessBO.runProcessScheduled(ImportProcessBO.java:210)
 at
 br.ufmg.lcc.pcollecta.model.PcollectaFacade.runProcessScheduled(PcollectaFacade.java:58)
 at
 br.ufmg.lcc.pcollecta.controller.ScheduleAgentController$ScheduleThread$1.run(ScheduleAgentController.java:878)



Re: Help Axis don't work under https - First Element must contain the local name, Envelope , but found html

2009-05-07 Thread Cesar de Almeida Correia

Hi,

I had convert my cert to pkcs12 and imported in Firefox. Calling the web
service method via Firefox, using a web http call, all works fine. I had
enable the Tomcat acces log valve. He told me that all POSTS and GET to
call with Firefox. With my client only one POST is showed. I guess that my
client has some misconfiguration. Well, I builded my client under http
enviroment. Actually, should I have to build it under https?

Thanks in advance.








   
   
   
   Re: Help Axis don't work under https - First Element must contain the
   local name, Envelope , but found html   
   
   
   Andreas Veithen 
   para:   
   axis-user   
   07/05/2009 16:15
   
   
  Responda a axis-user 
   
   
   






The error message tells you that the root element of the returned
document is html. In general this means an error page. So you have
to investigate on the server side.

Andreas

On Thu, May 7, 2009 at 20:20, Cesar de Almeida Correia
cesa...@lcc.ufmg.br wrote:
 Hello all,

 I have some services under apache axis. It work fine under http, but with
 https fail. Finished certs configuration in service and client, I am
getting
 the folowing error. Is missing some exta configuration to use https?

 Thanks in advance.

 INFO org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBuilder
 org.apache.axiom.soap.SOAPProcessingException: First Element must contain
 the local name, Envelope , but found html
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode
(StAXSOAPModelBuilder.java:251)
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement
(StAXSOAPModelBuilder.java:209)
 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement
(StAXSOAPModelBuilder.java:191)
 at
 org.apache.axiom.om.impl.builder.StAXOMBuilder.next
(StAXOMBuilder.java:172)
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope
(StAXSOAPModelBuilder.java:156)
 at
 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init
(StAXSOAPModelBuilder.java:105)
 at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder
(BuilderUtil.java:677)
 at
 org.apache.axis2.transport.TransportUtils.createDocumentElement
(TransportUtils.java:182)
 at
 org.apache.axis2.transport.TransportUtils.createSOAPMessage
(TransportUtils.java:112)
 at
 org.apache.axis2.transport.TransportUtils.createSOAPMessage
(TransportUtils.java:88)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse
(OutInAxisOperation.java:353)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send
(OutInAxisOperation.java:416)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl
(OutInAxisOperation.java:228)
 at org.apache.axis2.client.OperationClient.execute
(OperationClient.java:163)
 at
 br.ufmg.lcc.pcollecta.ws.client.PCollectaServiceStub.getRequestItemStatus
(PCollectaServiceStub.java:2010)
 at

br.ufmg.lcc.pcollecta.ws.client.PCollectaWebServiceClient.getRequestItemStatus
(PCollectaWebServiceClient.java:266)
 at
 br.ufmg.lcc.pcollecta.model.data.PCollectaWSDAO.getRequestItemStatus
(PCollectaWSDAO.java:246)
 at
 br.ufmg.lcc.pcollecta.model.EtlProcessBO.waitForHarvestItemApproval
(EtlProcessBO.java:640)
 at
 br.ufmg.lcc.pcollecta.model.EtlProcessBO.prepareToRun
(EtlProcessBO.java:513)
 at br.ufmg.lcc.pcollecta.model.EtlProcessBO.processEtl
(EtlProcessBO.java:91)
 at
 br.ufmg.lcc.pcollecta.model.ImportProcessBO.doTransferProcess
(ImportProcessBO.java:866)
 at
 br.ufmg.lcc.pcollecta.model.ImportProcessBO.runEtls
(ImportProcessBO.java:425)
 at
 br.ufmg.lcc.pcollecta.model.ImportProcessBO.runProcessScheduled
(ImportProcessBO.java:210)
 at
 br.ufmg.lcc.pcollecta.model.PcollectaFacade.runProcessScheduled
(PcollectaFacade.java:58)
 at
 br.ufmg.lcc.pcollecta.controller.ScheduleAgentController$ScheduleThread
$1.run(ScheduleAgentController.java:878)

inline: ecblank.gifinline: graycol.gifinline: pic08046.gif

Problem with 'First Element must contain the local name, Envelope , but found html...'

2008-10-01 Thread Grimm, Markus
Hi all,

I've got the following problem:
I implemented a webservice-operation with an fault-Element
Everytime I call the service-method by client and create a server-side
exception with this fault, I get

org.apache.axiom.soap.SOAPProcessingException: First Element must
contain the local name, Envelope , but found html

Reason for this error -- The server sends a HTML-Request with a Status
500.

It seems that the problem is caused by invoking the exception on
server-side, but what could go wrong?


config:
===
Axis2.1.4.1
Tomcat 6.0.18
Java 1.5


Thanks,
Markus



 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with 'First Element must contain the local name, Envelope , but found html...'

2008-10-01 Thread Nandana Mihindukulasooriya
Hi Markus,
Is there any possibility to check the server logs to see what's
going wrong ? Or if you can check the html page returned from the server.
You can easily do this by sending the message through a TCPMon or any other
proxy.

thanks,
nandana

On Wed, Oct 1, 2008 at 4:54 PM, Grimm, Markus [EMAIL PROTECTED] wrote:

 Hi all,

 I've got the following problem:
 I implemented a webservice-operation with an fault-Element
 Everytime I call the service-method by client and create a server-side
 exception with this fault, I get

 org.apache.axiom.soap.SOAPProcessingException: First Element must
 contain the local name, Envelope , but found html

 Reason for this error -- The server sends a HTML-Request with a Status
 500.

 It seems that the problem is caused by invoking the exception on
 server-side, but what could go wrong?


 config:
 ===
 Axis2.1.4.1
 Tomcat 6.0.18
 Java 1.5


 Thanks,
 Markus








 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Nandana Mihindukulasooriya
WSO2 inc.

http://nandana83.blogspot.com/
http://www.wso2.org


AW: Problem with 'First Element must contain the local name, Envelope , but found html...'

2008-10-01 Thread Grimm, Markus
Hi Nandana,

thanks for your inspirering question. ;-)
thereby I looked at catalina.out and saw the following 

... 32 more
org.apache.axis2.AxisFault: message cannot be null!!
org.apache.axis2.AxisFault: message cannot be null!!

This was the reason of the problem. My Fault-Type has a message-element
and in this special case it was set to 'null'.
Sometimes it's good to talk about problems ... :))

Thanks,
Markus



 



Von: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 1. Oktober 2008 13:33
An: axis-user@ws.apache.org
Betreff: Re: Problem with 'First Element must contain the local name,
Envelope , but found html...'


Hi Markus,
Is there any possibility to check the server logs to see what's
going wrong ? Or if you can check the html page returned from the
server. You can easily do this by sending the message through a TCPMon
or any other proxy. 

thanks,
nandana


On Wed, Oct 1, 2008 at 4:54 PM, Grimm, Markus [EMAIL PROTECTED] wrote:


Hi all,

I've got the following problem:
I implemented a webservice-operation with an fault-Element
Everytime I call the service-method by client and create a
server-side
exception with this fault, I get

org.apache.axiom.soap.SOAPProcessingException: First Element
must
contain the local name, Envelope , but found html

Reason for this error -- The server sends a HTML-Request with a
Status
500.

It seems that the problem is caused by invoking the exception on
server-side, but what could go wrong?


config:
===
Axis2.1.4.1
Tomcat 6.0.18
Java 1.5


Thanks,
Markus









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-- 
Nandana Mihindukulasooriya  
WSO2 inc.

http://nandana83.blogspot.com/
http://www.wso2.org


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



First Element must contain the local name, Envelope

2008-07-02 Thread zvika

 Hi All,

we have ws axis2 client that execute ws methods on iis server , it work fine
usually but some how we get an AxisFault Exception :

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:81)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
at
com.orbograph.www.orboservice.OrboServiceStub.Execute(OrboServiceStub.java:386)
at JSereno.OrboServiceProxy._execute(OrboServiceProxy.java:711)
at JSereno.OrboServiceProxy.submit(OrboServiceProxy.java:554)
... 9 more
Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element must
contain the local name, Envelope
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:221)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:179)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:135)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:163)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPModelBuilder.java:111)
at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:142)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:77)
... 14 more

the first question is , if the exception is thrown before or after the
calling the ws method 
the second one what cause this exception to be thrown 

Thanks Zvika.
-- 
View this message in context: 
http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-tp18243823p18243823.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First Element must contain the local name, Envelope

2008-07-02 Thread keith chapman
You can have a look at [1] as a guide to setting up TCP Monitor in IDEA or
Eclipse.

[1]
http://www.keith-chapman.org/2008/07/using-tcp-monitor-to-debug-web-service.html

Thanks,
Keith.

On Thu, Jul 3, 2008 at 12:06 AM, keith chapman [EMAIL PROTECTED]
wrote:

 This exception is thrown when trying to build the SOAP envelope from the
 response. The server is expecting a SOAP response but it receives something
 else (That does not have a SOAP envelope). Can you run your request through
 TCPMonitor and capture the messages. This will help figure out whats going
 on.

 Thanks,
 Keith.


 On Wed, Jul 2, 2008 at 11:54 PM, zvika [EMAIL PROTECTED] wrote:


  Hi All,

 we have ws axis2 client that execute ws methods on iis server , it work
 fine
 usually but some how we get an AxisFault Exception :

 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope
at

 org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:81)
at

 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356)
at

 org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
at

 com.orbograph.www.orboservice.OrboServiceStub.Execute(OrboServiceStub.java:386)
at JSereno.OrboServiceProxy._execute(OrboServiceProxy.java:711)
at JSereno.OrboServiceProxy.submit(OrboServiceProxy.java:554)
... 9 more
 Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
 must
 contain the local name, Envelope
at

 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:221)
at

 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:179)
at

 org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:135)
at

 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:163)
at

 org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPModelBuilder.java:111)
at
 org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474)
at

 org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:142)
at

 org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:77)
... 14 more

 the first question is , if the exception is thrown before or after the
 calling the ws method
 the second one what cause this exception to be thrown

 Thanks Zvika.
 --
 View this message in context:
 http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-tp18243823p18243823.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Keith Chapman
 Senior Software Engineer
 WSO2 Inc.
 Oxygenating the Web Service Platform.
 http://wso2.org/

 blog: http://www.keith-chapman.org




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


[Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-07-09 Thread Raghu Upadhyayula
Hi,

 

I'm using Axis2 1.2 version.  My webservices are working
fine on my desktop, but when I deploy it into our development server
(which is a Linux machine  App. Server is JBoss), the application was
deployed correctly, but when I try to access those webservices from my
desktop I'm getting the following error.

 

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

First Element must contain the local name, Envelope

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

at
com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

at
com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
must contain the local name, Envelope

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

... 6 more



I've tried to get the SOAP Request  Responses and here are
those (I'm getting a NullPointerException in AxisServlet.java).

 

Login SOAP Request

 

POST /webservices/services/ResponsysWSService HTTP/1.1

Content-Type: text/xml; charset=UTF-8

SOAPAction: 

User-Agent: Axis2

Host: dev-orion.corp.responsys.com:1234

Transfer-Encoding: chunked

 

119

?xml version='1.0' encoding='UTF-8'?

soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

soapenv:Body

ns1:login xmlns:ns1=urn:ws.rsys.com

ns1:usernameraghu/ns1:username

ns1:passwordraghu/ns1:password

/ns1:login

/soapenv:Body

/soapenv:Envelope

0

 

Login SOAP Response

 

HTTP/1.1 500 Internal Server Error

Server: Apache-Coyote/1.1

Content-Type: text/html;charset=utf-8

Content-Length: 1453

Date: Mon, 25 Jun 2007 18:06:51 GMT

Connection: close

 

html

head

titleJBossWeb/2.0.0.GA - Error report/title

style

!--

H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;} 

H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;} 

H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:14px;} 

BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;
} 

B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;} 

P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s
ize:12px;}

A {color : black;}A.name {color : black;}HR {color :
#525D76;}

--

/style

/head

body

h1HTTP Status 500 - /h1

HR size=1 noshade=noshade

pbtype/b Exception report/p

pbmessage/b u/u/p

p

bdescription/b 

uThe server encountered an internal error () that
prevented it from fulfilling this request./u

/p

p

bexception/b

pre

java.lang.NullPointerException

 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

/pre

/p

p

bnote/b 

uThe full stack trace of the root cause is available in the
JBossWeb/2.0.0.GA logs./u

/p

HR size=1 noshade=noshade

h3JBossWeb/2.0.0.GA/h3

/body

/html

 

Could anyone let me know how I can debug this issue?

 

Thanks

Raghu



RE: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-07-02 Thread Raghu Upadhyayula
Hi Dims,

Have you got a change to take a look at this issue, I've
attached the log file to the JIRA.  I'm kind of stuck and not able to
proceed further without resolving this issue.

Thanks
Raghu

-Original Message-
From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 29, 2007 2:52 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

Hi Dims,

I've attached the log file to the JIRA (AXIS2-2352), Can you
please take a look at it and see if you can find anything related to
this issue or if you need more info from me.

Thanks
Raghu

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 11:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

Raghu,

I've reviewed the code in question..need more info. Can you switch on
log4j based logging and upload the log in a JIRA? You have to edit
commons-logging.properties and log4j.properties and put them in
WEB-INF/classes and then hit the server with your client again.

thanks,
dims

On 6/27/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:




 Hi,



 Has anyone got this issue?  I need a resolution as our
 development is not working because of this AxisFault.



 Just to recap the issue



 When I deploy my webservices on my localhost (desktop) and
test
 it using a java client, it is working fine.



 But when the same webservices project is built  deployed
on our
 development server and tested using java client, I'm getting the below
 exception.



 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 First Element must contain the local name, Envelope

 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

 at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

 at

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

 at

com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

 at

com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

 Caused by: org.apache.axiom.soap.SOAPProcessingException:
 First Element must contain the local name, Envelope

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

 at

org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

 at

org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

 ... 6 more



 I've also specified the SOAP Request  Response to  from
this
 server in the below email for reference.



 PS: I'm using Axis2 1.2, deploying the application in
JBoss on a
 Linux machine.



 Thanks

 Raghu

  


 From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 25, 2007 11:29 AM

  To: axis-user@ws.apache.org; [EMAIL PROTECTED]
  Subject: RE: [Axis2] org.apache.axis2.AxisFault: First Element must
contain
 the local name, Envelope




 Hi Dims,



   I've tried to get the request  response SOAP messages for this
 request.  Here is the request  response for this.



   Any idea why I'm getting a NPE in AxisServlet.





 Dev-Orion Login SOAP Request

 POST /webservices/services/ResponsysWSService HTTP/1.1

 Content-Type: text/xml; charset=UTF-8

 SOAPAction: 

 User-Agent: Axis2

 Host: dev-orion.corp.responsys.com:1234

 Transfer-Encoding: chunked



 119

 ?xml version='1.0' encoding='UTF-8'?

 soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

 soapenv:Body

 ns1:login xmlns:ns1=urn:ws.rsys.com

 ns1:usernameraghu/ns1:username

 ns1:passwordraghu/ns1:password

 /ns1:login

 /soapenv:Body

 /soapenv:Envelope

 0



 Dev-Orion Login SOAP Response

 HTTP/1.1 500 Internal Server Error

 Server: Apache-Coyote/1.1

 Content-Type: text

RE: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-29 Thread Raghu Upadhyayula
Hi Dims,

I've attached the log file to the JIRA (AXIS2-2352), Can you
please take a look at it and see if you can find anything related to
this issue or if you need more info from me.

Thanks
Raghu

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 11:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

Raghu,

I've reviewed the code in question..need more info. Can you switch on
log4j based logging and upload the log in a JIRA? You have to edit
commons-logging.properties and log4j.properties and put them in
WEB-INF/classes and then hit the server with your client again.

thanks,
dims

On 6/27/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:




 Hi,



 Has anyone got this issue?  I need a resolution as our
 development is not working because of this AxisFault.



 Just to recap the issue



 When I deploy my webservices on my localhost (desktop) and
test
 it using a java client, it is working fine.



 But when the same webservices project is built  deployed
on our
 development server and tested using java client, I'm getting the below
 exception.



 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 First Element must contain the local name, Envelope

 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

 at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

 at

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

 at

com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

 at

com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

 Caused by: org.apache.axiom.soap.SOAPProcessingException:
 First Element must contain the local name, Envelope

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

 at

org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

 at

org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

 ... 6 more



 I've also specified the SOAP Request  Response to  from
this
 server in the below email for reference.



 PS: I'm using Axis2 1.2, deploying the application in
JBoss on a
 Linux machine.



 Thanks

 Raghu

  


 From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 25, 2007 11:29 AM

  To: axis-user@ws.apache.org; [EMAIL PROTECTED]
  Subject: RE: [Axis2] org.apache.axis2.AxisFault: First Element must
contain
 the local name, Envelope




 Hi Dims,



   I've tried to get the request  response SOAP messages for this
 request.  Here is the request  response for this.



   Any idea why I'm getting a NPE in AxisServlet.





 Dev-Orion Login SOAP Request

 POST /webservices/services/ResponsysWSService HTTP/1.1

 Content-Type: text/xml; charset=UTF-8

 SOAPAction: 

 User-Agent: Axis2

 Host: dev-orion.corp.responsys.com:1234

 Transfer-Encoding: chunked



 119

 ?xml version='1.0' encoding='UTF-8'?

 soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

 soapenv:Body

 ns1:login xmlns:ns1=urn:ws.rsys.com

 ns1:usernameraghu/ns1:username

 ns1:passwordraghu/ns1:password

 /ns1:login

 /soapenv:Body

 /soapenv:Envelope

 0



 Dev-Orion Login SOAP Response

 HTTP/1.1 500 Internal Server Error

 Server: Apache-Coyote/1.1

 Content-Type: text/html;charset=utf-8

 Content-Length: 1453

 Date: Mon, 25 Jun 2007 18:06:51 GMT

 Connection: close



 html

 head

 titleJBossWeb/2.0.0.GA - Error report/title

 style

 !--

 H1

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;}

 H2

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;}

 H3

{font-family:Tahoma

Re: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-27 Thread Davanum Srinivas

Raghu,

I've reviewed the code in question..need more info. Can you switch on
log4j based logging and upload the log in a JIRA? You have to edit
commons-logging.properties and log4j.properties and put them in
WEB-INF/classes and then hit the server with your client again.

thanks,
dims

On 6/27/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:





Hi,



Has anyone got this issue?  I need a resolution as our
development is not working because of this AxisFault.



Just to recap the issue



When I deploy my webservices on my localhost (desktop) and test
it using a java client, it is working fine.



But when the same webservices project is built  deployed on our
development server and tested using java client, I'm getting the below
exception.



org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

First Element must contain the local name, Envelope

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:81)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356)

at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)

at
com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.java:276)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

at
com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.java:40)

Caused by: org.apache.axiom.soap.SOAPProcessingException:
First Element must contain the local name, Envelope

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:221)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:179)

at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:135)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:163)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPModelBuilder.java:111)

at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:142)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:77)

... 6 more



I've also specified the SOAP Request  Response to  from this
server in the below email for reference.



PS: I'm using Axis2 1.2, deploying the application in JBoss on a
Linux machine.



Thanks

Raghu

 


From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 25, 2007 11:29 AM

 To: axis-user@ws.apache.org; [EMAIL PROTECTED]
 Subject: RE: [Axis2] org.apache.axis2.AxisFault: First Element must contain
the local name, Envelope




Hi Dims,



  I've tried to get the request  response SOAP messages for this
request.  Here is the request  response for this.



  Any idea why I'm getting a NPE in AxisServlet.





Dev-Orion Login SOAP Request

POST /webservices/services/ResponsysWSService HTTP/1.1

Content-Type: text/xml; charset=UTF-8

SOAPAction: 

User-Agent: Axis2

Host: dev-orion.corp.responsys.com:1234

Transfer-Encoding: chunked



119

?xml version='1.0' encoding='UTF-8'?

soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

soapenv:Body

ns1:login xmlns:ns1=urn:ws.rsys.com

ns1:usernameraghu/ns1:username

ns1:passwordraghu/ns1:password

/ns1:login

/soapenv:Body

/soapenv:Envelope

0



Dev-Orion Login SOAP Response

HTTP/1.1 500 Internal Server Error

Server: Apache-Coyote/1.1

Content-Type: text/html;charset=utf-8

Content-Length: 1453

Date: Mon, 25 Jun 2007 18:06:51 GMT

Connection: close



html

head

titleJBossWeb/2.0.0.GA - Error report/title

style

!--

H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}

H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}

H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}

BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}

B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}

P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}

A {color : black;}A.name {color : black;}HR {color : #525D76;}

--

/style

/head

body

h1HTTP Status 500 - /h1

HR size=1 noshade=noshade

pbtype/b

RE: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-25 Thread Raghu Upadhyayula
Hi Dims,

I've attached a zip file to the JIRA (AXIS2-2352) which has my
client code  the wsdl file.  Please let me know if I should upload
anything else.

Thanks
Raghu

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 22, 2007 6:51 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

Looks similar to this one -
http://issues.apache.org/jira/browse/AXIS2-2352

Can you please zip up your sample and upload it too?

thanks,
dims

On 6/22/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:




 Hi,



 When I deploy my webservices on my localhost (desktop) and
test
 it using a java client, it is working fine.



 But when the same webservices project is built  deployed
on our
 development server and tested using java client, I'm getting the below
 exception.



 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 First Element must contain the local name, Envelope

 org.apache.axis2.AxisFault: First Element must contain the local name,
 Envelope

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

 at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

 at

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

 at

com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

 at
 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

 at

com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

 Caused by: org.apache.axiom.soap.SOAPProcessingException:
 First Element must contain the local name, Envelope

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

 at

org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

 at

org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

 at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

 ... 6 more



 Does anyone tell me why this is happening?



 I'm using Axis2 deployed in Jboss.



 Thanks

 Raghu




-- 
Davanum Srinivas :: http://davanum.wordpress.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-25 Thread Raghu Upadhyayula
Hi Dims,

 

  I've tried to get the request  response SOAP messages for this
request.  Here is the request  response for this.

  

  Any idea why I'm getting a NPE in AxisServlet.

 

 

Dev-Orion Login SOAP Request

POST /webservices/services/ResponsysWSService HTTP/1.1

Content-Type: text/xml; charset=UTF-8

SOAPAction: 

User-Agent: Axis2

Host: dev-orion.corp.responsys.com:1234

Transfer-Encoding: chunked

 

119

?xml version='1.0' encoding='UTF-8'?

soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

soapenv:Body

ns1:login xmlns:ns1=urn:ws.rsys.com

ns1:usernameraghu/ns1:username

ns1:passwordraghu/ns1:password

/ns1:login

/soapenv:Body

/soapenv:Envelope

0

 

Dev-Orion Login SOAP Response

HTTP/1.1 500 Internal Server Error

Server: Apache-Coyote/1.1

Content-Type: text/html;charset=utf-8

Content-Length: 1453

Date: Mon, 25 Jun 2007 18:06:51 GMT

Connection: close

 

html

head

titleJBossWeb/2.0.0.GA - Error report/title

style

!--

H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;} 

H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;} 

H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:14px;} 

BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;
} 

B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;} 

P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s
ize:12px;}

A {color : black;}A.name {color : black;}HR {color :
#525D76;}

--

/style

/head

body

h1HTTP Status 500 - /h1

HR size=1 noshade=noshade

pbtype/b Exception report/p

pbmessage/b u/u/p

p

bdescription/b 

uThe server encountered an internal error () that
prevented it from fulfilling this request./u

/p

p

bexception/b

pre

java.lang.NullPointerException

 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

/pre

/p

p

bnote/b 

uThe full stack trace of the root cause is available in the
JBossWeb/2.0.0.GA logs./u

/p

HR size=1 noshade=noshade

h3JBossWeb/2.0.0.GA/h3

/body

/html

 

Thanks

Raghu

 

-Original Message-
From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 25, 2007 10:26 AM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: [Axis2] org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope

 

Hi Dims,

 

  I've attached a zip file to the JIRA (AXIS2-2352) which has my

client code  the wsdl file.  Please let me know if I should upload

anything else.

 

Thanks

Raghu

 

-Original Message-

From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 

Sent: Friday, June 22, 2007 6:51 PM

To: axis-user@ws.apache.org

Subject: Re: [Axis2] org.apache.axis2.AxisFault: First Element must

contain the local name, Envelope

 

Looks similar to this one -

http://issues.apache.org/jira/browse/AXIS2-2352

 

Can you please zip up your sample and upload it too?

 

thanks,

dims

 

On 6/22/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:

 

 

 

 

 Hi,

 

 

 

 When I deploy my webservices on my localhost (desktop) and

test

 it using a java client, it is working fine.

 

 

 

 But when the same webservices project is built  deployed

on our

 development server and tested using java client, I'm getting the below

 exception.

 

 

 

 org.apache.axis2.AxisFault: First Element must contain the local name,

 Envelope

 

 First Element must contain the local name, Envelope

 

 org.apache.axis2.AxisFault: First Element must contain the local name,

 Envelope

 

 at

 

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti

ls.java:81)

 

 at

 

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper

ation.java:356)

 

 at

 

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO

peration.java:294)

 

 at

 

com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j

ava:276)

 

 at

 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

 

 at

 com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

 

 at

 

com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav

a:40)

 

 Caused

[Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-22 Thread Raghu Upadhyayula
Hi,

 

When I deploy my webservices on my localhost (desktop) and
test it using a java client, it is working fine.



But when the same webservices project is built  deployed on
our development server and tested using java client, I'm getting the
below exception.

 

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

First Element must contain the local name, Envelope

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:81)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

at
com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

at
com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
must contain the local name, Envelope

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPM
odelBuilder.java:111)

at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:142)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:77)

... 6 more



Does anyone tell me why this is happening?



I'm using Axis2 deployed in Jboss.

 

Thanks

Raghu

 



Re: [Axis2] org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

2007-06-22 Thread Davanum Srinivas

Looks similar to this one - http://issues.apache.org/jira/browse/AXIS2-2352

Can you please zip up your sample and upload it too?

thanks,
dims

On 6/22/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote:





Hi,



When I deploy my webservices on my localhost (desktop) and test
it using a java client, it is working fine.



But when the same webservices project is built  deployed on our
development server and tested using java client, I'm getting the below
exception.



org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

First Element must contain the local name, Envelope

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:81)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356)

at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)

at
com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.java:276)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

at
com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.java:40)

Caused by: org.apache.axiom.soap.SOAPProcessingException:
First Element must contain the local name, Envelope

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:221)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:179)

at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:135)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:163)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.init(StAXSOAPModelBuilder.java:111)

at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:142)

at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:77)

... 6 more



Does anyone tell me why this is happening?



I'm using Axis2 deployed in Jboss.



Thanks

Raghu





--
Davanum Srinivas :: http://davanum.wordpress.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis2 0.95 - client side - First Element must contain the local name, Envelope

2006-04-28 Thread Bilikiss Adebiyi

Peter Barrs peter.barrs at data-arterial.net writes:

 
 Hello,
 
 I am trying to get some very simple blocking client side code to work 
 based on the examples in the user guide
 
 I get an AxisFault, First Element must contain the local name, 
 Envelope exception in response to
 sender.sendReceive(request) in the code listing below.
 
 I have all the 0.95 jars in the classpath and the service itself works 
 ok - I have tested that by other means.
 
 I did try creating a complete message (below), without and without the 
 soap namespace, but I still get the above exception
 
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
 xmlns:tns=http://nrmw.qld.gov.au/imsFeatureExtractService;
soap:Body
   tns:getServiceIdentifiersRequest/
/soap:Body
 /soap:Envelope

Hello
I'm sure this may be a little late but I have had the same problem.
Try invoking the method from a browser i.e
http://yourServer/axis2/services/yourService/theMethod?wsdl (you should be able
to see the xml to be returned to you) if not, you should at least get some
helpful errors.
:-)
Thanks