You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/12/19 18:40:58 UTC

[jira] [Commented] (APEXMALHAR-2371) Importing 'Apache Apex Malhar Iteration Demo' throws error for 'property' tag in properties.xml

    [ https://issues.apache.org/jira/browse/APEXMALHAR-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15761953#comment-15761953 ] 

ASF GitHub Bot commented on APEXMALHAR-2371:
--------------------------------------------

GitHub user mattqzhang opened a pull request:

    https://github.com/apache/apex-malhar/pull/525

    APEXMALHAR-2371 Missing property tag in Iteration Demo's properties.xml

    @pradeepdalvi Please review

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mattqzhang/apex-malhar APEXMALHAR-2371

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/apex-malhar/pull/525.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #525
    
----
commit 2aeeb2ae112f90ce50f4552218cdbc7f836ae44f
Author: Matt Zhang <ma...@gmail.com>
Date:   2016-12-09T00:55:44Z

    APEXMALHAR-2371 Missing property tag in Iteration Demo's properties.xml

----


> Importing 'Apache Apex Malhar Iteration Demo' throws error for 'property' tag in properties.xml
> -----------------------------------------------------------------------------------------------
>
>                 Key: APEXMALHAR-2371
>                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-2371
>             Project: Apache Apex Malhar
>          Issue Type: Bug
>            Reporter: Matt Zhang
>            Assignee: Matt Zhang
>
> Importing 'Apache Apex Malhar Iteration Demo' throws error for 'property' tag in properties.xml.
> Error says:
> {code}
> [Fatal Error] properties.xml:44:3: The element type "property" must be terminated by the matching end-tag "</property>".
> 2016-06-29 03:05:17,349 WARN com.datatorrent.stram.client.AppPackage: Ignoring META_INF/properties.xml because of error
> org.xml.sax.SAXParseException; systemId: file:/home/dttbc/.dt/cache/dttbc/iteration-demo/3.4.0/apa/META-INF/properties.xml; lineNumber: 44; columnNumber: 3; The element type "property" must be terminated by the matching end-tag "</property>".
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
> 	at com.datatorrent.stram.client.DTConfiguration.loadFile(DTConfiguration.java:164)
> 	at com.datatorrent.stram.client.DTConfiguration.loadFile(DTConfiguration.java:186)
> 	at com.datatorrent.stram.client.AppPackage.processPropertiesXml(AppPackage.java:430)
> 	at com.datatorrent.stram.client.AppPackage.<init>(AppPackage.java:172)
> 	at com.datatorrent.gateway.resources.ws.v2.AppPackagesLocalCache.syncPackage(dc:290)
> 	at com.datatorrent.gateway.resources.ws.v2.AppPackagesResource.importAppPackage(vc:1783)
> 	at com.datatorrent.gateway.resources.ws.v2.AppPackagesResource.importAppPackages(vc:529)
> 	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 com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
> 	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
> 	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
> 	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
> 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> 	at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
> 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> 	at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
> 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> 	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
> 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> 	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
> 	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:457)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:368)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953)
> 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
> 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}
> It's because of the missing "</property>" tag in the properties.xml
> {code}
> .........
>   <property>
>     <name>dt.attr.DEBUG</name>
>     <value>true</value>
>   <property>
>     <name>dt.application.*.operator.*.attr.MEMORY_MB</name>
>     <value>128</value>
>   </property>
>   <property>
> ................
> {code}
> Note that,
> UI does not show any error (????) after importing the package and the imported package also works without any failures.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)