Petals Web-Console

Unable to display monitoring picture with jetty-hightide-7.1.6.v20100715

Details

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

    In view of exchange overview (monitoring tab), the Webconsole can't display the picture linked
    to the message exchange being viewed, exemple InOut picture, InOnly picture, InOptionalOut ...

    The Webconsole cannot probably get the images in the Jetty webapp context

    A picture is attached to this bug report, and the following stacktrace in jetty logs out:

    java.lang.NullPointerException
    at java.io.File.<init>(File.java:222)
    at org.ow2.petals.tools.webconsole.uibeans.MonitoringUIBean.componentImageAvailable(MonitoringUIBean.java:1974)
    at org.ow2.petals.tools.webconsole.uibeans.MonitoringUIBean.renderMessages(MonitoringUIBean.java:1138)
    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:146)
    at org.ow2.opensuit.cel.impl.tree.impl.ast.AstMethod.invoke(AstMethod.java:136)
    at org.ow2.opensuit.cel.impl.tree.impl.ast.AstEval.invoke(AstEval.java:59)
    at org.ow2.opensuit.cel.impl.tree.impl.ast.AstComposite.invoke(AstComposite.java:77)
    at org.ow2.opensuit.core.expression.ExpressionUtils.invokeExpression(ExpressionUtils.java:119)
    at org.ow2.opensuit.xml.base.binding.Expression.invoke(Expression.java:155)
    at org.ow2.opensuit.core.expression.ExpressionUtils.getMessage(ExpressionUtils.java:222)
    at org.ow2.opensuit.xml.base.html.HTML.render(HTML.java:66)
    at org.ow2.opensuit.xml.base.html.layout.Div.render(Div.java:110)
    at org.ow2.opensuit.xml.base.html.layout.Div.render(Div.java:110)
    at org.ow2.opensuit.xml.base.html.layout.Div.render(Div.java:110)
    at org.ow2.opensuit.xml.base.page.Composite.render(Composite.java:56)
    at org.ow2.opensuit.xml.base.html.PageContainer.render(PageContainer.java:76)
    at org.ow2.opensuit.xml.base.html.layout.Div.render(Div.java:110)
    at org.ow2.opensuit.xml.base.html.layout.Div.render(Div.java:110)
    at org.ow2.opensuit.xml.base.html.Frame.render(Frame.java:93)
    at org.ow2.opensuit.xml.base.page.BasePage.servePage(BasePage.java:241)
    at org.ow2.opensuit.xml.base.Application.service(Application.java:553)
    at org.ow2.opensuit.core.impl.j2ee.OpenSuitServlet.service(OpenSuitServlet.java:155)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:423)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
    at org.eclipse.jetty.server.Server.handle(Server.java:351)
    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594)
    at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1042)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211)
    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
    at java.lang.Thread.run(Thread.java:619)

    Show
    In view of exchange overview (monitoring tab), the Webconsole can't display the picture linked to the message exchange being viewed, exemple InOut picture, InOnly picture, InOptionalOut ... The Webconsole cannot probably get the images in the Jetty webapp context A picture is attached to this bug report, and the following stacktrace in jetty logs out: java.lang.NullPointerException at java.io.File.<init>(File.java:222) at org.ow2.petals.tools.webconsole.uibeans.MonitoringUIBean.componentImageAvailable(MonitoringUIBean.java:1974) at org.ow2.petals.tools.webconsole.uibeans.MonitoringUIBean.renderMessages(MonitoringUIBean.java:1138) 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:146) at org.ow2.opensuit.cel.impl.tree.impl.ast.AstMethod.invoke(AstMethod.java:136) at org.ow2.opensuit.cel.impl.tree.impl.ast.AstEval.invoke(AstEval.java:59) at org.ow2.opensuit.cel.impl.tree.impl.ast.AstComposite.invoke(AstComposite.java:77) at org.ow2.opensuit.core.expression.ExpressionUtils.invokeExpression(ExpressionUtils.java:119) at org.ow2.opensuit.xml.base.binding.Expression.invoke(Expression.java:155) at org.ow2.opensuit.core.expression.ExpressionUtils.getMessage(ExpressionUtils.java:222) at org.ow2.opensuit.xml.base.html.HTML.render(HTML.java:66) at org.ow2.opensuit.xml.base.html.layout.Div.render(Div.java:110) at org.ow2.opensuit.xml.base.html.layout.Div.render(Div.java:110) at org.ow2.opensuit.xml.base.html.layout.Div.render(Div.java:110) at org.ow2.opensuit.xml.base.page.Composite.render(Composite.java:56) at org.ow2.opensuit.xml.base.html.PageContainer.render(PageContainer.java:76) at org.ow2.opensuit.xml.base.html.layout.Div.render(Div.java:110) at org.ow2.opensuit.xml.base.html.layout.Div.render(Div.java:110) at org.ow2.opensuit.xml.base.html.Frame.render(Frame.java:93) at org.ow2.opensuit.xml.base.page.BasePage.servePage(BasePage.java:241) at org.ow2.opensuit.xml.base.Application.service(Application.java:553) at org.ow2.opensuit.core.impl.j2ee.OpenSuitServlet.service(OpenSuitServlet.java:155) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:423) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:351) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1042) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:619)
  • Environment:
    Petals Webconsole 2.1-SNAPSHOT, jetty-hightide-7.1.6.v20100715

Activity

Adrien Ruffie made changes - Thu, 26 Aug 2010 - 11:59:51 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Minor [ 4 ]
Assignee Olivier Fabre [ ofabre ] Adrien Ruffie [ aruffie ]
Adrien Ruffie made changes - Thu, 26 Aug 2010 - 12:00:41 +0200
Attachment jetty-error.png [ 10241 ]
Adrien Ruffie made changes - Thu, 26 Aug 2010 - 15:04:32 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Adrien Ruffie added a comment - Thu, 26 Aug 2010 - 15:06:37 +0200

A check is performed:
if the web application is
directly deployed as a war, because
in directly war deployement it's
impossible to get resource real path.
You must proceed by ServletContext
and get Resource method.

You can also deploy the Webconsole unziped from its war
in order to allow resource real path recovering.

Show
Adrien Ruffie added a comment - Thu, 26 Aug 2010 - 15:06:37 +0200 A check is performed: if the web application is directly deployed as a war, because in directly war deployement it's impossible to get resource real path. You must proceed by ServletContext and get Resource method. You can also deploy the Webconsole unziped from its war in order to allow resource real path recovering.
Adrien Ruffie made changes - Thu, 26 Aug 2010 - 15:06:37 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 2.1 [ 10017 ]
Resolution Fixed [ 1 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
21s
1
Adrien Ruffie
Thu, 26 Aug 2010 - 11:59:51 +0200
Open Open In Progress In Progress
3h 4m
1
Adrien Ruffie
Thu, 26 Aug 2010 - 15:04:32 +0200
In Progress In Progress Resolved Resolved
2m 5s
1
Adrien Ruffie
Thu, 26 Aug 2010 - 15:06:37 +0200



People

Dates

  • Created:
    Thu, 26 Aug 2010 - 11:59:30 +0200
    Updated:
    Thu, 26 Aug 2010 - 15:06:37 +0200
    Resolved:
    Thu, 26 Aug 2010 - 15:06:37 +0200