You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "Isha Arkatkar (JIRA)" <ji...@apache.org> on 2016/02/25 01:35:18 UTC
[jira] [Created] (APEXCORE-356) CDATA is not recognized in value
field for setting property through properties.xml
Isha Arkatkar created APEXCORE-356:
--------------------------------------
Summary: CDATA is not recognized in value field for setting property through properties.xml
Key: APEXCORE-356
URL: https://issues.apache.org/jira/browse/APEXCORE-356
Project: Apache Apex Core
Issue Type: Bug
Reporter: Isha Arkatkar
Example property with CDATA value:
<property>
<name>dt.attr.[property]</name>
<value>
<![CDATA[
[XML string for property value]
]]>
</value>
</property>
Setting property value with CDATA gives following exception:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at com.datatorrent.stram.plan.logical.LogicalPlanConfiguration.setAttributes(LogicalPlanConfiguration.java:2439)
at com.datatorrent.stram.plan.logical.LogicalPlanConfiguration.setApplicationConfiguration(LogicalPlanConfiguration.java:2358)
at com.datatorrent.stram.plan.logical.LogicalPlanConfiguration.prepareDAG(LogicalPlanConfiguration.java:2114)
at com.datatorrent.stram.LocalModeImpl.prepareDAG(LocalModeImpl.java:60)
at com.example.affinity.ApplicationTest.testApplication(ApplicationTest.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)