Uncaught runtime exception An ELException occurred getting the value for expression 'WriteAuditLog' Invalid property 'dateTimeFormat' of bean class

Takeshi NISHIMURA takeshi at nii.ac.jp
Fri Oct 5 06:10:21 EDT 2018


Better late than never.

Auto deployment feature of Tomcat is controlled by the file context.xml or Catalina/localhost/idp.xml and so on.

For example:
> <Host name="localhost" appBase="webapps"
>       unpackWARs="true" autoDeploy="true" deployOnStartup="true">

Tomcat 8.0.21 or later supports deployment detection both during running and on starting up.

On earlier versions, you may need to upgrade without stopping Tomcat in order to detect and update relevant files correctly.

cf. https://tomcat.apache.org/migration-8.html#Deployment
> Off-line deployment - As of Tomcat 8.0.21, Tomcat will detect when a WAR has been updated while it is not running and, when next started, remove the out of date expanded directory and deploy the updated WAR file so simply use unpackWAR="true" and continue to deploy WARs when Tomcat is not running.


Best regards,
Takeshi

On 2018/04/26 6:31, Matt Brennan wrote:
> Just ran into the same issue upgrading to 3.3.2. Touching the war didn't help, but blowing away the contents of /var/lib/tomcat/webapps/idp did.
> 
> -Matt
> 
> On Tue, Nov 7, 2017 at 10:03 PM, Lipscomb, Gary <glipscomb at csu.edu.au <mailto:glipscomb at csu.edu.au>> wrote:
> 
>     Just closing this loop.
>     For some reason so far not fully understood but a touch on /opt/shibboleth-idp/war/idp.war file fixed the issue, possibly due to old timestamps on files in /var/lib/tomcat/webapps
>     Still investigating/understanding
> 
>     Regards
> 
>     Gary
> 
>      > -----Original Message-----
>      > From: users [mailto:users-bounces at shibboleth.net <mailto:users-bounces at shibboleth.net>] On Behalf Of Lipscomb,
>      > Gary
>      > Sent: Wednesday, 8 November 2017 12:10
>      > To: Shib Users <users at shibboleth.net <mailto:users at shibboleth.net>>
>      > Subject: Uncaught runtime exception An ELException occurred getting the
>      > value for expression 'WriteAuditLog' Invalid property 'dateTimeFormat' of
>      > bean class
>      >
>      > Hi all,
>      >
>      > We are getting this error on the last (7/8) of our IdP servers that we updated
>      > to v3.3.2.
>      > All servers are built using "puppet" so the configurations are exactly the
>      > same.
>      >
>      > We've removed the upgrade, and re-applied, rebooted the server but the
>      > problem still exits.
>      >
>      > Any ideas where to look next?
>      >
>      > Regards
>      >
>      > Gary
>      >
>      >
>      > Gary Lipscomb
>      > Technical Officer, Systems (Infrastructure) | Systems Infrastructure & Client
>      > Services | Division of Information Technology Charles Sturt University
>      > Panorama Avenue Bathurst, NSW 2795 Australia
>      > Tel: +61 2 6338 6533
>      > Email: glipscomb at csu.edu.au <mailto:glipscomb at csu.edu.au>
>      > www.csu.edu.au <http://www.csu.edu.au>
>      >
>      >
>      >
>      >
>      >
>      >
>      > 2017-11-08 11:44:18,085 - DEBUG
>      > [org.springframework.webflow.engine.impl.FlowExecutionImpl:592] -
>      > Attempting to handle [org.sprin
>      > gframework.webflow.execution.ActionExecutionException: Exception
>      > thrown executing [AnnotatedAction at 3080a8d5 targetAction = [Evalu
>      > ateAction at 51ecf26b expression = WriteAuditLog, resultExpression = [null]],
>      > attributes = map[[empty]]] in state 'Status' of flow '
>      > status' -- action execution attributes were 'map[[empty]]'] with root cause
>      > [org.springframework.beans.NotWritablePropertyExcepti
>      > on: Invalid property 'dateTimeFormat' of bean class
>      > [net.shibboleth.idp.profile.audit.impl.WriteAuditLog]: Bean property
>      > 'dateTim eFormat' is not writable or has an invalid setter method. Does the
>      > parameter type of the setter match the return type of the gett er?]
>      > 2017-11-08 11:44:18,087 - DEBUG
>      > [org.springframework.webflow.engine.support.TransitionExecutingFlowExec
>      > utionExceptionHandler:107]
>      >  - Handling flow execution exception
>      > org.springframework.webflow.execution.ActionExecutionException:
>      > Exception thrown executing [
>      > AnnotatedAction at 3080a8d5 targetAction = [EvaluateAction at 51ecf26b
>      > expression = WriteAuditLog, resultExpression = [null]], attribut es =
>      > map[[empty]]] in state 'Status' of flow 'status' -- action execution attributes
>      > were 'map[[empty]]'
>      > org.springframework.webflow.execution.ActionExecutionException:
>      > Exception thrown executing [AnnotatedAction at 3080a8d5 targetAction  =
>      > [EvaluateAction at 51ecf26b expression = WriteAuditLog, resultExpression =
>      > [null]], attributes = map[[empty]]] in state 'Status'
>      > of flow 'status' -- action execution attributes were 'map[[empty]]'
>      >         at
>      > org.springframework.webflow.execution.ActionExecutor.execute(ActionExe
>      > cutor.java:60)
>      > Caused by: org.springframework.binding.expression.EvaluationException: An
>      > ELException occurred getting the value for expression '
>      > WriteAuditLog' on context [class
>      > org.springframework.webflow.engine.impl.RequestControlContextImpl]
>      >         at
>      > org.springframework.binding.expression.spel.SpringELExpression.getValue(S
>      > pringELExpression.java:92)
>      > Caused by: org.springframework.expression.spel.SpelEvaluationException:
>      > EL1021E:(pos 0): A problem occurred whilst attempting to access the
>      > property 'WriteAuditLog': 'Error creating bean with name 'WriteAuditLog'
>      > defined in file [/opt/shibboleth-idp/system/f
>      > lows/admin/admin-abstract-beans.xml]: Error setting property values;
>      > nested exception is org.springframework.beans.NotWritablePro
>      > pertyException: Invalid property 'dateTimeFormat' of bean class
>      > [net.shibboleth.idp.profile.audit.impl.WriteAuditLog]: Bean prope rty
>      > 'dateTimeFormat' is not writable or has an invalid setter method. Does the
>      > parameter type of the setter match the return type  of the getter?'
>      >         at
>      > org.springframework.expression.spel.ast.PropertyOrFieldReference.readPro
>      > perty(PropertyOrFieldReference.java:216)
>      > Caused by: org.springframework.beans.factory.BeanCreationException:
>      > Error creating bean with name 'WriteAuditLog' defined in file
>      >  [/opt/shibboleth-idp/system/flows/admin/admin-abstract-beans.xml]:
>      > Error setting property values; nested exception is org.spring
>      > framework.beans.NotWritablePropertyException: Invalid property
>      > 'dateTimeFormat' of bean class [net.shibboleth.idp.profile.audit.i
>      > mpl.WriteAuditLog]: Bean property 'dateTimeFormat' is not writable or has
>      > an invalid setter method. Does the parameter type of th e setter match the
>      > return type of the getter?
>      >         at
>      > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
>      > actory.applyPropertyValues(AbstractAutowireCapab
>      > leBeanFactory.java:1518)
>      > Caused by: org.springframework.beans.NotWritablePropertyException:
>      > Invalid property 'dateTimeFormat' of bean class [net.shibbolet
>      > h.idp.profile.audit.impl.WriteAuditLog]: Bean property 'dateTimeFormat' is
>      > not writable or has an invalid setter method. Does the  parameter type of the
>      > setter match the return type of the getter?
>      >         at
>      > org.springframework.beans.BeanWrapperImpl.createNotWritablePropertyE
>      > xception(BeanWrapperImpl.java:243)
>      > 2017-11-08 11:44:18,087 - DEBUG
>      > [org.springframework.webflow.engine.support.TransitionExecutingFlowExec
>      > utionExceptionHandler:129]
>      >  - Exposing flow execution exception root cause
>      > org.springframework.beans.NotWritablePropertyException: Invalid property
>      > 'dateTim eFormat' of bean class
>      > [net.shibboleth.idp.profile.audit.impl.WriteAuditLog]: Bean property
>      > 'dateTimeFormat' is not writable or h as an invalid setter method. Does the
>      > parameter type of the setter match the return type of the getter? under
>      > attribute 'rootCaus eException'
>      >
>      >
>      >
>      > 2017-11-08 11:44:18,090 - ERROR [net.shibboleth.idp.profile:-2] - Uncaught
>      > runtime exception
>      > org.springframework.binding.expression.EvaluationException: An
>      > ELException occurred getting the value for expression 'WriteAuditLog' on
>      > context [class
>      > org.springframework.webflow.engine.impl.RequestControlContextImpl]
>      >         at
>      > org.springframework.binding.expression.spel.SpringELExpression.getValue(S
>      > pringELExpression.java:92)
>      > Caused by: org.springframework.expression.spel.SpelEvaluationException:
>      > EL1021E:(pos 0): A problem occurred whilst attempting to access the
>      > property 'WriteAuditLog': 'Error creating bean with name 'WriteAuditLog'
>      > defined in file [/opt/shibboleth-idp/system/flows/admin/admin-abstract-
>      > beans.xml]: Error setting property values; nested exception is
>      > org.springframework.beans.NotWritablePropertyException: Invalid property
>      > 'dateTimeFormat' of bean class
>      > [net.shibboleth.idp.profile.audit.impl.WriteAuditLog]: Bean property
>      > 'dateTimeFormat' is not writable or has an invalid setter method. Does the
>      > parameter type of the setter match the return type of the getter?'
>      >         at
>      > org.springframework.expression.spel.ast.PropertyOrFieldReference.readPro
>      > perty(PropertyOrFieldReference.java:216)
>      > Caused by: org.springframework.beans.factory.BeanCreationException:
>      > Error creating bean with name 'WriteAuditLog' defined in file
>      > [/opt/shibboleth-idp/system/flows/admin/admin-abstract-beans.xml]: Error
>      > setting property values; nested exception is
>      > org.springframework.beans.NotWritablePropertyException: Invalid property
>      > 'dateTimeFormat' of bean class
>      > [net.shibboleth.idp.profile.audit.impl.WriteAuditLog]: Bean property
>      > 'dateTimeFormat' is not writable or has an invalid setter method. Does the
>      > parameter type of the setter match the return type of the getter?
>      >         at
>      > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
>      > actory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1518
>      > )
>      > Caused by: org.springframework.beans.NotWritablePropertyException:
>      > Invalid property 'dateTimeFormat' of bean class
>      > [net.shibboleth.idp.profile.audit.impl.WriteAuditLog]: Bean property
>      > 'dateTimeFormat' is not writable or has an invalid setter method. Does the
>      > parameter type of the setter match the return type of the getter?
>      >         at
>      > org.springframework.beans.BeanWrapperImpl.createNotWritablePropertyE
>      > xception(BeanWrapperImpl.java:243)


More information about the users mailing list