Bug #1122

Data viz: X-axis label not displayed

Added by Steve Kraffmiller over 2 years ago. Updated almost 2 years ago.

Status:CompletedStart date:09/14/2011
Priority:NormalDue date:
Assignee:Kevin Condon% Done:

100%

Category:-
Target version:3.1

Description

When we put in extra axis to prevent the crowding of labels we broke the display of the time variable (x-axis) label.

History

#1 Updated by Steve Kraffmiller over 2 years ago

  • Status changed from In Dev to In QA
  • Assignee changed from Steve Kraffmiller to Kevin Condon
  • % Done changed from 50 to 90

Checked in fix 9/14

#2 Updated by Kevin Condon over 2 years ago

  • Subject changed from X-axis label not displayed to Data viz: X-axis label not displayed

#3 Updated by Kevin Condon over 2 years ago

Can't test until Data viz platform upgrade issues resolved.

#4 Updated by Kevin Condon about 2 years ago

  • Status changed from In QA to In Dev
  • Assignee changed from Kevin Condon to Steve Kraffmiller
  • % Done changed from 90 to 50

Tested with v3.0.112 on dvn-build.

The axis label displays but special characters need to be escaped, otherwise it won't display. For instance, if there is a space it won't display.

I tried all special chars as a test on the y-axis and they work so maybe make the x-axis also accept them?

x-!@#$%^&*()_-+={[}]|\:;"'<,>.?/~`axis units works on y-axis.

There are two different server log errors, one for the space, one for the bad characters.

1.
[#|2012-02-09T11:22:25.539-0500|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-2;|googleImageURL http://chart.apis.google.com/chart?cht=lc&chco=4684EE,DC3912,FF9900,008000,4942CC,990099,FF80F2,7FD127&chs=676x400&chxs=0N*0*,FFFFFF,3|1N*0*,000000,11,0,t|2N*0*,FFFFFF,3,1,l|3N*sz0*,000000,11,1,t|4,000000,11&chxt=x,x,y,y,x&chxl=||4:||x-axis units|&chdlp=b|l&chdl=1&chdls=000000&chxr=0,0,1,1|2,0,1,1|3,10000,100000,10000|1,1947,2009&chd=e:OENMM4N.OZPVQbQGRlTESuSmURU9VxWXXYYbZgbdcBeCfyf0fyiDirh7g9iAiwj.kljIididikkTlbnQoQouqLpIoGn.p-rGr6s2uzwkyKzJyfxqxvxuyKzXy4xTwu|#]

[#|2012-02-09T11:22:25.569-0500|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=21;_ThreadName=Thread-2;|PWC1412: WebModule[null] ServletContext.log():TermsOfUseFilter:doFilter()|#]

[#|2012-02-09T11:22:25.750-0500|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-2;|Can't get input stream from URL!|#]

[#|2012-02-09T11:22:25.752-0500|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-2;|java.io.IOException: Server returned HTTP response code: 400 for URL: http://chart.apis.google.com/chart?cht=lc&chco=4684EE,DC3912,FF9900,008000,4942CC,990099,FF80F2,7FD127&chs=676x400&chxs=0N*0*,FFFFFF,3|1N*0*,000000,11,0,t|2N*0*,FFFFFF,3,1,l|3N*sz0*,000000,11,1,t|4,000000,11&chxt=x,x,y,y,x&chxl=||4:||x-axis units|&chdlp=b|l&chdl=1&chdls=000000&chxr=0,0,1,1|2,0,1,1|3,10000,100000,10000|1,1947,2009&chd=e:OENMM4N.OZPVQbQGRlTESuSmURU9VxWXXYYbZgbdcBeCfyf0fyiDirh7g9iAiwj.kljIididikkTlbnQoQouqLpIoGn.p-rGr6s2uzwkyKzJyfxqxvxuyKzXy4xTwu|#]

[#|2012-02-09T11:22:25.754-0500|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-2;|IIOException http://chart.apis.google.com/chart?cht=lc&chco=4684EE,DC3912,FF9900,008000,4942CC,990099,FF80F2,7FD127&chs=676x400&chxs=0N*0*,FFFFFF,3|1N*0*,000000,11,0,t|2N*0*,FFFFFF,3,1,l|3N*sz0*,000000,11,1,t|4,000000,11&chxt=x,x,y,y,x&chxl=||4:||x-axis units|&chdlp=b|l&chdl=1&chdls=000000&chxr=0,0,1,1|2,0,1,1|3,10000,100000,10000|1,1947,2009&chd=e:OENMM4N.OZPVQbQGRlTESuSmURU9VxWXXYYbZgbdcBeCfyf0fyiDirh7g9iAiwj.kljIididikkTlbnQoQouqLpIoGn.p-rGr6s2uzwkyKzJyfxqxvxuyKzXy4xTwu|#]

[#|2012-02-09T11:22:25.757-0500|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=17;_ThreadName=Thread-2;|StandardWrapperValve[DataVisServlet]: PWC1406: Servlet.service() for servlet DataVisServlet threw exception
java.lang.IllegalStateException: PWC3991: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:705)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:225)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:152)
at edu.harvard.iq.dvn.core.web.servlet.DataVisServlet.createErrorResponseGeneric(DataVisServlet.java:321)
at edu.harvard.iq.dvn.core.web.servlet.DataVisServlet.createErrorResponse404(DataVisServlet.java:350)
at edu.harvard.iq.dvn.core.web.servlet.DataVisServlet.service(DataVisServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:327)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619) |#]

2.
[#|2012-02-09T11:26:55.597-0500|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=17;_ThreadName=Thread-2;|StandardWrapperValve[DataVisServlet]: PWC1406: Servlet.service() for servlet DataVisServlet threw exception
java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape () pattern - For input string: "^x%x"
at java.net.URLDecoder.decode(URLDecoder.java:173)
at edu.harvard.iq.dvn.core.web.servlet.DataVisServlet.service(DataVisServlet.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:327)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619) |#]

#5 Updated by Gustavo Durand about 2 years ago

  • Status changed from In Dev to In Review
  • % Done changed from 50 to 10

#6 Updated by Gustavo Durand about 2 years ago

  • Target version changed from 3.0 to 3.1

#7 Updated by Steve Kraffmiller about 2 years ago

  • Status changed from In Review to In Dev
  • % Done changed from 10 to 50

fixed the encoding

#8 Updated by Gustavo Durand about 2 years ago

  • Status changed from In Dev to In QA
  • % Done changed from 50 to 90

#9 Updated by Steve Kraffmiller almost 2 years ago

  • Assignee changed from Steve Kraffmiller to Kevin Condon

checked in 5/8

#10 Updated by Kevin Condon almost 2 years ago

  • Status changed from In QA to Completed
  • % Done changed from 90 to 100

Tested with v3.1.16 on dvn-build.

Looks good except the | (unix pipe or OR) character prints as a tab. I'm not too concerned about that. Closing ticket

Also available in: Atom PDF