0 Replies Latest reply on Nov 8, 2004 12:39 PM by mlavarreda

    JCA/Cics Interaction

    mlavarreda Newbie

      I have a problem.
      I am running a cicsr9s-ds.xml into Jboss 4.0.0. I have the cicseci.rar into deploy folder and i have the Cics Transaction Server v. 1.3.0.

      *******************************************************
      This is my cicsr9s-ds.xml

      <connection-factories>

      <tx-connection-factory>

      <jndi-name>ra/cicsr9s</jndi-name>

      <rar-name>cicseci.rar</rar-name>
      <connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>

      <config-property name="ConnectionURL" type="java.lang.String">tcp://10.x.x.xxx</config-property>
      <config-property name="PortNumber" type="java.lang.String">2006</config-property>
      <config-property name="ServerName" type="java.lang.String">CICSSERVER</config-property>
      <config-property name="UserName" type="java.lang.String">CICSUSER</config-property>

      <max-pool-size>50</max-pool-size>

      </tx-connection-factory>

      </connection-factories>


      *********************************************************
      This is my code:
      try{
      InitialContext initialcontext = new InitialContext();
      ECIConnectionFactory source= (ECIConnectionFactory)initialcontext.lookup("java:/ra/cicsr9s");
      ECIConnection connection = (ECIConnection)source.getConnection();
      ECIInteraction eciInt = (ECIInteraction) connection.createInteraction();
      ECIInteractionSpec intSpec = new ECIInteractionSpec();
      intSpec.setFunctionName("CiepTCPI");
      intSpec.setTranName("CIEP");
      intSpec.setCommareaLength(10);
      intSpec.setReplyLength(10);
      intSpec.setInteractionVerb(intSpec.SYNC_SEND_RECEIVE);
      String commarea = "----------";
      JavaRecord in = new JavaRecord(commarea.getBytes("IBM037"));
      JavaRecord out = new JavaRecord(commarea.getBytes("IBM037"));
      eciInt.execute(intSpec, in, out);
      eciInt.close();
      connection.close();
      }catch(Exception ex){
      ex.printStackTrace();
      }

      Y get the next error on the execute method .

      11:22:16,375 INFO [ra/cicsr9s] 11:22:16:375 : [http-0.0.0.0-8080-Processor25:60
      1f3f] : Exception Logged com.ibm.connector2.cics.ECIManagedConnection
      11:22:16,375 INFO [ra/cicsr9s] javax.resource.spi.CommException: CTG9630E: IOEx
      ception occurred in communication with CICS.
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.ECIManagedCon
      nection.call(ECIManagedConnection.java:1009)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.ECIConnection
      .call(ECIConnection.java:128)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.ECIInteractio
      n.execute(ECIInteraction.java:275)
      11:22:16,375 INFO [ra/cicsr9s] at com.bi.tei.Cics.execute(Cics.java:70)
      11:22:16,375 INFO [ra/cicsr9s] at com.bi.tei.Cics.doGet(Cics.java:36)
      11:22:16,375 INFO [ra/cicsr9s] at javax.servlet.http.HttpServlet.servic
      e(HttpServlet.java:697)
      11:22:16,375 INFO [ra/cicsr9s] at javax.servlet.http.HttpServlet.servic
      e(HttpServlet.java:810)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
      ilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
      ilterChain.doFilter(ApplicationFilterChain.java:157)
      11:22:16,375 INFO [ra/cicsr9s] at org.jboss.web.tomcat.filters.ReplyHea
      derFilter.doFilter(ReplyHeaderFilter.java:75)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
      ilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
      ilterChain.doFilter(ApplicationFilterChain.java:157)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardWrap
      perValve.invoke(StandardWrapperValve.java:214)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:104)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardPipe
      line.invoke(StandardPipeline.java:520)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardCont
      extValve.invokeInternal(StandardContextValve.java:198)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardCont
      extValve.invoke(StandardContextValve.java:152)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:104)
      11:22:16,375 INFO [ra/cicsr9s] at org.jboss.web.tomcat.security.CustomP
      rincipalValve.invoke(CustomPrincipalValve.java:44)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:102)
      11:22:16,375 INFO [ra/cicsr9s] at org.jboss.web.tomcat.security.Securit
      yAssociationValve.invoke(SecurityAssociationValve.java:169)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:102)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardPipe
      line.invoke(StandardPipeline.java:520)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardHost
      Valve.invoke(StandardHostValve.java:137)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:104)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.valves.ErrorRepor
      tValve.invoke(ErrorReportValve.java:118)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:102)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardPipe
      line.invoke(StandardPipeline.java:520)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardEngi
      neValve.invoke(StandardEngineValve.java:109)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:104)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardPipe
      line.invoke(StandardPipeline.java:520)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.ContainerBas
      e.invoke(ContainerBase.java:929)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.coyote.tomcat5.CoyoteAdapt
      er.service(CoyoteAdapter.java:160)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.coyote.http11.Http11Proces
      sor.process(Http11Processor.java:799)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.coyote.http11.Http11Protoc
      ol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.tomcat.util.net.TcpWorkerT
      hread.runIt(PoolTcpEndpoint.java:577)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.tomcat.util.threads.Thread
      Pool$ControlRunnable.run(ThreadPool.java:683)
      11:22:16,375 INFO [ra/cicsr9s] at java.lang.Thread.run(Thread.java:534)
      11:22:16,375 INFO [ra/cicsr9s] Caused by: java.io.IOException: CCL6668E: Error
      en flujo de intercambio inicial. [ERROR_CONNECTION_FAILED]
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.ctg.client.JavaGatewayInterfa
      ce.initialFlow(JavaGatewayInterface.java:299)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.ctg.client.TcpJavaGateway.ope
      n(TcpJavaGateway.java:276)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.ctg.client.JavaGateway.open(J
      avaGateway.java:370)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.CICSManagedCo
      nnection.getGateway(CICSManagedConnection.java:843)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.ECIManagedCon
      nection$2.run(ECIManagedConnection.java:991)
      11:22:16,375 INFO [ra/cicsr9s] at java.security.AccessController.doPriv
      ileged(Native Method)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.ECIManagedCon
      nection.call(ECIManagedConnection.java:985)
      11:22:16,375 INFO [ra/cicsr9s] ... 37 more
      11:22:16,375 INFO [ra/cicsr9s] 11:22:16:375 : [http-0.0.0.0-8080-Processor25:60
      1f3f] : Exception Logged com.ibm.connector2.cics.ECIManagedConnection
      11:22:16,375 INFO [ra/cicsr9s] java.io.IOException: CCL6668E: Error en flujo de
      intercambio inicial. [ERROR_CONNECTION_FAILED]
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.ctg.client.JavaGatewayInterfa
      ce.initialFlow(JavaGatewayInterface.java:299)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.ctg.client.TcpJavaGateway.ope
      n(TcpJavaGateway.java:276)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.ctg.client.JavaGateway.open(J
      avaGateway.java:370)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.CICSManagedCo
      nnection.getGateway(CICSManagedConnection.java:843)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.ECIManagedCon
      nection$2.run(ECIManagedConnection.java:991)
      11:22:16,375 INFO [ra/cicsr9s] at java.security.AccessController.doPriv
      ileged(Native Method)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.ECIManagedCon
      nection.call(ECIManagedConnection.java:985)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.ECIConnection
      .call(ECIConnection.java:128)
      11:22:16,375 INFO [ra/cicsr9s] at com.ibm.connector2.cics.ECIInteractio
      n.execute(ECIInteraction.java:275)
      11:22:16,375 INFO [ra/cicsr9s] at com.bi.tei.Cics.execute(Cics.java:70)
      11:22:16,375 INFO [ra/cicsr9s] at com.bi.tei.Cics.doGet(Cics.java:36)
      11:22:16,375 INFO [ra/cicsr9s] at javax.servlet.http.HttpServlet.servic
      e(HttpServlet.java:697)
      11:22:16,375 INFO [ra/cicsr9s] at javax.servlet.http.HttpServlet.servic
      e(HttpServlet.java:810)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
      ilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
      ilterChain.doFilter(ApplicationFilterChain.java:157)
      11:22:16,375 INFO [ra/cicsr9s] at org.jboss.web.tomcat.filters.ReplyHea
      derFilter.doFilter(ReplyHeaderFilter.java:75)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
      ilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      11:22:16,375 INFO [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
      ilterChain.doFilter(ApplicationFilterChain.java:157)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardWrap
      perValve.invoke(StandardWrapperValve.java:214)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:104)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardPipe
      line.invoke(StandardPipeline.java:520)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardCont
      extValve.invokeInternal(StandardContextValve.java:198)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardCont
      extValve.invoke(StandardContextValve.java:152)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:104)
      11:22:16,390 INFO [ra/cicsr9s] at org.jboss.web.tomcat.security.CustomP
      rincipalValve.invoke(CustomPrincipalValve.java:44)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:102)
      11:22:16,390 INFO [ra/cicsr9s] at org.jboss.web.tomcat.security.Securit
      yAssociationValve.invoke(SecurityAssociationValve.java:169)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:102)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardPipe
      line.invoke(StandardPipeline.java:520)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardHost
      Valve.invoke(StandardHostValve.java:137)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:104)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.valves.ErrorRepor
      tValve.invoke(ErrorReportValve.java:118)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:102)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardPipe
      line.invoke(StandardPipeline.java:520)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardEngi
      neValve.invoke(StandardEngineValve.java:109)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardValv
      eContext.invokeNext(StandardValveContext.java:104)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.StandardPipe
      line.invoke(StandardPipeline.java:520)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.catalina.core.ContainerBas
      e.invoke(ContainerBase.java:929)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.coyote.tomcat5.CoyoteAdapt
      er.service(CoyoteAdapter.java:160)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.coyote.http11.Http11Proces
      sor.process(Http11Processor.java:799)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.coyote.http11.Http11Protoc
      ol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.tomcat.util.net.TcpWorkerT
      hread.runIt(PoolTcpEndpoint.java:577)
      11:22:16,390 INFO [ra/cicsr9s] at org.apache.tomcat.util.threads.Thread
      Pool$ControlRunnable.run(ThreadPool.java:683)
      11:22:16,390 INFO [ra/cicsr9s] at java.lang.Thread.run(Thread.java:534)
      11:22:16,390 INFO [STDOUT] javax.resource.spi.CommException: CTG9630E: IOExcept
      ion occurred in communication with CICS.
      11:22:16,390 INFO [STDOUT] at com.ibm.connector2.cics.ECIManagedConnection.
      call(ECIManagedConnection.java:1009)
      11:22:16,390 INFO [STDOUT] at com.ibm.connector2.cics.ECIConnection.call(EC
      IConnection.java:128)
      11:22:16,390 INFO [STDOUT] at com.ibm.connector2.cics.ECIInteraction.execut
      e(ECIInteraction.java:275)
      11:22:16,390 INFO [STDOUT] at com.bi.tei.Cics.execute(Cics.java:70)
      11:22:16,390 INFO [STDOUT] at com.bi.tei.Cics.doGet(Cics.java:36)
      11:22:16,390 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpSe
      rvlet.java:697)
      11:22:16,390 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpSe
      rvlet.java:810)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
      in.internalDoFilter(ApplicationFilterChain.java:237)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
      in.doFilter(ApplicationFilterChain.java:157)
      11:22:16,390 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilte
      r.doFilter(ReplyHeaderFilter.java:75)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
      in.internalDoFilter(ApplicationFilterChain.java:186)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
      in.doFilter(ApplicationFilterChain.java:157)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve
      .invoke(StandardWrapperValve.java:214)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext
      .invokeNext(StandardValveContext.java:104)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:520)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve
      .invokeInternal(StandardContextValve.java:198)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve
      .invoke(StandardContextValve.java:152)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext
      .invokeNext(StandardValveContext.java:104)
      11:22:16,390 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipal
      Valve.invoke(CustomPrincipalValve.java:44)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext
      .invokeNext(StandardValveContext.java:102)
      11:22:16,390 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssocia
      tionValve.invoke(SecurityAssociationValve.java:169)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext
      .invokeNext(StandardValveContext.java:102)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:520)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.in
      voke(StandardHostValve.java:137)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext
      .invokeNext(StandardValveContext.java:104)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.i
      nvoke(ErrorReportValve.java:118)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext
      .invokeNext(StandardValveContext.java:102)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:520)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.
      invoke(StandardEngineValve.java:109)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext
      .invokeNext(StandardValveContext.java:104)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:520)
      11:22:16,390 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke
      (ContainerBase.java:929)
      11:22:16,390 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteAdapter.servi
      ce(CoyoteAdapter.java:160)
      11:22:16,390 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.proc
      ess(Http11Processor.java:799)
      11:22:16,390 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http1
      1ConnectionHandler.processConnection(Http11Protocol.java:705)
      11:22:16,390 INFO [STDOUT] at org.apache.tomcat.util.net.TcpWorkerThread.ru
      nIt(PoolTcpEndpoint.java:577)
      11:22:16,390 INFO [STDOUT] at org.apache.tomcat.util.threads.ThreadPool$Con
      trolRunnable.run(ThreadPool.java:683)
      11:22:16,390 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)
      11:22:16,390 INFO [STDOUT] Caused by: java.io.IOException: CCL6668E: Error en f
      lujo de intercambio inicial. [ERROR_CONNECTION_FAILED]
      11:22:16,390 INFO [STDOUT] at com.ibm.ctg.client.JavaGatewayInterface.initi
      alFlow(JavaGatewayInterface.java:299)
      11:22:16,390 INFO [STDOUT] at com.ibm.ctg.client.TcpJavaGateway.open(TcpJav
      aGateway.java:276)
      11:22:16,390 INFO [STDOUT] at com.ibm.ctg.client.JavaGateway.open(JavaGatew
      ay.java:370)
      11:22:16,390 INFO [STDOUT] at com.ibm.connector2.cics.CICSManagedConnection
      .getGateway(CICSManagedConnection.java:843)
      11:22:16,390 INFO [STDOUT] at com.ibm.connector2.cics.ECIManagedConnection$
      2.run(ECIManagedConnection.java:991)
      11:22:16,390 INFO [STDOUT] at java.security.AccessController.doPrivileged(N
      ative Method)
      11:22:16,390 INFO [STDOUT] at com.ibm.connector2.cics.ECIManagedConnection.
      call(ECIManagedConnection.java:985)
      11:22:16,390 INFO [STDOUT] ... 37 more


      On the cics server the program start, but interaction no exist.
      Any idea?
      Sorry for my English.
      Thank in Advance.
      Mario Lavarreda.