Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Missing parameter exception(Missing parameter exception)
Missing parameter exception [message #716250] Tue, 16 August 2011 19:24 Go to next message
Chris  is currently offline Chris Friend
Messages: 3
Registered: August 2011
Junior Member
Hello,

When submitting a get request to our birt viewer, an exception is thrown saying
our 'customer' field is blank. In firebug in the referred header you can see that
this parameter isn't blank, but in the soap request it is blank.
If __format is set to 'pdf' instead of 'html' it works but then the links do not
work.

Thank you,

Chris



here's the trace:
org.eclipse.birt.report.service.api.ReportServiceException: Required parameter Customer is blank.
at org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1104)
at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:934)
at org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderReport(BirtViewerReportService.java:973)
at org.eclipse.birt.report.service.actionhandler.BirtGetPageAllActionHandler.__execute(BirtGetPageAllActionHandler.java:131)
at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPageAll(BirtDocumentProcessor.java:183)
at sun.reflect.GeneratedMethodAccessor1411.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
at sun.reflect.GeneratedMethodAccessor1361.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:736)
Caused by: org.eclipse.birt.report.engine.api.impl.ParameterValidationException: Required parameter Customer is blank.
at org.eclipse.birt.report.engine.api.impl.EngineTask.validateStringParameter(EngineTask.java:926)
at org.eclipse.birt.report.engine.api.impl.EngineTask.validateParameterValueType(EngineTask.java:903)
at org.eclipse.birt.report.engine.api.impl.EngineTask.validateAbstractScalarParameter(EngineTask.java:840)
at org.eclipse.birt.report.engine.api.impl.EngineTask.access$0(EngineTask.java:767)
at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterValidationVisitor.visitScalarParameter(EngineTask.java:697)
at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visitParametersInGroup(EngineTask.java:1361)
at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterValidationVisitor.visitParameterGroup(EngineTask.java:723)
at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visitCascadingParamterGroup(EngineTask.java:1382)
at org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visit(EngineTask.java:1415)
at org.eclipse.birt.report.engine.api.impl.EngineTask.doValidateParameters(EngineTask.java:681)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:94)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:928)
... 47 more

