JasperReports LDAP setting issue after upgrade 7.1 to 7.2

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: 5 months 1 week ago

6 Answers:

0

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
4416
Joined: Mar 5 2012 - 9:19am
Last seen: 1 day 20 hours ago
1

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: 1 day 4 hours ago
0

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
Joined: Sep 17 2008 - 2:54am
Last seen: 10 hours 34 min ago
0

I tried new installation, same problem :-(

pokornyjan's picture
Joined: Jan 11 2015 - 11:41am
Last seen: 1 day 4 hours ago
0

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
2
Joined: Jan 10 2013 - 9:26am
Last seen: 1 month 4 weeks ago
0

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
Joined: Sep 17 2019 - 10:39am
Last seen: 1 month 3 weeks ago
Feedback
randomness