[jboss-jira] [JBoss JIRA] (WFLY-7345) Fix big jboss-beans.xml files truncation
Leonardo Penczek (JIRA)
issues at jboss.org
Tue Aug 22 11:43:01 EDT 2017
[ https://issues.jboss.org/browse/WFLY-7345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452663#comment-13452663 ]
Leonardo Penczek commented on WFLY-7345:
----------------------------------------
I created a test case. You can see that some properties will have a truncated value when the bean is deployed.
> Fix big jboss-beans.xml files truncation
> ----------------------------------------
>
> Key: WFLY-7345
> URL: https://issues.jboss.org/browse/WFLY-7345
> Project: WildFly
> Issue Type: Bug
> Components: POJO
> Affects Versions: 10.1.0.Final
> Reporter: Leonardo Penczek
> Assignee: Ales Justin
> Attachments: Test.java, TestMBean.java, test-jboss-beans.xml
>
>
> If the jboss-beans.xml file is big enough, the value of a property.may be truncated,
> Fix for this problem:
> In the org.jboss.as.pojo.KernelDeploymentParsingProcessor constructor, add this line of code:
> inputFactory.setProperty("javax.xml.stream.isCoalescing", Boolean.valueOf(true));
> It prevents the truncation.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list