[jboss-jira] [JBoss JIRA] (AS7-5118) REGRESSION: JBoss 7 cannot process JBossXB in timer schedules

jaikiran pai (JIRA) jira-events at lists.jboss.org
Thu Jul 5 02:37:13 EDT 2012


     [ https://issues.jboss.org/browse/AS7-5118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jaikiran pai updated AS7-5118:
------------------------------

    Component/s: EJB
                     (was: Server)

    
> REGRESSION: JBoss 7 cannot process JBossXB in timer schedules
> -------------------------------------------------------------
>
>                 Key: AS7-5118
>                 URL: https://issues.jboss.org/browse/AS7-5118
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.1.1.Final
>            Reporter: Richard Kennard
>            Assignee: jaikiran pai
>
> In JBoss AS 6, you could use 'JBossXB expressions' (sorry if that's the wrong terminology, I couldn't find much documentation on this) in ejb-jar.xml to configure timer schedules:
> 		<session>
> 			<ejb-name>Foo</ejb-name>
> 			<timer>
> 				<schedule>
> 					<minute>*/${how.often:10}</minute>
> 					<hour>*</hour>					
> 				</schedule>
> The idea here is that 'minute' would default to 10, unless you passed -Dhow.often=5 as a VM arg.
> This worked under AS 6, but under 7.1.1.Final you get:
> Caused by: java.lang.NumberFormatException: For input string: "${how.often:10}"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) [rt.jar:1.6.0_24]
> 	at java.lang.Integer.parseInt(Integer.java:449) [rt.jar:1.6.0_24]
> 	at java.lang.Integer.parseInt(Integer.java:499) [rt.jar:1.6.0_24]
> 	at org.jboss.as.ejb3.timerservice.schedule.attribute.IntegerBasedExpression.parseInt(IntegerBasedExpression.java:199)
> 	at org.jboss.as.ejb3.timerservice.schedule.attribute.IntegerBasedExpression.processIncrement(IntegerBasedExpression.java:174)
> 	at org.jboss.as.ejb3.timerservice.schedule.attribute.IntegerBasedExpression.<init>(IntegerBasedExpression.java:87)
> 	at org.jboss.as.ejb3.timerservice.schedule.attribute.Minute.<init>(Minute.java:74)
> 	at org.jboss.as.ejb3.timerservice.schedule.CalendarBasedTimeout.<init>(CalendarBasedTimeout.java:126)
> 	at org.jboss.as.ejb3.timerservice.TimerServiceImpl.createCalendarTimer(TimerServiceImpl.java:477)
> 	at org.jboss.as.ejb3.timerservice.TimerServiceImpl.loadAutoTimer(TimerServiceImpl.java:360)
> 	at org.jboss.as.ejb3.timerservice.TimerServiceImpl.restoreTimers(TimerServiceImpl.java:681)
> 	at org.jboss.as.ejb3.timerservice.TimerServiceImpl.start(TimerServiceImpl.java:190)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list