Jump to content
We've recently updated our Privacy Statement, available here ×

atiquek_1

Members
  • Posts

    5
  • Joined

  • Last visited

atiquek_1's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. It is possible to integrate JRS with your system using some customization of the authentication mechanism such that it first looks for your custom authentication mechanism. If unsuccessful it will fallback on the default behaviour. I think you are on the right path regarding your multi tenancy approach. Regarding your data strategy, you could have a look at JRDataSource & JRAbstractQueryExecuter to get an idea.
  2. Hi, I am upgrading from JasperReports Server v4.5.0 to v5.0.1 running on jboss 5.1. We use HTTP API to run reports integrated with our portal using SSO. The reports use CustomDataSource which calls a web service to retrieve data. Before it could call the web service we need to fetch the HttpServletRequest object to fetch some session values to be passed along with the web service call. We use the following calls to retrieve request object. private HttpServletRequest getHttpServletRequest() {HttpServletRequest request = null;//Object object = RequestContextHolder.currentRequestAttributes();ServletRequestAttributes attrs = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();if(attrs != null) {request = attrs.getRequest();}return request;} This works fine in 4.5.0. However, it returns null in 5.0.1. Could you please advise what could have changed to cause this. Any pointers highly appreciated. Thanks,
  3. Hi, I have a report running in jaspserserver-pro version using custom data source with the parameter REPORT_DATA_SOURCE assigned to the proper class name CustomdataSource. There is an additional method in this class which determines if the report is empty. When I execute this report it works without any issues. One of the column of the report has a sort component and when I click on this column header I am getting the below error. Could someone advise what could be the problem. Thanks, net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : $P{REPORT_DATA_SOURCE}.isReportEmpty() == false at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:203) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:591) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:559) at net.sf.jasperreports.engine.fill.JRFillDataset.evaluateExpression(JRFillDataset.java:1360) at net.sf.jasperreports.engine.fill.JRBaseFiller.evaluateExpression(JRBaseFiller.java:1653) at net.sf.jasperreports.engine.fill.JRFillBand.evaluatePrintWhenExpression(JRFillBand.java:306) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnHeader(JRVerticalFiller.java:467) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:261) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:836) at com.jaspersoft.ji.engine.ProEngineServiceImpl.fillReport(ProEngineServiceImpl.java:251) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:731) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:389) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.executeReport(EngineServiceImpl.java:890) at com.jaspersoft.jasperserver.api.engine.jasperreports.domain.impl.ReportUnitRequest.execute(ReportUnitRequest.java:57) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.execute(EngineServiceImpl.java:320) . . . Caused by: groovy.lang.MissingMethodException: No signature of method: net.sf.jasperreports.engine.data.ListOfArrayDataSource.isReportEmpty() is applicable for argument types: () values: [] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:54) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) at Over32Speed_1358664257019_775602.evaluate(calculator_Over32Speed_1358664257019_775602:231) at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:190) ... 155 more
  4. Hi, I have introduced a filter to do some internal SSO authentication which is working fine. This filter is required to print a custom message on failure for which I have a failure URL. The bean is: [/code] This filter is doing a redirect like httpResponse.sendRedirect(httpResponse.encodeRedirectURL("/jasperserver/sso_error.html")); I have added /sso_error.html in applicationContext-security-web.xml's bean filterInvocationInterceptor to force anonymous resource something like below: CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /login.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /logout.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR,IS_AUTHENTICATED_FULLY /loginerror.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /error.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /sso_error.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /exituser.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR,IS_AUTHENTICATED_FULLY /home.html=ROLE_USER,ROLE_ADMINISTRATOR /flow.html=ROLE_USER,ROLE_ADMINISTRATOR /loginsuccess.html=ROLE_USER,ROLE_ADMINISTRATOR /listolapviews.html=ROLE_USER,ROLE_ADMINISTRATOR /fillparams.html=ROLE_USER,ROLE_ADMINISTRATOR /j_spring_switch_user*=ROLE_ADMINISTRATOR /fileview/**=ROLE_USER,ROLE_ADMINISTRATOR /olap/**=ROLE_USER,ROLE_ADMINISTRATOR /xmla=ROLE_USER,ROLE_ADMINISTRATOR /services/**=ROLE_USER,ROLE_ADMINISTRATOR /reportimage/**=ROLE_USER,ROLE_ADMINISTRATOR /jrpxml/**=ROLE_USER,ROLE_ADMINISTRATOR /heartbeatinfo.html=ROLE_USER,ROLE_ADMINISTRATOR /rest/**=ROLE_USER,ROLE_ADMINISTRATOR [/code] I have added this in jasperserver-servlet.xml to resolve to controller and view. jsFileViewContr jsCommContr jsCommContr jsCommContr jsCommContr jsCommContr ssoContr . . . [/code] [/code] This controller extends AbstractController to return a simple ModelAndView like below: @Override protected ModelAndView handleRequestInternal( HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse) throws Exception { return new ModelAndView("modules/ssoError"); } When some error is encountered in my filter it calls the url /jasperserver/sso_error.html which gives status 404. The log file says 2013-01-16 23:29:51,470 WARN PageNotFound,http-8081-1:1077 - No mapping found for HTTP request with URI [/jasperserver/sso_error.html] in DispatcherServlet with name 'jasperserver' Could you please advise what am I missing in this configuration. Thanks,
×
×
  • Create New...