JasperReports LDAP setting issue after upgrade 7.1 to 7.2

When we upgrade JasperReportsServer from version 7.1 to 7.2 the application started with the following errors:

2019-06-05 07:28:16,583 INFO  [stdout] (ServerService Thread Pool -- 90) 2019-06-05 07:28:16,578 ERROR ContextLoader,ServerService Thread Pool -- 90:350 - Context initialization failed
2019-06-05 07:28:16,583 INFO  [stdout] (ServerService Thread Pool -- 90) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'proxyBasicProcessingFilter' defined in ServletContext resource [/WEB-INF/applicationContext-externalAuth-LDAP.
xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'authenticationManager' of bean class [com.jaspersoft.jasperserver.api.security.externalAuth.ExternalAuthBasicProcessingFilter]: Bean property 'authenticationManager' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

The WEB-INF/applicationContext-externalAuth-LDAP.xml file seems to be different in 7.1 and 7.2.

roger.mirrer's picture
Joined: Jun 3 2019 - 2:59am
Last seen: 3 years 8 months ago

7 Answers:

in 7.2, they upgraded Spring Security to a new version. It is suggested that you reimplement your external auth using the new files as a base. An overview is here:

https://community.jaspersoft.com/documentation/tibco-jasperreports-server-upgrade-guide/v720/changes-72-may-affect-your-upgrade

elizam's picture
15556
Joined: Mar 5 2012 - 9:19am
Last seen: 3 years 1 month ago

I have same problem. After upgrade I used "applicationContext-externalAuth-LDAP.xml" (v.7.2, same configuration).

Please help. 

Thanks in advance, 

Jan

 

pokornyjan's picture
Joined: Jan 11 2015 - 11:41am
Last seen: 8 months 3 weeks ago

I have the same problem here after upgrade from 6.3 to 7.2.
I used the new sample file from 7.2 sample-applicationContext-externalAuth-LDAP.xml and reimplemented our settings.

But after server restart I got the same error like @roger.mirror

See also this bug report : [#11866] - ldap integration breaks jasperserver
https://community.jaspersoft.com/jasperreports-server/issues/11866

Any help is appreciated.

Thanks

Marwin

jreporter's picture
134
Joined: Sep 17 2008 - 2:54am
Last seen: 1 year 4 months ago

I tried new installation, same problem :-(

pokornyjan's picture
Joined: Jan 11 2015 - 11:41am
Last seen: 8 months 3 weeks ago

I just started working on LDAP authenticaiton for our Jasper setup.   We're running 7.2.    It appears that the suppled example file "sample-applicationContext-externalAuth-LDAP.xml" that ships with Jasper 7.2 does not work, and causes the error above (Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'authenticationManager' of bean class ).

this is kind of a show-stopper for us.

brodie's picture
368
Joined: Jan 10 2013 - 9:26am
Last seen: 1 year 6 months ago

Hi guys,

It looks like Spring Security was upgraded in JR v7.2 up to 4.2.  Which led to change in ExternalAuthBasicProcessingFilter.

So you need to use constructor arg for authenticationManager bean instead of setter:

    <bean id="proxyBasicProcessingFilter"

          class="com.jaspersoft.jasperserver.api.security.externalAuth.ExternalAuthBasicProcessingFilter" parent="basicProcessingFilter">

        <constructor-arg index="0" ref="ldapAuthenticationManager"/>

        <property name="externalDataSynchronizer" ref="externalDataSynchronizer"/>

    </bean>

 

antey86's picture
194
Joined: Sep 17 2019 - 10:39am
Last seen: 4 years 1 week ago

I know this is a couple years old, but I just installed jasperserver 8.0 and had this same error. antey86's suggestion worked for me.

raymondg's picture
128
Joined: Oct 1 2020 - 10:21am
Last seen: 6 days 22 hours ago
Feedback
randomness