On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.

[ERROR] Error Generating artifacts: org.codehaus.jackson.node.TextNode cannot be cast to org.codehau

Hi All,

       While deploying xcp application I am getting below error.

If any one faced this issue . Please help to resolve this issue

[ERROR] Error Generating artifacts: org.codehaus.jackson.node.TextNode cannot be cast to org.codehaus.jackson.node.ObjectNode
org.codehaus.jackson.node.TextNode cannot be cast to org.codehaus.jackson.node.ObjectNode
java.lang.ClassCastException: org.codehaus.jackson.node.TextNode cannot be cast to org.codehaus.jackson.node.ObjectNode
at com.emc.xcp.artifact.uitemplate.factory.UITemplateUtility.addJsonNode(UITemplateUtility.java:1104)
at com.emc.xcp.artifact.uitemplate.factory.UITemplateUtility.getExpressionsAsJson(UITemplateUtility.java:1091)
at com.emc.xcp.spring.beans.util.ExpressionsGenerator.generateClientSideExpressionsJson(ExpressionsGenerator.java:59)
at com.emc.xcp.uitemplate.packaging.WarGenerator.contributeClientSideExpressions(WarGenerator.java:897)
at com.emc.xcp.uitemplate.packaging.WarGenerator.contribute(WarGenerator.java:309)
at com.emc.xcp.uitemplate.packaging.WarGeneratorContributor.generate(WarGeneratorContributor.java:35)
at com.emc.xcp.builder.codegen.CodegenUtils.generateCodes(CodegenUtils.java:149)
at com.emc.xcp.builder.codegen.CodegenUtils.executeArtifactGenerators(CodegenUtils.java:104)
at internal.com.emc.xcp.builder.codegen.maven.GenerateSourcesXCPCommand.execute(GenerateSourcesXCPCommand.java:41)
at internal.com.emc.xcp.builder.build.maven.MavenHookManager.execute(MavenHookManager.java:29)
at internal.com.emc.xcp.builder.build.maven.MavenHookServlet.doPost(MavenHookServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:360)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:366)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
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)

[ERROR] Unexpected system error generating code for project 'EDMS'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:00 min
[INFO] Finished at: 2017-09-26T13:23:34+05:30
[INFO] Final Memory: 13M/152M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.emc.xcp.builder:xcp-generate-sources:1.0.9:run (xcp-generate-sources) on project EDMS: Xcp mojo executing command 'generate' for project 'EDMS' failed unexpectedly: com.emc.xcp.builder.codegen.CodeGenException: java.lang.ClassCastException: org.codehaus.jackson.node.TextNode cannot be cast to org.codehaus.jackson.node.ObjectNode
[ERROR] at com.emc.xcp.builder.codegen.CodegenUtils.generateCodes(CodegenUtils.java:168)
[ERROR] at com.emc.xcp.builder.codegen.CodegenUtils.executeArtifactGenerators(CodegenUtils.java:104)
[ERROR] at internal.com.emc.xcp.builder.codegen.maven.GenerateSourcesXCPCommand.execute(GenerateSourcesXCPCommand.java:41)
[ERROR] at internal.com.emc.xcp.builder.build.maven.MavenHookManager.execute(MavenHookManager.java:29)
[ERROR] at internal.com.emc.xcp.builder.build.maven.MavenHookServlet.doPost(MavenHookServlet.java:52)
[ERROR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
[ERROR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
[ERROR] at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
[ERROR] at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
[ERROR] at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
[ERROR] at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
[ERROR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
[ERROR] at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:360)
[ERROR] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
[ERROR] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
[ERROR] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
[ERROR] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
[ERROR] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
[ERROR] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
[ERROR] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
[ERROR] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
[ERROR] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
[ERROR] at org.eclipse.jetty.server.Server.handle(Server.java:366)
[ERROR] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
[ERROR] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
[ERROR] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
[ERROR] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
[ERROR] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
[ERROR] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
[ERROR] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
[ERROR] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
[ERROR] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
[ERROR] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
[ERROR] at java.lang.Thread.run(Thread.java:745)
[ERROR] Caused by: java.lang.ClassCastException: org.codehaus.jackson.node.TextNode cannot be cast to org.codehaus.jackson.node.ObjectNode
[ERROR] at com.emc.xcp.artifact.uitemplate.factory.UITemplateUtility.addJsonNode(UITemplateUtility.java:1104)
[ERROR] at com.emc.xcp.artifact.uitemplate.factory.UITemplateUtility.getExpressionsAsJson(UITemplateUtility.java:1091)
[ERROR] at com.emc.xcp.spring.beans.util.ExpressionsGenerator.generateClientSideExpressionsJson(ExpressionsGenerator.java:59)
[ERROR] at com.emc.xcp.uitemplate.packaging.WarGenerator.contributeClientSideExpressions(WarGenerator.java:897)
[ERROR] at com.emc.xcp.uitemplate.packaging.WarGenerator.contribute(WarGenerator.java:309)
[ERROR] at com.emc.xcp.uitemplate.packaging.WarGeneratorContributor.generate(WarGeneratorContributor.java:35)
[ERROR] at com.emc.xcp.builder.codegen.CodegenUtils.generateCodes(CodegenUtils.java:149)
[ERROR] ... 33 more
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Regards,

Krishnasami