You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Elisei Rotaru <el...@gmail.com> on 2008/02/01 16:29:30 UTC

Re: Strange Error after invoking a service the second time

Hi Deepal & others,

Thanks for your answer. Actually, i don't know what JIRA is. I looked at
their Webpage, but i need to install that software? I will try that later
and look how i can create a project, but it seems like i have to get
familiar to that before.

Meanwhile i found out more about my project. It seems like only one
Webservice is somehow faulty. (the one that is called by the other). That is
a web services which accesses the Pubmed web service. The Pubmed web service
is an AXIS 1.3 service, and mine, which accesses the Pubmed, is AXIS2 1.3.
Could there be a problem? I generated in my AXIS2 project java code (fot the
stub) by using AXIS1 wsdl2java utility. And copied the axis.jar (axis
1.3jar file) to the tomcat project axis2/WEB-INF/lib.

Now, this works. But after i access my web service the first time, it works.
It is although affecting the other web services. Version is not working any
more. Mine is although working. Strange...

The error i get is

[INFO] Unable to sendViaPost to url[
http://localhost:8080/axis2/services/Version]
org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented

My service is then unavailable

Error: Service unavailable!
The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.
(503)Service Unavailable
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:744)

What could i do wrong?
It is obviously that the problem is from AXIS1 1.3, or?

My code acessing Pubmed Web service is the following:

package de.fraunhofer.isst.dortmund.burns.queryhandler.handlers.pubmed;

import gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceLocator;
import gov.nih.nlm.ncbi.www.soap.eutils.EUtilsServiceSoap;
import gov.nih.nlm.ncbi.www.soap.eutils.esearch.ESearchRequest;
import gov.nih.nlm.ncbi.www.soap.eutils.esearch.ESearchResult;

import java.rmi.RemoteException;

import javax.xml.rpc.ServiceException;

public class ESearch {

