2 Replies Latest reply on Dec 7, 2011 9:47 AM by Oscar Avila

    Failed to create the change ticket

    Oscar Avila

      Hi all.

       

      I am trying to run a Software Deploy Job with Change Management approval but the job finished with "Approval Status" Failed to create/update change ticket. In the BBSA log appears:

       

      [05 Dec 2011 17:57:11,263] [Approval-0] [INFO] [::] [] Established connection to primary atrium orchestrator server sofcbao01

      [05 Dec 2011 17:57:12,059] [Approval-0] [ERROR] [::] [] Failed to create the change ticket com.bladelogic.om.infra.erba.exceptions.AOWorkFlowExecutionException: Process is COMPENSATED.

       

      and in the BAO processes.log file I can see:


      Error
      java.lang.NullPointerException

      Caused by:
      Summary: java.lang.NullPointerException

      Caused by:
      Summary: No message available. The exception was of type: java.lang.NullPointerException

      05 dic 2011 17:57:12,401 [Current Time=Mon Dec 05 17:57:12 CST 2011] [Process Name=:AutoPilot-OA-Common_Utilities:Format Date to Epoch Date] [Root Job Id=b170e23c1f90d19f:-8879b77:13401e8c49a:-7ffb1-1323129432276] [Job Id=b170e23c1f90d19f:-8879b77:13401e8c49a:-7ffb1-1323129432276/:BladeLogic-SA-ITSM_Integration:Submit ITSM Ticket:start:switch[1]:sequence[2]:call-process[2]]
      Summary: A fault occurred while evaluating a stylesheet.

      Detail:The stylesheet is:

      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="java" version="1.0">
      <xsl:template match="/">
      <xsl:variable name="dateFormat" select="java:text.SimpleDateFormat.new('${format string}')" />
      <xsl:variable name="dateObject" select="java:parse($dateFormat, .)" />
      <value>
      <xsl:value-of select="java:getTime($dateObject)" disable-output-escaping="no" />
      </value>
      </xsl:template>
      </xsl:stylesheet>

      The input document is:

      <value>Mon Dec 05 17:57:06 CST 2011</value>

      Fault details: java.text.ParseException: Unparseable date: "Mon Dec 05 17:57:06 CST 2011"; Line#: 4; Column#: 75
      05 dic 2011 17:57:12,401 [Current Time=Mon Dec 05 17:57:12 CST 2011] [Process Name=:AutoPilot-OA-Common_Utilities:Format Date to Epoch Date] [Root Job Id=b170e23c1f90d19f:-8879b77:13401e8c49a:-7ffb1-1323129432276] [Job Id=b170e23c1f90d19f:-8879b77:13401e8c49a:-7ffb1-1323129432276/:BladeLogic-SA-ITSM_Integration:Submit ITSM Ticket:start:switch[1]:sequence[2]:call-process[2]]
      Summary: A fault occurred while evaluating a stylesheet.

      Detail:The stylesheet is:

      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="java" version="1.0">
      <xsl:template match="/">
      <xsl:variable name="dateFormat" select="java:text.SimpleDateFormat.new('${format string}')" />
      <xsl:variable name="dateObject" select="java:parse($dateFormat, .)" />
      <value>
      <xsl:value-of select="java:getTime($dateObject)" disable-output-escaping="no" />
      </value>
      </xsl:template>
      </xsl:stylesheet>

      The input document is:

      <value>Mon Dec 05 17:57:06 CST 2011</value>

      Fault details: java.lang.NullPointerException; Line#: 4; Column#: 75
      05 dic 2011 17:57:12,401 [Current Time=Mon Dec 05 17:57:12 CST 2011] [Process Name=:AutoPilot-OA-Common_Utilities:Format Date to Epoch Date] [Root Job Id=b170e23c1f90d19f:-8879b77:13401e8c49a:-7ffb1-1323129432276] [Job Id=b170e23c1f90d19f:-8879b77:13401e8c49a:-7ffb1-1323129432276/:BladeLogic-SA-ITSM_Integration:Submit ITSM Ticket:start:switch[1]:sequence[2]:call-process[2]]
      An error occurred that triggered compensation:
      Summary: Execution failed.

      Caused by:
      Summary: An attempt to access a parameter failed.

      Caused by:
      Summary: Invalid transform
      Detail: ERROR: Unable to perform transform
      =======================
      Source document :
      <value>Mon Dec 05 17:57:06 CST 2011</value>

      =======================
      Transform before token replacement:
      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="java" version="1.0">
      <xsl:template match="/">
      <xsl:variable name="dateFormat" select="java:text.SimpleDateFormat.new('${format string}')" />
      <xsl:variable name="dateObject" select="java:parse($dateFormat, .)" />
      <value>
      <xsl:value-of select="java:getTime($dateObject)" disable-output-escaping="no" />
      </value>
      </xsl:template>
      </xsl:stylesheet>

       

      =======================
      Transform after token replacement
      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="java" version="1.0">
      <xsl:template match="/">
      <xsl:variable name="dateFormat" select="java:text.SimpleDateFormat.new('EEE MMM dd HH:mm:ss z yyyy')" />
      <xsl:variable name="dateObject" select="java:parse($dateFormat, .)" />
      <value>
      <xsl:value-of select="java:getTime($dateObject)" disable-output-escaping="no" />
      </value>
      </xsl:template>
      </xsl:stylesheet>

       

      can someone help me?