Petals Web-Console

Unable to connect to the Petals ESB

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.3
  • Fix Version/s: 2.0.6
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    The webconsole is unable to connect to the Petals ESB if it is deployed into Glassfish v3 (see stacktrace below). That work's fine if deployed into Tomcat.

    [#|2010-07-26T09:45:49.818+0200|WARNING|glassfish3.0.1|org.ow2.opensuit.xml.base.error.ErrorHandler|_ThreadID=25;_ThreadName=Thread-1;|Technical Error Occured
    org.ow2.opensuit.core.error.NonLocalizedError: [Petals service error] Can't connect to PEtALS server on localhost:7700
    at org.ow2.petals.tools.webconsole.uibeans.ManagementUIBean.serverConnection(ManagementUIBean.java:335)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.ow2.opensuit.cel.impl.tree.impl.ast.AstInvocation.invoke(AstInvocation.java:136)
    at org.ow2.opensuit.cel.impl.tree.impl.ast.AstMethod.invoke(AstMethod.java:127)
    at org.ow2.opensuit.cel.impl.tree.impl.ast.AstEval.invoke(AstEval.java:59)
    at org.ow2.opensuit.core.expression.ExpressionUtils.invokeExpression(ExpressionUtils.java:89)
    at org.ow2.opensuit.xml.base.binding.Expression.invoke(Expression.java:126)
    at org.ow2.opensuit.xml.base.action.DoAndForward.invoke(DoAndForward.java:139)
    at org.ow2.opensuit.xml.base.html.form.EditForm.submit(EditForm.java:146)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.ow2.opensuit.xml.base.Application.service(Application.java:468)
    at org.ow2.opensuit.core.impl.j2ee.OpenSuitServlet.service(OpenSuitServlet.java:151)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: org.ow2.petals.tools.webconsole.services.PetalsServiceException: Can't connect to PEtALS server on localhost:7700
    at org.ow2.petals.tools.webconsole.services.utils.ConnexionHelper.connectionInstanciator(ConnexionHelper.java:174)
    at org.ow2.petals.tools.webconsole.services.utils.ConnexionHelper.connect(ConnexionHelper.java:97)
    at org.ow2.petals.tools.webconsole.services.management.ManagementServiceFactory.getImplementation(ManagementServiceFactory.java:134)
    at org.ow2.petals.tools.webconsole.services.management.ManagementServiceFactory.getService(ManagementServiceFactory.java:67)
    at org.ow2.petals.tools.webconsole.uibeans.ManagementUIBean.serverConnection(ManagementUIBean.java:326)
    ... 42 more
    Caused by: org.ow2.petals.jmx.exception.ConnectionErrorException: Can not connect using URI : service:jmx:rmi:///jndi/rmi://localhost:7700/jmxRmiConnector with petals/petals
    at org.ow2.petals.jmx.JMXConnection.<init>(JMXConnection.java:114)
    at org.ow2.petals.jmx.JMXClient.<init>(JMXClient.java:72)
    at org.ow2.petals.tools.webconsole.services.utils.ConnexionHelper.connectionInstanciator(ConnexionHelper.java:162)
    ... 46 more
    Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
    java.net.ConnectException: Connexion refusée]
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
    at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
    at org.ow2.petals.jmx.JMXConnection.<init>(JMXConnection.java:110)
    ... 48 more
    Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
    java.net.ConnectException: Connexion refusée]
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
    at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
    ... 50 more
    Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
    java.net.ConnectException: Connexion refusée
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
    ... 55 more
    Caused by: java.net.ConnectException: Connexion refusée
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
    ... 60 more

    #]
    Show
    The webconsole is unable to connect to the Petals ESB if it is deployed into Glassfish v3 (see stacktrace below). That work's fine if deployed into Tomcat. [#|2010-07-26T09:45:49.818+0200|WARNING|glassfish3.0.1|org.ow2.opensuit.xml.base.error.ErrorHandler|_ThreadID=25;_ThreadName=Thread-1;|Technical Error Occured org.ow2.opensuit.core.error.NonLocalizedError: [Petals service error] Can't connect to PEtALS server on localhost:7700 at org.ow2.petals.tools.webconsole.uibeans.ManagementUIBean.serverConnection(ManagementUIBean.java:335) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.ow2.opensuit.cel.impl.tree.impl.ast.AstInvocation.invoke(AstInvocation.java:136) at org.ow2.opensuit.cel.impl.tree.impl.ast.AstMethod.invoke(AstMethod.java:127) at org.ow2.opensuit.cel.impl.tree.impl.ast.AstEval.invoke(AstEval.java:59) at org.ow2.opensuit.core.expression.ExpressionUtils.invokeExpression(ExpressionUtils.java:89) at org.ow2.opensuit.xml.base.binding.Expression.invoke(Expression.java:126) at org.ow2.opensuit.xml.base.action.DoAndForward.invoke(DoAndForward.java:139) at org.ow2.opensuit.xml.base.html.form.EditForm.submit(EditForm.java:146) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.ow2.opensuit.xml.base.Application.service(Application.java:468) at org.ow2.opensuit.core.impl.j2ee.OpenSuitServlet.service(OpenSuitServlet.java:151) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) Caused by: org.ow2.petals.tools.webconsole.services.PetalsServiceException: Can't connect to PEtALS server on localhost:7700 at org.ow2.petals.tools.webconsole.services.utils.ConnexionHelper.connectionInstanciator(ConnexionHelper.java:174) at org.ow2.petals.tools.webconsole.services.utils.ConnexionHelper.connect(ConnexionHelper.java:97) at org.ow2.petals.tools.webconsole.services.management.ManagementServiceFactory.getImplementation(ManagementServiceFactory.java:134) at org.ow2.petals.tools.webconsole.services.management.ManagementServiceFactory.getService(ManagementServiceFactory.java:67) at org.ow2.petals.tools.webconsole.uibeans.ManagementUIBean.serverConnection(ManagementUIBean.java:326) ... 42 more Caused by: org.ow2.petals.jmx.exception.ConnectionErrorException: Can not connect using URI : service:jmx:rmi:///jndi/rmi://localhost:7700/jmxRmiConnector with petals/petals at org.ow2.petals.jmx.JMXConnection.<init>(JMXConnection.java:114) at org.ow2.petals.jmx.JMXClient.<init>(JMXClient.java:72) at org.ow2.petals.tools.webconsole.services.utils.ConnexionHelper.connectionInstanciator(ConnexionHelper.java:162) ... 46 more Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connexion refusée] at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338) at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248) at org.ow2.petals.jmx.JMXConnection.<init>(JMXConnection.java:110) ... 48 more Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connexion refusée] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107) at javax.naming.InitialContext.lookup(InitialContext.java:392) at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886) at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856) at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257) ... 50 more Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connexion refusée at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97) ... 55 more Caused by: java.net.ConnectException: Connexion refusée at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.<init>(Socket.java:375) at java.net.Socket.<init>(Socket.java:189) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) ... 60 more
    #]
  • Environment:
    Ubuntu 10.04, 32 bits, GlassFish v3, Petals ESB 3.0.5