Re: Missing parameter exception [message #716263 is a reply to message #716250] Tue, 16 August 2011 19:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

How are you sending the parameter?

Jason

On 8/16/2011 3:24 PM, chrisoquinn1 wrote:
> Hello,
>
> When submitting a get request to our birt viewer, an exception is thrown
> saying
> our 'customer' field is blank. In firebug in the referred header you can
> see that
> this parameter isn't blank, but in the soap request it is blank.
> If __format is set to 'pdf' instead of 'html' it works but then the
> links do not work.
>
> Thank you,
>
> Chris
>
>
>
> here's the trace:
> org.eclipse.birt.report.service.api.ReportServiceException: Required
> parameter Customer is blank.
> at
> org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1104)
>
> at
> org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:934)
>
> at
> org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderReport(BirtViewerReportService.java:973)
>
> at
> org.eclipse.birt.report.service.actionhandler.BirtGetPageAllActionHandler.__execute(BirtGetPageAllActionHandler.java:131)
>
> at
> org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
>
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
>
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
>
> at
> org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPageAll(BirtDocumentProcessor.java:183)
>
> at sun.reflect.GeneratedMethodAccessor1411.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>
> at java.lang.reflect.Method.invoke(Method.java:600)
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
>
> at
> org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
>
> at sun.reflect.GeneratedMethodAccessor1361.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>
> at java.lang.reflect.Method.invoke(Method.java:600)
> at
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
>
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
>
> at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> at
> org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
>
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
>
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
>
> at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:736)
> Caused by:
> org.eclipse.birt.report.engine.api.impl.ParameterValidationException:
> Required parameter Customer is blank.
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask.validateStringParameter(EngineTask.java:926)
>
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask.validateParameterValueType(EngineTask.java:903)
>
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask.validateAbstractScalarParameter(EngineTask.java:840)
>
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask.access$0(EngineTask.java:767)
>
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterValidationVisitor.visitScalarParameter(EngineTask.java:697)
>
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visitParametersInGroup(EngineTask.java:1361)
>
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterValidationVisitor.visitParameterGroup(EngineTask.java:723)
>
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visitCascadingParamterGroup(EngineTask.java:1382)
>
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask$ParameterVisitor.visit(EngineTask.java:1415)
>
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask.doValidateParameters(EngineTask.java:681)
>
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:94)
>
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
>
> at
> org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:928)
>
> ... 47 more
>
>
Re: Missing parameter exception [message #716277 is a reply to message #716263] Tue, 16 August 2011 21:10 Go to previous messageGo to next message
Chris  is currently offline Chris Friend
Messages: 3
Registered: August 2011
Junior Member
Hello,

I'm just entering the url in my browser address bar(mozilla).
Here's the url (with newlines added for clarity)

birt-viewer/run?__report=report/Stats.rptdesign
&__format=html
&Run+Time=2011-03-29-11.55.07 to 2011-03-29-13.22.18
&End+Time=2011-03-29 13:22:10.046
&ShowDate=false
&Start+Time=2011-03-29 11:55:11.17
&Subscription=SSTODSPA_S
&Customer=CHRIS
&GCUnit=0
&Time+Buckets=0
&Debug=false
&__locale=en_US
&__svg=false
&__designer=false
&__pageoverflow=0
&__masterpage=true" target="_blank"


If I use the birt gui that we have, the data is retrieved properly, but with the url no. In the headers you can see that the data in the soap request is missing (customer element). It also seems that names >= 8 chars work. I substituted the name in the url i pasted with another customer name that was >= 8 chars and the data is retrieved (since they have the same data in respect to the other parameters).

Thank you,

Chris
Re: Missing parameter exception [message #716479 is a reply to message #716277] Wed, 17 August 2011 14:15 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Chris,

Can you reproduce this with the sample db so I can test it locally?
Does your Run+Time parameter really have a + in it or were you encoding
a space?

Jason

On 8/16/2011 5:10 PM, Chris wrote:
> Hello,
>
> I'm just entering the url in my browser address bar(mozilla). Here's the
> url (with newlines added for clarity)
>
> birt-viewer/run?__report=report/Stats.rptdesign
> &__format=html
> &Run+Time=2011-03-29-11.55.07 to 2011-03-29-13.22.18
> &End+Time=2011-03-29 13:22:10.046
> &ShowDate=false
> &Start+Time=2011-03-29 11:55:11.17
> &Subscription=SSTODSPA_S
> &Customer=CHRIS
> &GCUnit=0
> &Time+Buckets=0
> &Debug=false
> &__locale=en_US
> &__svg=false
> &__designer=false
> &__pageoverflow=0
> &__masterpage=true" target="_blank"
>
>
> If I use the birt gui that we have, the data is retrieved properly, but
> with the url no. In the headers you can see that the data in the soap
> request is missing (customer element). It also seems that names >= 8
> chars work. I substituted the name in the url i pasted with another
> customer name that was >= 8 chars and the data is retrieved (since they
> have the same data in respect to the other parameters).
>
> Thank you,
>
> Chris
Re: Missing parameter exception [message #717290 is a reply to message #716479] Fri, 19 August 2011 20:31 Go to previous messageGo to next message
Chris  is currently offline Chris Friend
Messages: 3
Registered: August 2011
Junior Member
Jason,

I was checking my email for your replies. The first one showed but the others haven't. Then I decided to check here and you have replied. Sorry about that.

We found a strange solution for the moment. The customer box was a 'list box'. It was changed to a 'combo box' and everything started working. The plus symbol I think was a url-encoded space, I tried without it and with %20 and all three methods work properly.

We tried setting it up on the sample db with a sample rptdesign but we're having trouble with having a list box instead of a text box. We keep seeing the 'textbox' instead of 'listbox'. I don't have any experience with birt so that could definitely be the issue.

Also I appologize, the url I pasted is incorrect, there is a floating double quote that shouldn't be there, and there is an ampersand missing between the last two parameters.

If there is any other info you need let me know,

Thanks,

Chris

Re: Missing parameter exception [message #926686 is a reply to message #717290] Fri, 28 September 2012 22:19 Go to previous message
Brian Fryer is currently offline Brian FryerFriend
Messages: 1
Registered: September 2012
Junior Member
Chris,

I came across your post trying to solve a similar problem. In my case, I was getting the list box values dynamically from a data set. When I passed the parameter in the URL with a value that was not in the data set I got the error. The data set was the result of a database query with a where condition. The problem was caused by passing a value that was not included by the where condition. This seems consistent with your workaround because the combo box lets you enter your own value. Don't know if your situation is the same, but I hope it helps.

Brian
Previous Topic:CrossTabs - problem/feature with aggregations (multiple totals)
Next Topic:[SOLVED] How to specify the properties folder to report
Goto Forum:
  


Current Time: Tue Dec 23 05:29:19 GMT 2014

Powered by FUDForum. Page generated in 0.03082 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software