Topic
8 replies Latest Post - ‏2012-11-08T15:45:13Z by SystemAdmin
SystemAdmin
SystemAdmin
270 Posts
ACCEPTED ANSWER

Pinned topic Problem connecting to CICS from eclipse 3.6. 2by CICS Management Interface

‏2012-08-21T07:17:17Z |
hello,

i'm running eclipse 3.6.2 and i'm trying to connect to a CICS region using the CMI interface. When i try to connect i always get the following error message: IZE0106E Connect failed with error "Missing CMAS Record".
Stack trace:
com.ibm.cics.sm.comm.SystemManagerConnectionException: Missing CMAS Record
at com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.getCMASRecord(SMCPSMConnection.java:474)
at com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.connect(SMCPSMConnection.java:381)
at com.ibm.cics.sm.comm.sm.SMConnection.connect(SMConnection.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ibm.cics.core.comm.internal.ConnectionDescriptor$ConnectionInvocationHandler.invoke(ConnectionDescriptor.java:114)
at $Proxy1.connect(Unknown Source)
at com.ibm.cics.core.connections.internal.ConnectionManager$2.performLongWork(ConnectionManager.java:313)
at com.ibm.cics.eclipse.common.jobs.CancellableRunnable$1.run(CancellableRunnable.java:75)
at java.lang.Thread.run(Unknown Source)
When i define the same connection in CICS Explorer everything works OK. Can someone tell me what could be the problem ?
Updated on 2012-11-08T15:45:13Z at 2012-11-08T15:45:13Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    270 Posts
    ACCEPTED ANSWER

    Re: Problem connecting to CICS from eclipse 3.6. 2by CICS Management Interface

    ‏2012-08-28T12:22:40Z  in response to SystemAdmin
    Hi there,

    I would need to see the service data to look into this. Please email the information to dave.nice@uk.ibm.com.

    Please do the following:
    1) Try to connect to failing CMCI connection using the SDK installed into Eclipse
    2) Use the file menu to collect service data from within Eclipse - I need this zip to be emailed
    3) Connect to the working CMCI connection using the CICS Explorer product
    4) Use the file menu to collect service data from the product - I need this zip to be emailed

    It is difficult to envisage how this could fail in one environment and work in the other, so my first port of call will be checking that both scenarios are connection to the same host and port, via CMCI.

    Thanks in advance,

    Dave
    • SystemAdmin
      SystemAdmin
      270 Posts
      ACCEPTED ANSWER

      Re: Problem connecting to CICS from eclipse 3.6. 2by CICS Management Interface

      ‏2012-11-06T13:23:01Z  in response to SystemAdmin
      Hello Dave,

      Sorry for my late response but I've been on hollidays. I've collected both service information files and added them to this e-mail.

      I've sent the information in september by e-mail, but no response until now ?
      • SystemAdmin
        SystemAdmin
        270 Posts
        ACCEPTED ANSWER

        Re: Problem connecting to CICS from eclipse 3.6. 2by CICS Management Interface

        ‏2012-11-06T13:24:12Z  in response to SystemAdmin
        Second file.
      • SystemAdmin
        SystemAdmin
        270 Posts
        ACCEPTED ANSWER

        Re: Problem connecting to CICS from eclipse 3.6. 2by CICS Management Interface

        ‏2012-11-06T14:02:41Z  in response to SystemAdmin
        Hi there,

        Apologies - I can't find any trace of contact from you in my mail archive during September. I'm sorry you were left wondering whether I might respond :-(

        I notice that you are using the SDK version 1.1.1.1 and Explorer version 1.1.1.0. Explorer is running using the IBM JVM (we ship it with Explorer) and you are running Eclipse, and the SDK, using a Sun JVM.

        Here is the trace of the point the failing connection is unable to connect from the SDK:

        2012/09/20 07:11:33.284 VET 15 - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.get() https://ESA2:3423/CICSSystemManagement/CICSCICSManagingAddressSpace//?NODISCARD=NODISCARD&SUMMONLY
        2012/09/20 07:11:33.284 VET 15 > com.ibm.cics.sm.comm.AbstractSystemManagerConnection.openConnection() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@164f383IESKP@ESA2:3423], https://ESA2:3423/CICSSystemManagement/CICSCICSManagingAddressSpace//?NODISCARD=NODISCARD&SUMMONLY
        2012/09/20 07:11:33.893 VET 15 - com.ibm.cics.sm.comm.AbstractSystemManagerConnection.openConnection() javax.net.ssl.SSLContext@d5146d
        2012/09/20 07:11:33.924 VET 15 < com.ibm.cics.sm.comm.AbstractSystemManagerConnection.openConnection() sun.net.www.protocol.https.DelegateHttpsURLConnection:https://ESA2:3423/CICSSystemManagement/CICSCICSManagingAddressSpace//?NODISCARD=NODISCARD&SUMMONLY
        2012/09/20 07:11:33.940 VET 15 - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.setAuthorization() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@164f383IESKP@ESA2:3423], Authorization, IESKP
        2012/09/20 07:11:34.190 VET 15 - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.get() 403, Forbidden, text/html; charset=utf-8

        And here is the same point in the process when the connection works from Explorer:

        2012/08/22 09:14:49.074 VET 15 - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.get() https://ESA2:3423/CICSSystemManagement/CICSCICSManagingAddressSpace//?NODISCARD=NODISCARD&SUMMONLY
        2012/08/22 09:14:49.074 VET 15 > com.ibm.cics.sm.comm.AbstractSystemManagerConnection.openConnection() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@c350c35IESKP@ESA2:3423], https://ESA2:3423/CICSSystemManagement/CICSCICSManagingAddressSpace//?NODISCARD=NODISCARD&SUMMONLY
        2012/08/22 09:14:49.387 VET 15 - com.ibm.cics.sm.comm.AbstractSystemManagerConnection.openConnection() javax.net.ssl.SSLContext@2a872a87
        2012/08/22 09:14:49.434 VET 15 < com.ibm.cics.sm.comm.AbstractSystemManagerConnection.openConnection() com.ibm.net.ssl.www2.protocol.https.e:https://ESA2:3423/CICSSystemManagement/CICSCICSManagingAddressSpace//?NODISCARD=NODISCARD&SUMMONLY
        2012/08/22 09:14:49.574 VET 15 - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.setAuthorization() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@c350c35IESKP@ESA2:3423], Authorization, IESKP
        2012/08/22 09:14:49.637 VET 15 - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.get() javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
        2012/08/22 09:14:49.637 VET 15 > com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.get() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@c350c35IESKP@ESA2:3423], CMAS, com.ibm.cics.sm.comm.IContext$2@28252825
        So I can see that you are using the same hostname and port with each. The way Explorer 1.1.1.x works is that initially it will attempt an SSL connection, if that fails it'll try for a normal connection. You can see in the working version, it receives the SSLException and then begins to connect as non-SSL.

        With the SDK running on Sun's JVM, you can see that instead of receiving an SSLException, you get a 403 message back from the server. The Explorer code then doesn't attempt to reconnect without SSL (we think the SSL worked, you just weren't authorized). You can see that in the SDK version, we are passed through the sun DelegateHttpsURLConnection, because we're using the Sun JVM.

        So I find myself wondering why the Sun JVM is telling us that you're not authorised? Is SSL available on this server?

        Something you could try quickly and easily is to use a different JVM, using the -vm parameter.
        h:\eclipse362\eclipse\eclipse.exe -vm N:\APPLSHARE\PRD\SYUT\Softw\CICS_Explorer\jre\bin\java.exe
        to start the SDK with the JVM used for the standalone Explorer product, or
        N:\APPLSHARE\PRD\SYUT\Softw\CICS_Explorer\cicsexplorer.exe -vm C:\localapp\apps\java\jre1.6.0_07\bin\java.exe
        to start the CICS Explorer product with the Sun JVM.

        It does looks like you are using the same host/port, if you are sure you're using the same credentials too, then you might need to raise a PMR to get more detailed help with this.

        Thanks,

        Dave
        • SystemAdmin
          SystemAdmin
          270 Posts
          ACCEPTED ANSWER

          Re: Problem connecting to CICS from eclipse 3.6. 2by CICS Management Interface

          ‏2012-11-07T08:44:36Z  in response to SystemAdmin
          Hi Dave,

          i've tried your proposals.

          When i run explorer with the Sun JVM (N:\APPLSHARE\PRD\SYUT\Softw\CICS_Explorer\cicsexplorer.exe -vm C:\localapp\apps\java\jre1.6.0_07\bin\java.exe
          )the connection with the CICS WUI works fine.
          When i run eclipse withe the IBM JVM (h:\eclipse362\eclipse\eclipse.exe -vm N:\APPLSHARE\PRD\SYUT\Softw\CICS_Explorer\jre\bin\java.exe
          ) then i get the same error as before: Missing CMAS Record

          2012/11/07 09:28:09.552 CET [1] createPartControl com.ibm.cics.core.connections.internal.views.ConnectionsViewPart.createPartControl()
          2012/11/07 09:29:35.676 CET [2] - com.ibm.cics.sm.comm.AbstractSystemManagerConnection.setConfiguration() http://com.ibm.cics.sm.comm.sm.SMConnection[, true]
          2012/11/07 09:29:35.692 CET [5] > com.ibm.cics.sm.comm.sm.SMConnection.connect() http://com.ibm.cics.sm.comm.sm.SMConnection[]
          2012/11/07 09:29:35.723 CET [5] - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.<init>() com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84[]
          2012/11/07 09:29:35.723 CET [5] - com.ibm.cics.sm.comm.AbstractSystemManagerConnection.setConfiguration() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683], true
          2012/11/07 09:29:35.723 CET [5] - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.setConfiguration() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683, ConnectionConfiguration1348488330187-1, tgtf, Creds=1344955590097-2@cpuf:8683,true, {READ_TIMEOUT=0,}]
          2012/11/07 09:29:35.723 CET [5] - com.ibm.cics.sm.comm.sm.SMConnection.connect() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683]
          2012/11/07 09:29:35.723 CET [5] > com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.connect() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683], cpuf, 8683, IESKP
          2012/11/07 09:29:35.723 CET [5] > com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.getResources() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683], CMAS, com.ibm.cics.sm.comm.IContext$2@47a747a7
          2012/11/07 09:29:35.723 CET [5] > com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.get() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683], CMAS, com.ibm.cics.sm.comm.IContext$2@47a747a7
          2012/11/07 09:29:35.739 CET [5] - com.ibm.cics.sm.comm.AbstractSystemManagerConnection.createURL() https://cpuf:8683/CICSSystemManagement/CICSCICSManagingAddressSpace//?NODISCARD=NODISCARD&SUMMONLY
          2012/11/07 09:29:35.739 CET [5] - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.get() https://cpuf:8683/CICSSystemManagement/CICSCICSManagingAddressSpace//?NODISCARD=NODISCARD&SUMMONLY
          2012/11/07 09:29:35.739 CET [5] > com.ibm.cics.sm.comm.AbstractSystemManagerConnection.openConnection() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683], https://cpuf:8683/CICSSystemManagement/CICSCICSManagingAddressSpace//?NODISCARD=NODISCARD&SUMMONLY
          2012/11/07 09:29:36.192 CET [5] - com.ibm.cics.sm.comm.AbstractSystemManagerConnection.openConnection() javax.net.ssl.SSLContext@8970897
          2012/11/07 09:29:36.239 CET [5] < com.ibm.cics.sm.comm.AbstractSystemManagerConnection.openConnection() com.ibm.net.ssl.www2.protocol.https.e:https://cpuf:8683/CICSSystemManagement/CICSCICSManagingAddressSpace//?NODISCARD=NODISCARD&SUMMONLY
          2012/11/07 09:29:36.270 CET [5] - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.setAuthorization() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683], Authorization, IESKP
          2012/11/07 09:29:36.598 CET [5] - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.get() 403, Forbidden, text/html; charset=utf-8
          2012/11/07 09:29:36.598 CET [5] < com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.get() [SMResponseCMAS, 0, 47a747a7]
          2012/11/07 09:29:36.598 CET [5] > com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.fetch() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683], 47a747a7, 1, 0
          2012/11/07 09:29:36.598 CET [5] - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.fetch() [SMResponseCMAS, 0, 47a747a7], CMAS, CICSCICSManagingAddressSpace
          2012/11/07 09:29:36.598 CET [5] < com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.fetch() [SMResponseCMAS, 0, 47a747a7]
          2012/11/07 09:29:36.598 CET [5] > com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.discard() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683], 47a747a7
          2012/11/07 09:29:36.598 CET [5] - com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.discard() [SMResponseCMAS, 0, 47a747a7]
          2012/11/07 09:29:36.598 CET [5] < com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.discard() [0]
          2012/11/07 09:29:36.598 CET [5] < com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection.getResources() [SMResponseCMAS, 0, 47a747a7]
          2012/11/07 09:29:36.598 CET [5] - com.ibm.cics.sm.comm.sm.SMConnection.connect() com.ibm.cics.sm.comm.SystemManagerConnectionException: Missing CMAS Record
          2012/11/07 09:29:36.598 CET [5] - com.ibm.cics.sm.comm.sm.SMConnection.connect() [com.ibm.cics.sm.comm.sm.internal.SMCPSMConnection@6c846c84IESKP@cpuf:8683]
          • SystemAdmin
            SystemAdmin
            270 Posts
            ACCEPTED ANSWER

            Re: Problem connecting to CICS from eclipse 3.6. 2by CICS Management Interface

            ‏2012-11-08T09:23:49Z  in response to SystemAdmin
            Hi Patrik,

            Thank you for confirming that. On the strength of your assertion that it fails with both Sun and JVMs, I think this must be a configuration problem.

            Looking in the SystemSummary.txt for the service datas you provided, it looks to me like you have disabled the proxy in your standalone Explorer instance but not in the SDK.

            Our interaction with proxy servers is described in this technote: http://www-01.ibm.com/support/docview.wss?uid=swg21568577

            I think you will need to disable the proxy servers within the SDK instance as a first step. After you have shown the proxy to be the cause of the issue, perhaps you could configure the proxy rules so that it is enabled for the external update site but disabled for your internal systems.

            Dave
            • SystemAdmin
              SystemAdmin
              270 Posts
              ACCEPTED ANSWER

              Re: Problem connecting to CICS from eclipse 3.6. 2by CICS Management Interface

              ‏2012-11-08T15:27:52Z  in response to SystemAdmin
              Hi Dave,

              when i look at the netwerk connection settings in eclipse, i see 3 options in active provider: direct, manual and native.
              I compared the settings in eclipse with the one in explorer and the "native" option was active in both eclipse and explorer with the same checkboxes activated.
              When i change the active provider option in eclipse from native to direct or manual, then my connection to the WUI on the mainframe works OK.
              As i know very little about proxy server stuff, i've no idea how to customize these settings.
              I don't see the need for using a proxy as all explorer connections are local. The only outbound connection through the internet that i can think of is the automatic update facility from explorer.

              Grtz, Patrik.
              • SystemAdmin
                SystemAdmin
                270 Posts
                ACCEPTED ANSWER

                Re: Problem connecting to CICS from eclipse 3.6. 2by CICS Management Interface

                ‏2012-11-08T15:45:13Z  in response to SystemAdmin
                Hi Patrik,

                Great that you got your issue sorted.

                This doc (linked from the technote) explains it in a bit more detail: http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.user/reference/ref-net-preferences.htm

                As you've discovered, in 'native' mode which is the default, Eclipse or Explorer will pick up your proxy settings from a browser. I can't explain why it's failed to pick them up correctly in Explorer at this stage.

                Dave