Petals Web-Console

NPE during management server page displaying

Details

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

    The following stacktrace appears during page displaying:

    12 nov. 2010 15:34:32 org.ow2.opensuit.xml.base.error.DefaultErrorHandler preRender
    ATTENTION: Technical Error Occured
    java.lang.NullPointerException
    at java.net.URLEncoder.encode(Unknown Source)
    at org.ow2.opensuit.core.util.UrlBuilder.toUrl(UrlBuilder.java:133)
    at org.ow2.opensuit.xml.base.action.ShowPage.getURL(ShowPage.java:182)
    at org.ow2.opensuit.xml.base.html.table.TextColumn.renderCellContent(TextColumn.java:106)
    at org.ow2.opensuit.xml.base.html.table.BaseColumn.renderCell(BaseColumn.java:369)
    at org.ow2.opensuit.xml.base.html.table.Table.render(Table.java:828)
    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:717)
    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:191)
    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:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Unknown Source)

    Show
    The following stacktrace appears during page displaying: 12 nov. 2010 15:34:32 org.ow2.opensuit.xml.base.error.DefaultErrorHandler preRender ATTENTION: Technical Error Occured java.lang.NullPointerException at java.net.URLEncoder.encode(Unknown Source) at org.ow2.opensuit.core.util.UrlBuilder.toUrl(UrlBuilder.java:133) at org.ow2.opensuit.xml.base.action.ShowPage.getURL(ShowPage.java:182) at org.ow2.opensuit.xml.base.html.table.TextColumn.renderCellContent(TextColumn.java:106) at org.ow2.opensuit.xml.base.html.table.BaseColumn.renderCell(BaseColumn.java:369) at org.ow2.opensuit.xml.base.html.table.Table.render(Table.java:828) 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:717) 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:191) 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:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Unknown Source)
  • Environment:
    Petals Webconsole 2.0.4 and 2.1-SNAPSHOT, Petals ESB 3.1.x or 3.2-SNAPSHOT (following the linked webconsole version)

Activity

Hide
Adrien Ruffie added a comment - Fri, 12 Nov 2010 - 16:02:54 +0100

I have reproduce the bug both on Windows and Linux

Show
Adrien Ruffie added a comment - Fri, 12 Nov 2010 - 16:02:54 +0100 I have reproduce the bug both on Windows and Linux
Hide
Adrien Ruffie added a comment - Fri, 12 Nov 2010 - 16:15:35 +0100

I resolved this bug on the trunk, I backport now on 2.0.x branches

The bug was due to two null URL parameter. If you have one server (defined on the webconsole.xml)
without "domain" and "name" attributes, the row which represent the this server is rendered with "null" "null" instead of these two parameters.

So during URL enconding in OpenSUIT rendering these parameter states throw one Null Pointer Exception.

The solution and I think is the best one, is to "required" these attributes with the "webconsole.xsd".

Because first:
These two parameters are displayed into the page in order to know the server represented by the each row.

Because second:
These two parameters are required in order to identify which server an action may be taken, for example modification, delete, etc ...

Consequently each declared server in webconsole.xml will provide its "domain"/"name" parameters.

Show
Adrien Ruffie added a comment - Fri, 12 Nov 2010 - 16:15:35 +0100 I resolved this bug on the trunk, I backport now on 2.0.x branches The bug was due to two null URL parameter. If you have one server (defined on the webconsole.xml) without "domain" and "name" attributes, the row which represent the this server is rendered with "null" "null" instead of these two parameters. So during URL enconding in OpenSUIT rendering these parameter states throw one Null Pointer Exception. The solution and I think is the best one, is to "required" these attributes with the "webconsole.xsd". Because first: These two parameters are displayed into the page in order to know the server represented by the each row. Because second: These two parameters are required in order to identify which server an action may be taken, for example modification, delete, etc ... Consequently each declared server in webconsole.xml will provide its "domain"/"name" parameters.
Hide
Adrien Ruffie added a comment - Fri, 12 Nov 2010 - 16:54:38 +0100

It's now resolved on 2.0.x branche (2.0.5-SNAPSHOT) and current trunk version (2.1-SNAPSHOT)

Show
Adrien Ruffie added a comment - Fri, 12 Nov 2010 - 16:54:38 +0100 It's now resolved on 2.0.x branche (2.0.5-SNAPSHOT) and current trunk version (2.1-SNAPSHOT)

People

Dates

  • Created:
    Fri, 12 Nov 2010 - 16:01:57 +0100
    Updated:
    Fri, 12 Nov 2010 - 16:54:38 +0100
    Resolved:
    Fri, 12 Nov 2010 - 16:54:38 +0100