[jboss-jira] [JBoss JIRA] (WFLY-2673) StringIndexOutOfBoundsException on server start when using Durable MDB without proper parameters

Jeff Mesnil (JIRA) issues at jboss.org
Fri Dec 20 03:14:33 EST 2013


    [ https://issues.jboss.org/browse/WFLY-2673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932785#comment-12932785 ] 

Jeff Mesnil commented on WFLY-2673:
-----------------------------------

The underlying error is not in the integration code but in HornetQ.

The integration code throws the StringIndexOutOfBoundsException because HornetQ's ManagementService.getResources(QueueControl.class) returns a QueueControl with an empty name.

I think this issue should be fixed before that when validating the ActivationSpec of the MDB. If the subscriptionDurability is Durable, then subscriptionName MUST be present or the MDB is not deployed.
                
> StringIndexOutOfBoundsException on server start when using Durable MDB without proper parameters
> ------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-2673
>                 URL: https://issues.jboss.org/browse/WFLY-2673
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JMS
>         Environment: GNU/Linux Debian 7, JDK7
>            Reporter: F.H. Paul
>            Assignee: Jeff Mesnil
>         Attachments: failingMDBonWildfly.jar
>
>
> I have an MDB with @ActivationConfigProperty(propertyName = "subscriptionDurability", propertyValue = "Durable")
> (Btw. destinationType is javax.jms.Topic if this is relevant)
> Whenever I start WildFly8 Beta1 I get the Exception below.
> When I remove the subscriptionDurability property, I get the Exception too. But when I make an "rm -r wildfly-8.0.0.Beta1/standalone/data/messaging*" the server starts up fine. When I set the subscriptionDurability property again, the Exception occours again. This behaviour is absolutely reproducible.
> 18:09:26,687 ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at java.lang.String.charAt(String.java:658) [rt.jar:1.7.0_40]
> 	at org.jboss.as.controller.PathElement.<init>(PathElement.java:103)
> 	at org.jboss.as.controller.PathElement.pathElement(PathElement.java:68)
> 	at org.jboss.as.controller.registry.PlaceholderResource$PlaceholderResourceEntry.<init>(PlaceholderResource.java:142)
> 	at org.jboss.as.messaging.HornetQServerResource.getChildren(HornetQServerResource.java:184)
> 	at org.jboss.as.controller.registry.AbstractModelResource$DelegateResource.getChildren(AbstractModelResource.java:254)
> 	at org.jboss.as.controller.registry.Resource$Tools.readModel(Resource.java:252)
> 	at org.jboss.as.controller.registry.Resource$Tools.readModel(Resource.java:239)
> 	at org.jboss.as.controller.registry.Resource$Tools.readModel(Resource.java:225)
> 	at org.jboss.as.controller.registry.Resource$Tools.readModel(Resource.java:254)
> 	at org.jboss.as.controller.registry.Resource$Tools.readModel(Resource.java:239)
> 	at org.jboss.as.controller.registry.Resource$Tools.readModel(Resource.java:225)
> 	at org.jboss.as.controller.registry.Resource$Tools.readModel(Resource.java:254)
> 	at org.jboss.as.controller.registry.Resource$Tools.readModel(Resource.java:239)
> 	at org.jboss.as.controller.registry.Resource$Tools.readModel(Resource.java:225)
> 	at org.jboss.as.controller.registry.Resource$Tools.readModel(Resource.java:213)
> 	at org.jboss.as.controller.ModelControllerImpl.writeModel(ModelControllerImpl.java:556)
> 	at org.jboss.as.controller.OperationContextImpl.createPersistenceResource(OperationContextImpl.java:226)
> 	at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:529)
> 	at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:277)
> 	at org.jboss.as.controller.AbstractOperationContext.finishStep(AbstractOperationContext.java:701)
> 	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:676)
> 	at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:487)
> 	at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:277)
> 	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:272)
> 	at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:321)
> 	at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:290)
> 	at org.jboss.as.server.ServerService.boot(ServerService.java:356) [wildfly-server-8.0.0.Beta1.jar:8.0.0.Beta1]
> 	at org.jboss.as.server.ServerService.boot(ServerService.java:331) [wildfly-server-8.0.0.Beta1.jar:8.0.0.Beta1]
> 	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:252)
> 	at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list