File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Service unavailable error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Service unavailable error" Watch "Service unavailable error" New topic
Author

Service unavailable error

Mario Almeida
Greenhorn

Joined: Sep 13, 2010
Posts: 11
Hi All,

OS: Centos 5.5 64bit
Java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
JBOSS: 4.2.3.GA

In my setup I am running jboss in 3 deployment mode.
  • Web module - ServerA
  • EJB - ServerB
  • JMS - ServerC

  • On my web module server I get the below error message. Basically it is unable to connect to EJB server.
    But at the same time if I telnet to the EJB server from web server on JNP port 1099 I can connect. (telnet ServerB 1099 -- OK)

    How can I find what is the cause of this problem.
  • Is it a network issue
  • More load
  • Jboss cluster failure.
  • or what is the reason.

  • 2010-09-18 16:41:01,095 ERROR [LoadFareQuoteAction] LoadFareQuoteAction==>
    java.lang.RuntimeException: Unreachable?: Service unavailable.
    at org.jboss.aspects.remoting.ClusterChooserInterceptor.invoke(ClusterChooserInterceptor.java:176)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.ejb3.remoting.ClusteredIsLocalInterceptor.invoke(ClusteredIsLocalInterceptor.java:55)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.ejb3.stateless.StatelessClusteredProxy.invoke(StatelessClusteredProxy.java:112)
    at $Proxy124.quoteFlightPrice(Unknown Source)
    at com.isa.thinair.ibe.core.web.v2.action.reservation.LoadFareQuoteAction.execute(LoadFareQuoteAction.java:168)
    at sun.reflect.GeneratedMethodAccessor348.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    Rene Larsen
    Ranch Hand

    Joined: Oct 12, 2001
    Posts: 1179

    Which service does this class/method call ??


    Regards, Rene Larsen
    Dropbox Invite
    Mario Almeida
    Greenhorn

    Joined: Sep 13, 2010
    Posts: 11
    Hi,

    Since it is late night and I not being a developer I'll pass this Question to our development team tomorrow early morning,

    But from file LoadFareQuoteAction.java on line 168 I got this =>

    Mario Almeida
    Greenhorn

    Joined: Sep 13, 2010
    Posts: 11
    Hi,

    Ok here is the answer, It is availability search/price quote.
    Rene Larsen
    Ranch Hand

    Joined: Oct 12, 2001
    Posts: 1179

    And this "availability search/price quote" service are available from your EJB ?? Service are running and the server where it is running can be reached ??
    Mario Almeida
    Greenhorn

    Joined: Sep 13, 2010
    Posts: 11
    Yes, they are available from EJB and the service is up

    I was doing a load test with jmeter

    60 users repeat 3 no errors
    then start the load again with 60 users repeat 3 and this time I will get the error.

    Then have to restart the web server.

    and if I repeat the above again I'll will get the error.

    EJB Server 1 Quad core Xeon processor
    Server has 8 GB RAM but -Xms and -Xmx is set to 1536m
    Peter Johnson
    author
    Bartender

    Joined: May 14, 2008
    Posts: 5823
        
        7

    This EJB that is being called, is is stateful or stateless? Sounds like your app is grabbing some limited resource and not releasing it. You might also look at the logs on the EJB server to see if they will tell you anything.


    JBoss In Action
    navs jehan
    Greenhorn

    Joined: Apr 12, 2011
    Posts: 1
    Hi Guys,

    I'm getting the same exact error. Have a cluster with separate Web and app servers. This error will occasionally popup. Restarting the web server solves the problem. Does anyone know the root cause of this and how I can avoid it? I'm really stuck here!

    Best regards
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Service unavailable error