Activity

Hide
Adrien Ruffie added a comment - Mon, 26 Jul 2010 - 17:44:02 +0200

Glassfish try the JNDI lookup of the Petals RMI registry stub on a bad JNDI Context, the JNDI context isn't correctly initialized because host=null and port=-1 also RegistryImpl_Stub endpoint is instantiate at 192.168.1.108:1099 instead Petals RMI port is 7700. I have attached a screen shot

Show
Adrien Ruffie added a comment - Mon, 26 Jul 2010 - 17:44:02 +0200 Glassfish try the JNDI lookup of the Petals RMI registry stub on a bad JNDI Context, the JNDI context isn't correctly initialized because host=null and port=-1 also RegistryImpl_Stub endpoint is instantiate at 192.168.1.108:1099 instead Petals RMI port is 7700. I have attached a screen shot
Adrien Ruffie made changes - Mon, 26 Jul 2010 - 17:44:30 +0200
Field Original Value New Value
Attachment bad-initial-context.png [ 10031 ]
Olivier Fabre made changes - Wed, 24 Nov 2010 - 10:22:23 +0100
Assignee Adrien Ruffie [ aruffie ]
Christophe DENEUX made changes - Wed, 1 Jun 2011 - 15:21:05 +0200
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Assignee Adrien Ruffie [ aruffie ] Christophe DENEUX [ cdeneux ]
Christophe DENEUX made changes - Wed, 1 Jun 2011 - 15:21:08 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Wed, 1 Jun 2011 - 15:23:22 +0200

The problem is due to petals-jmx, that change the system initial factory. It's useless.

Show
Christophe DENEUX added a comment - Wed, 1 Jun 2011 - 15:23:22 +0200 The problem is due to petals-jmx, that change the system initial factory. It's useless.
Hide
Christophe DENEUX added a comment - Wed, 1 Jun 2011 - 16:53:09 +0200

Fix in branch:

  • petals-jmx-1.7.x
  • petals-webconsole-ui-2.0.x
  • petals-entreprise-3.1.x
Show
Christophe DENEUX added a comment - Wed, 1 Jun 2011 - 16:53:09 +0200 Fix in branch:
  • petals-jmx-1.7.x
  • petals-webconsole-ui-2.0.x
  • petals-entreprise-3.1.x
Christophe DENEUX made changes - Wed, 1 Jun 2011 - 16:53:09 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 2.0.6 [ 10188 ]
Resolution Fixed [ 1 ]
Hide
Christophe DENEUX added a comment - Wed, 1 Jun 2011 - 16:53:30 +0200

To merge in trunk

Show
Christophe DENEUX added a comment - Wed, 1 Jun 2011 - 16:53:30 +0200 To merge in trunk
Christophe DENEUX made changes - Wed, 1 Jun 2011 - 16:53:30 +0200
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Mon, 18 Feb 2013 - 15:46:20 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Mon, 18 Feb 2013 - 15:47:37 +0100

Merged in trunk

Show
Christophe DENEUX added a comment - Mon, 18 Feb 2013 - 15:47:37 +0100 Merged in trunk
Christophe DENEUX made changes - Mon, 18 Feb 2013 - 15:47:37 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
310d 4h 46m
1
Christophe DENEUX
Wed, 1 Jun 2011 - 15:21:05 +0200
Open Open In Progress In Progress
3s
1
Christophe DENEUX
Wed, 1 Jun 2011 - 15:21:08 +0200
In Progress In Progress Resolved Resolved
1h 32m
1
Christophe DENEUX
Wed, 1 Jun 2011 - 16:53:09 +0200
Resolved Resolved Open Open
21s
1
Christophe DENEUX
Wed, 1 Jun 2011 - 16:53:30 +0200
Open Open In Progress In Progress
627d 23h 52m
1
Christophe DENEUX
Mon, 18 Feb 2013 - 15:46:20 +0100
In Progress In Progress Resolved Resolved
1m 17s
1
Christophe DENEUX
Mon, 18 Feb 2013 - 15:47:37 +0100



People

Dates

  • Created:
    Mon, 26 Jul 2010 - 10:34:20 +0200
    Updated:
    Mon, 18 Feb 2013 - 15:47:37 +0100
    Resolved:
    Mon, 18 Feb 2013 - 15:47:37 +0100