1 Reply Latest reply: May 8, 2012 9:17 PM by 679490 RSS

    ResourceException occurred, reason: javax.resource.ResourceException:

    934759
      HI
      iam getting below error when i call TOUPPER service from jsp at client side
      iam getting the error TPESYSTEM(12):0:0:TPED_MINVAL(0):QMNONE(0):0:
      ResourceException occurred, reason: javax.resource.ResourceException: TPCALL failed TPException:
      TPENOENT(6):0:0:TPED_MINVAL(0):QMNONE(0):0:No local or remote domain available for TOUPPER
      whats the reason


      my ra.xml is

      <?xml version="1.0" encoding="UTF-8"?>
      <connector xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
      version="1.5">
      <display-name>Tuxedo JCA Adapter</display-name>
      <vendor-name>Oracle</vendor-name>
      <eis-type>Tuxedo</eis-type>
      <resourceadapter-version>11gR1(11.1.1.2.1)</resourceadapter-version>
      <license>
      <description>Tuxedo SALT license</description>
      <license-required>false</license-required>
      </license>
      <resourceadapter>
      <resourceadapter-class>com.oracle.tuxedo.adapter.TuxedoResourceAdapter</resourceadapter-class>
      <config-property>
      <config-property-name>traceLevel</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>80000</config-property-value>
      </config-property>
      <config-property>
      <config-property-name>xaAffinity</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>true</config-property-value>
      </config-property>
      <config-property>
      <config-property-name>keyFileName</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value></config-property-value>
      </config-property>
      <config-property>
      <config-property-name>dmconfig</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>D:\jboss-6.1.0.Final\server\mpayv4_dev\deploy\dmconfig.xml</config-property-value>
      </config-property>
      <outbound-resourceadapter>
      <connection-definition>
      <managedconnectionfactory-class>com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory</managedconnectionfactory-class>
      <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
      <connectionfactory-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoConnectionFactory</connectionfactory-impl-class>
      <connection-interface>javax.resource.cci.Connection</connection-interface>
      <connection-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoJCAConnection</connection-impl-class>
      </connection-definition>
      <transaction-support>NoTransaction</transaction-support>
      <authentication-mechanism>
      <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
      <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
      </authentication-mechanism>
      <reauthentication-support>false</reauthentication-support>
      </outbound-resourceadapter>
      </resourceadapter>
      </connector>

      ==========================
      and dmconfig.xml is

      <?xml version="1.0" encoding="UTF-8"?>
      <TuxedoConnector>
      <LocalAccessPoint name="local_1">
      <AccessPointId>dev_scurtis</AccessPointId>
      <NetworkAddress>//ip:port</NetworkAddress>
      </LocalAccessPoint>
      <RemoteAccessPoint name="e1tst_tdtux01">
      <AccessPointId>e1tst_tdtux01</AccessPointId>
      <NetworkAddress>//ip:port</NetworkAddress>
      </RemoteAccessPoint>
      <Import name="TOUPPER">
      <RemoteName>TOUPPER</RemoteName>
      <SessionName>session_1</SessionName>
      <LoadBalancing>RoundRobin</LoadBalancing>
      </Import>
      <Import name="ECHO">
      <RemoteName>ECHO</RemoteName>
      <SessionName>session_1</SessionName>
      <LoadBalancing>RoundRobin</LoadBalancing>
      </Import>
      </TuxedoConnector>

      and my servlet code is
      <%@ page import ="javax.naming.Context,
      javax.naming.InitialContext,
      javax.naming.NamingException,
      javax.ejb.CreateException,
      javax.resource.cci.ConnectionFactory,
      javax.resource.cci.Connection,
      javax.resource.cci.Interaction,
      javax.resource.cci.InteractionSpec,
      javax.resource.ResourceException,
      weblogic.wtc.jatmi.TPException,
      weblogic.wtc.jatmi.TPReplyException,
      com.oracle.tuxedo.adapter.TuxedoReplyException,
      com.oracle.tuxedo.adapter.cci.TuxedoStringRecord,
      com.oracle.tuxedo.adapter.cci.TuxedoInteractionSpec" %>
      <html>
      <head>
      </head>
      <body>


      Tuxedo Test
      <%
      System.out.println("Check Connection JNDI");
      String result="";
      result=Toupper("harikrishna");

      %>
      <%!
      public String Toupper(String string_to_convert) throws TPException, TuxedoReplyException
      {

      Context ctx;
      ConnectionFactory cf;
      Connection c;
      Interaction ix;
      TuxedoStringRecord inRec;
      TuxedoStringRecord outRec;
      TuxedoInteractionSpec ixspec;

      try {
      ctx = new InitialContext();

      cf = (ConnectionFactory)ctx.lookup("java:jca/tuxedo");
      c = cf.getConnection();
      ix = c.createInteraction();

      ixspec = new TuxedoInteractionSpec();
      ixspec.setFunctionName("TOUPPER");
      ixspec.setInteractionVerb(InteractionSpec.SYNC_SEND_RECEIVE);
      inRec = new TuxedoStringRecord();
      outRec = new TuxedoStringRecord();
      inRec.setRecordName("MyInputData");
      outRec.setRecordName("MyOutputData");
      outRec.setString(string_to_convert);
      ix.execute(ixspec, inRec, outRec);
      ix.close();
      c.close();
      String returned_data = outRec.getString();
      return returned_data;
      }
      catch (NamingException ne) {
      throw new TPException(TPException.TPESYSTEM,
      "Could not get TuxedoConnectionFactory"+ne);
      }
      catch (ResourceException re) {
      throw new TPException(TPException.TPESYSTEM,
      "ResourceException occurred, reason: " + re);
      }
      }
      %>
      </body>
      </html>
      =======================================
      In tuxedo.lod at my jboo6/bin iam getting this informatin

      e property Security.
      4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use ON_STARTUP to create default session profile property ConnectionPolicy.
      4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 60,000 to create default session profile property BlockTime.
      4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use false to create default session profile property Interoperate.
      4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 60 to create default session profile property RetryInterval.
      4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 9,223,372,036,854,775,807 to create default session profile property MaxRetries.
      4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 2,147,483,647 to create default session profile property CompressionLimit.
      4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 0 to create default session profile property KeepAlive.
      4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 10,000 to create default session profile property KeepAliveWait.
      4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0189:INFO: Default session profile created.
      4/30/12:2:59:09 AM:11:INFO[,]factory = null
      4/30/12:2:59:09 AM:11:INFO[,]name = TOUPPER
      4/30/12:2:59:09 AM:11:INFO[,]iname = TOUPPER
      4/30/12:2:59:09 AM:11:INFO[,]rsvc == null, create new ArrayList with key= TOUPPER
      4/30/12:2:59:09 AM:11:INFO[,]factory = null
      4/30/12:2:59:09 AM:11:INFO[,]name = ECHO
      4/30/12:2:59:09 AM:11:INFO[,]iname = ECHO
      4/30/12:2:59:09 AM:11:INFO[,]rsvc == null, create new ArrayList with key= ECHO
      4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSession]TJA_0193:INFO: Default session created between LocalAccessPoint local_1 and RemoteAccessPoint e1tst_tdtux01.

      please help me ..

      Edited by: 931756 on 4 May, 2012 1:01 AM
        • 1. Re: ResourceException occurred, reason: javax.resource.ResourceException:
          679490
          Hi,

          JCA can not find the service exported by tuxedo according to error message,TPENOENT you posted. So please check below items:
          1) whether the connection between JCA and tuxedo domain is established, you can get this information in ULOG and also tuxedo0.log.
          2) check the TOUPPER service is advertised and exported by tuxedo domain.

          It is helpful to post the tuxedo configurations (ubb, dubb).

          Regards,
          Xu He