Topic
5 replies Latest Post - ‏2010-07-14T16:32:49Z by BradSmalley
SystemAdmin
SystemAdmin
6043 Posts
ACCEPTED ANSWER

Pinned topic Invalid segment length (LL) of [0](help me)

‏2005-12-12T09:49:16Z |
dear all,
this issue is blocking our project for two weeks, could you please help us?

About this question, I got the explanation for it from IBM(http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.etools.ctc.ims.doc/ref/rimsmess.html)
please kindly refer to the following:
Explanation: The input message provided by the Java program for the IMS application program contains a value for its segment length which is either negative, 0, or greater than the number of bytes of data in the message segment.
User Action: Provide the correct value for the segment length of the input message.

about the segment length of the input message, what does it means? how to put the right value for it?
please refer to the exception:
javax.resource.ResourceException: ICO0024E: com.ibm.connector2.ims.ico.IMSTCPIPManagedConnection@7ee09a45.buildInputMsg(Record) error. Invalid segment length (LL) of [0] in input object. com.ibm.ims.ico.IMSInputOTMAMsg@75509a45.setAppData(byte[): com.ibm.ims.ico.IMSConnResourceException]
at com.ibm.connector2.ims.ico.IMSManagedConnection.buildInputMsg(IMSManagedConnection.java:397)
at com.ibm.connector2.ims.ico.IMSTCPIPManagedConnection.callSendRecv(IMSTCPIPManagedConnection.java:299)
at com.ibm.connector2.ims.ico.IMSManagedConnection.call(IMSManagedConnection.java:927)
at com.ibm.connector2.ims.ico.IMSConnection.call(IMSConnection.java:196)
at com.ibm.connector2.ims.ico.IMSInteraction.execute(IMSInteraction.java:497)
at com.rbc.yey0.ims.dealinquiry.TestDealInquiryImpl.invoke(TestDealInquiryImpl.java:124)
at com.rbc.yey0.ims.dealinquiry.TestDealInquiryImpl.inquiryDeal(TestDealInquiryImpl.java:40)
at com.rbc.yey0.ims.dealinquiry.DealInquiryTesting.main(DealInquiryTesting.java:31)
Updated on 2010-07-14T16:32:49Z at 2010-07-14T16:32:49Z by BradSmalley
  • SystemAdmin
    SystemAdmin
    6043 Posts
    ACCEPTED ANSWER

    Re: Invalid segment length (LL) of [0](help me)

    ‏2006-06-21T19:38:05Z  in response to SystemAdmin
    Have you solved this problem?
  • SystemAdmin
    SystemAdmin
    6043 Posts
    ACCEPTED ANSWER

    Re: Invalid segment length (LL) of [0](help me)

    ‏2006-06-22T19:18:19Z  in response to SystemAdmin
    set the ll segment length by using the generated format handler.

    Call formatHandler.getSize();

    E.g.

    outputHandler.setObjectPart(output);
    output.setLlzz__bufsize((short)outputHandler.getSize());

    Cheers,
    William
    • SystemAdmin
      SystemAdmin
      6043 Posts
      ACCEPTED ANSWER

      Re: Invalid segment length (LL) of [0](help me)

      ‏2009-04-29T23:23:22Z  in response to SystemAdmin
      Hi Could you please tell me in what class this formatHanlder to be refferd and what is that output handler? It will be a great help if you can provide some more details about the same. I am struggling with problem for the last one week.

      Thanks!
      Kannan
      • SystemAdmin
        SystemAdmin
        6043 Posts
        ACCEPTED ANSWER

        Re: Invalid segment length (LL) of [0](help me)

        ‏2009-07-06T19:06:23Z  in response to SystemAdmin
        Hi, I got the same exception when I use J2C tool to generate the data binding class. Could you please share the information if you solved the issue? Thanks in advance.
  • BradSmalley
    BradSmalley
    2 Posts
    ACCEPTED ANSWER

    Re: Invalid segment length (LL) of [0](help me)

    ‏2010-07-14T16:32:49Z  in response to SystemAdmin
    I stuggled with this issue myself over the past two days and web searches failed to yield the answer.

    Make sure the correct environment is selected when you use the J2C Tools to create IMS/CICS Bindings. I had this problem when I improperly generated the input and output classes with "win32" selected. When I re-generated the classes with z/OS selected they worked fine. I think this is largely a big/little endian problem.

    Hope this helps.