axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1154) OMException when calling web-service
Date Sat, 14 Oct 2006 02:50:42 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-1154?page=comments#action_12442224 ] 
            
Felix commented on AXIS2-1154:
------------------------------


   [[ Old comment, sent by email on Thu, 14 Sep 2006 11:20:57 +0200 ]]

By the way, I get the same error message when running the Axis2SampleDocLit
example of Axis2. The echoString call works fine, but echoStringArray and
echoStruct throw the exception

org.apache.axiom.om.OMException

org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.j
ava:265)

Felix

-----Ursprungligt meddelande-----
Fren: Felix (JIRA) [mailto:jira@apache.org]
Skickat: den 14 september 2006 10:27
Till: felix.sprick@netlight.se
Dmne: [jira] Created: (AXIS2-1154) OMException when calling web-service

OMException when calling web-service
------------------------------------

                 Key: AXIS2-1154
                 URL: http://issues.apache.org/jira/browse/AXIS2-1154
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: deployment
    Affects Versions: 1.0
         Environment: WinXP, JDK 1.5.0_06, Tomcat 5.5.17
            Reporter: Felix


Hi,



I successfully deployed the .aar file after generating the classes with the
command

"WSDL2Java -uri baggis.wsdl -pn PortalSoap -ss -sd -d xmlbeans  -o .. -g".
However, I get the following error message when calling my web-service
(found in stdout.log of Tomcat):




Servlet.service() for servlet AxisServlet threw exception

org.apache.axiom.om.OMException

            at
org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.j
ava:265)

            at
org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildren
QNameIterator.java:75)

            at
org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementI
mpl.java:222)

            at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.
java:76)

            at
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java
:183)

            at
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168
)

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

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)

            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

            at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)

            at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

            at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

            at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

            at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

            at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

            at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

            at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)

            at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)

            at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)

            at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

            at java.lang.Thread.run(Thread.java:595)

- Servlet.service() for servlet jsp threw exception

java.lang.IllegalStateException: getOutputStream() has already been called
for this response

            at
org.apache.catalina.connector.Response.getWriter(Response.java:599)

            at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:1
95)

            at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)

            at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)

            at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)

            at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFacto
ryImpl.java:115)

            at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.j
ava:75)

            at
org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.jav
a:97)

            at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

            at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
32)

            at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

            at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)

            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

            at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:672)

            at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
patcher.java:465)

            at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:398)

            at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:301)

            at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363
)

            at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284
)

            at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:
228)

            at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134
)

            at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

            at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

            at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

            at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

            at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)

            at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)

            at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)

            at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

            at java.lang.Thread.run(Thread.java:595)





This is the soap call I  sent to the server:



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

xmlns:int="http://www.stockholm.se/xml/namespace/portal/interface"

xmlns:mes="http://www.stockholm.se/xml/namespace/sgis/messageTag.xsd">

   <soapenv:Body>

      <int:GetByggnader>

         <int:Byggnader>

            <mes:MessageTag TransactionId="1" ObjectType="1" SystemName="1"
Version="1" Action="1">

               <!--Zero or more repetitions:-->

               <mes:IdTag Id="1" Operation="1"/>

            </mes:MessageTag>

            <!--Zero or more repetitions:-->

            <Byggnad>

               <mes:IdTag Id="1" Operation="1"/>

               <ByggnadData>

                  <RNPREGBY>1</RNPREGBY>

                  <RIDREGBY>1</RIDREGBY>

                  <KOKOD>1</KOKOD>

                  <BYGGTYP>1</BYGGTYP>

                  <TYPBEBYGG>1</TYPBEBYGG>

                  <TOTBOAREA>1</TOTBOAREA>

                  <TOTLOKAREA>1</TOTLOKAREA>

               </ByggnadData>

            </Byggnad>

         </int:Byggnader>

      </int:GetByggnader>

   </soapenv:Body>

</soapenv:Envelope>


Thanks a lot, your help is highly appreciated!

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


> OMException when calling web-service
> ------------------------------------
>
>                 Key: AXIS2-1154
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1154
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.0
>         Environment: WinXP, JDK 1.5.0_06, Tomcat 5.5.17
>            Reporter: Felix
>
> Hi,
>  
> I successfully deployed the .aar file after generating the classes with the command
> "WSDL2Java -uri baggis.wsdl -pn PortalSoap -ss -sd -d xmlbeans  -o .. -g". However, I
get the following error message when calling my web-service (found in stdout.log of Tomcat):
>  
>  
> Servlet.service() for servlet AxisServlet threw exception
> org.apache.axiom.om.OMException
>             at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265)
>             at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75)
>             at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222)
>             at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
>             at org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183)
>             at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
>             at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
>             at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>             at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>             at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>             at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>             at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>             at java.lang.Thread.run(Thread.java:595)
> - Servlet.service() for servlet jsp threw exception
> java.lang.IllegalStateException: getOutputStream() has already been called for this response
>             at org.apache.catalina.connector.Response.getWriter(Response.java:599)
>             at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
>             at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
>             at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
>             at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
>             at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
>             at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
>             at org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.java:97)
>             at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>             at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>             at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
>             at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>             at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>             at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>             at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>             at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
>             at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
>             at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>             at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
>             at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
>             at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
>             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
>             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>             at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>             at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>             at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>             at java.lang.Thread.run(Thread.java:595)
>  
>  
> This is the soap call I  sent to the server:
>  
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
> xmlns:int="http://www.stockholm.se/xml/namespace/portal/interface" 
> xmlns:mes="http://www.stockholm.se/xml/namespace/sgis/messageTag.xsd">
>    <soapenv:Body>
>       <int:GetByggnader>
>          <int:Byggnader>
>             <mes:MessageTag TransactionId="1" ObjectType="1" SystemName="1" Version="1"
Action="1">
>                <!--Zero or more repetitions:-->
>                <mes:IdTag Id="1" Operation="1"/>
>             </mes:MessageTag>
>             <!--Zero or more repetitions:-->
>             <Byggnad>
>                <mes:IdTag Id="1" Operation="1"/>
>                <ByggnadData>
>                   <RNPREGBY>1</RNPREGBY>
>                   <RIDREGBY>1</RIDREGBY>
>                   <KOKOD>1</KOKOD>
>                   <BYGGTYP>1</BYGGTYP>
>                   <TYPBEBYGG>1</TYPBEBYGG>
>                   <TOTBOAREA>1</TOTBOAREA>
>                   <TOTLOKAREA>1</TOTLOKAREA>
>                </ByggnadData>
>             </Byggnad>
>          </int:Byggnader>
>       </int:GetByggnader>
>    </soapenv:Body>
> </soapenv:Envelope>
>  
> Thanks a lot, your help is highly appreciated!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message