    public static String eSearch(String searchString) {

        String antwort = "";

        try {
            EUtilsServiceLocator service = new EUtilsServiceLocator();
            EUtilsServiceSoap utils = service.geteUtilsServiceSoap();
            // call NCBI ESearch utility
            // NOTE: search term should be URL encoded
            ESearchRequest parameters = new ESearchRequest();
            parameters.setDb("pubmed");
            parameters.setTerm(searchString);
            parameters.setRetMax("15");
            ESearchResult res = utils.run_eSearch(parameters);
            // results output
            antwort+= "Database used: "parameters.getDb();
            antwort+="Found: " + res.getCount()+ " results.";
        } catch (RemoteException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (ServiceException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return antwort;
    }

}


All other code is generated by AXIS1 1.3

Thanks again & if you think you can help me, i will create an JIRA project.

Elisei



On 31/01/2008, Deepal jayasinghe <de...@gmail.com> wrote:
>
> Hi Elisei ,
> I have done this before and did not find any problem , therefore it is
> difficult for me to give an right answer without looking at your code.
> So please create a JIRA and attach whatever need to create the issue
>
> Thanks
> Deepal
> > Hello,
> >
> > I have some big trouble implementing some Axis2 Services. I am relative
> > new in this, and i don't quite get it what i do wrong. Please take some
> > time to read this Mail and help me if you can. This is very important
> > and i didn't get help somewhere else. Thank you!
> >
> > I am using Axis2 1.3 with Tomcat 6.0.14 and Eclipse 3.3 with the Axis
> > Plugin.
> > I developed a Service which works very well. I can acess it and it does
> > fine.
> >
> > The second thing i wanted to do is write another service which acesses
> > the first one. Very well, i generated with the Axis Code Generator a
> > stub inside the second service to invoke the first one. Everything works
> > fine, and the service is doing well. Then i wrote some Test classes to
> > test the second service. I only want to acess my second service, which
> > inside it acesses the first one.
> >
> > My biggest Problem, is that the first time i invoke the second service
> > it works well. If i run the Test class the second time, i get an error:
> >
> > [INFO] Unable to sendViaPost to
> > url[http://localhost:8080/axis2/services/QueryHandler]
> > org.apache.axis2.AxisFault: Transport error: 503 Error: Service
> Unavailable
> >
> > I didn't find nowhere help. What do i do wrong? How changes my service
> > the server?
> >
> > After i run the test class even the "Version" service isn't working
> fine.
> >
> > I get the folowing error:
> >
> > There was a problem in Axis2 version service , may be the service not
> > available or some thing has gone wrong. But this does not mean system is
> > not working ! Try to upload some other service and check to see whether
> > it is working.
> >
> > Sometimes a strange service (like QueryHandler21349256) appears in the
> > service list of Apache Tomcat after i run the test class the first time.
> > That is not my service, and it disappears after restart Tomcat.
> >
> > Anybody have an idea?
> >
> > What do i do wrong?
> >
> > Many thanks to all who can help me.
> >
> > Here the whole Error Stack from Tomcat:
> >
> > INFO: Server startup in 41169 ms
> > [INFO] Unable to sendViaPost to
> > url[http://localhost:8080/axis2/services/QueryHandler]
> > org.apache.axis2.AxisFault: Transport error: 503 Error: Service
> Unavailable
> >       at
> > org.apache.axis2.transport.http.HTTPSender.handleResponse(
> HTTPSender.java:298)
> >       at
> > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java
> :192)
> >       at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java
> :77)
> >       at
> >
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons
> (CommonsHTTPTransportSender.java:327)
> >       at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
> CommonsHTTPTransportSender.java:206)
> >       at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
> >       at
> > org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:374)
> >       at
> > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
> >       at
> > org.apache.axis2.client.OperationClient.execute(OperationClient.java
> :163)
> >       at
> >
> de.fraunhofer.isst.dortmund.burns.queryhandler.QueryHandlerStub.sendQuery(
> QueryHandlerStub.java:163)
> >       at
> > de.fraunhofer.isst.dortmund.burns.queryhandler.QueryHandlerCaller.call(
> QueryHandlerCaller.java:50)
> >       at
> >
> de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentSkeletonMethods.GetInformation
> (MappingComponentSkeletonMethods.java:77)
> >       at
> >
> de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentSkeleton.GetInformation
> (MappingComponentSkeleton.java:25)
> >       at
> >
> de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentMessageReceiverInOut.invokeBusinessLogic
> (MappingComponentMessageReceiverInOut.java:51)
> >       at
> >
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic
> (AbstractInOutSyncMessageReceiver.java:42)
> >       at
> > org.apache.axis2.receivers.AbstractMessageReceiver.receive(
> AbstractMessageReceiver.java:96)
> >       at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> >       at
> >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:275)
> >       at org.apache.axis2.transport.http.AxisServlet.doPost(
> AxisServlet.java:120)
> >       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(
> ApplicationFilterChain.java:290)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:206)
> >       at
> > org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:233)
> >       at
> > org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:175)
> >       at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :128)
> >       at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :102)
> >       at
> > org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:109)
> >       at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :263)
> >       at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :844)
> >       at
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> Http11Protocol.java:584)
> >       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> JIoEndpoint.java:447)
> >       at java.lang.Thread.run(Unknown Source)
> > org.apache.axis2.AxisFault: Transport error: 503 Error: Service
> Unavailable
> >       at
> > org.apache.axis2.transport.http.HTTPSender.handleResponse(
> HTTPSender.java:298)
> >       at
> > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java
> :192)
> >       at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java
> :77)
> >       at
> >
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons
> (CommonsHTTPTransportSender.java:327)
> >       at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
> CommonsHTTPTransportSender.java:206)
> >       at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
> >       at
> > org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:374)
> >       at
> > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
> >       at
> > org.apache.axis2.client.OperationClient.execute(OperationClient.java
> :163)
> >       at
> >
> de.fraunhofer.isst.dortmund.burns.queryhandler.QueryHandlerStub.sendQuery(
> QueryHandlerStub.java:163)
> >       at
> > de.fraunhofer.isst.dortmund.burns.queryhandler.QueryHandlerCaller.call(
> QueryHandlerCaller.java:50)
> >       at
> >
> de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentSkeletonMethods.GetInformation
> (MappingComponentSkeletonMethods.java:77)
> >       at
> >
> de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentSkeleton.GetInformation
> (MappingComponentSkeleton.java:25)
> >       at
> >
> de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentMessageReceiverInOut.invokeBusinessLogic
> (MappingComponentMessageReceiverInOut.java:51)
> >       at
> >
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic
> (AbstractInOutSyncMessageReceiver.java:42)
> >       at
> > org.apache.axis2.receivers.AbstractMessageReceiver.receive(
> AbstractMessageReceiver.java:96)
> >       at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> >       at
> >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:275)
> >       at org.apache.axis2.transport.http.AxisServlet.doPost(
> AxisServlet.java:120)
> >       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(
> ApplicationFilterChain.java:290)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:206)
> >       at
> > org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:233)
> >       at
> > org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:175)
> >       at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :128)
> >       at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :102)
> >       at
> > org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:109)
> >       at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :263)
> >       at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :844)
> >       at
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> Http11Protocol.java:584)
> >       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> JIoEndpoint.java:447)
> >       at java.lang.Thread.run(Unknown Source)
> > [INFO] Unable to sendViaPost to
> > url[http://localhost:8080/axis2/services/Version]
> > org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented
> >       at
> > org.apache.axis2.transport.http.HTTPSender.handleResponse(
> HTTPSender.java:298)
> >       at
> > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java
> :192)
> >       at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java
> :77)
> >       at
> >
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons
> (CommonsHTTPTransportSender.java:327)
> >       at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
> CommonsHTTPTransportSender.java:206)
> >       at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
> >       at
> > org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:374)
> >       at
> > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
> >       at
> > org.apache.axis2.client.OperationClient.execute(OperationClient.java
> :163)
> >       at
> > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java
> :528)
> >       at
> > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java
> :508)
> >       at
> > org.apache.jsp.axis2_002dweb.HappyAxis_jsp.invokeTheService
> (HappyAxis_jsp.java:338)
> >       at
> > org.apache.jsp.axis2_002dweb.HappyAxis_jsp._jspService
> (HappyAxis_jsp.java:505)
> >       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> :70)
> >       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >       at
> > org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:393)
> >       at org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:320)
> >       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java
> :266)
> >       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:290)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:206)
> >       at
> > org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:233)
> >       at
> > org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:175)
> >       at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :128)
> >       at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :102)
> >       at
> > org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:109)
> >       at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :263)
> >       at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :844)
> >       at
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> Http11Protocol.java:584)
> >       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> JIoEndpoint.java:447)
> >       at java.lang.Thread.run(Unknown Source)
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>