Projects tigase _server tigase-http-api Issues #160
Configuring expiration task for upload module breaks server (#160)
Closed
wojciech.kapcia@tigase.net opened 6 hours ago

Configuring expiration task:

upload () {
    expiration (class: tigase.http.upload.ExpirationTask) {
        'expiration-time' = PT72H
        period = PT24H
    }
}

Breaks server:

[2024-10-29 20:03:44:507] [WARNING ] [                  main ] AbstractBeanConfigurator.configure(): Can''t prepare value of property 'expiration' of bean 'logic': 'BeanConfig{beanName='expiration', clazz=tigase.http.upload.ExpirationTask, exportable=false, active=true, props=[expiration-time=PT72H, period=PT24H}'
java.time.format.DateTimeParseException: Text cannot be parsed to a Duration
	at java.base/java.time.Duration.parse(Duration.java:419)
	at tigase.kernel.DefaultTypesConverter.convert(DefaultTypesConverter.java:199)
	at tigase.kernel.beans.config.AbstractBeanConfigurator.configure(AbstractBeanConfigurator.java:393)
	at tigase.component.DSLBeanConfiguratorWithBackwardCompatibility.configure(DSLBeanConfiguratorWithBackwardCompatibility.java:47)
	at tigase.kernel.beans.config.AbstractBeanConfigurator.configure(AbstractBeanConfigurator.java:452)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:123)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1259)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1259)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1259)
	at tigase.kernel.core.Kernel.injectDependency(Kernel.java:866)
	at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1538)
	at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:565)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:128)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1259)
	at tigase.kernel.core.Kernel.injectIfRequired(Kernel.java:1033)
	at tigase.kernel.core.Kernel.getInstance(Kernel.java:308)
	at tigase.server.Bootstrap.start(Bootstrap.java:327)
	at tigase.server.XMPPServer.start(XMPPServer.java:202)
	at tigase.server.XMPPServer.main(XMPPServer.java:155)

=====================
Could not initialize bean logic (class: class tigase.http.upload.logic.DefaultLogic), skipping injection of this bean
RootCause:
   -> tigase.kernel.KernelException: Cannot inject configuration to bean logic
      [tigase.kernel.beans.config.AbstractBeanConfigurator.configure(AbstractBeanConfigurator.java:454)]
      -> java.lang.RuntimeException: Can''t prepare value of property 'expiration' of bean 'logic': 'BeanConfig{beanName='expiration', clazz=tigase.http.upload.ExpirationTask, exportable=false, active=true, props=[expiration-time=PT72H, period=PT24H}'
         [tigase.kernel.beans.config.AbstractBeanConfigurator.configure(AbstractBeanConfigurator.java:402)]
=====================
wojciech.kapcia@tigase.net added "Related" Customers/atom#109 6 hours ago
wojciech.kapcia@tigase.net changed state to 'In Progress' 6 hours ago
Previous Value Current Value
Open
In Progress
Referenced from commit 6 hours ago
wojciech.kapcia@tigase.net changed state to 'In QA' 6 hours ago
Previous Value Current Value
In Progress
In QA
wojciech.kapcia@tigase.net commented 6 hours ago

Removed the config fields with same name as the bean that caused collision.

wojciech.kapcia@tigase.net changed state to 'Closed' 6 hours ago
Previous Value Current Value
In QA
Closed
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
none
Sprints
n/a
Customer
n/a
Iterations
Issue Votes (0)
Watchers (2)
Reference
tigase/_server/tigase-http-api#160
Please wait...
Page is in error, reload to recover