[jboss-jira] [JBoss JIRA] Commented: (JBAS-9253) Connection URL Parse Error
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Thu Apr 7 22:17:33 EDT 2011
[ https://issues.jboss.org/browse/JBAS-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594394#comment-12594394 ]
Brian Stansberry commented on JBAS-9253:
----------------------------------------
I had a theory that the CDATA wrapper was lost when the file got changed following some management operation, so the failure you saw was following a restart.
Well, yes and no. The CDATA wrapper is lost, but the value gets marshalled like this:
<connection-url>jdbc:mysql://localhost:3306/EJB3?rewriteBatchStatements=true&maintainTimeStats=false</connection-url>
The & is valid so it parses fine following restart. It gets stored in the model as jdbc:mysql://localhost:3306/EJB3?rewriteBatchStatements=true&maintainTimeStats=false so what gets passed to the driver is the expected URL.
> Connection URL Parse Error
> --------------------------
>
> Key: JBAS-9253
> URL: https://issues.jboss.org/browse/JBAS-9253
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: JCA service
> Affects Versions: 7.0.0.Beta2
> Reporter: Andrig Miller
> Assignee: Brian Stansberry
> Fix For: 7.0.0.Beta3
>
>
> When setting properties on the connection URL for my MySQL data source on AS 7 Beta 2, like the following:
> jdbc:mysql://localhost:3306/EJB3?rewriteBatchStatements=true&maintainTimeStats=false
> I get the following error:
> 08:43:48,778 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.as.server-controller: org.jboss.msc.service.StartException in service jboss.as.server-controller: org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse configuration
> at org.jboss.as.server.ServerControllerService.start(ServerControllerService.java:146)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1344)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_20]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_20]
> at java.lang.Thread.run(Thread.java:636) [:1.6.0_20]
> Caused by: org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse configuration
> at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:120)
> at org.jboss.as.server.ServerControllerService.start(ServerControllerService.java:144)
> ... 4 more
> Caused by: javax.xml.stream.XMLStreamException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '=' (code 61); expected a semi-colon after the reference for entity 'maintainTimeStats'
> at [row,col {unknown-source}]: [118,103]
> It's expecting a semi-colon for some reason, but the = is the correct syntax.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list