7 Replies Latest reply on Mar 28, 2016 5:49 AM by Sampada Wagde

    cics rar deployment on jboss 7.1.1 -InteractionSpec  error

    LAKSHMI GUDAVALLI Newbie

      I have deployed the CICS resporce adaptor and created connection definitions. Deployed the sample application. When application tries to invoke the cics call, I receive below exception. Same application works fine on websphere with same rar and connection definitions (in terms of properties that I provided).  I tried the ECIIVT.ear provided with cisc installation, that also has the same error.

       

      com.ibm.connector2.cics.CICSUserInputException: CTG9628E InteractionSpec passed to execute() not of type ECIInteractionSpec

      at com.ibm.connector2.cics.ECIInteraction.execute(Unknown Source)

       

      I have printed the object that is being passed to 'ECIInteraction.execute' method, it return as an instance of 'ECIInteractionSpec'.


      I am using cics adaptor came from cics installtion version 8.1.

       

      here is my resource adaptor config in server.xml

       

      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">

                  <resource-adapters>

                      <resource-adapter>

                          <archive>cicseci.rar</archive>

                          <transaction-support>XATransaction</transaction-support>

                          <connection-definitions>

                              <connection-definition class-name="com.ibm.connector2.cics.ECIManagedConnectionFactory" jndi-name="java:/ECI" use-java-context="true" pool-name="ECIIVT">

                               <!--  NOTE: below config properties has proper values on the server.xml-->

                                  <config-property name="UserName">username</config-property>

                                  <config-property name="ConnectionURL">tcp://cicshost</config-property>

                                  <config-property name="PortNumber">port</config-property>

                                  <config-property name="ServerName">cisc server</config-property>

                                  <config-property name="TraceLevel">1</config-property>

                                  <config-property name="xaSupport">true</config-property>

                              </connection-definition>

                          </connection-definitions>

                      </resource-adapter>

                  </resource-adapters>

              </subsystem>

       

      Attaching the ra.xml from cics rar.

       

       

       

      Anyone came across this kind of issue(s) and has a solution?

        • 2. Re: cics rar deployment on jboss 7.1.1 -InteractionSpec  error
          LAKSHMI GUDAVALLI Newbie

          Hi,

           

          Tried with 8.0.0.Cr1 and 8.1.0.CR1, got the same error.

           

          2014-04-14 16:07:40,952 INFO  [stdout] (default task-2) 16:07:40:952 : [default task-2:2eee85c3] :  Exception Logged by: com.ibm.connector2.cics.ECIInteraction

          2014-04-14 16:07:40,955 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] : com.ibm.connector2.cics.CICSUserInputException: CTG9628E InteractionSpec passed to execute() not of type ECIInteractionSpec

          2014-04-14 16:07:40,958 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at com.ibm.connector2.cics.ECIInteraction.execute(Unknown Source)

          2014-04-14 16:07:40,961 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at net.atpco.fares.web.LegacyDriverCall2.callCobolProgram(LegacyDriverCall2.java:124)


          2014-04-14 16:07:40,963 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at org.apache.jsp.secure.cics.CICS_005fJndi_005fResults_jsp._jspService(CICS_005fJndi_005fResults_jsp.java:101)


          2014-04-14 16:07:40,966 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)


          2014-04-14 16:07:40,968 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)


          2014-04-14 16:07:40,970 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:366)


          2014-04-14 16:07:40,973 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)


          2014-04-14 16:07:40,975 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)


          2014-04-14 16:07:40,978 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)


          2014-04-14 16:07:40,980 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)


          2014-04-14 16:07:40,983 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)


          2014-04-14 16:07:40,985 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)


          2014-04-14 16:07:40,987 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)


          2014-04-14 16:07:40,989 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)


          2014-04-14 16:07:40,991 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)


          2014-04-14 16:07:40,993 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)


          2014-04-14 16:07:40,995 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)


          2014-04-14 16:07:40,997 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)


          2014-04-14 16:07:41,000 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)


          2014-04-14 16:07:41,002 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)


          2014-04-14 16:07:41,004 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)


          2014-04-14 16:07:41,005 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)


          2014-04-14 16:07:41,007 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)


          2014-04-14 16:07:41,009 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)


          2014-04-14 16:07:41,010 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)


          2014-04-14 16:07:41,012 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)


          2014-04-14 16:07:41,015 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)


          2014-04-14 16:07:41,017 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)


          2014-04-14 16:07:41,018 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)


          2014-04-14 16:07:41,020 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168)


          2014-04-14 16:07:41,022 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)


          2014-04-14 16:07:41,023 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)


          2014-04-14 16:07:41,025 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)


          2014-04-14 16:07:41,026 INFO  [stdout] (default task-2) 16:07:40:955 : [default task-2:2eee85c3] :  at java.lang.Thread.run(Thread.java:722)


          2014-04-14 16:07:41,028 INFO  [stdout] (default task-2) finally block


          • 3. Re: cics rar deployment on jboss 7.1.1 -InteractionSpec  error
            Pug Milamber Newbie

            Hello,

             

            I've have the same error with JBoss EAP 6.2.1 (or 6.2.0) with a sample program.

             

            Using : RA cicseci.rar and IBM CTG version 9.0.0.2

             

            Error message is:

             

            15:29:14,366 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) com.ibm.connector2.cics.CICSUserInputException: CTG9628E InteractionSpec passed to execute() not of type ECIInteractionSpec

            15:29:14,366 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at com.ibm.connector2.cics.ECIInteraction.execute(Unknown Source)

            15:29:14,367 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at com.test.tests.CICSServlet.execute(CICSServlet.java:90)

            15:29:14,367 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at com.test.tests.CICSServlet.doGet(CICSServlet.java:49)

            15:29:14,367 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

            15:29:14,368 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

            15:29:14,368 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

            15:29:14,368 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

            15:29:14,369 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

            15:29:14,369 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

            15:29:14,369 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

            15:29:14,370 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

            15:29:14,370 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

            15:29:14,370 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

            15:29:14,371 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

            15:29:14,371 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

            15:29:14,371 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

            15:29:14,372 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

            15:29:14,372 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)     at java.lang.Thread.run(Thread.java:744)

             

             

            The issue occured in these code lines (in ECIInteraction.class from cicseci.rar)

             

             

                  if (paramInteractionSpec != null)

                  {

                    if ((paramInteractionSpec instanceof ECIInteractionSpec))  /// HERE: isn't an instance of ECIInterationSpec

                    {

                      localObject2 = (ECIInteractionSpec)paramInteractionSpec;

                    }

                    else

                    {

                      getLogHelper().traceEntry(this, "execute()", null);

                      localObject3 = new CICSUserInputException(CICSMessageHelper.getString("ECI_INT_SPEC_NOT_ECI"));

                      getLogHelper().traceEx(this, (Throwable)localObject3);

                      throw ((Throwable)localObject3);

                    }

             

             

            Theses code works with JBoss 5 and WebSphere 7 (same settings)

             

            I thinks there are perhaps a issue with JCA in JBoss EAP 6+ (or JBoss AS 7.1+)?

            • 4. Re: cics rar deployment on jboss 7.1.1 -InteractionSpec  error
              Abhishek Rathore Newbie

              Has anyone found a solution to this? I am having the same issue with JBoss 6.2 and the CICS transaction gateway 9.0 rar file.

              • 6. Re: cics rar deployment on jboss 7.1.1 -InteractionSpec  error
                rck7 Newbie

                Hi, the same error with JBoss EAP 6.4.0.GA and cicseci.rar v9.0.0.3

                 

                com.ibm.connector2.cics.CICSUserInputException: CTG9628E L'InteractionSpec passato a execute() non  di tipo ECIInteractionSpec

                    at com.ibm.connector2.cics.ECIInteraction.execute(Unknown Source)

                • 7. Re: cics rar deployment on jboss 7.1.1 -InteractionSpec  error
                  Sampada Wagde Newbie

                  After much research i found that the class ECIInteractionSpec is present in 2 jars - cicsj2ee.jar and ctgclient.jar . While ctgclient is a part of the deployment cicseci.rar , cicsj2ee is not. Hence at runtime, the jboss server tries to map ctgclient's class in ECIInteraction. This should be in fact taken from cicsj2ee.

                   

                  The solution is to create a module and include all ctg related jars there -

                   

                  <?xml version="1.0" encoding="UTF-8"?>

                  <module xmlns="urn:jboss:module:1.1" name="org.cics">

                  <resources>

                  <!-- Modules -->

                  <resource-root path="cicseci.jar" />

                  <resource-root path="cicsframe.jar" />

                  <resource-root path="cicsj2ee.jar" />

                  <resource-root path="ctgclient.jar" />

                  <resource-root path="ctgserver.jar" />

                  </resources>

                  <dependencies>

                      <module name="javax.api" />

                      <module name="javax.resource.api"/>

                  </dependencies>

                  </module>

                   

                  This should be given to the cics rar deployment as a module loader. This resolved the issue for me. Hope it helps you all too.