Jump to content

Error in anonymous Access to parameterized report


usmansaleem

Recommended Posts

Based on various forum topics, I have modified following files to enable anonymous access to reports:

File: /webapps/jasperserver/WEB-INF/applicationContext-security.xml

Changes:

1. bean flowVoter.

Added line: viewReportFlow=ROLE_USER,ROLE_ADMINISTRATOR,ROLE_ANONYMOUS

2.bean filterInvocationInterceptor. Modified: /flow.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /fileview/**=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /reportimage/**=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /jrpxml/**=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /fillparams.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR

File: /webapps/jasperserver/WEB-INF/applicationContext-events-logging.xml

Changes: bean accessContext. Added Line: <property name="userAuthorityService" ref="${bean.userAuthorityService}"></property>

The reports without any parameters work fine. However, for parameterized reports, a NullPointerException by CascadeDirector is thrown. Need pointers on how to fix this behavior please.

Code:
2010-08-18 01:01:19,851  WARN DefaultRemoter,http-8080-15:67 - Method execution failed: java.lang.NullPointerException	at com.jaspersoft.jasperserver.war.cascade.CascadeDirector.initialize(CascadeDirector.java:40)	at com.jaspersoft.jasperserver.war.cascade.CascadeDirector$$FastClassByCGLIB$$cb78188c.invoke(<generated>)
Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...