CMP JOINQUERY - URGENT

hi,
Is it possible to write a join query in CMP. from multiple tables to retrive the data using find by method.
if no please give me reason. if yes how can we write.
thanks in advance

I mean to say u don't write any queries in CMP. Use BMP instead for such a requirement.

Similar Messages

  • Please help me to run this CMP BEAN, I need help urgently, I am running out of time :(

    Hi,
    I am facing this problem, Please help me, I am attaching the source files
    also along with the mail. This is a small CMP EJB application, I am using
    IAS SP2 on NT server with Oracle 8. I highly appreciate if someone can send
    me the working copy of the same. I need these urgent. I am porting all my
    beans from bea weblogic to Iplanet. Please help me dudes.
    Err.........
    [06/Sep/2001 13:41:29:7] error: EBFP-marshal_internal: internal exception
    caught
    in kcp skeleton, exception = java.lang.NoSuchMethodError
    [06/Sep/2001 13:41:29:7] error: Exception Stack Trace:
    java.lang.NoSuchMethodError
    at
    com.se.sales.customer.ejb_kcp_skel_CompanyHome.create__com_se_sales_c
    ustomer_Company__java_lang_Integer__indir_wstr__215617959(ejb_kcp_skel_Compa
    nyHo
    me.java:205)
    at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
    at com.kivasoft.ebfp.FPRequest.invoke(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:297)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Caught an exception.
    java.rmi.RemoteException: SystemException: exid=UNKNOWN
    at com.kivasoft.eb.EBExceptionUtility.idToSystem(Unknown Source)
    at com.kivasoft.ebfp.FPUtility.replyToException(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:324)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Thanks in advance
    Shravan
    [Attachment iplanet_app.jar, see below]
    [Attachment iplanet_src.jar, see below]

    One reason that I sometimes get 'NoSuchMethodError' is when I make a change to a
    java class that is imported into another java class. When I go to run the
    importing class, it will throw a 'NoSuchMethodError' on any methods that I've
    changed in the imported class. The solution is to recompile the importing class
    with the changed classes in the classpath.
    shravan wrote:
    Hi,
    I am facing this problem, Please help me, I am attaching the source files
    also along with the mail. This is a small CMP EJB application, I am using
    IAS SP2 on NT server with Oracle 8. I highly appreciate if someone can send
    me the working copy of the same. I need these urgent. I am porting all my
    beans from bea weblogic to Iplanet. Please help me dudes.
    Err.........
    [06/Sep/2001 13:41:29:7] error: EBFP-marshal_internal: internal exception
    caught
    in kcp skeleton, exception = java.lang.NoSuchMethodError
    [06/Sep/2001 13:41:29:7] error: Exception Stack Trace:
    java.lang.NoSuchMethodError
    at
    com.se.sales.customer.ejb_kcp_skel_CompanyHome.create__com_se_sales_c
    ustomer_Company__java_lang_Integer__indir_wstr__215617959(ejb_kcp_skel_Compa
    nyHo
    me.java:205)
    at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
    at com.kivasoft.ebfp.FPRequest.invoke(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:297)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Caught an exception.
    java.rmi.RemoteException: SystemException: exid=UNKNOWN
    at com.kivasoft.eb.EBExceptionUtility.idToSystem(Unknown Source)
    at com.kivasoft.ebfp.FPUtility.replyToException(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:324)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Thanks in advance
    Shravan
    Name: iplanet_app.jar
    iplanet_app.jar Type: Java Archive (application/java-archive)
    Encoding: x-uuencode
    Name: iplanet_src.jar
    iplanet_src.jar Type: Java Archive (application/java-archive)
    Encoding: x-uuencode

  • URGENT HELP ON BMP CMP!!!

    Hi everybody!!
    I've wrote few CMP EJB's before and now Im trying to write a BMP EJB.
    In the finder methods I�ve to select data from two tables:
    "product_catalog" and "product" (relation One to many)
    The query that matches my needs is:
    SELECT DISTINCT a.product_code, b.product_description
    FROM product a, product_catalog b
    WHERE a.product_code = b.product_code
    AND (a.region_code = '00' OR a.region_code = 'variable argument')
    AND b.product_line <> '08'
    Note that in the FROM clause of the query data is retrieved from two tables and that the WHERE conditions involve both tables.
    �A query like this can be implemented into a finder method of a BMP EJB?
    �What about the descriptor? -Im using Websphere Application Server 4.0-
    �How can I tell the container which fields will be persistent?
    �Which fields should I've to specify as primary key fields? �The ones from the parent table? �What about the ones from the child table? �What about the query in the ejbLod() and the ejbStore() methods that select and update data from the table(s)?
    I've looked at the J2EE tutorial examples but none of the examples uses a query like mine.
    As you can see I need URGENT help on this.
    All the help you can give will be greatfully welcome!!
    THANKS!!!
    Ezequiel Velazquez

    Greetings,
    Note that in the FROM clause of the query data is
    retrieved from two tables and that the WHERE
    conditions involve both tables.IOW: an "inner join"...
    �A query like this can be implemented into a finder
    method of a BMP EJB?BMP differs from CMP in that as the bean coder: you are in control of the query and therefore can be as simple or as complex as required without required to the container's query language support. However, remember the implementation rules of finder methods:
    1. A finder method's purpose is simply to locate entities in the resource; and, therefore...
    2. A finder method returns an instance of the PrimaryKey class (or collection thereof).
    Also...
    a. The container calls a corresponding ejbFind method on an instance in the free pool; and, therefore...
    b. A finder method should not attempt to manipulate bean state.
    Therefore, as long as the data returned by your join query (a.product_code, b.product_description), compose a PrimaryKey class instance, you are fine.
    However, I will add that it should be remembered that an EBs purpose is to provide an OO representation of shareable, persistent, data ("entities") in an enterprise resource. They have a specific purpose and do not merely provide "data access" or act as "resource managers". From your example given, it seems your "entity" may be uniquely identified from 'a.product_code', a common primary(?) key in both tables and that the code is actually trying to act as a report writer. If your SELECTed data (a.product_code, b.product_description) do not together comprise a unique entity representation in your application then this is incorrect usage. In this case you should either generate the query from a Session Bean or create separate Entity Beans for each of your tables 'a' and 'b' and handle your 'joins' in business methods.
    �What about the descriptor? -Im using Websphere
    Application Server 4.0-Your descriptor will identify the bean's <persistence-type> as "Bean". This is all it needs to know about the bean since the Bean is Manag[ing] it's own Persistence (BMP ;).
    �How can I tell the container which fields will be
    persistent?Er, you don't. BMP beans manage their own persistence and, therefore, manage their own fields. Refer again to the above.
    �Which fields should I've to specify as primary key
    fields? �The ones from the parent table? �What about
    the ones from the child table? �What about the query
    in the ejbLod() and the ejbStore() methods that select
    and update data from the table(s)?These are all questions related to how your application requires an "OO representation of its resource data" to be mapped to the backend resource(s). Only "you" can really answer these questions. However, refer back to the above for some implicit pointers. :)
    I've looked at the J2EE tutorial examples but none of
    the examples uses a query like mine.The tutorial is intended for beginners to J2EE development and, therefore, provide only simplistic examples. For a more thorough examination, refer to the J2EE Blueprints.
    As you can see I need URGENT help on this.
    All the help you can give will be greatfully
    welcome!!I hope this helps.
    THANKS!!!
    Ezequiel VelazquezRegards,
    Tony "Vee Schade" Cook

  • Unable to execute the cmp using the weblogic

    I was trying to execute cmp using weblogic server7.0.
    It a simple program,
    The remote interface-
    import javax.ejb.*;
    import java.rmi.RemoteException;
    public interface SportTeam extends EJBObject{
    public void setOwnerName(String ownerName) throws RemoteException;
    public String getOwnerName() throws RemoteException;
    public void setFranchiseName(String franchiseName) throws RemoteException;
    public String getFranchiseName() throws RemoteException;
    }The home interface
    import javax.ejb.*;
    import java.rmi.RemoteException;
    import java.util.Collection;
    public interface SportTeamHome extends EJBHome{
    SportTeam create(String sport,String nickName)throws RemoteException,CreateException;
    SportTeam create(String sport,String nickName,String ownerName,String franchisePlayer)throws RemoteException,CreateException;
    SportTeam findByPrimaryKey(SportTeamPK sportTeam) throws RemoteException,FinderException;
    Collection findByOwnerName(String ownerName) throws RemoteException,FinderException;
    }The bean
    import javax.ejb.*;
    import javax.naming.*;
    import java.rmi.RemoteException;
    import java.sql.*;
    import java.util.*;
    public abstract class SportTeamEJB implements EntityBean{
    public SportTeamPK ejbCreate(String sport,String nickName) throws CreateException {
    setSport(sport);
    setNickName(nickName);
    setOwnerName(null);
    setFranchiseName(null);
    return null;
    public void ejbPostCreate(String sport,String nickName){}
    public SportTeamPK ejbCreate(String sport,String nickName,String ownerName,String franchiseName) throws CreateException {
    setSport(sport);
    setNickName(nickName);
    setOwnerName(ownerName);
    setFranchiseName(franchiseName);
    return null;
    public void ejbPostCreate(String sport,String nickName,String ownerName,String franchiseName){}
    public void ejbLoad(){}
    public void ejbStore(){}
    public void ejbRemove(){}
    public void ejbActivate(){}
    public void ejbPassivate(){}
    public void setEntityContext(EntityContext ctx){}
    public void unsetEntityContext(){}
    abstract public String getSport();
    abstract public void setSport(String sport);
    abstract public String getNickName();
    abstract public void setNickName(String nickName);
    abstract public String getOwnerName();
    abstract public void setOwnerName(String ownerName);
    abstract public String getFranchiseName();
    abstract public void setFranchiseName(String franchiseName);
    }the client side program
    import java.rmi.RemoteException;
    import javax.ejb.*;
    import javax.naming.*;
    import javax.rmi.PortableRemoteObject;
    import java.util.Properties;
    import java.util.Collection;
    import java.util.Iterator;
    public class TestClient{
    public static void main(String[] args){
    try{
         Properties prop=new Properties();
         prop.setProperty(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
         prop.setProperty(Context.PROVIDER_URL,"t3://localhost:7001");
         InitialContext initial=new InitialContext(prop);
         Object objref=initial.lookup("CMPSportBean");
         SportTeamHome home=(SportTeamHome)PortableRemoteObject.narrow(objref,SportTeamHome.class);
         System.out.println("Creating a row.");
         home.create("basketball","Kings","Joe Maloof","Jason Williams");
         System.out.println("Looking up by primary key...");
         SportTeam team=home.findByPrimaryKey(new SportTeamPK("basketball","Kings"));
         System.out.println("Current franchise player:");
         System.out.println(team.getFranchiseName());
         System.out.println("Looking by by owner...");
         Collection col=home.findByOwnerName("Joe Maloof");
         if(     0 == col.size()     ){
              System.out.println("Found no such owner");
         }else {
              Iterator iter=col.iterator();
              while(iter.hasNext()){
              Object objref2=iter.next();
              SportTeam teamRef2=(SportTeam) PortableRemoteObject.narrow(objref2,SportTeam.class);
              System.out.println("Owner name:"+ teamRef2.getOwnerName());
    team.remove();
    }catch(RemoveException re){
         re.printStackTrace();
    }catch(NamingException ne){
         ne.printStackTrace();
    }catch(CreateException ce){
         ce.printStackTrace();
    }catch(FinderException fe){
         fe.printStackTrace();
    }catch(RemoteException re){
                  re.printStackTrace();
    }The primary key class
    //package sportBean.cmp;
    import java.io.Serializable;
    public class SportTeamPK implements Serializable{
    public String sport;
    public String nickName;
    public SportTeamPK(){}
    public SportTeamPK(String sport,String nickName){
    this.sport =sport;
    this.nickName=nickName;
    public String getSport(){
    return sport;
    public String getNickName(){
    return nickName;
    public int hashCode(){
    return (sport+nickName).hashCode();
    public boolean equals(Object other){
         if( (other == null) ||! (other instanceof SportTeamPK) ){
            return false;
         SportTeamPK otherPK=(SportTeamPK)other;
         return sport.equals(otherPK.sport) && nickName.equals(otherPK.nickName);
    The program has complied successfully .
    The META-INF directory has been created automatically
    the ejb-jar.xml file
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <!-- Generated XML! -->
    <ejb-jar>
      <enterprise-beans>
        <entity>
          <ejb-name>CMPSportBean</ejb-name>
          <home>SportTeamHome</home>
          <remote>SportTeam</remote>
          <ejb-class>SportTeamEJB</ejb-class>
          <persistence-type>Container</persistence-type>
          <prim-key-class>SportTeamPK</prim-key-class>
          <reentrant>False</reentrant>
          <abstract-schema-name>SportEJB</abstract-schema-name>
          <cmp-field>
            <field-name>sport</field-name>
          </cmp-field>
          <cmp-field>
            <field-name>nickName</field-name>
          </cmp-field>
          <cmp-field>
            <field-name>ownerName</field-name>
          </cmp-field>
          <cmp-field>
            <field-name>franchiseName</field-name>
          </cmp-field>
          <query>
            <query-method>
              <method-name>findByOwnerName</method-name>
              <method-params>
                <method-param>java.lang.String</method-param>
              </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(o) FROM SportEJB AS o WHERE o.ownerName=?1]]></ejb-ql>
          </query>
        </entity>
      </enterprise-beans>
      <assembly-descriptor>
      </assembly-descriptor>
    </ejb-jar>the weblogic-ejb-jar.xml file
    <!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'>
    <!-- Generated XML! -->
    <weblogic-ejb-jar>
      <weblogic-enterprise-bean>
        <ejb-name>CMPSportBean</ejb-name>
        <entity-descriptor>
          <pool>
          </pool>
          <entity-cache>
            <max-beans-in-cache>1000</max-beans-in-cache>
            <idle-timeout-seconds>600</idle-timeout-seconds>
            <read-timeout-seconds>600</read-timeout-seconds>
            <cache-between-transactions>False</cache-between-transactions>
          </entity-cache>
          <persistence>
            <persistence-use>
              <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
              <type-version>6.0</type-version>
              <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
            </persistence-use>
          </persistence>
          <entity-clustering>
          </entity-clustering>
        </entity-descriptor>
        <transaction-descriptor>
          <trans-timeout-seconds>2</trans-timeout-seconds>
        </transaction-descriptor>
        <jndi-name>CMPSportBean</jndi-name>
      </weblogic-enterprise-bean>
    </weblogic-ejb-jar>the weblogic-cmp-rdbms-jar.xml file
    <!DOCTYPE weblogic-rdbms-jar PUBLIC  '-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls700/dtd/weblogic-rdbms20-persistence-700.dtd'>
    <!-- Generated XML! -->
    <weblogic-rdbms-jar>
      <weblogic-rdbms-bean>
        <ejb-name>CMPSportBean</ejb-name>
        <data-source-name>myjdbcjndi</data-source-name>
        <table-map>
          <table-name>sportsteams</table-name>
          <field-map>
            <cmp-field>ownerName</cmp-field>
            <dbms-column>ownername</dbms-column>
          </field-map>
          <field-map>
            <cmp-field>franchiseName</cmp-field>
            <dbms-column>franchisename</dbms-column>
          </field-map>
          <field-map>
            <cmp-field>nickName</cmp-field>
            <dbms-column>nickname</dbms-column>
          </field-map>
          <field-map>
            <cmp-field>sport</cmp-field>
            <dbms-column>sport</dbms-column>
          </field-map>
        </table-map>
        <weblogic-query>
          <query-method>
            <method-name>findByOwnerName</method-name>
            <method-params>
              <method-param>java.lang.String</method-param>
            </method-params>
          </query-method>
        </weblogic-query>
        <check-exists-on-method>False</check-exists-on-method>
      </weblogic-rdbms-bean>
      <create-default-dbms-tables>True</create-default-dbms-tables>
    </weblogic-rdbms-jar>I tried to write config.xml file
    <JDBCDataSource
       Name=" "
       JNDIName="myjdbcjndi"
       PoolName="MyJDBC Connection Pool"
       Targets="myserver"
    />
    <JDBCConnectionPool
       Name="MyJDBC Connection Pool"
       Targets="myserver"
        URL="jdbc:odbc:test"
        DriverName="sun.jdbc.odbc.JdbcOdbcDriver"
        InitialCapacity="1"
        MaxCapacity="10"
    />When i tried to deploy, it showed me errors-
    weblogic.management.ApplicationException: activate failed forcmp
    Start server side stack trace:
    weblogic.management.ApplicationException: activate failed forcmp
    Module Name: cmp, Error: Exception activating module: EJBModule(cmp,status=PREPARED)
    Unable to deploy EJB: CMPSportBean from cmp:
    weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: myjdbcjndi could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
         at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:138)
         at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:211)
         at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:181)
         at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
         at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:945)
         at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1296)
         at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:349)
         at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:1592)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    TargetException:
    Unable to deploy EJB: CMPSportBean from cmp:
    weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: myjdbcjndi could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
         at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:138)
         at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:211)
         at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:181)
         at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
         at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:945)
         at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1296)
         at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:349)
         at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:1592)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1035)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    End server side stack trace
    Module Name: cmp, Error: Exception activating module: EJBModule(cmp,status=PREPARED)
    Unable to deploy EJB: CMPSportBean from cmp:
    weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: myjdbcjndi could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
         at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:138)
         at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:211)
         at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:181)
         at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
         at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:945)
         at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1296)
         at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:349)
         at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:1592)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    TargetException:
    Unable to deploy EJB: CMPSportBean from cmp:
    weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: myjdbcjndi could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
    Start server side stack trace:
    weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: myjdbcjndi could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
         at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:138)
         at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:211)
         at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:181)
         at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
         at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:945)
         at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1296)
         at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:349)
         at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:1592)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    End server side stack trace
         <<no stack trace available>>
         <<no stack trace available>>
    I tried to put the file into the directory structure.
    I kept the class files into the WEB-INF/classess
    I could'nt understand whats wrong with it.
    Please help me it is urgent, if i could understand it i can proceed further

    Hi,
    I had the same error as you. I'm agree with arvind_India (previous). You must :
    1. Define a correct Connection Pool (warning: deploy it on your managed server).
    2. Test your connection Pool on your managed server.
    3. Create a DataSource from your connection Pool.
    4. Deploy your DataSource on your managed server.
    5. Verify the JNDI TREE of your managed server (Now, the JNDI name of your dataSource must appair).
    6. Deploy your Entity Bean (the error has disapeared).
    David (Paris-France).

  • Urgent: Can't lookup entity bean

    Dear all,
    I define a business process in workflow engine, which invoke a java class to get
    DB data through CMP entity bean. The entity bean was packed in to a ear and was
    workable/callable within the same ear.
    However, when the workflow engine can't invoke the entity bean, the workflow engine
    always throw exception as following.
         javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException:
    Unable to resolve 'app/ejb/ConsignmentEntityBean.jar#Consignments/local-home'
    Resolved: 'app/ejb' Unresolved:'ConsignmentEntityBean.jar#Consignments' ; remaining
    name 'ConsignmentEntityBean.jar#Consignments/local-home'
    I think the problem may occur in deployment/configuration. Since the problem is
    very urgent, anyone can help me? To all developers, How do you package/deploy
    Entity Bean in Integration Server?
    Thx,
    Philip

    I solved this.
    Since I was testing the action code only, I didn't define a navigation entry corresponding to the action string returned for this button:
    <h:commandButton value="Add" style="height:21px; width:51px;font-size:8pt; font-color: black;" action="#{resourceBean.addAction}">
    </h:commandButton>After I added a nav definition, it worked. I don't know why at this point. I suspect a key step in the lifecycle was pre-empted...someone else can probably explain why. If I get a chance to research it after I'm done with my project, I'll update this post.
    Thanks.
    -L

  • How to upload a BLOB file from CMP Entity Beans

    Hi,
    I want to upload a .xls file as a BLOB using CMP. And also to get back the BLOB from the database through CMP. I am using oracle 8i DataBase and weblogic 8.1 server with weblogic workshop as IDE.
    I don't have any idea to save a file as BLOB.
    Could any one please help me to solve this as it is very urgent.
    regards
    KumudaRajarshi

    I would just put the .xls file into a byte array in a
    class that implements the serializable
    interface. This class then becomes a column in your
    database table(as a blob) represented by an
    attribute in your entity bean. On sun appserver7
    serializable is mapped to a blob column in the
    database by default. You don't have to deal with a
    blob at all in the code, just your
    serializable type. You may have to use a type 2
    driver to get it to work with files
    over 4 or 5k.
    See the appserver7 EJBdevguide, page 92 for details.could you descrbe the detail how to use the class to become the column as blob?
    is that any sample code can be provided?
    it's very urgent, please help..
    thanks

  • Personnel Data Iview Error (It's very Urgent)

    Hi All,
    Personal Data   
    Critical Error
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Please contact your system administrator.
    failed to create or init instance of model 'com.sap.xss.hr.per.in.pdata.model.HRXSS_PER_P0002_IN' in scope APPLICATION_SCOPE with instanceId 'null'   
    Caused by: com.sap.tc.webdynpro.progmodel.model.api.WDModelException: failed to create instance of model 'com.sap.xss.hr.per.in.pdata.model.HRXSS_PER_P0002_IN'
         at com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getNewModelInstance(WDModelFactory.java:392)
         at com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getOrCreateModelInstanceFromScopeMaintainer(WDModelFactory.java:329)
         ... 65 more
    Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: no jcoMetadata found for RFC function 'HRXSS_PER_GET_F4_P0002_IN'! Please verify, that your model is consistent with the ABAP backend: 'EC6'.
    Hi Please help me to solve this error it's very urgent ?
    thanks and regards,
    Phanikumar.

    Hi Ashutosh Gulkhobre,
    I coppied the dump from the ST22.
    Now please tell me solution fro this error ?
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO
    Exception              CX_SY_REF_IS_INITIAL
    Date and Time          27.06.2007 09:54:55
         Short text
              Access via 'NULL' object reference not possible.
         What happened?
              Error in the ABAP Application Program
              The current ABAP program "SAPLHRXSS_PER_MAC" had to be terminated because it
               has
              come across a statement that unfortunately cannot be executed.
         What can you do?
              Note down which actions and inputs caused the error.
              To process the problem further, contact you SAP system
              administrator.
              Using Transaction ST22 for ABAP Dump Analysis, you can look
              at and manage termination messages, and you can also
              keep them for a long time.
         Error analysis
              An exception occurred that is explained in detail below.
              The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
               caught in
              procedure "HRXSS_PER_CLEANUP" "(FUNCTION)", nor was it propagated by a RAISING
               clause.
              Since the caller of the procedure could not have anticipated that the
              exception would occur, the current program is terminated.
              The reason for the exception is:
              You attempted to use a 'NULL' object reference (points to 'nothing')
              access a component.
              An object reference must point to an object (an instance of a class)
              before it can be used to access components.
              Either the reference was never set or it was set to 'NULL' using the
              CLEAR statement.
         How to correct the error
              Probably the only way to eliminate the error is to correct the program.
              If the error occures in a non-modified SAP program, you may be able to
              find an interim solution in an SAP Note.
              If you have access to SAP Notes, carry out a search with the following
              keywords:
              "OBJECTS_OBJREF_NOT_ASSIGNED_NO" "CX_SY_REF_IS_INITIAL"
              "SAPLHRXSS_PER_MAC" or "LHRXSS_PER_MACU04"
              "HRXSS_PER_CLEANUP"
              If you cannot solve the problem yourself and want to send an error
              notification to SAP, include the following information:
              1. The description of the current problem (short dump)
                 To save the description, choose "System->List->Save->Local File
              (Unconverted)".
              2. Corresponding system log
                 Display the system log by calling transaction SM21.
                 Restrict the time interval to 10 minutes before and five minutes
              after the short dump. Then choose "System->List->Save->Local File
              (Unconverted)".
              3. If the problem occurs in a problem of your own or a modified SAP
              program: The source code of the program
                 In the editor, choose "Utilities->More
              Utilities->Upload/Download->Download".
              4. Details about the conditions under which the error occurred or which
              actions and input led to the error.
              The exception must either be prevented, caught within proedure
              "HRXSS_PER_CLEANUP" "(FUNCTION)", or its possible occurrence must be declared
               in the
              RAISING clause of the procedure.
              To prevent the exception, note the following:
         System environment
              SAP-Release 700
              Application server... "ptgsap10"
              Network address...... "192.168.1.18"
              Operating system..... "Windows NT"
              Release.............. "5.2"
              Hardware type........ "2x Intel 80686"
              Character length.... 16 Bits
              Pointer length....... 32 Bits
              Work process number.. 0
              Shortdump setting.... "full"
              Database server... "PTGSAP10"
              Database type..... "ORACLE"
              Database name..... "EC6"
              Database user ID.. "SAPSR3"
              Char.set.... "C"
              SAP kernel....... 700
              created (date)... "Aug 29 2006 00:18:21"
              create on........ "NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10"
              Database version. "OCI_10201_SHARE (10.2.0.1.0) "
              Patch level. 75
              Patch text.. " "
              Database............. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 10.2.0.."
              SAP database version. 700
              Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
              Memory consumption
              Roll.... 8176
              EM...... 2090448
              Heap.... 0
              Page.... 0
              MM Used. 1208256
              MM Free. 880672
         User and Transaction
              Client.............. 001
              User................ "ESS_USER1"
              Language Key........ "E"
              Transaction......... " "
              Program............. "SAPLHRXSS_PER_MAC"
              Screen.............. "SAPMSSY1 3004"
              Screen Line......... 2
              Information on caller of Remote Function Call (RFC):
              System.............. "########"
              Database Release.... 645
              Kernel Release...... 700
              Connection Type..... "E" (2=R/2, 3=ABAP System, E=Ext., R=Reg. Ext.)
              Call Type........... "synchron and non-transactional (emode 0, imode 0)"
              Inbound TID.........." "
              Inbound Queue Name..." "
              Outbound TID........." "
              Outbound Queue Name.." "
              Client.............. "###"
              User................ "############"
              Transaction......... " "
              Call Program........." "
              Function Module..... "HRXSS_PER_CLEANUP"
              Call Destination.... "ptgsap10_EC6_10"
              Source Server....... "EPSAND1"
              Source IP Address... "192.168.1.36"
              Additional information on RFC logon:
              Trusted Relationship " "
              Logon Return Code... 0
              Trusted Return Code. 0
              Note: For releases < 4.0, information on the RFC caller are often
              only partially available.
         Information on where terminated
              Termination occurred in the ABAP program "SAPLHRXSS_PER_MAC" - in
               "HRXSS_PER_CLEANUP".
              The main program was "SAPMSSY1 ".
              In the source code you have the termination point in line 13
              of the (Include) program "LHRXSS_PER_MACU04".
              The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
              procedure "HRXSS_PER_CLEANUP" "(FUNCTION)", but it was neither handled locally
               nor declared
              in the RAISING clause of its signature.
              The procedure is in program "SAPLHRXSS_PER_MAC "; its source code begins in
               line
              1 of the (Include program "LHRXSS_PER_MACU04 ".
         Source Code Extract
         Line     SourceCde
             1     FUNCTION hrxss_per_cleanup.
             2     *"----
             3     ""Local interface:
             4     *"  EXPORTING
             5     *"     VALUE(MESSAGES) TYPE  BAPIRETTAB
             6     *"----
             7     
             8     *  CALL METHOD mac_adapter->cleanup
             9     *    IMPORTING
            10     *      messages = messages.
            11     
            12     * TRY.
         >>>>>       CALL METHOD xss_adapter->cleanup
            14         .
            15     * CATCH CX_HRPA_VIOLATED_ASSERTION .
            16     * ENDTRY.
            17       IF NOT xss_adapter2 IS INITIAL.
            18         CALL METHOD xss_adapter2->cleanup.
            19       ENDIF.
            20     
            21     ENDFUNCTION.
         Contents of system fields
         Name     Val.
         SY-SUBRC     0
         SY-INDEX     2
         SY-TABIX     13
         SY-DBCNT     30
         SY-FDPOS     0
         SY-LSIND     0
         SY-PAGNO     0
         SY-LINNO     1
         SY-COLNO     1
         SY-PFKEY     
         SY-UCOMM     
         SY-TITLE     CPIC and RFC Control
         SY-MSGTY     
         SY-MSGID     
         SY-MSGNO     000
         SY-MSGV1     
         SY-MSGV2     
         SY-MSGV3     
         SY-MSGV4     
         SY-MODNO     0
         SY-DATUM     20070627
         SY-UZEIT     095455
         SY-XPROG     SAPLHRXSS_PER_MAC
         SY-XFORM     HRXSS_PER_CLEANUP
         Active Calls/Events
         No.   Ty.          Program                             Include                             Line
               Name
             4 FUNCTION     SAPLHRXSS_PER_MAC                   LHRXSS_PER_MACU04                      13
               HRXSS_PER_CLEANUP
             3 FORM         SAPLHRXSS_PER_MAC                   LHRXSS_PER_MACU04                       1
               HRXSS_PER_CLEANUP
             2 FORM         SAPMSSY1                            SAPMSSY1                               85
               REMOTE_FUNCTION_CALL
             1 MODULE (PBO) SAPMSSY1                            SAPMSSY1                               30
               %_RFC_START
         Chosen variables
         Name
             Val.
         No.          4     Ty.      FUNCTION
         Name      HRXSS_PER_CLEANUP
         MESSAGES
              Table[initial]
         SY-XFORM
              HRXSS_PER_CLEANUP
                 455555545544444552222222222222
                 82833F052F3C51E500000000000000
                 000000000000000000000000000000
                 000000000000000000000000000000
         %_DUMMY$$
                 2222
                 0000
                 0000
                 0000
         XSS_ADAPTER2
                 F0000000
                 F0000000
         No.          3     Ty.      FORM
         Name      HRXSS_PER_CLEANUP
         SYST-REPID
              SAPLHRXSS_PER_MAC
                 5454455555545544422222222222222222222222
                 310C82833F052FD1300000000000000000000000
                 0000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000
         %_%_MESSAGES
              Table[initial]
         No.          2     Ty.      FORM
         Name      REMOTE_FUNCTION_CALL
         %_DUMMY$$
                 2222
                 0000
                 0000
                 0000
         SY-REPID
              SAPMSSY1
                 5454555322222222222222222222222222222222
                 310D339100000000000000000000000000000000
                 0000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000
         SYST-REPID
              SAPMSSY1
                 5454555322222222222222222222222222222222
                 310D339100000000000000000000000000000000
                 0000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000
         HEADER
                 000000000000
                 000000000000
         TYPE
              3
                 0000
                 3000
         SY-XPROG
              SAPLHRXSS_PER_MAC
                 5454455555545544422222222222222222222222
                 310C82833F052FD1300000000000000000000000
                 0000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000
         %_ARCHIVE
                 2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
         RC
              0
                 0000
                 0000
         SY-XFORM
              HRXSS_PER_CLEANUP
                 455555545544444552222222222222
                 82833F052F3C51E500000000000000
                 000000000000000000000000000000
                 000000000000000000000000000000
         %_SPACE
                 2
                 0
                 0
                 0
         No.          1     Ty.      MODULE (PBO)
         Name      %_RFC_START
         %_PRINT
                  000                                                                                0###
                 2222333222222222222222222222222222222222222222222222222222222222222222222222222222222222223000
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
                 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
         RFCTYPE_INTERNAL
              3
                 0000
                 3000
         Internal notes
              The termination was triggered in function "method_call_iref"
              of the SAP kernel, in line 2203 of the module
               "//bas/700_REL/src/krn/runt/abmethod.c#7".
              The internal operation just processed is "METH".
              Internal mode was started at 20070627095455.
         Active Calls in SAP Kernel
         Lines of C Stack in Kernel (Structure Differs on Each Platform)
         SAP (R) - R/3(TM) Callstack, Version 1.0
         Copyright (C) SAP AG. All rights reserved.
         Callstack without Exception:
         App       : disp+work.EXE (pid=24080)
         When      : 6/27/2007 9:54:55.565
         Threads   : 2
         Computer Name       : PTGSAP10
         User Name           : SAPServiceEC6
         Number of Processors: 2
         Processor Type: x86 Family 6 Model 11 Stepping 1
         Windows Version     : 5.2 Current Build: 3790
         State Dump for Thread Id 6cd0
         eax=000a7358 ebx=00000464 ecx=00000248 edx=00000000 esi=00000464 edi=00000000
         eip=7c82ed54 esp=0549c640 ebp=0549c6b0 iopl=0         nv up ei ng nz ac po cy
         cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00200297
         function : KiFastSystemCallRet
                 7c82ed54 c3               ret
                 7c82ed55 8da42400000000   lea     esp,[esp]              ss:0549c640=7c822124
                 7c82ed5c 8d642400         lea     esp,[esp]              ss:27f2ac53=????????
         FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
         0549c6b0 77e6ba12 00000464 0001d4c0 00000000 0549c6e8 ntdll!KiFastSystemCallRet
         0549c6c4 0101f939 00000464 0001d4c0 00000001 7c38b5c8 kernel32!WaitForSingleObject
         0549c6e8 005641c2 005641fb 7c38b5c8 7c38b5c8 7c38b5c8 disp+work!NTDebugProcess [ntstcdbg.c (501)]
         0549c6ec 005641fb 7c38b5c8 7c38b5c8 7c38b5c8 01d87888 disp+work!NTStack [dptstack.c (1367)]
         0549c708 0056422f 7c38b5c8 00000000 0085f2b9 7c38b5c8 disp+work!CTrcStack2 [dptstack.c (352)]
         0549c714 0085f2b9 7c38b5c8 00000000 005f0059 00300030 disp+work!CTrcStack [dptstack.c (182)]
         0549c738 008626fb 3ccf0c10 00008006 00000000 00660bd8 disp+work!rabax_CStackSave [abrabax.c (7020)
         0549cfe0 0067f9fc 01285324 012852e4 0000089b 2054de20 disp+work!ab_rabax [abrabax.c (1243)]
         0549d010 006914a8 00000003 3cda5308 00000000 0549d078 disp+work!method_call_iref [abmethod.c (2203
         0549d078 007c8d1e 00000000 3cda5308 0549d1c4 3cda67e8 disp+work!ab_extri [abextri.c (552)]
         0549d08c 008433d6 00000000 3cda6768 0059fdb0 3cda64b4 disp+work!ab_xevent [abrunt1.c (281)]
         0549d098 0059fdb0 3cda64b4 00000008 3cda6768 00000000 disp+work!ab_dstep [abdynpro.c (491)]
         0549d1c4 005a2ae2 3cda5308 3cda5308 0549fd04 005a2654 disp+work!dynpmcal [dymainstp.c (2394)]
         0549d1d4 005a2654 3cda5308 3cda5308 00000003 0549fd04 disp+work!dynppbo0 [dymainstp.c (542)]
         0549d1f0 00577116 3cda5308 00000004 00000000 0000001a disp+work!dynprctl [dymainstp.c (359)]
         0549fd04 004741c6 0000001a 00000001 00000001 0049792f disp+work!dynpen00 [dymain.c (1464)]
         0549fd14 0049792f 00000004 00000000 00000003 00000002 disp+work!Thdynpen00 [thxxhead.c (4683)]
         0549fee0 00497ead 00000001 00000000 00000000 00430000 disp+work!TskhLoop [thxxhead.c (4395)]
         0549ff00 004214f1 00000000 00000000 7ffd5000 0549ff60 disp+work!ThStart [thxxhead.c (1153)]
         0549ff14 00401080 00000003 056368d8 00000001 00000000 disp+work!DpMain [dpxxdisp.c (1119)]
         0549ff60 011bf720 00000003 056368d8 056378c8 01c05000 disp+work!nlsui_main [thxxanf.c (82)]
         0549ffc0 77e523cd 00000000 00000000 7ffd5000 80938fd6 disp+work!wmainCRTStartup [crtexe.c (395)]
         0549fff0 00000000 011bf5dd 00000000 00905a4d 00000003 kernel32!IsProcessorFeaturePresent
         State Dump for Thread Id 6408
         eax=00000001 ebx=00000103 ecx=0770fee8 edx=7c82ed54 esi=00000000 edi=00000000
         eip=7c82ed54 esp=0770fec0 ebp=0770ff04 iopl=0         nv up ei pl zr na po nc
         cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
         function : KiFastSystemCallRet
                 7c82ed54 c3               ret
                 7c82ed55 8da42400000000   lea     esp,[esp]              ss:0770fec0=7c821514
                 7c82ed5c 8d642400         lea     esp,[esp]              ss:2a19e4d3=????????
         FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
         0770ff04 0110e0b7 000006e0 00000000 00000000 059ca9d8 ntdll!KiFastSystemCallRet
         0770ff84 7c349565 00000000 00000000 00000000 0563a508 disp+work!SigIMsgFunc [signt.c (594)]
         0770ffb8 77e66063 0563a508 00000000 00000000 0563a508 MSVCR71!endthreadex
         0770ffec 00000000 7c3494f6 0563a508 00000000 00000000 kernel32!GetModuleFileNameA
         List of ABAP programs affected
         Index     Typ     Program     Group     Date     Time     Size     Lang.
              0     Prg     SAPMSSY1          0     11.04.2005     09:27:15         21504     E
              1     Prg     SAPLHRXSS_SER_AUTHORITHY_CHECK          1     13.02.2005     19:00:30         16384     E
              2     Prg     SAPLASTAT_TRIG          2     09.09.2004     14:18:33         13312     E
              3     Typ     ASTAT_TYP2          0     10.11.1998     05:35:18          2048     
              4     Typ     ASTAT_TYP1          0     30.11.1998     15:54:16          2048     
              5     Prg     SAPLSAUTHTRACE          5     07.03.2005     08:51:05         57344     E
              6     Typ     USOBHASH          0     02.07.2003     13:15:24          3072     
              7     Prg     SAPLSECH          7     05.07.2005     13:10:18         26624     E
              8     Typ     CVERS          0     09.11.2000     14:05:49          2048     
              9     Prg     SAPLHRXSS_PER_MAC          9     10.02.2004     14:21:15         49152     E
             10     Prg     CX_SY_REF_IS_INITIAL==========CP         10     05.07.2005     13:10:16         10240     E
             11     Typ     SCX_SRCPOS          0     18.05.2004     14:07:11          2048     
             12     Prg     CX_DYNAMIC_CHECK==============CP         12     05.07.2005     13:10:16         10240     E
             13     Prg     CX_ROOT=======================CP         13     05.07.2005     13:10:16         11264     E
             14     Prg     CX_NO_CHECK===================CP         14     05.07.2005     13:10:16         10240     E
             15     Prg     CX_SY_NO_HANDLER==============CP         15     05.07.2005     13:10:16         10240     E
             16     Typ     SYST          0     09.09.2004     14:18:12         31744     
         Directory of Application Tables
         Name                                     Date       Time       Lngth
             Val.
         Program      SAPMSSY1
         SYST            .  .            :  :          00004612
              \0\0\0\0\x000D\0\x000F\0\0\0\0\0\0\0\0\0\0\0\0\0\x001E\0\0
         ABAP Control Blocks (CONT)
         Index     Name     Fl     PAR0     PAR1     PAR2     PAR3     PAR4     PAR5     PAR6     Source Code     Line
           246     FUNC     03     0020                                   LHRXSS_PER_MACU03            1
           247     PAR2     02     0000     001B     C000                         LHRXSS_PER_MACU03            1
           249     FUNC     13     0003                                   LHRXSS_PER_MACU03            1
           250     PAR2     01     0000     0011     C001                         LHRXSS_PER_MACU03            1
           252     FUNC     FF     0000                                   LHRXSS_PER_MACU03            1
           253     ENDF     00     0000                                   LHRXSS_PER_MACU03            1
           254     -
         00     0000                                   LHRXSS_PER_MACU03            1
           255     STCK     02     C001                                   LHRXSS_PER_MACU03            1
           256     CPOP     00     0000                                   LHRXSS_PER_MACU03            1
           257     -
         00     0000                                   LHRXSS_PER_MACU03            1
           258     FUNP     3E     0000     0011     8000     0000     8000     0000     0000     LHRXSS_PER_MACU04            1
           262     FUNP     80     0000     0000     0000     0000     0000     0000     0000     LHRXSS_PER_MACU04            1
         >>>>>     METH     03     0000     0000     8006     0000     0000     0000     0000     LHRXSS_PER_MACU04           13
           270     PAR2     00     0000     0001     0000                         LHRXSS_PER_MACU04           13
           272     CMPS     20     024B     001B     001B                         LHRXSS_PER_MACU04           17
           274     BRAF     05     0007                                   LHRXSS_PER_MACU04           17
           275     METH     03     0000     0001     8006     0000     0000     0000     0000     LHRXSS_PER_MACU04           18
           279     PAR2     00     0000     0001     0000                         LHRXSS_PER_MACU04           18
           281     FUNE     00     0000                                   LHRXSS_PER_MACU04           21
           282     -
         00     0000                                   LHRXSS_PER_MACU04           21
    Thanks and Regards,
    Phanikumar

  • Creation of CMP bean for a Composite Primary key????

    Hi
    i am having a composite primary keys in one of my table in the database.
    I am trying to create a new entity bean for this table but i don't know how to create one in case when there is a composite primary key for a table.
    Can anybody let me know is it possible to do it.
    what is the procedure to be followed for the creation of the Entity bean in case of a composite primary key.
    I am using MySql as the database .Creating CMP type of Entity bean.
    Any help in this regard will be greatly useful to me as this is very urgent.
    Thanks & Regards
    Vikram K

    Hi Nikola,
    There are several problems with your CMP bean.
    1. Fields of a Primary Key Class must be a subset of CMP fields, so yes, they must be either a primitive or a Serializable type.
    2. Sun Application Server does not support Primary Key fields of an arbitrary Serializable type (i.e. those that will be stored
    as BLOB in the database), but only primitives, Java wrappers, String, and Date/Time types.
    Do you try to use stubs instead of relationships or for some other reason?
    If it's the former - look at the CMR fields.
    If it's the latter, I suggest to store these fields as regular CMP fields and use some other value as the PK. If you prefer that
    the CMP container generates the PK values, use the Unknown
    PrimaryKey feature.
    Regards,
    -marina

  • Please help urgently.... strange error

    Hello Everyone,
    I have done a project which comprises of CMP Entity bean, stateless Session Bean. I have tested the project on inprise App server, it works fine. I use DB2 database. I have successfully installed the project on WAS4.0 Advanced edition. But my problem is that when I try to run the client program I get the Non-application exception -------
    CNTR0019E: Non-application exception occurred while processing method create:
    com.ibm.websphere.cpi.CPIException: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0204N "BAIJU.CHILDREF" is an undefined name. SQLSTATE=42704; nested exception is:
         COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0204N "BAIJU.CHILDREF" is an undefined name. SQLSTATE=42704COM.ibm.db2.jdbc.DB2Exception:
    [IBM][CLI Driver][DB2/NT] SQL0204N "BAIJU.CHILDREF" is an undefined name. SQLSTATE=42704
    ----- Begin backtrace for detailCOM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT]
    SQL0204N "BAIJU.CHILDREF" is an undefined name. SQLSTATE=42704
    In the above error message "BAIJU.CHILDREF" is not actual table name (actual table name
    on which i have created the entity bean is "BAIJU.CHILD_REF").I have noticed that Websphere by default removes any underscore ("_") from the table name or the Column name of the table (I have checked this in Schema.dbxmi & Map.mapxmi files). I have many tables names & column names which has underscore character in it. Every tables which has
    underscores ("_") gives almost similar error.
    The tables which doesn't have underscore ("_") in there name & which contains the column names without underscore ("_") works fine.
    Does this means that Application deployed on WAs 4.0 should not have underscores ("_")
    as the table & column name ??????
    please help me urgently......
    regards..
    Ashish.

    Are you using the DB2 JDBC driver, by default db2 will treat _ as wildcards for table names, you have to disable the wildcard property or else rename your table.
    You can do this by using the client configuration assistant and disabling the wildcard property or by editting the db2cli.ini file directly.
    Ensure that you have registered the database as an cli/odbc datasource so that the properties can be set, when u do this an entry will be created in the db2cli.ini file which is located in the c:\sqllib folder, edit the entry for the datasource and add the following line
    UNDERSCORE=0

  • Deploying EntityBean(CMP 2.0) in J2EE server 1.3.0/1.3.1

    Urgent:
    Hello:
    I am having problem in packaging and deploying
    an EntityBean(CMP 2.0) with only Remote Interface
    and Remote Home Interface in J2EE server 1.3.1
    with its deploytool.
    The Verifier is giving no failed test.
    But when I start deploy I get the RMI Compilation
    Error as follows :
    Compilation failed.
         at com.sun.ejb.codegen.GeneratorDriver.compileClasses(GeneratorDriver.java:232)
         at com.sun.ejb.codegen.GeneratorDriver.compileAndRmic(GeneratorDriver.java:101)
         at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:888)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:707)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:221)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:355)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    What could be a solution to this?
    Is there any step by step procedure for that?

    Dear JDC member;
    I recommend to try to add local interfaces...They are optionnal, but they can make things work.
    Also, the other issue with CMP you have to map correctly the fields to your tables.

  • If DB Column java.sql.Types=CHAR = Workshop autogen EJB CMP Filed=Boolean

    Hi everybody<br>
    <p class="MsoNormal"><span lang="EN-US">When a user automatically
    creates/generates an Entity Bean via BEA Workshop EJB Project option: ‘<b>new
    Entity bean from database table</b>’ and DB Table Column is of type <b>CHAR</b>,
    Workshop creates a <b>@ejbgen:cmp-field</b> of Java type <b>Boolean</b>, NOT of
    <b>Character</b>!</span></p>
    <p class="MsoNormal"><span lang="EN-US">I completely agree that the developer
    must be acquainted with the Data Base and DB Tables as well and he can manually
    correct </span><span lang="EN-US" style="font-size: 10.0pt">SET & GET</span><span lang="EN-US">
    Boolean to Character in EJB source code view or he’ll receive an error if he
    tries to <b>set<i>FieldName</i></b><i>(String/Character) </i>in <b>ejb</b>
    methods.</span></p>
    <p class="MsoNormal"><span lang="EN-US">But suppose that a developer has
    urgently received an order to build an EJB Project for a thousand of DB Tables
    and he hasn’t been acquainted with all of them. He has created the EJBs via <b>
    ‘new -> Entity bean from database table’. </b>He has created some EJB Finders,
    for example a finder:  <b>ejbgen:finder Collection find<i>All</i>()</b>.
    (<i>Suppose he hasn’t used <b>group-name</b> finder property</i>)</span></p>
    <p class="MsoNormal"><span lang="EN-US">He has invoked <b>find<i>All</i>()</b>
    method and depends on the JDBC Driver used, he will receive an </span>
    <span lang="EN-US" style="font-size: 10.0pt">ERROR</span><span lang="EN-US">,
    printed within the Server start console <b>at least</b> OR the result after <b>
    get<i>FieldName</i></b>() will be '<b>false</b>', not an expected <i><b>char</b></i>
    symbol.</span></p>
    <p class="MsoNormal"><b><span lang="EN-US">Anxious conclusion: </span></b></p>
    <p class="MsoNormal"><span lang="EN-US">If<b>  </b>DB Column<b>  java.sql.Types
    = </b></span><span lang="EN-US" style="font-size: 10.0pt"><b>CHAR</b>    </span><span lang="EN-US">then</span><span lang="EN-US" style="font-size: 10.0pt">  
    </span><span lang="EN-US"><b>getJavaObjectType = Boolean </b> then corresponding
    EJB CMP Filed  will always be   <b>Boolean</b>  in BEA Workshop !</span></p>
    <p class="MsoNormal"><i><span lang="EN-US">Following description considers the
    </span><span lang="EN-US" style="font-size: 11.0pt">PROBLEM</span><span lang="EN-US">:</span></i></p>
    <p class="MsoNormal"><span lang="EN-US">Class<b>
    weblogic.jdbc.utils.schema.Column </b>from<b> weblogic.jar </b>and its method<b>
    String getJavaType() </b>has a <b>switch(getType())</b> with <b>case:</b></span></p>
    <p class="MsoNormal"><span lang="en-us"><b> if(this.getSize() == 1)<br>
        return "boolean"; <br>
    else<br>
        return "String";</b></span></p>
    <p class="MsoNormal"><span lang="en-us">and </span>
    <span lang="EN-US" style="font-size: 12.0pt; font-family: Times New Roman">
    another </span><span lang="en-us"> method <b>String getJavaObjectType() </b>
    {</span></p>
    <p class="MsoNormal"><b><span lang="en-us">String s = this.getJavaType();</span></b></p>
    <p class="MsoNormal"><b><span lang="en-us">...</span></b></p>
    <p class="MsoNormal"><b><span lang="en-us">    
    if(s.equals("boolean"))<br>
            return "Boolean";</span></b></p>
    <p class="MsoNormal"><span lang="en-us"><b>    
    if(s.equals("char"))<br>
            return "Character";</b></span></p>
    <p class="MsoNormal"><span lang="en-us"><b>... }<br>
    </b>but according to </span><span lang="EN-US"><b>switch(getType())</b> which
    has NOT  a<b> 'case' return char</b>, </span><span lang="en-us"><b>
    'Character' </b>will never be returned, so:</span></p>
    <p class="MsoNormal"><span lang="EN-US"><b>@ejbgen:cmp-field</b> of Java type <b>
    Character </b></span><span lang="en-us">will never be generated by Workshop.</span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US">More often than not  I’ve
    ran into this little but disturbing problem, so I’ve corrected <b>
    weblogic.jdbc.utils.schema.Column.getJavaType switch case </b>as:</span></p>
    <p class="MsoNormal" style="text-indent:35.4pt"><b><span lang="EN-US">…</span></b></p>
    <p class="MsoNormal" style="text-indent:35.4pt"><b><span lang="EN-US">       
    case 1:     // '\001'  //</span><span lang="EN-US" style="font-size: 10.0pt">CHAR</span></b></p>
    <p class="MsoNormal" style="text-indent:35.4pt"><b><span lang="EN-US">
                if(this.getSize() == 1)</span></b></p>
    <p class="MsoNormal" style="text-indent:35.4pt"><b><span lang="EN-US">          
         return "char";  </span></b></p>
    <p class="MsoNormal" style="text-indent:35.4pt"><b><span lang="EN-US">…</span></b></p>
    <p class="MsoNormal" style="text-indent:35.4pt"><b><span lang="EN-US">private
    static final boolean </span><span lang="EN-US" style="font-size: 10.0pt">
    CHAR_TO_BOOLEAN</span><span lang="EN-US"> = false;     </span></b><span lang="EN-US">//as
    a field variable</span></p>
    <p class="MsoNormal" style="text-indent:35.4pt"><b><span lang="EN-US">…</span></b></p>
    <p class="MsoNormal" style="text-indent:35.4pt"> </p>
    <p class="MsoNormal" style="text-align:justify"><span lang="EN-US">Using this
    correction and precompiled class I’ve built and tested a lot of projects w/o
    problems so far.</span></p>
    <p>Best regards: George Moykin<p>
    P.S. I appologize to site Admins for posting the same topic in EJB forum, but it refers to EJBs too.

    Hi,<br>
    In your database, we have some columns of CHAR type and this is the decision of our DB architects. I understand the case ‘male’ or ‘female’, true or false, either; but only if I must choose between 2 variants. Our DB columns contain char symbols such as ‘:’, ‘;’,’-’ etc. and for some inner purposes our architects decided DB columns to be of type CHAR, not VARCHAR. In this case, the Workshop transformation ‘CHAR to BOOLEAN’ doesn’t do useful work. So, I’ve decided to modify some weblogic.jar classes (as described) and now I’m able to generate Entity EJB from DBMS Tables w/o manual intervention.<br>
    Best Regards

  • Re: Using CMP Entity Beans in Business Logic

    One thing that you need to answer here is
    "In the queries for the subsequent tables, in the where clause will the fields be the same and is it that only their values change?"
    In the above is true I'd suggest going for a CMP as you save a lot of coding and transaction management out there.
    If the above is not true and even the fields in the where clause change on fly there is no way that you can go for CMP. You will have to go for BMP.
    Hope this helps decide

    Hi.
    You might try posting this message to the weblogic.developer.interest.cmp
    newsgroup.
    Regards,
    Michael
    Pankaj wrote:
    Hi,
    I have made a few CMP entity beans which are mapped to single tables in
    Oracle 8i.
    Create and remove of a row is working fine via the entity bean.
    But when i try to update a particular row it is not happening.
    The steps that I am doing are :
    1. call home.findByPrimaryKey(instance of the Primary key class)
    2. remote.setXXX for the field to be modified.
    when i invoke setXXX() method the methods are called in the following
    sequence : ejbLoad() > setXXX() > ejbStore()
    but the data is not getting persisted in the Data base ....in the column it
    is still the same old data.
    is it something to do with a commit call or some configuration issue??....
    Is there any other step to be called
    I am using Weblogic 6.1 Sp2
    Any help will be appreciated....This is really urgent...
    Thank you,
    Pankaj--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • URGENT HELP ON BMP EJB!!!

    Hi everybody!!
    I've wrote few CMP EJB's before and now Im trying to write a BMP EJB.
    In the finder methods I�ve to select data from two tables:
    "product_catalog" and "product" (relation One to many)
    The query that matches my needs is:
    SELECT DISTINCT a.product_code, b.product_description
    FROM product a, product_catalog b
    WHERE a.product_code = b.product_code
    AND (a.region_code = '00' OR a.region_code = 'variable argument')
    AND b.product_line <> '08'
    Note that in the FROM clause of the query data is retrieved from two tables and that the WHERE conditions involve both tables.
    �A query like this can be implemented into a finder method of a BMP EJB?
    �What about the descriptor? -Im using Websphere Application Server 4.0-
    �How can I tell the container which fields will be persistent?
    �Which fields should I've to specify as primary key fields? �The ones from the parent table? �What about the ones from the child table? �What about the query in the ejbLod() and the ejbStore() methods that select and update data from the table(s)?
    I've looked at the J2EE tutorial examples but none of the examples uses a query like mine.
    As you can see I need URGENT help on this.
    All the help you can give will be greatfully welcome!!
    THANKS!!!
    Ezequiel Velazquez

    post the same question at:
    http://forum.java.sun.com/forum.jsp?forum=13

  • How can i find the max of a column using CMP

    I urgently need a solution to How one can find the maximum of a field which is of integer/numeric type??
    I am doing it in CMP + weblogic.
    Suppose the table is STUDENTMARKS which consists of a field
    TotalMarks of Integer type..
    and i need to find the student with maximum marks..
    Should i be using EJB QL.. If so pls tell how...

    U can use aggregate function max in ejb ql

  • Cmr filed . urgent help me

    hello
    I want CMR-FIELD to be the part of compound primary key class. How can i do this
    b/c compound primary key class only takes CMP-FIELD. please help, it is very
    much urgent.........
    i am using in j2ee with ejb2.0
    thanx
    sai

    You should just specify the field as cmp-field as usual then add the field in the cmr-field tag in the relationships portion of the deployment descriptor. There should be no problem with identifying relationships where the primary key is also a foreign key to another entity.

Maybe you are looking for