我正在使用Message Broker 8和MQ7。当我尝试在消息流中使用映射节点时,出现java.lang.RuntimeException。

这是事件查看器显示的内容:

( BROKER8.default ) The map script generation for QName ''{practica}:CambioFecha'' has failed, with the following details: ''java.lang.RuntimeException: ''.

The generation of the map has failed.

Review and resolve the problems indicated in the message from the map generation.


完整的异常堆栈为:

    ExceptionList: ( ['MQROOT' : 0xe052600]
      (0x01000000:Name):RecoverableException = (
        (0x03000000:NameValue):File                 = 'F:\build\S000_P\src\DataFlowEngine\PluginInterface\ImbJniNode.cpp' (CHARACTER)
        (0x03000000:NameValue):Line                 = 1170 (INTEGER)
        (0x03000000:NameValue):Function             = 'ImbJniNode::evaluate' (CHARACTER)
        (0x03000000:NameValue):Type                 = 'ComIbmMSLMappingNode' (CHARACTER)
        (0x03000000:NameValue):Name                 = 'practica/DATAGRAMA#FCMComposite_1_7' (CHARACTER)
        (0x03000000:NameValue):Label                = 'practica.DATAGRAMA.Cambio Formato Fecha' (CHARACTER)
        (0x03000000:NameValue):Catalog              = 'BIPmsgs' (CHARACTER)
        (0x03000000:NameValue):Severity             = 3 (INTEGER)
        (0x03000000:NameValue):Number               = 2230 (INTEGER)
        (0x03000000:NameValue):Text                 = 'Caught exception and rethrowing' (CHARACTER)
        (0x01000000:Name     ):RecoverableException = (
          (0x03000000:NameValue):File                 = 'MbErrorHandler.java' (CHARACTER)
          (0x03000000:NameValue):Line                 = 146 (INTEGER)
          (0x03000000:NameValue):Function             = 'evaluate' (CHARACTER)
          (0x03000000:NameValue):Type                 = '' (CHARACTER)
          (0x03000000:NameValue):Name                 = '' (CHARACTER)
          (0x03000000:NameValue):Label                = '' (CHARACTER)
          (0x03000000:NameValue):Catalog              = 'BIPmsgs' (CHARACTER)
          (0x03000000:NameValue):Severity             = 3 (INTEGER)
          (0x03000000:NameValue):Number               = 3946 (INTEGER)
          (0x03000000:NameValue):Text                 = 'Caught BrokerXCIStaticException' (CHARACTER)
          (0x01000000:Name     ):Insert               = (
            (0x03000000:NameValue):Type = 5 (INTEGER)
            (0x03000000:NameValue):Text = '{practica}:CambioFecha' (CHARACTER)
          )
          (0x01000000:Name     ):Insert               = (
            (0x03000000:NameValue):Type = 5 (INTEGER)
            (0x03000000:NameValue):Text = 'java.lang.RuntimeException: ' (CHARACTER)
          )
          (0x01000000:Name     ):RecoverableException = (
            (0x03000000:NameValue):File     = 'MbErrorHandler.java' (CHARACTER)
            (0x03000000:NameValue):Line     = 310 (INTEGER)
            (0x03000000:NameValue):Function = 'throwableToMbException' (CHARACTER)
            (0x03000000:NameValue):Type     = '' (CHARACTER)
            (0x03000000:NameValue):Name     = '' (CHARACTER)
            (0x03000000:NameValue):Label    = '' (CHARACTER)
            (0x03000000:NameValue):Catalog  = 'BIPmsgs' (CHARACTER)
            (0x03000000:NameValue):Severity = 3 (INTEGER)
            (0x03000000:NameValue):Number   = 3949 (INTEGER)
            (0x03000000:NameValue):Text     = 'Caught BrokerXCIStaticException' (CHARACTER)
            (0x01000000:Name     ):Insert   = (
              (0x03000000:NameValue):Type = 5 (INTEGER)
              (0x03000000:NameValue):Text = 'java.lang.RuntimeException:

    ' (CHARACTER)
            )
          )
        )
      )
    )


整个消息流运行正常。因此,我认为这不是映射节点的错误。另一个细节,在其他流程中,映射节点根本不起作用,并给出相同的错误。我不知道可能是什么问题。也许是JRE错误?

任何的想法?

谢谢!

约苏

最佳答案

这很可能是由于64位计算机上Java堆很大,因为所有引用都比4个字节大。要使其正常运行,您只需在32位代理上运行它,或尝试以下任何一种方法-


使用Xcompressedrefs(关于它的解释在这里-


http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=%2Fcom.ibm.java.doc.diagnostics.60%2Fdiag%2Funderstanding%2Fmm_compressed_references.html

a)在代理提示下执行以下命令


  mqsichangeproperties-代理名称--e --EG名称--o
  ComIbmJVMManager -n jvmSystemProperty -v \“-Xcompressedrefs \”


b)验证是否成功应用了JVM选项


  mqsireportproperties-代理名称--e --EG名称--o
  ComIbmJVMManager -n jvmSystemProperty


系统应显示-

-Xcompressedrefs

c)重新启动执行组


增加JVM内存,默认为256MB
a)执行以下命令



  mqsichangeproperties-代理名称--e --EG名称--o
  ComIbmJVMManager -n jvmMaxHeapSize -v 536870912


b)验证是否成功应用了JVM选项


  mqsireportproperties-代理名称--e --EG名称--o
  ComIbmJVMManager -n jvmMaxHeapSize


c)重新启动执行组

希望这可以帮助

07-23 12:36