Deposit Class issue in CC&B

Hey!! Found that there are some Accounts with Service Agreements in different Deposit Classes on the same account. I know this causes issues when the deposit is being applied to the account - those SA's that are not in the same deposit class will not get any monies applied and they remain in a Pending Stop status. If I change the Deposit Class on these specific SA Types - what type of Pending Doom could I be unleashing? I mean, I can run batch to make sure everything processes, but am I really catching the possible errors that could ocurr down the road?
Any help would be greatly appreciated....

You could certainly change the Deposit Class on those SA Types without any risk of doom within CC&B - when the Deposit is applied, then they will also be included. But, do you know why the Deposit Class is different for these SA Types? For example, if a customer has paid a deposit for a residential electric service, but has other SAs for a gas service or for merchandise, the electric deposit probably should not be automatically applied to these ones. There could even be separate deposits for other services, so it really depends upon the business rules that were used to decide upon the Deposit Classes.

Similar Messages

  • Cross company payment through F-53, error in Check deposit & check issue tr

    Hi
    I have just joined the community and ready with 3 queries.
    Please.......... help me to resolve.
    i) While executing the cross company payment ( company code 1300 making payment for vendor in company code 0013) using transaction code F-53, I am getting error 'vendor not defined in company code 1300'.
    For F-53 screen, vendor is selected from company code 0013.
    I have executed APP (F110) successfully in company code 1300 for paying the same vendor in company code 0013.
    ii) For check deposit transaction, error is " entry 1300 is missing in table TO43S'. (1300 is a company code)
    iii) For check issue transaction, error is "no batch input data for screen SAPMF05A'
    Thanks
    Rekha

    1. Don't give vendor number in the main screen, give all remaining inouts and press enter, then it'll show the second screen
    there you can give the company code and vendor account.
    2.  Cretae a tolerance group for GL accounts in OBA0.
    Don't post more than one query in the same thread.
    Rgds
    Murali. N

  • The old someclass$1.class issue

    I'm testing pulling project files from jb6 Pro from source safe and running it on another machine with the same installation and config. I have a swing class that has 6 $number.class entries in the deployment jar, and on the other machine I have 4. This causes a difference in the jar size, and doesn't give me a good feeling about this style of team building. However, the application works the same on both machines. Does anyone know why one machine has more inner classes than another using the same code and project settings?
    Thanks in advance,
    Stu

    Read my original post.
    I am looking for an explanation of why I got the
    "ORA-01194: file 1 needs more recovery" error.You issued command recover database which means full recovery, but your recover command fail (which you dont want to investigate) and then you tried to open the DB with resetlogs BUT how the hell can you open it bcz the recovery is not done yet.
    Let me tell you that if you are thinking that you can open the database any time with reset logs, so its not true my friend it still need recovery upto a certain time. If you start a cancel based incomplete recovery then you can open your DB with resetlogs at any time you want but in your case you ask for full recovery, the controlfile and the datafiles are not in sync yet so you can't open if until you apply all the archive with current redologs. Read this for backup and recovery architecture:
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14192/toc.htm
    And here is the explaination of your error from oracle:
    $oerr ora 1194
    01194, 00000, "file %s needs more recovery to be consistent"
    // *Cause:  An incomplete recovery session was started, but an insufficient
    // number of logs were applied to make the file consistent. The
    // reported file was not closed cleanly when it was last opened by
    // the database. It must be recovered to a time when it was not being
    // updated. The most likely cause of this error is forgetting to
    // restore the file from a backup before doing incomplete recovery.
    // *Action: Either apply more logs until the file is consistent or restore
    // the file from an older backup and repeat recovery.
    Daljit Singh
    Message was edited by:
    Daljit

  • Singleton class issue

    I have a singleton class. A method in this class creates an array of structures. This class is shared across different process. So there is a chance that some one unknowigly calls the method to create the array of structures and hence the member variable may now points to another array of structure.
    Is there any way in Java to restict invoking of a function only once.
    A static variable with a check will solve this issue, but any other method so that calling of method itself becomes invalid to avoid RT usage?.

    Hi,
    I think, I understood know.
    You want to have a singleton holding a defined number of other objects (your arrays).
    This objects (your arrays) are semantically singletons itsself, because they should be constructed only once and than reused.
    Assuming I interpreted right, see my comments inline below.
    I know that who ever participate in this discussion is
    pretty sure about singleton class. Some of the code
    what I gave was irretating as Martin pointed out. So
    let me try to give more transparent code snippet,Thanks, that helped.
    >
    My aim :- I need a global object which is going to
    hold some arrays(data structures). This should be
    shared across various threads. (forget about the
    synchronousation part here). All these arrays won't be
    of same size, so I need methods for each
    datastructures to initialise to its required size.That's a little bit part of your problem, see below.
    My wayforward :- Create the global object as
    singleton. This object has methods for initialising
    different data structures.OK, fine.
    What is my doubt :- please see the following code
    fragment,
    public class Singleton {
    private Singleton singleton;
    private Singleton() {
    public static Singleton getInstance() {
    if (singleton == null) {
    singleton = new Singleton();
    return singleton;
    //other methods for the class
    private someObjType1 myArray1 = null;
    private someObjType2 myArray2 = null;
    private someObjType3 myArray3 = null; // etc....This "smells" like an candidate for another data structure, so that you don't have a fixed number of array.
    F.E.
    // Associate class of array elements (someObjTypeX) as keys with arrays of someObjTypeX
    private Map arrayMap = new HashMap();>
    public void CreateArray1(int size) {
    if (myArray1 == null) {
    myArray1 = new someObjType1[size];
    }Using the map, you create array should look like
    public void CreateArray(Class clazzOfArrayElem, int size)
      Object arr = arrayMap.get(clazzOfArrayElem)
      if(arr == null)
        arr = java.lang.reflect.Array.newInstance(clazzOfArrayElem, size);
        arrayMap.put(clazzOfArrayElem, arr);
    }Additionally the "ugliness" of this method results from the problem, that don't know the size of arrays at compile time.
    So it seem to be preferable to use a dynamic structure like a Vector instead of array. Then you don't have the need to pass the size in the accessor method.
    Then you can use a "cleaner" accessor method like
    public Vector getVector(Class clazzOfArrayElem)
      Vector vec = arrayMap.get(clazzOfArrayElem)
      if(vec == null)
        vec = new Vector();
        arrayMap.put(clazzOfArrayElem, vec); 
    return vec;
    }If you want to expose an array oriented interface f.e. for type safety you can have an accessor like
    public Object[] getAsArray(Class clazzOfArrayElem)
      Vector vec = arrayMap.get(clazzOfArrayElem)
      if(vec == null)
        vec = new Vector();
        arrayMap.put(clazzOfArrayElem, vec);
      arr = java.lang.reflect.Array.newInstance(clazzOfArrayElem, 0);
      return (Object[])vec.toArray(arr);
    // Real typesafe accessors as needed following
    public SomeClass1[] getAsArrayOfSomeClass1()
      return (SomeClass1[])getAsArray(SomeClass1.class);
    /.....This accessor for array interface have the additional advantage, that they return a copy of the data (only the internal arrays, no the object within the arrays!), so that a least a client using your class doesn't have access to your internal data (with the Vector he has).
    >
    // similarly for other data structures...
    So here CreateArray1 method will work fine because of
    the check myArray1 == null.
    Actual question :- Can I remove this check and
    restrick call to CreateArray1 more than one time ?.No. As I understood you want to have something like a "only-use-once-method". There is no such thing in Java I know of.
    But I don't see the need to remove this check. Reference comparison should have no real impact to the performance.
    this is going to benifit me for some other cases
    also.How?
    Hope this helps.
    Martin

  • Probelems with MDB listening to MQ (Startup class issue )

    Hello ,
              I am supposed to write a Message driven bean that would reside on
              Weblogic7.0 and listen to a particular queue of IBM MQ.
              I understand that we need to write a Start-up class for this. I have
              written the start-up class but I am getting the following error:
              <Apr 16, 2003 3:17:14 PM EDT> <Warning> <EJB> <010061> <The
              Message-Driven EJB: SimpleMDB is unable
              to connect to the JMS destination: ivtQ. The EJB container will
              automatically attempt to re-establis
              h the connection with the JMS server. This warning may occur during
              WebLogic Cluster start-up if the
              JMS destination is located on another server. When the JMS server
              connection is re-established, the
              Message-Driven EJB will again receive JMS messages.
              The Error was:
              The JMS destination with the JNDI name: ivtQ could not be found.
              Please ensure that the JNDI name in
              the weblogic-ejb-jar.xml is correct, and the JMS destination has been
              deployed.>
              I understand that there are some configuration issues:
              Can you please guide where am I going wrong:
              1.     What should be the value of the <destination-jndi-name> in the
              Weblogic-ejb-jar. I have not passed any Queue name through the
              start-up class &#8230;Is it ok?
              2.     Then what queue name should I specify. (ofcousrse it should be the
              MQ queue name but do I need to add that in the JNDI or in the
              weblogic console&#8230;?
              3.     Please confirm that the <connection-factory-jndi-name> mentioned in
              the weblogic-ejb-jar.xml should be the same as what I am passing as
              JNDIName (through weblogic console).
              4.     Kindly advice if I am missing anything (especially in my start-ip
              class)
              Here are my Deployemnt descriptors:
              weblogic-ejb-jar
              <?xml version="1.0"?>
              <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic
              7.0.0 EJB//EN" "http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd">
              <weblogic-ejb-jar>
                   <weblogic-enterprise-bean>
                        <ejb-name>SimpleMDB</ejb-name>
                        <message-driven-descriptor>
                             <pool>
                                  <max-beans-in-free-pool>8</max-beans-in-free-pool>
                                  <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
                             </pool>
                             <destination-jndi-name>ivtQ</destination-jndi-name>               
                             <initial-context-factory>
              com.sun.jndi.fscontext.RefFSContextFactory
              </initial-context-factory>
                             <provider-url>
              file:/D:/JNDI/
              </provider-url>
                             <connection-factory-jndi-name>
              MyQCF
              </connection-factory-jndi-name>
                        </message-driven-descriptor>
                   </weblogic-enterprise-bean>
              </weblogic-ejb-jar>
              ejb-jar.xml
              <?xml version="1.0"?>
              <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
              JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
              <ejb-jar>
                   <enterprise-beans>
                        <message-driven>
                             <ejb-name>SimpleMDB</ejb-name>
                             <ejb-class>weblogic.jms.whitepaper.SimpleMDB</ejb-class>
                             <transaction-type>Container</transaction-type>
                             <message-driven-destination>
                                  <!-- In WebLogic Server 6.0, this next parameter is named
              "jms-destination-type" -->
                                  <destination-type>javax.jms.Queue</destination-type>
                             </message-driven-destination>
                        </message-driven>
                   </enterprise-beans>
                   <assembly-descriptor>
                        <container-transaction>
                             <method>
                                  <ejb-name>SimpleMDB</ejb-name>
                                  <method-name>*</method-name>
                             </method>
                             <trans-attribute>Required</trans-attribute>
                        </container-transaction>
                   </assembly-descriptor>
              </ejb-jar>
              My Start-up class is as follows:
              import com.ibm.mq.jms.*;
              import java.util.*;
              import javax.jms.*;
              import javax.naming.*;
              import weblogic.common.*;
              public class MQJMSStartup implements T3StartupDef
                   /** * The name of the queue manager to connect to. The startup class
              * will throw an exception if this parameter is not set. */
                   public final static String QM_NAME_PROPERTY = "QManager";
                   /** * The host name where the queue manager runs. If not set, the *
              startup class will create a "bindings mode" connection to a * queue
              manager on the local host. */
                   public final static String QM_HOST_PROPERTY = "QManagerHost";
                   /** * The port number where the queue manager listens. If not set,
              this * defaults to 1414, the default MQSeries port */
                   public final static String QM_PORT_PROPERTY = "QManagerPort";
                   /** * The name in JNDI to store this queue manager object under. * If
              not set, the startup class will throw an exception. */
                   public static final String JNDI_NAME_PROPERTY = "JNDIName";
                   // Required
                   public MQJMSStartup()
                   // Required, but not needed
                   public void setServices(T3ServicesDef services)
                        public String startup(String name, Hashtable args) throws Exception
                        String qmName = (String)args.get(QM_NAME_PROPERTY);
                        System.out.println("*****The qmName is "+qmName);
                        if (qmName == null)
                             throw new Exception("Startup parameter " + QM_NAME_PROPERTY + "
              must be set");
                        String jndiName = (String)args.get(JNDI_NAME_PROPERTY);
                        System.out.println("***The JNDI Nname is "+jndiName);
                        if (jndiName == null)
                             throw new Exception("Startup parameter " + JNDI_NAME_PROPERTY + "
              must be set");
                        String qmHost = (String)args.get(QM_HOST_PROPERTY);
                        System.out.println("*****The qmHost is "+qmHost);
                        String qmPort = (String)args.get(QM_PORT_PROPERTY);
                        System.out.println("*****The qmPort is "+qmPort);
                        MQQueueConnectionFactory factory = new MQQueueConnectionFactory();
                        factory.setQueueManager(qmName);
                        if (qmHost == null)
                             factory.setTransportType(JMSC.MQJMS_TP_BINDINGS_MQ);
                             factory.setHostName(qmHost);
                             if (qmPort != null)
                                  try
                                       int portNum = Integer.parseInt(qmPort);
                                       factory.setPort(portNum);
                                  catch (NumberFormatException ignore)
                        else
                             factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
                        InitialContext context = new InitialContext();
                        context.bind(jndiName, factory);
                        context.close();
                        StringBuffer buf = new StringBuffer();
                        buf.append( "A connection factory was created for the MQ Queue
              Manager ");
                        buf.append(qmName);
                        buf.append(" and stored in JNDI at ");
                        buf.append(jndiName);
                        System.out.println("*****The mqstartup is executed
              succesfully"+buf.toString());
                        return buf.toString();
              The args that I pass through the weblogic console is as follows:
              QManager=QM_mphasis_eight, JNDIName=MyQCF
              Please advice,
              regards,
              Milan Doshi
              

    Thanks for the response.
              I have written the startUp class but I am getting the following error:
              The Error was:
              The JMS destination with the JNDI name: MySenderQueue could not be
              found. Please ensure that the
              JNDI name in the weblogic-ejb-jar.xml is correct, and the JMS
              destination has been deployed.>
              =====
              My startup class is as follows:
              String qmPort = (String)args.get(QM_PORT_PROPERTY);
              String qmHost = (String)args.get(QM_HOST_PROPERTY);
              String qmName = (String)args.get(QM_NAME_PROPERTY);
              MQQueueConnectionFactory factory = new MQQueueConnectionFactory();
              factory.setQueueManager(qmName);
              factory.setHostName(qmHost);
              if (qmPort != null)
              try
              int portNum = Integer.parseInt(qmPort);
              factory.setPort(portNum);
              catch (NumberFormatException ignore)
              if (qmHost == null)
              factory.setTransportType(JMSC.MQJMS_TP_BINDINGS_MQ);
              else
              factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
              InitialContext context = new InitialContext();
              context.bind(jndiName, factory);
              QueueConnection connection = factory.createQueueConnection();
              boolean transacted = false;
              QueueSession session = connection.createQueueSession( transacted,
              Session.AUTO_ACKNOWLEDGE);
              Queue ioQueue = session.createQueue("MySenderQueue");
              context.bind("MySenderQueue",ioQueue);
              context.close();
              ===================================================
              My Weblogic-ejb-jar.xml is like this:
              <weblogic-ejb-jar>
              <weblogic-enterprise-bean>
              <ejb-name>SimpleMDB</ejb-name>
              <message-driven-descriptor>
              <pool>
              <max-beans-in-free-pool>8</max-beans-in-free-pool>
              <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
              </pool>
              <destination-jndi-name>MySenderQueue</destination-jndi-name>
              <connection-factory-jndi-name>
              MyQCF
              </connection-factory-jndi-name>
              </message-driven-descriptor>
              </weblogic-enterprise-bean>
              </weblogic-ejb-jar>
              ======================================================
              Can you please guide me what is wrong in registering the Queue?
              Thanks once again for the response,
              Milan Doshi
              "sudhir" <[email protected]> wrote in message news:<[email protected]>...
              > Mian,
              >
              > You should pass the Queue Name in the startup class arguments. This would be
              > the same name as the MQ Queue you have defined. There is no need to specify to
              > provider URL to the file ... If you do, then ensure that the the queue name should
              > refer to the MQ Administered Queue object defined by jmsadmin.
              >
              > -Sudhir
              >
              >
              >
              > [email protected] (Milan Doshi) wrote:
              > >Hello ,
              > >
              > >I am supposed to write a Message driven bean that would reside on
              > >Weblogic7.0 and listen to a particular queue of IBM MQ.
              > >
              > >I understand that we need to write a Start-up class for this. I have
              > >written the start-up class but I am getting the following error:
              > >
              > ><Apr 16, 2003 3:17:14 PM EDT> <Warning> <EJB> <010061> <The
              > >Message-Driven EJB: SimpleMDB is unable
              > >to connect to the JMS destination: ivtQ. The EJB container will
              > >automatically attempt to re-establis
              > >h the connection with the JMS server. This warning may occur during
              > >WebLogic Cluster start-up if the
              > > JMS destination is located on another server. When the JMS server
              > >connection is re-established, the
              > > Message-Driven EJB will again receive JMS messages.
              > >The Error was:
              > >The JMS destination with the JNDI name: ivtQ could not be found.
              > >Please ensure that the JNDI name in
              > > the weblogic-ejb-jar.xml is correct, and the JMS destination has been
              > >deployed.>
              > >
              > >I understand that there are some configuration issues:
              > >
              > >Can you please guide where am I going wrong:
              > >1.     What should be the value of the <destination-jndi-name> in the
              > >Weblogic-ejb-jar. I have not passed any Queue name through the
              > >start-up class ?Is it ok?
              > >2.     Then what queue name should I specify. (ofcousrse it should be the
              > >weblogic console??
              > >3.     Please confirm that the <connection-factory-jndi-name> mentioned in
              > >the weblogic-ejb-jar.xml should be the same as what I am passing as
              > >JNDIName (through weblogic console).
              > >4.     Kindly advice if I am missing anything (especially in my start-ip
              > >class)
              > >
              > >Here are my Deployemnt descriptors:
              > >
              > >weblogic-ejb-jar
              > >
              > ><?xml version="1.0"?>
              > ><!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic
              > >7.0.0 EJB//EN" "http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd">
              > ><weblogic-ejb-jar>
              > >     <weblogic-enterprise-bean>
              > >          <ejb-name>SimpleMDB</ejb-name>
              > >          <message-driven-descriptor>
              > >               <pool>
              > >                    <max-beans-in-free-pool>8</max-beans-in-free-pool>
              > >                    <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
              > >               </pool>
              > >               <destination-jndi-name>ivtQ</destination-jndi-name>               
              > >               <initial-context-factory>
              > > com.sun.jndi.fscontext.RefFSContextFactory
              > > </initial-context-factory>
              > >               <provider-url>
              > > file:/D:/JNDI/
              > > </provider-url>
              > >               <connection-factory-jndi-name>
              > > MyQCF
              > > </connection-factory-jndi-name>
              > >          </message-driven-descriptor>
              > >     </weblogic-enterprise-bean>
              > ></weblogic-ejb-jar>
              > >
              > >
              > >
              > >
              > >
              > >
              > >
              > >ejb-jar.xml
              > >
              > ><?xml version="1.0"?>
              > ><!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
              > >JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
              > ><ejb-jar>
              > >     <enterprise-beans>
              > >          <message-driven>
              > >               <ejb-name>SimpleMDB</ejb-name>
              > >               <ejb-class>weblogic.jms.whitepaper.SimpleMDB</ejb-class>
              > >               <transaction-type>Container</transaction-type>
              > >               <message-driven-destination>
              > >                    <!-- In WebLogic Server 6.0, this next parameter is named
              > >"jms-destination-type" -->
              > >                    <destination-type>javax.jms.Queue</destination-type>
              > >               </message-driven-destination>
              > >          </message-driven>
              > >     </enterprise-beans>
              > >     <assembly-descriptor>
              > >          <container-transaction>
              > >               <method>
              > >                    <ejb-name>SimpleMDB</ejb-name>
              > >                    <method-name>*</method-name>
              > >               </method>
              > >               <trans-attribute>Required</trans-attribute>
              > >          </container-transaction>
              > >     </assembly-descriptor>
              > ></ejb-jar>
              > >
              > >
              > >My Start-up class is as follows:
              > >
              > >import com.ibm.mq.jms.*;
              > >import java.util.*;
              > >import javax.jms.*;
              > >import javax.naming.*;
              > >import weblogic.common.*;
              > >
              > >
              > >public class MQJMSStartup implements T3StartupDef
              > >{
              > >     /** * The name of the queue manager to connect to. The startup class
              > >* will throw an exception if this parameter is not set. */
              > >     public final static String QM_NAME_PROPERTY = "QManager";
              > >     
              > >     /** * The host name where the queue manager runs. If not set, the *
              > >startup class will create a "bindings mode" connection to a * queue
              > >manager on the local host. */
              > >     public final static String QM_HOST_PROPERTY = "QManagerHost";
              > >     
              > >     /** * The port number where the queue manager listens. If not set,
              > >this * defaults to 1414, the default MQSeries port */
              > >     public final static String QM_PORT_PROPERTY = "QManagerPort";
              > >          
              > >     /** * The name in JNDI to store this queue manager object under. * If
              > >not set, the startup class will throw an exception. */
              > >     public static final String JNDI_NAME_PROPERTY = "JNDIName";
              > >
              > >     // Required
              > >     public MQJMSStartup()
              > >     {
              > >     }
              > >
              > >     // Required, but not needed
              > >     public void setServices(T3ServicesDef services)
              > >     {
              > >     }
              > >
              > >          public String startup(String name, Hashtable args) throws Exception
              > >     {
              > >          String qmName = (String)args.get(QM_NAME_PROPERTY);
              > >          System.out.println("*****The qmName is "+qmName);
              > >          if (qmName == null)
              > >          {
              > >               throw new Exception("Startup parameter " + QM_NAME_PROPERTY + "
              > >must be set");
              > >          }
              > >          String jndiName = (String)args.get(JNDI_NAME_PROPERTY);
              > >          System.out.println("***The JNDI Nname is "+jndiName);
              > >          if (jndiName == null)
              > >          {
              > >               throw new Exception("Startup parameter " + JNDI_NAME_PROPERTY + "
              > >must be set");
              > >          }
              > >          String qmHost = (String)args.get(QM_HOST_PROPERTY);
              > >          System.out.println("*****The qmHost is "+qmHost);
              > >          String qmPort = (String)args.get(QM_PORT_PROPERTY);
              > >          System.out.println("*****The qmPort is "+qmPort);
              > >          MQQueueConnectionFactory factory = new MQQueueConnectionFactory();
              > >          factory.setQueueManager(qmName);
              > >          if (qmHost == null)
              > >          {
              > >               factory.setTransportType(JMSC.MQJMS_TP_BINDINGS_MQ);
              > >               factory.setHostName(qmHost);
              > >               if (qmPort != null)
              > >               {
              > >                    try
              > >                    {
              > >                         int portNum = Integer.parseInt(qmPort);
              > >                         factory.setPort(portNum);
              > >                    }
              > >                    catch (NumberFormatException ignore)
              > >                    {
              > >
              > >                    }
              > >               }
              > >          }
              > >          else
              > >          {
              > >               factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
              > >          }
              > >
              > >          InitialContext context = new InitialContext();
              > >          context.bind(jndiName, factory);
              > >          context.close();
              > >          StringBuffer buf = new StringBuffer();
              > >          buf.append( "A connection factory was created for the MQ Queue
              > >Manager ");
              > >          buf.append(qmName);
              > >          buf.append(" and stored in JNDI at ");
              > >          buf.append(jndiName);
              > >          System.out.println("*****The mqstartup is executed
              > >succesfully"+buf.toString());
              > >          return buf.toString();
              > >     }
              > >}
              > >
              > >
              > >
              > >
              > >The args that I pass through the weblogic console is as follows:
              > >
              > >QManager=QM_mphasis_eight, JNDIName=MyQCF
              > >
              > >
              > >
              > >
              > >
              > >Please advice,
              > >
              > >regards,
              > >
              > >Milan Doshi
              

  • Class issues

    how do i fix the name, chargefee and printing a summary for this??
    //========================================================
    //Account.java
    // A bank account class with methods to deposit to, withdraw from,
    // change the name on, charge a fee to, and print a summary
    // of account.
    //=======================================================
    import java.text.NumberFormat;
    public class Account
         private double balance;
         private String name;
         private long acctNum;
         private final double fee=15.00;
         //=======================================================
         //Constructor -- initializes balance, owner, & account#
         //=======================================================
         public Account(double initBal, String owner, long number)
              balance=initBal;
              name=owner;
              acctNum=number;
         //=======================================================
         // Checks to see if balance is suffiecient for withdrawal.
         // If so, decrements balance by amount; if not, prints
         // message.
         //=======================================================
         public void withdraw(double amount)
              if (balance >=amount)
                   balance-=amount;
              else
                   System.out.println("Insufficient funds");
         //========================================================
         // Adds deposit amount to balance.
         //========================================================
         public void deposit(double amount)
              balance+=amount;
         //========================================================
         // Returns balance.
         //========================================================
         public double getBalance()
              return balance;
         //============================================================
         // Returns a string containing the name, account# and balance
         //============================================================
         public String toString()
         NumberFormat fmt=NumberFormat.getCurrencyInstance();
         return(acctNum + "\t" + name + "\t" + fmt.format(balance));
         //=======================================================
         // Deducts $10 service fee
         //=======================================================
         public void chargeFee(double amount)
              balance=balance-fee;
         //=======================================================
         // Changes the name on the account
         //=======================================================
         public String getName(){
            return name;
    //second one below with the errors for the name, charge fee
    //and  printing summary
    //===============================================================
    // ManageAccounts.java
    // Use Account Class to create and manage Sally and Joe's
    // bank accounts
    //==============================================================
    public class ManageAccounts
         public static void main(String[]args)
              Account acct1, acct2;
              //create account 1 for Sally with $1000
              acct1= new Account(1000, "Sally", 1111);
              //creat account 2 for Joe with $500
              acct2= new Account(500, "Joe", 2222);
              //deposit $100 to Joe's account
              acct2.deposit(100);
              //print Joe's new balance (use getBalance())
              System.out.println("Joe's balance is: " + acct2.getBalance());
              //withdraw $50 from Sally's account
              acct1.withdraw(50);
              //print Sally's new balance (use getBalance())
              System.out.println("Sally's balance is: " + acct1.getBalance());
              //charge fees to both accounts
              acct1.chargeFee();
              acct2.chargeFee();
              //change the name on Joe's account to Joseph
              acct2= new Name("Joseph");
              //print summary for both accounts
              System.out.println(acct1.getString(toString));
              System.out.println(acct2.getString(toString));     
    }

    I don't understand the question. Do you mean "fix" as in "repair" or as in "make permanent", and if the former, how is it broken?
    This is wrong:
              System.out.println(acct2.getString(toString));     you probably want it to be:
              System.out.println(acct2);     which behaves the same as:
              System.out.println(acct2.toString());     because the toString is called implicitly, but it's cleaner.
    By the way you should consider using javadoc comments rather thanformatting your own (which can't be compiled into useful documents).
    Message was edited by:
    paulcw

  • Sub classing Issue

    When subclass any object possible to do changes to the parent object and it automatically updated in the child object.
    But once do any changes in the child object it won't effect to the parent object (This is obvious according to the concept)
    But issue is from that point onwards, if do any changes to the parent object it wont effect to the child object.
    Same scenario applicable when do sub classing thro object group as well.
    Please clarify..
    Rgds
    shabar

    if do any changes to the parent object it wont effect to the child object.If you overwrite a property in the "child"-object, any changes at the "parent"-object on the same property will not be inherited any more. Changes on other property will still be inherited.

  • ActionListener and Inner Class Issue

    When I add ".addActionListener()" to buttons and create an inner class to listen/handle the action, my main class does not display the GUI. If I remove the ".addActionListener()" from the buttons and the inner class, the GUI displays. Below is my code. Anyone know what is wrong with my code?
    package projects.web;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class AppletGUI{
         // JButtons
         JButton addButton = new JButton("Add");
         JButton removeButton = new JButton("Remove");
         JButton saveButton = new JButton("Save");
         JButton cancelButton = new JButton("Cancel");
         // JPanels
         JPanel containerPanel = new JPanel();
         JPanel optionsPanel = new JPanel();
         JPanel thumbnailPanel = new JPanel();
         JPanel selectionPanel = new JPanel();
         // JScrollPane
         JScrollPane thumbnailScroll;
         public AppletGUI(JRootPane topContainer){
              // Add actionListener
              addButton.addActionListener(new ButtonHandler());
              removeButton.addActionListener(new ButtonHandler());
              saveButton.addActionListener(new ButtonHandler());
              cancelButton.addActionListener(new ButtonHandler());
              // Set border layout
              containerPanel.setLayout(new BorderLayout());
              // Add buttons to target panels
              optionsPanel.add(addButton);
              optionsPanel.add(removeButton);
              selectionPanel.add(saveButton);
              selectionPanel.add(cancelButton);
              // Set size and color of thumbnail panel
              thumbnailPanel.setPreferredSize(new Dimension (600,500));
              thumbnailPanel.setBackground(Color.white);
              thumbnailPanel.setBorder(new LineBorder(Color.black));
              // Add thumbnail panel to scrollpane
              thumbnailScroll = new JScrollPane(thumbnailPanel);
              // Set background color of scrollPane
              thumbnailScroll.setBackground(Color.white);
              // Add subpanels to containerPanel
              containerPanel.add(optionsPanel, BorderLayout.NORTH);
              containerPanel.add(thumbnailScroll, BorderLayout.CENTER);
              containerPanel.add(selectionPanel, BorderLayout.SOUTH);
              // Add containerPanel to rootPane's contentPane
              topContainer.getContentPane().add(containerPanel);
         } // end constructor
         class ButtonHandler implements ActionListener{
              public void actionPerformed(ActionEvent event){
                   new FileBrowser();
              } // end actionPerformed method
         } // end inner class ActionHandler
    } // end AppletGUI class package projects.web;
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class FileBrowser{
         JFileChooser fileChooser = new JFileChooser();
         public FileBrowser(){
              int fileChooserOption = fileChooser.showOpenDialog(null);
         } // end constructor
    } // end class fileBrowser

    Encephalopathic wrote:
    Dan: When it doesn't display, what happens? Do you see any error messages? Also, please take a look at your other thread in this same forum as it has relevance to our conversations in the java-forums.org about whether to add GUIs to root containers or the other way around. /PeteI fiddled with the code some more and it seems that the problem is the inner code. When I changed from the inner class to the main class implementing ActionListener and had the main class implement the actionPerformed method, the GUI displayed and JFileChooser worked as well. I've add this version of the code at the bottom of this message.
    To answer your question: When it doesn't display, what happens? -- The web page loads and is blank. And there are no error messages.
    I took a look at the other thread is this forum (the one relates to our conversation in the other forum); the problem may be the way I've add the GUI. I'll try it the other way and see what happens.
    Thanks,
    Dan
    package projects.web;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class AppletGUI implements ActionListener{
         // JButtons
         JButton addButton = new JButton("Add");
         JButton removeButton = new JButton("Remove");
         JButton saveButton = new JButton("Save");
         JButton cancelButton = new JButton("Cancel");
         // JPanels
         JPanel containerPanel = new JPanel();
         JPanel optionsPanel = new JPanel();
         JPanel thumbnailPanel = new JPanel();
         JPanel selectionPanel = new JPanel();
         // JScrollPane
         JScrollPane thumbnailScroll;
         public AppletGUI(JRootPane topContainer){
              // Add actionListener
              addButton.addActionListener(this);
              removeButton.addActionListener(new ButtonHandler());
              saveButton.addActionListener(new ButtonHandler());
              cancelButton.addActionListener(new ButtonHandler());
              // Set border layout
              containerPanel.setLayout(new BorderLayout());
              // Add buttons to target panels
              optionsPanel.add(addButton);
              optionsPanel.add(removeButton);
              selectionPanel.add(saveButton);
              selectionPanel.add(cancelButton);
              // Set size and color of thumbnail panel
              thumbnailPanel.setPreferredSize(new Dimension (600,500));
              thumbnailPanel.setBackground(Color.white);
              thumbnailPanel.setBorder(new LineBorder(Color.black));
              // Add thumbnail panel to scrollpane
              thumbnailScroll = new JScrollPane(thumbnailPanel);
              // Set background color of scrollPane
              thumbnailScroll.setBackground(Color.white);
              // Add subpanels to containerPanel
              containerPanel.add(optionsPanel, BorderLayout.NORTH);
              containerPanel.add(thumbnailScroll, BorderLayout.CENTER);
              containerPanel.add(selectionPanel, BorderLayout.SOUTH);
              // Add containerPanel to rootPane's contentPane
              topContainer.getContentPane().add(containerPanel);
         } // end constructor
         public void actionPerformed(ActionEvent event){
                   new FileBrowser();
              } // end actionPerformed method
         class ButtonHandler implements ActionListener{
              public void actionPerformed(ActionEvent event){
                   new FileBrowser();
              } // end actionPerformed method
         } // end inner class ActionHandler
    } // end AppletGUI class

  • Hyperlink table for IO class Issue - DMWB transaction

    Hi,
    We have problems when we want to activate some objects, specifically "ZRM_DOCXX". When we try to activate this object, an popup appears with the next error:
    "There is no active "hyperlink" table for IO class 'ZRM_DOCP05' in 'ZRM_DOC05'
    Message no. MODEL058
    Procedure
    Check the tabulation for the IO class &V2& and correct it if necessary."
    Anyone knows where can we can customize this "hyperlink" table?
    Thanks in advance and regards,
    Sidney

    Hi Raja,
    Thanks for your reply.
    When i entered the code you sent me, i get a hyperling with "Test Link". I am already haveing a link for the production order.
    When i click on the "Test Link", it stays in the same page.
    I sent the code in the forum.
    Is there anything that you can help me?
    I have created a transation ZCUS3 in SAP. The original Transaction code is ZCUS
    In "Services" file,i have :
    ZCUS1.srvc  --> ~transaction    ZCUS
    ZCUS3.srvc--> ~transaction    ZCUS3
                  ~sources        zcus1
    Is the above settings right ?
    Please do help me.
    Thanks ,
    Sathya

  • Packed project Library Labview Class Issues

    I packed  my whole Labview project as a packed proj library during   teststand Deployment 
    I am using classes in my  labview project 
    unfortunalely by one of sub seq calls got the following error !
    "Type mismatch. The LabVIEW Class does not match the class expected by the VI.
    Cannot pass a base LabVIEW Class to call a method initially defined in a derived LabVIEW Class."

    The error message is quite clear:
    You are using inheritance where you do have methods which are not part of the parent class (as dynamic dispatch).
    During the call, you pass an object of the parent class and try to call the (unknown) method of the child.
    Why this is happening can only explain your code....
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Resource Class issue

    Hi,
    I am using ACE4710 with all the servers in default admin context. Now i need to enable sticky persistence and for this it asks me for resource allocation. I've couple of questions regarding this:
    1- can i allocat sticky resources to default resource class?
    2- If i've to create a new resource class, then how can i associate this class to default Admin context? and will Admin context be member of both default resource calss and the new resource class the same time?
    3-Does it really require a restart of ACE once we change default resource class?
    besides this i'd really appreciate any other recommendations/suggestions from you guys.
    Regards,

    You need something like the following
    resource-class mycompany
    limit-resource all minimum 0.00 maximum unlimited
    limit-resource sticky minimum 2.00 maximum equal-to-min
    context Admin
    allocate-interface vlan x
    allocate-interface vlan x
    member mycompany
    1. No ,you cannot edit default class. You will have to create a seperate resource class
    2.Define it under "context Admin". No Admin context will just be member of the defined resource class
    3.No
    HTH
    Syed Iftekhar Ahmed

  • WF with Exception class issue

    Hi folks.
    I'm on ECC 6.0. I bult a ZCLASS and a Zworkflow which works with a ZCL_class, which works with a ZCX_class (exception class) and its messages.
    Inside workflow, in dialog task/step, I use a PFAC (rule) to determine agent.
    This PFAC rule works fine to get agent. BUT I tryied to force a error (test purpose to see correct ERROR Zmessage in WF log) inside the FM called, but it doens't work. The error is like "Indice ParForEach (id of node).". (I know this error happens when left the correct parameter in bind)....BUT:
    I know this rule works correct when find a agent. BUT when I simulate "no agents", it gives this WRONG error message. I'd like to put my OWN error message.
    Inside the FM called by rule, I instatiated object and I use TRY..CATCH..ENDTRY structure. My CATCH command have a call to exception class and it has the correct message. BUT still not giving (expected) CORRECT ERROR MESSAGE when necessary.
    Thanks.
    Glauco

    Hi.
    Inside the FM, I instantiate a object and call method of Zclass to find user, using TRY..CATCH..ENDTRY.
    TRY.
          CALL METHOD lo_curso->get_usuario_lider
            EXPORTING
              objid_lider   = lv_id_gerente
            IMPORTING
              usuario_lider = l_usuario_lider.
          IF l_usuario_lider IS NOT INITIAL.
            CONCATENATE 'US'
                        l_usuario_lider
                        INTO l_actor.
            APPEND l_actor TO actor_tab.
          ENDIF.
        CATCH zcx_hcm_curso .
          RAISE nobody_found.
      ENDTRY.
    OBS.: I also tryied to use (coment RAISE nobody_found.) nd put OO exception, but when verifying code, give error "Old and new exceptions cannot be used at the same time".

  • CPP Class issue[Fixed]

    I'm trying to write a linked list class in C++. The class compiles fine, but when I include it in my main file, I get errors about multiple function definitions.
    What's wrong with my code? Here's a snippet
    Chain.cpp
    #define NULL 0
    typedef struct element{
    char value;
    element* next;
    class Chain{
    public:
    Chain(){
    start->next = NULL;
    size = 0;
    void addItem(char c);
    void deleteItem(int i);
    char getItem(int i);
    void setItem(int i);
    int getSize();
    private:
    element* start;
    int size;
    void Chain::addItem(char c){
    element *e = start;
    element *n;
    for(int x=0;x<size;x++) {
    e = e->next;
    e->next = n;
    n->value = c;
    size++;
    char Chain::getItem(int i){
    element *e = start;
    if(i>=size) {
    return 0;
    for(int x=0;x<i;x++) {
    e = e->next;
    return e->value;
    int Chain::getSize(){
    return size;
    *edit: included entire file
    Last edited by Varreon (2009-11-08 05:19:34)

    Well, the way I'm currently compiling is the build command from within Code::Blocks(using mingw).
    Compile errors:
    obj\Debug\Chain.o||In function `ZN5Chain7addItemEc':|
    C:\dev\mchain\Chain.cpp|23|multiple definition of `Chain::addItem(char)'|
    obj\Debug\main.o:C:\dev\mchain\Chain.cpp|23|first defined here|
    obj\Debug\Chain.o||In function `ZN5Chain7getItemEi':|
    C:\dev\mchain\Chain.cpp|34|multiple definition of `Chain::getItem(int)'|
    obj\Debug\main.o:C:\dev\mchain\Chain.cpp|34|first defined here|
    obj\Debug\Chain.o||In function `ZN5Chain7getSizeEv':|
    C:\dev\mchain\Chain.cpp|45|multiple definition of `Chain::getSize()'|
    obj\Debug\main.o:C:\dev\mchain\Chain.cpp|45|first defined here|
    ||=== Build finished: 6 errors, 0 warnings ===|
    Start is meant to point to the first element in the list. I intended it to point to the element created through each call off addItem(), but I'll need to fix that.

  • Simple custom class issue

    So this doesn't make sense. Here is my class....
    package com.test.util;
    public class locationGen {
    String loc;
    public String location(String department)
    if (department == "D22")
    loc = "New York";
    if (department == "D33")
    loc = "Chicago";
    if (department == "D44")
    loc = "Seattle";
    return loc;
    Here is my xpress
    <set name='myclass'>
    <new class='com.test.util.locationGen'/>
    </set>
    <set name='user.global.location'>
    <invoke name='location'>
    <ref>myclass</ref>
    <ref>user.global.department</ref>
    </invoke>
    </set>
    Yet location is null. I set department to D33 earlier in the workflow. Help!

    So I think it was the way I was comparing strings. I even got fancy and explored different ways to do compares Here is what my final class looks like...
    package com.test.util;
    public class locationGen {
         String deptLocation;
         public String location(String department)
    if (department.equalsIgnoreCase("D22"))
    deptLocation = "New York";
    if (department.equalsIgnoreCase("D33"))
    deptLocation = "Chicago";
    if (department.equalsIgnoreCase("D44"))
    deptLocation = "Seattle";
    return deptLocation;
    Here is what it looks like calling it in xpress....
    <set name='user.global.location'>
    <invoke name='location'>
    <new class='com.test.util.locationGen'/>
    <ref>user.global.department</ref>
    </invoke>
    </set>
    INFO:
    <ref>user.global.department</ref>
    INFO: --> D22
    INFO:
    </invoke> --> New York
    Thanks all, this thread helped my understanding a lot.

  • I want to make sure about abstract classes issue

    Hello,
    I have an interface with two methods.
    interface call{
    void trial (int p);
    void show();
    And an abstract class that implements that interface with overriding only one method of the two.
    abstract class client implements call {
    public void trial(int num) { System.out.println(num);}
    In the main method, I wanted to instantiate the implementing class in order to make use of the one method it overrides, but I received an error that the class as abstract, cannot be instantiated.
    class test{
    public static void main(String args[]) {
    //creating object reference to the implementing class
    client c = new client(); //the error is here
    c.trial(5);
    //creating an interface reference
    call m = new client(); //also doesn't work
    m.trial(5);
    So does I understand from this that if a class does not provide full implementation of an interface (i.e. abstract class), it cannot be used inside my program?
    Thanks!

    Please use code tags (see CODE button above posting box). Also, please use standard Java conventions of using a capital letter to start a class name.
    You are getting that error message because you didn't define show, and the interface requires it. You have to extend the Client abstract class to define show.
    You can make an anonymous class that defines show:
    Call m = new Client() {
       public void show() {
          System.out.println("Do something.");
    m.trial(5);Or, you can make a non-anonymous class that defines show:
    class MyClient extends Client {
       public void show() {
    }In this example, "show" doesn't actually do anything, but it does satisfy the interface. You can put the same "show" as I put in my anonymous class, or you can do whatever you want in "show".
    Then, in your "main", you'd have:
    MyClient client = new MyClient();
    client.trial(5);
    //or
    Call anotherClient = new MyClient();
    anotherClient.trial(6);
    //or
    Client yetAnotherClient = new MyClient();
    yetAnotherClient.trial(7);

Maybe you are looking for

  • Ext3+dir_index vs JFS, XFS, ReiserFS. Choice problem

    I'm a linux noob. Going to install Archlinux to new laptop Inspiron 1520 Right now playing with Archlinux on vmware. I want my laptop be fast, and of course choosing right FS is important in this regard. Let me sum up all i read so far about differen

  • Use SD card as external drive?

    I've read in numerous places that you should use an external drive for storing Final Cut projects and events.  I'm wondering, since I have a 32gb SD card and my event footage is only about 10gb, can I use the SD to store my Event and Project files? 

  • DMS interface program required

    Dear all, We are implenting DMS in our organisation for which , I have a requirement where in I need to make a program (interface) which can attach & send  the scanned image of objects (Ex: Invoice) to a specific location on DMS server. The data on D

  • Does anyone know Directory Utility is called on a Dutch system?

    I'm trying to install a MAMP on my system and I've found a tutorial on Internet that says that I have to open the Directory Utility in System > Library > Core Services (in Dutch: Systeem > Bibliotheek > CoreServices) but I can't find the Directory Ut

  • CS5 using wrong drives for scratch

    I'm running CS5 in win7/64bit, booting from C: and have a bunch of other drives, one of which is a FAT formatted external I: I have scratch set up on L: and C:, I: is unchecked in the performance prefs, yet PS is using I: for scratch. I can tell this