EJB Primary Key not found in lock manager - Container BUG?

I have an EJB entity bean whose primary key class implementation is pretty simple, consisting of two strings. For the MOST part, it seems to work properly, but every so often I see the following message in my application server log.
####<Sep 17, 2008 10:03:27 AM EDT> <Warning> <JTA> <armantac22> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1221660207187> <BEA-110401> <Ignoring error in afterCompletion. Object=weblogic.ejb.container.internal.TxManager$TxListener@1906466, Exception=javax.ejb.EJBException: [EJB:010108]The EJB Lock Manager has received an unlock request from EJB:PortfolioMetaData with primary key:[ObjectPK: type: PortMetaData name: PortMetaData]. However, this primary key could not be found in the Lock Manager. This indicates either an EJB container bug, or the equals and hashCode methods for the primary key class:com.armanta.ejb.ObjectPK are implemented incorrectly. Please check the equals and hashCode implementations.
javax.ejb.EJBException: [EJB:010108]The EJB Lock Manager has received an unlock request from EJB:PortfolioMetaData with primary key:[ObjectPK: type: PortMetaData name: PortMetaData]. However, this primary key could not be found in the Lock Manager. This indicates either an EJB container bug, or the equals and hashCode methods for the primary key class:com.armanta.ejb.ObjectPK are implemented incorrectly. Please check the equals and hashCode implementations.
     at weblogic.ejb.container.locks.ExclusiveLockManager$LockBucket.unlock(ExclusiveLockManager.java:409)
     at weblogic.ejb.container.locks.ExclusiveLockManager.unlock(ExclusiveLockManager.java:170)
     at weblogic.ejb.container.manager.ExclusiveEntityManager.afterCompletion(ExclusiveEntityManager.java:723)
     at weblogic.ejb.container.manager.ExclusiveEntityManager.afterCompletion(ExclusiveEntityManager.java:667)
     at weblogic.ejb.container.internal.TxManager$TxListener.afterCompletion(TxManager.java:984)
     at weblogic.transaction.internal.ServerSCInfo.callAfterCompletions(ServerSCInfo.java:862)
     at weblogic.transaction.internal.ServerTransactionImpl.callAfterCompletions(ServerTransactionImpl.java:2913)
     at weblogic.transaction.internal.ServerTransactionImpl.afterCommittedStateHousekeeping(ServerTransactionImpl.java:2806)
     at weblogic.transaction.internal.ServerTransactionImpl.setCommitted(ServerTransactionImpl.java:2851)
     at weblogic.transaction.internal.ServerTransactionImpl.globalRetryCommit(ServerTransactionImpl.java:2650)
     at weblogic.transaction.internal.ServerTransactionImpl.globalCommit(ServerTransactionImpl.java:2570)
     at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:277)
     at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:226)
     at weblogic.ejb.container.internal.BaseEJBHome.postHomeInvoke(BaseEJBHome.java:389)
     at weblogic.ejb.container.internal.EntityEJBHome.findByPrimaryKey(EntityEJBHome.java:408)
     at com.armanta.ejb.portfolio.PortfolioMetaData_a4zvzk_HomeImpl.findByPrimaryKey(PortfolioMetaData_a4zvzk_HomeImpl.java:64)
     at com.armanta.ejb.portfolio.PortfolioMasterBean.getPortfolioMetaData(PortfolioMasterBean.java:313)
     at com.armanta.ejb.portfolio.PortfolioMaster_fmk9e8_EOImpl.getPortfolioMetaData(PortfolioMaster_fmk9e8_EOImpl.java:64)
     at com.armanta.ejb.portfolio.PortfolioMaster_fmk9e8_EOImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
     at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
     at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
     at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
I checked the equals and hashCode implementations and nothing pops out at me. Once this happens, the EJB seems to get messed up in the database and I lose information!
Here is the class implementation along with its superclass. I don't see anything blatant. Sorry for the lack of indentation, my original post was indented.
Thanks
Eric
public class ObjectPK extends ArmantaPK {
     private String type;
     private String name;
     private ObjectPK() {
          super();
     public ObjectPK(String type, String name) {
          super();
          this.type = type;
          this.name = name;
     public String getName() {
          return name;
     public String getType() {
          return type;
     public String toString() {
          StringBuffer buffer = new StringBuffer();
          buffer.append("[ObjectPK:");
          buffer.append(" type: ");
          buffer.append(type);
          buffer.append(" name: ");
          buffer.append(name);
          buffer.append("]");
          return buffer.toString();
     * Returns <code>true</code> if this <code>ObjectPK</code> is the same as the o argument.
     * @return <code>true</code> if this <code>ObjectPK</code> is the same as the o argument.
     public boolean equals(Object o) {
          if (this == o) {
               return true;
          if (!super.equals(o)) {
               return false;
          if (o == null) {
               return false;
          if (o.getClass() != getClass()) {
               return false;
          ObjectPK castedObj = (ObjectPK) o;
          return ((this.type == null ? castedObj.type == null : this.type
               .equals(castedObj.type)) && (this.name == null
               ? castedObj.name == null
               : this.name.equals(castedObj.name)));
     * Override hashCode.
     * @return the Objects hashcode.
     public int hashCode() {
          int hashCode = super.hashCode();
          hashCode = 31 * hashCode + (type == null ? 0 : type.hashCode());
          hashCode = 31 * hashCode + (name == null ? 0 : name.hashCode());
          return hashCode;
     public Object clone() {
          ObjectPK inst = new ObjectPK();
          inst.type = this.type == null ? null : new String(this.type);
          inst.name = this.name == null ? null : new String(this.name);
          return inst;
public abstract class ArmantaPK implements Serializable, Cloneable, Comparable {
     // Enforce compatability with future versions
     private static final long serialVersionUID = 1980721424128862564L;
     // Cache the hash code
     private transient int hash = 0;
     * Clones a primary key. Note that this is not a deep copy.
     * @return the cloned primary key
     public Object clone() throws CloneNotSupportedException {
          ArmantaPK newKey = (ArmantaPK) super.clone();
          newKey.hash = 0;
          return newKey;
     * Compare the specified object with this key for equality.
     * Implementations should return <tt>true</tt>
     * if and only if the specified object is also a key
     * of the same class and all corresponding attributes in the keys are
     * <i>equal</i>.
     * @param other the object to be compared for equality with this key.
     * @return <tt>true</tt> if the specified object is equal to this key.
     public boolean equals(Object other) {
          return other instanceof ArmantaPK;
     * This implementation only returns an empty String.
     * @return String
     public String toString() {
          return "";
     * Return the hash code value for this key. Implemented to call the
     * key's <code>computeHash</code> method and cache the result for
     * faster operation. Classes extending <code>ArmantaPK</code> should
     * only implement <code>computeHash</code>.
     * @return int
     public int hashCode() {
          if (hash == 0) {
               hash = computeHash();
          return hash;
     * @y.exclude
     * Compute a hash code for this key. This is the method that should
     * be overridden by sub-classes.
     * @return int
     protected int computeHash() {
          return 0;
     * @y.exclude
     * After called, will force the hash code to get recomputed.
     public void rehash() {
          hash = 0;
     * Compares this <tt>ArmantaPK</tt> to another object by comparing
     * their string representations.
     * @return an integer based upon comparing the <tt>ArmantaPK</tt>s string
     * representations
     public int compareTo(Object o) {
return toString().compareTo(o.toString());
}

We are experiencing a similar error after upgrading 9.2 to 9.2 MP3. We do not want to upgrade to 10g at this time. Is there a patch we can download with the fix?

Similar Messages

  • NULL in primary keys NOT logged to exceptions table

    Problem: Inconsistent behavior when enabling constraints using the "EXCEPTIONS INTO" clause. RDBMS Version: 9.2.0.8.0 and 10.2.0.3.0
    - NULL values in primary keys are NOT logged to exceptions table
    - NOT NULL column constraints ARE logged to exceptions table
    -- Demonstration
    -- NULL values in primary keys NOT logged to exceptions table
    TRUNCATE TABLE exceptions;
    DROP TABLE t;
    CREATE TABLE t ( x NUMBER );
    INSERT INTO t VALUES ( NULL );
    ALTER TABLE t
    ADD ( CONSTRAINT tpk PRIMARY KEY (x) EXCEPTIONS INTO exceptions );
    SELECT * FROM exceptions; -- returns no rows
    -- NOT NULL column constraints logged to exceptions table
    TRUNCATE TABLE exceptions;
    DROP TABLE t;
    CREATE TABLE t ( x NUMBER );
    INSERT INTO t VALUES ( NULL );
    ALTER TABLE t MODIFY ( X NOT NULL EXCEPTIONS INTO EXCEPTIONS );
    SELECT * FROM exceptions; -- returns one row
    I would have expected all constraint violations to be logged to exceptions. I was not able to find any documentation describing the behavior I describe above.
    Can anyone tell me if this is the intended behavior and if so, where it is documented?
    I would also appreciate it if others would confirm this behavior on their systems and say if it is what they expect.
    Thanks.
    - Doug
    P.S. Apologies for the repost from an old thread, which someone else found objectionable.

    I should have posted the output. Here it is.
    SQL>TRUNCATE TABLE exceptions;
    Table truncated.
    SQL>DROP TABLE t;
    Table dropped.
    SQL>CREATE TABLE t ( x NUMBER );
    Table created.
    SQL>INSERT INTO t VALUES ( NULL );
    1 row created.
    SQL>ALTER TABLE t ADD ( CONSTRAINT tpk PRIMARY KEY (x) EXCEPTIONS INTO exceptions );
    ALTER TABLE t ADD ( CONSTRAINT tpk PRIMARY KEY (x) EXCEPTIONS INTO exceptions )
    ERROR at line 1:
    ORA-01449: column contains NULL values; cannot alter to NOT NULL
    SQL>SELECT * FROM exceptions;
    no rows selected
    SQL>
    SQL>TRUNCATE TABLE exceptions;
    Table truncated.
    SQL>DROP TABLE t;
    Table dropped.
    SQL>CREATE TABLE t ( x NUMBER );
    Table created.
    SQL>INSERT INTO t VALUES ( NULL );
    1 row created.
    SQL>ALTER TABLE t MODIFY ( X NOT NULL EXCEPTIONS INTO EXCEPTIONS );
    ALTER TABLE t MODIFY ( X NOT NULL EXCEPTIONS INTO EXCEPTIONS )
    ERROR at line 1:
    ORA-02296: cannot enable (MYSCHEMA.) - null values found
    SQL>SELECT * FROM exceptions;
    ROW_ID OWNER TABLE_NAME CONSTRAINT
    AAAkk5AAMAAAEByAAA MYSCHEMA T T
    1 row selected.
    As you can see, I get the expected error message. But I only end up with a record in the exceptions table for the NOT NULL column constraint, not for the null primary key value.

  • ORA-28374: typed master key not found in wallet (no ORACLE.SECURITY.TS.ENCR

    Good afternoon! I have a problem with creating a wallet for TDE.
    Oracle Version 11.2.0.2.0.
    SQLNET.ORA is :
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    ADR_BASE = /app/oracle
    # TO SWITCH OFF ORACLE ADR FEATURE
    # DIAG_ADR_ENABLED=off
    DIAG_SIGHANDLER_ENABLED=FALSE
    DIAG_RESTRICTED=TRUE
    TRACE_LEVEL_SERVER=admin
    TRACE_LEVEL_CLIENT=admin
    TRACE_DIRECTORY_SERVER=/app/oracle/product/11.2.0/db_1/network/log
    TRACE_DIRECTORY_CLIENT=/app/oracle/product/11.2.0/db_1/network/log
    TRACE_FILE_CLIENT=cli
    TRACE_FILE_SERVER=srv
    TRACE_UNIQUE_CLIENT=off
    SQLNET.EXPIRE_TIME = 10
    SQLNET.INBOUND_CONNECT_TIMEOUT = 20
    SQLNET.ENCRYPTION_SERVER = REQUESTED
    SQLNET.ENCRYPTION_CLIENT = REQUESTED
    SQLNET.CRYPTO_SEED = 'KakdlkLAKMXM0000sdsdsadadeffdmsdmdkmdv'
    SQLNET.ENCRYPTION_TYPES_SERVER= (AES256,RC4_256,3DES112,DES)
    SQLNET.CRYPTO_CHECKSUM_SERVER = REQUESTED
    SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER = (SHA1,MD5)
    ENCRYPTION_WALLET_LOCATION =
    (SOURCE=
    (METHOD=file)
    (METHOD_DATA=
    (DIRECTORY=/app/oracle/admin/orcl/wallet)
    I've creted wallet by command :
    alter system set encryption key identified by "sdsdsdsds";
    After that i can close and reopen this wallet , it's ok. But i can't create crypted tablaspace :
    CREATE TABLESPACE RMD DATAFILE '/oradata/orcl/TDE.dbf' SIZE 600M
    AUTOEXTEND ON NEXT 100M MAXSIZE 2000M
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K ENCRYPTION USING 'AES256' DEFAULT STORAGE (ENCRYPT);
    i've got an error ORA-28374: typed master key not found in wallet
    My wallet looks like :
    Requested Certificates:
    Subject: CN=oracle
    User Certificates:
    Oracle Secret Store entries:
    ORACLE.SECURITY.DB.ENCRYPTION.ASSSDSeFDX08Evy6Mco2yhXsAsdsdsdsdsdefdfdfdfddfddfdfdfAAAA
    ORACLE.SECURITY.DB.ENCRYPTION.MASTERKEY
    Trusted Certificates:
    As i uderstood there should be also entry like ORACLE.SECURITY.TS.ENCRYPTION. But why this didn't created into wallet by command : alter system set encryption key identified by "sdsdsdsds" ?
    Thanks!
    Edited by: user5819915 on 13-Jan-2012 03:25

    Hi there,
    first, "SQLNET.CRYPTO_SEED = 'KakdlkLAKMXM0000sdsdsadadeffdmsdmdkmdv" is no longer needed, the DB creates a seed itself and ignores this string.
    Then, on to TDE ...: These things happen if you had a wallet before, and that wallet was deleted; now if you create a new wallet, the TS MK is missing. Looks like you didn't encrypt any data yet. You might see if you get https://updates.oracle.com/download/8682102.html for your DB version; apply the patch, decrypt all data, cycle through all log files and then create a new wallet. That might work, but I can't promise.
    Peter

  • Primary key not available

    Hi!
    When i run my appication client to connect to Oracle9i database i have a next exception:
    javax.ejb.CreateException: java.lang.IllegalStateException: Primary key not available.
    In Oracle i set a primary key field ID.
    Here is my code:
    /* Generated by Together */
    package ejb;
    import javax.ejb.EntityBean;
    import javax.ejb.EntityContext;
    import javax.ejb.EJBException;
    import javax.ejb.CreateException;
    import java.sql.SQLException;
    import java.sql.Connection;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import java.sql.PreparedStatement;
    import javax.ejb.NoSuchEntityException;
    import java.sql.ResultSet;
    import javax.ejb.DuplicateKeyException;
    import javax.ejb.RemoveException;
    import java.util.Collection;
    import java.util.ArrayList;
    import javax.ejb.FinderException;
    import javax.sql.DataSource;
    import java.lang.Integer;
    import java.lang.String;
    import java.rmi.RemoteException;
    import javax.sql.*;
    import java.sql.DriverManager;
    public class TestingBean implements EntityBean {
    private EntityContext ctx;
    public Integer userID;
    public String userLogin;
    public String userPassword;
    public String userPrivilege;
    static private final String users_res_ref = "jdbc/Oracle";
    public void setEntityContext(EntityContext context) throws EJBException {
    System.out.println("EntityContext before = " + ctx);
    ctx = context;
    System.out.println("EntityContext after = " + ctx);
    public void unsetEntityContext() throws EJBException {
    ctx = null;
    public void ejbActivate() throws EJBException {
    public void ejbPassivate() throws EJBException {
    public void ejbRemove() throws EJBException {
    Connection con = null;
    PreparedStatement ps = null;
    try {
    con = getConnection();
    userID = (Integer)ctx.getPrimaryKey();
    ps = con.prepareStatement("DELETE FROM TLogon WHERE Id = ?");
    ps.setInt(1, userID.intValue());
    if (!(ps.executeUpdate() > 0)) {
    throw new RemoveException ("ejbLoad: Can't remove user - " + userID);
    catch (Exception e) {
    throw new EJBException(e);
    finally {
    closeStatement(ps);
    closeConnection(con);
    public void ejbStore() throws EJBException {
    Connection con = null;
    PreparedStatement ps = null;
    try {
    con = getConnection();
    ps = con.prepareStatement("UPDATE TLogon SET Login = ?, Password = ?, Privilege = ? WHERE Id = ?");
    ps.setString(1, userLogin);
    ps.setString(2, userPassword);
    ps.setString(3, userPrivilege);
    ps.setInt(4, userID.intValue());
    ps.executeUpdate();
    catch (Exception e) {
    throw new EJBException(e);
    finally {
    closeStatement(ps);
    closeConnection(con);
    public void ejbLoad() throws EJBException {
    Connection con = null;
    PreparedStatement ps = null;
    userID = (Integer)ctx.getPrimaryKey();
    try {
    con = getConnection();
    ps = con.prepareStatement("SELECT Id, Login, Password, Privilege FROM TLogon WHERE Id = ?");
    ps.setInt(1, userID.intValue());
    ps.executeQuery();
    ResultSet rs = ps.getResultSet();
    rs.next();
    userLogin = rs.getString("Login");
    userPassword = rs.getString("Password");
    userPrivilege = rs.getString("Privilege");
    catch (Exception e) {
    throw new EJBException("ejbLoad: Can't load user - " + userID);
    finally{
    closeStatement(ps);
    closeConnection(con);
    public Integer ejbCreate(Integer aUserID, String aUserLogin, String aUserPassword, String aUserPrivilege) throws CreateException, EJBException, SQLException {
    System.out.println("Inititialization parameters...");
    this.userID = aUserID;
    this.userLogin = aUserLogin;
    this.userPassword = aUserPassword;
    this.userPrivilege = aUserPrivilege;
    System.out.println("Setting connection to null...");
    Connection con = null;
    PreparedStatement ps = null;
    try {           
    System.out.println("Getting connection...");
    con = getConnection();
    System.out.println("EntityContext before getting primary key... = " + ctx);
    System.out.println("Getting primary key...");
    userID = (Integer)ctx.getPrimaryKey();
    System.out.println("Primary key is done...");
    ps = con.prepareStatement("INSERT INTO TLogon (Id, Login, Password, Privilege) VALUES (?,?,?)");
    System.out.println("Inserting data...");
    ps.setInt(1, userID.intValue());
    ps.setString(2, userLogin);
    ps.setString(3, userPassword);
    ps.setString(4, userPrivilege);
    ps.executeUpdate();
    return aUserID;
    catch (Exception e) {
    throw new CreateException(e.toString());
    finally{
    closeStatement(ps);
    closeConnection(con);
    public Integer ejbFindByPrimaryKey(java.lang.Integer pk) throws FinderException, EJBException {
    Connection con = null;
    PreparedStatement ps = null;
    try {
    con = getConnection();
    ps = con.prepareStatement("SELECT Id, Login, Password, Privilege FROM TLogon WHERE Id = ?");
    ps.setInt(1, pk.intValue());
    ps.executeQuery();
    ResultSet rs = ps.getResultSet();
    rs.next();
    return pk;
    catch(Exception e) {
    throw new FinderException (e.toString());
    finally {
    closeStatement(ps);
    closeConnection(con);
    public void ejbPostCreate(Integer aUserID, String aUserLogin, String aUserPassword, String aUserPrivilege) throws CreateException, EJBException, SQLException {
              /* Write your code here */
    public Collection ejbFindAllUsers() throws EJBException, FinderException {
    Connection con = null;
    PreparedStatement ps = null;
    try {
    con = getConnection();
    ps = con.prepareStatement("SELECT Id FROM TLogon");
    ps.executeQuery();
    ResultSet rs = ps.getResultSet();
    ArrayList v = new ArrayList();
    Integer pk;
    while(rs.next()) {
    pk = new Integer(rs.getInt(1));
    v.add(pk);
    return v;
    catch(Exception e) {
    throw new FinderException(e.toString());
    finally {
    closeStatement(ps);
    closeConnection(con);
    public Integer getUserID() throws RemoteException, EJBException {return userID;}
    public void setUserID(Integer param) throws RemoteException, EJBException {this.userID = param;}
    public String getUserLogin() throws RemoteException, EJBException {return userLogin;}
    public void setUserLogin(String param) throws RemoteException, EJBException {this.userLogin = param;}
    public String getUserPassword() throws RemoteException, EJBException {return userPassword;}
    public void setUserPassword(String param) throws RemoteException, EJBException {this.userPassword = param;}
    public String getUserPrivilege() throws RemoteException, EJBException {return userPrivilege;}
    public void setUserPrivilege(String param) throws RemoteException, EJBException {this.userPrivilege = param;}
    private Connection getConnection() throws SQLException {
    InitialContext initCtx = null;
    try {
    initCtx = new InitialContext();
    DataSource ds = (javax.sql.DataSource)initCtx.lookup("java:comp/env/" + users_res_ref);
    return ds.getConnection();
    catch (Exception e) {
    throw new EJBException(e);
    private void closeStatement(PreparedStatement ps) {
    try {
    if (ps != null) {ps.close();}
    catch (Exception e) {
    throw new EJBException(e);
    private void closeConnection(Connection con) {
    try {
    if(con != null) {con.close();}
    catch(Exception e) {
    throw new EJBException(e);
    What i do wrong?
    Please help!!!!

    Very BIG thank you!!!!
    That's right, but i must delete this method only in ejbCreate?
    And i have a next exception: java.sql.SQLException: ORA-00947: not enough values. Why?
    Here is my code db:
    CREATE TABLE "SYSTEM"."TLOGON" ("ID" NUMBER(20) NOT NULL, "LOGIN"
    VARCHAR2(20 byte) NOT NULL, "PASSWORD" VARCHAR2(20 byte) NOT
    NULL, "PRIVILEGE" VARCHAR2(20 byte) NOT NULL,
    CONSTRAINT "ID" PRIMARY KEY("ID")
    USING INDEX
    TABLESPACE "SYSTEM"
    STORAGE ( INITIAL 12K NEXT 12K MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1)
    PCTFREE 10 INITRANS 2 MAXTRANS 255)
    TABLESPACE "SYSTEM" PCTFREE 10 PCTUSED 40 INITRANS 1
    MAXTRANS 255
    STORAGE ( INITIAL 12K NEXT 12K MINEXTENTS 1 MAXEXTENTS 249
    PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1)
    LOGGING
    And my client:
    package ejb.client;
    import javax.naming.Context;
    import javax.rmi.PortableRemoteObject;
    import ejb.TestingHome;
    import ejb.Testing;
    import java.util.Collection;
    import java.rmi.RemoteException;
    import javax.ejb.FinderException;
    import javax.naming.InitialContext;
    public class TestingClient {
    public static void main(String []args) {
    try {
    System.out.println("Step #1");
    Context initial = new InitialContext();
    System.out.println("Step #2");
    Object objref = initial.lookup("java:comp/env/ejb/SimpleTesting");
    System.out.println("Step #3");
    ejb.TestingHome home = (ejb.TestingHome)PortableRemoteObject.narrow(objref, ejb.TestingHome.class);
    System.out.println("Step #4");
    ejb.Testing aTesting;
    for(int i = 0; i < 3; i++) {
    String login = users[0];
    String password = users[i][1];
    String privilege = users[i][2];
    System.out.println("Adding user..." + login + "\n" + password + "\n" + privilege);
    home.create(new Integer(i+1), login, password, privilege);
    Integer i = new Integer(2);
    home.create(i, "Zatoka", "password", "admin");
    catch(Exception e) {
    e.printStackTrace();
    //private static String JNDI = "ejb.TestingHome";
    private final static String[][] users = {{"Zatoka","*****","admin"}, {"Ivanov","234fds","user"},{"Petrov","dcd2","user"}};
    BIG thanks!!!

  • Private Key Not Found Error in Ldaps

    Hi,
    I am facing "Private Key Not Found" Error in ldaps. The key and the SSL certificate is stored under the same location. The certificate is self signed certificate and in .pem format. When I am trying to install the certifcate through SUN ONE Console it throws the following error
    "Either this certificate is for another server, or this certificate was not requested using this server".
    can any one help me in this regard.
    Regards
    Senthil
    Edited by: senlog80 on Dec 30, 2008 3:18 AM

    Or even better, check the note <a href="https://websmp110.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=924320&_NLANG=E">924320</a>.
    <b>Symptom</b>:
    When you execute a query with virtual characteristics or key figures, the system issues the following error message:
    Object FIELD I_S_DATA-<key figure> not found
    <b>Other terms</b>
    RSR00002, RSR_OLAP_BADI
    <b>Reason and Prerequisites</b>
    This problem is caused by a program error.
    <b>Solution</b>
    If the virtual characteristics or key figures are implemented using the enhancement RSR00002 (CMOD), implement the corrections.
    If the virtual characteristics or key figures were created directly as implementations of the RSR_OLAP_BADI BAdI, compare the source code of the INITIALIZE method with the corresponding source code example. During the call of GET_FIELD_POSITIION_D, <L_S_SK>-VALUE_RETURNNM must be transferred instead of <L_S_SFK>-KYFNM.
    Import Support Package 08 for SAP NetWeaver 2004s BI (BI Patch 08 or SAPKW70008) into your BI system. The Support Package is available when Note 0872280"SAPBINews BI 7.0 Support Package 08", which describes this Support Package in more detail, is released for customers.
    In urgent cases, you can use the correction instructions.
    To provide advance information, the note mentioned above may be available before the Support Package is released. In this case, the short text of the note still contains the words "Preliminary version".
    Assign pts if helpful.

  • Problem deploying connector: META-INF/ejb-jar.xml not found in jar file

              Has anyone seen this problem:
              I built Sun's Blackbox implementation and packaged
              it identical to the BlackBoxNoTx.rar included with
              Weblogic's 'jconnector' sample (even using the same
              ra.xml and weblogic-ra.xml). When I try to deploy
              it, the server reports:
              java.io.FileNotFoundException:
              META-INF/ejb-jar.xml not found in jar file
              I have no idea why the server thinks my connector
              is an EJB. If I deploy the BlackBoxNoTx.rar included
              with the sample, everything works without a hitch.
              The only variable that I'm changing in my BlackBoxNoTx.rar
              is that I build the Blackbox classes myself--otherwise,
              the RAR packagings are identical. Any assistance is
              greatly appreciated since I'm banging my head against
              a wall...
              Thanks,
              -jason
              

              I was finally able to resolve this one. On the odd chance that someone else encounters
              the same problem, here's what went wrong:
              My RAR file had two directories: 'META-INF' and 'meta-inf'. The first was created
              by the jar tool and contained the manifest.mf file. The second I created manually
              and it contained my ra.xml and weblogic-ra.xml. When I examined the RAR using
              any tools or I extracted the contents, it looked like it only contained one directory:
              META-INF (because NT is case-insensitive).
              "Jason L" <[email protected]> wrote:
              >
              >Has anyone seen this problem:
              >
              >I built Sun's Blackbox implementation and packaged
              >it identical to the BlackBoxNoTx.rar included with
              >Weblogic's 'jconnector' sample (even using the same
              >ra.xml and weblogic-ra.xml). When I try to deploy
              >it, the server reports:
              >
              >java.io.FileNotFoundException:
              >META-INF/ejb-jar.xml not found in jar file
              >
              >I have no idea why the server thinks my connector
              >is an EJB. If I deploy the BlackBoxNoTx.rar included
              >with the sample, everything works without a hitch.
              >The only variable that I'm changing in my BlackBoxNoTx.rar
              >is that I build the Blackbox classes myself--otherwise,
              >the RAR packagings are identical. Any assistance is
              >greatly appreciated since I'm banging my head against
              >a wall...
              >
              >Thanks,
              >
              >-jason
              

  • SFTP Issue in OSB invocation resulted in an error: com.maverick.ssh.SshException: ssh-dss Key Not Found for host hostname,ip

    I created a Proxy Service to do pull file and push it to sftp server
    known_hosts file is present on OSB server.
    It has abcserverhostname,IP ssh-rsa AA................. ==
    I created a business service to do SFTP push to sftp server (remote) - Its not working.
    <Error> <SFTPTransport> <BEA-381826> <Key Not Found for host hostname,10.124....>
    com.maverick.ssh.SshException: ssh-dss Key Not Found for host hostname,10.124.....
      at com.bea.wli.sb.transports.sftp.client.KnownHostVerifier.onUnknownHost(KnownHostVerifier.java:37)
    My Business Service
    End Point URI : sftp://sftpserverhostname:22/directorypath
    Authetication Mode : user name, password.I have created a Service Account for sftpserver and imported in Business Service.
    Do I need to give anything else in known_hosts file ?
    and hostname can be any random name?
    <Dec 11, 2013 1:45:37 PM GMT+08:00> <Error> <SFTPTransport> <BEA-381801> <Error occured for endpoint com.bea.wli.sb.transports.TransportException: com.maverick.ssh.SshException: ssh-dss Key Not Found for host hostname,10.124....
    com.bea.wli.sb.transports.TransportException: com.maverick.ssh.SshException: ssh-dss Key Not Found for host
      at com.bea.wli.sb.transports.sftp.connector.SFTPTransportProvider.sendMessage(SFTPTransportProvider.java:161)
      at com.bea.wli.sb.transports.sftp.connector.SFTPTransportProvider.sendMessageAsync(SFTPTransportProvider.java:111)
      at sun.reflect.GeneratedMethodAccessor566.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      Truncated. see log file for complete stacktrace
    Caused By: com.maverick.ssh.SshException: ssh-dss Key Not Found for host eirnode2,10.124.10.16
      at com.bea.wli.sb.transports.sftp.client.KnownHostVerifier.onUnknownHost(KnownHostVerifier.java:37)
      at com.sshtools.publickey.AbstractKnownHostsKeyVerification.A(Unknown Source)
      at com.sshtools.publickey.AbstractKnownHostsKeyVerification.verifyHost(Unknown Source)
      at com.maverick.ssh2.TransportProtocol.C(Unknown Source)
      at com.maverick.ssh2.TransportProtocol.processMessage(Unknown Source)
      Truncated. see log file for complete stacktrace

    BEA-381826 suggest that there is any issue with your public key in known_host file, can you cross verify it again. Also can you check if known_host file has appropriate permissions and I am assuming it is in /OSB_DOMAIN/osb/transports/sftp folder.
    Hostname,IP algorithm publickey are the hostname, ip, and public key of SFTP server.
    As per troubleshooting guidelines
    The Key not found for IP, host error message indicates that the known_hosts file does not contain an entry that corresponds to the specified IP-host combination. If the entry exists, then try with another algorithm key; for example, if the earlier attempt was with an RSA key, try again with a DSA key.
    Cheers,
    Sahil

  • How to resolve ORA-02298: cannot validate (%s.%s) - parent keys not found

    Hi, During the exp/imp process,i have tried to enable the constraints once the import done,but for some of the constraints am getting ORA-02298: cannot validate (%s.%s) - parent keys not found error,can anyone assist me what are all the possible ways to fix this issue. database -ORACLE 11g,o/s -LINUX

    Hi. Put the missing values into the parent table or Remove the rows in the child table which contain values that are not in the parent table
    http://www.shutdownabort.com/errors/ORA-02298.php
    Regards
    Javid Hasanov
    Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Edited by: Javid Hesenov on Jul 6, 2012 2:03 AM

  • Javax.ejb,CreateException import not found

    I've upgraded from WL 8.1 to 10.3 and have an error "javax.ejb,CreateException import not found". javax.ejb used to be in weblogic.jar in 8.1 however, this path is empty in the version from 10.3. Where did it go? Do I need a new lib added to my build path?

    javax.ejb.* is in j2ee.jar
    if you use weblogic6.0, you need download ejb20.jar from http://www.weblogic.com
    if you use weblogic6.1 ,you need't this file.

  • [Incoming Payments for WTax] Primary Key not exist in DB

    While performing the TDS upgrade, I am getting an error message as "[Incoming Payments for WTax] Primary Key not exist in DB".
    I have checked that the sheet conforms to the instructions provided in the Upgrade guide but am not able to resolve this.
    Any ideas?
    Regards,
    Gyanesh

    Hi,
    It seems to be some field in the TDS upload Excel sheet which has primary key field not having the correct value.
    Double check the same where Primary Key if linked with some value in other sheet, enter the same.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Error "Specifed Key not found" while installing Oracle 11g R2 db

    Hi,
    I am new to installing oracle 11gr2 DB. While installing at the stage of "install product" during the process of .Copy files its throwing the following error
    *Specified Key not found
    Please help me solving this problem. Your help is much appreciated.
    Thanks in advance.

    979400 wrote:
    Hi ..
    I am getting the "Specified Key not found" while installing Oracle 11 g r2 on windows 8 (64 bit) and below is the installation log , Please help me .
    Number one - you are hijacking someone else's thread. Please read the forum FAQ. The link to that is conveniently located in the upper right corner of this very page.
    Number two - no oracle product is certified to run on Window 8. If you want to run an Oracle product, you need to use an OS which Oracle has certified for said product.
    ID: oracle.install.driver.oui.OUISetupDriver:13
    oracle.cluster.verification.PreReqNotSupportedException: Reference data is not available for verifying prerequisites on this operating system distribution
         at oracle.cluster.verification.constraints.XmlTaskFactory.getTasks(XmlTaskFactory.java:248)
         at oracle.ops.verification.framework.util.VerificationUtil.isPreReqSupported(VerificationUtil.java:4538)
         at oracle.ops.verification.framework.util.VerificationUtil.isPreReqSupported(VerificationUtil.java:4487)
         at oracle.cluster.verification.ClusterVerification.isPreReqSupported(ClusterVerification.java:6382)
         at oracle.install.driver.oui.OUISetupDriver.verifyEnvironment(OUISetupDriver.java:299)
         at oracle.install.driver.oui.OUISetupDriver.load(OUISetupDriver.java:422)
         at oracle.install.ivw.db.driver.DBSetupDriver.load(DBSetupDriver.java:161)
         at oracle.install.commons.base.driver.common.Installer.run(Installer.java:216)
         at oracle.install.ivw.db.driver.DBInstaller.run(DBInstaller.java:129)
         at oracle.install.commons.util.Application.startup(Application.java:869)
         at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
         at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
         at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
         at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:117)
         at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:148)
    ---# End Stacktrace #-----------------------------
    ---# Begin Stacktrace #---------------------------
    ID: oracle.install.commons.util.exception.DefaultErrorAdvisor:16
    oracle.cluster.verification.PreReqNotSupportedException: Reference data is not available for verifying prerequisites on this operating system distribution
         at oracle.cluster.verification.constraints.XmlTaskFactory.getTasks(XmlTaskFactory.java:248)
         at oracle.ops.verification.framework.util.VerificationUtil.isPreReqSupported(VerificationUtil.java:4538)
         at oracle.ops.verification.framework.util.VerificationUtil.isPreReqSupported(VerificationUtil.java:4487)
         at oracle.cluster.verification.ClusterVerification.isPreReqSupported(ClusterVerification.java:6382)
         at oracle.install.driver.oui.OUISetupDriver.verifyEnvironment(OUISetupDriver.java:299)
         at oracle.install.driver.oui.OUISetupDriver.load(OUISetupDriver.java:422)
         at oracle.install.ivw.db.driver.DBSetupDriver.load(DBSetupDriver.java:161)
         at oracle.install.commons.base.driver.common.Installer.run(Installer.java:216)
         at oracle.install.ivw.db.driver.DBInstaller.run(DBInstaller.java:129)
         at oracle.install.commons.util.Application.startup(Application.java:869)
         at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
         at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
         at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
         at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:117)
         at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:148)
    ---# End Stacktrace #-----------------------------

  • ORA-02298: cannot enable name - parent keys not found

    Hi All,
    I got this problem while creating Foreign Key constraints ORA-02298: cannot enable name - parent keys not found. How to rectify this problem

    alter table WORK_APPROVAL_DETAILS
    add constraint FK_WRKAPPR_AUTH_APPR foreign key (APPROVER_CODE, PCC_INFO_CODE)
    references AUTHORIZED_APPROVERS (APPROVER_CODE, PCC_INFO_CODE);
    WORK_APPROVAL_DETAILS:
    inspection_id     number(16)               
    work_code      varchar2(18)               
    approver_code     varchar2(12)               
    approver_remarks     varchar2(200)               
    approval_date     date               
    role_code     char(2)               
    reference_no     varchar2(50)               
    pcc_info_code     varchar2(9)               
    status_code     number(4)
    AUTHORIZED_APPROVERS
    approver_code     varchar2(12)               
    approver_name     varchar2(30)               
    dept_code     varchar2(3)               
    desg_code      char(2)               
    is_active     char(1)               
    address     varchar2(250)               
    role_code     char(2)               
    created_by     varchar2(20)               
    created_date     date               
    pcc_info_code     varchar2(9)               
    qualification     varchar2(50)               
    experience      varchar2(25)

  • ORA-02298: cannot validate (PL_REM_FK_ES_EMP) - parent keys not found

    hi
    I disabled some constraints. But now, when I try to enable them then I get the error:
    ORA-02298: cannot validate (PL_REM_FK_ES_EMP) - parent keys not found.
    Plz guide me to resolve this problem.

    Hi,
    there is most likely some orphaned records in the child table. what command did you use to delete the record? what the output of
    select xxxxx from child_table a where not exists (select 'x' from
    parent_table where primary_key = a.key_values);
    dan

  • How to resolve ora issue-parent key not found!

    Hi,
    Once the import is done,when i tried to enable the constraints,am getting ORA-02298: cannot validate (%s.%s) - parent keys not found for some of the constraints,i had already raised a new thread,but when i tried to resolve this issue based on the solution provided there,i couldn't....
    http://www.shutdownabort.com/errors/ORA-02298.php
    i have tried in so many ways-
    -reimporting the parent table alone.
    -fresh export of all tables with option consistent=y
    but the records are matching between source and target tables.

    based on this issue,is there any simple query to findout the missing records in parent table,i don't have access for child_table,parent_table views.
    FYI- am using traditional imp/exp command to accomplish data import and export activities,i tried with the following query,but not getting any output
    select 'select '||cc.column_name-
    ||' from '||c.owner||'.'||c.table_name-
    ||' a where not exists (select ''x'' from '-
    ||r.owner||'.'||r.table_name-
    ||' where '||rc.column_name||' = a.'||cc.column_name||')'
    from dba_constraints c,
    dba_constraints r,
    dba_cons_columns cc,
    dba_cons_columns rc
    where c.constraint_type = 'R'
    and c.owner not in ('SYS','SYSTEM')
    and c.r_owner = r.owner
    and c.owner = cc.owner
    and r.owner = rc.owner
    and c.constraint_name = cc.constraint_name
    and r.constraint_name = rc.constraint_name
    and c.r_constraint_name = r.constraint_name
    and cc.position = rc.position
    and c.owner = '&table_owner'
    and c.table_name = '&table_name'
    and c.constraint_name = '&constraint_name'
    can anyone suggest to fix it using some other option.

  • EJB deployment file not found

    Why is it that if I deploy my EJBs with the Source, Generated and DD files located on C: drive and it works, but if I move these files to a network drive and change my deployment to point to the network files it gives me "file not found" errors for the xxxSource.jar, xxxGenerated.jar etc.. ?
    eg. Where N: is a network drive
    oracle.aurora.ejb.deployment.GenerateEjb
    -u
    system
    -p
    manager
    -s
    sess_iiop://xxxxx:2481:bgdvl8
    -republish
    -keep
    -temp
    TEMP
    -descriptor
    "N:\SRC\System\Mail\smtp\SMTPEJB.dd"
    -generated
    "N:\SRC\System\Mail\smtp\SMTPEJBGenerated1.jar"
    "N:\SRC\System\Mail\smtp\SMTPEJBSource1.jar"
    N:/SRC/System/Mail/smtp/SMTPEJBSource1.jar: No such file or directory
    *** Errors occurred while deploying the EJB to JServer ***
    *** Deployment completed ***

    Try changing Meta-inf to META-INF... I think it is case sensitive in at least some servers (maybe all).

Maybe you are looking for

  • Photoshop Album to iPhoto

    Hi together, I stopped to support Bill G. and moved to Apple a few days ago... I have 2000 photos being digitalized from real photo. They were maintained in Photoshop Album with Tag, Dates, etc. A) Is there a possibility to pull this information anyh

  • Renaming and Restarting your iPod.. again? -___-

    Today, when I tried downloading music from my computer to my iPod, my iPod doesn't pop up under devices... and when I plugged it in it comes up as "apple ipod" how do I get it back to the way it was at first? I had it for a year and this is the first

  • Can you explain what this means

    We run a network so I read this site. Another post promted be to look at the Finder/Network. I am now at a remote location on the the network and we run WPA. Under Network I can see all the computers in the office - 5 of them. But also listed is: Ser

  • Detail Navigation

    Hi Team, In Navigation panel i want to remove Detailed Navigation Name I checked in theme editor but i could'nt find the property Please help me

  • Cannot upgrade imac from app store anyone with same issue?

    Hello, I can see that there is an upgrade ready to install against the app store app, but when I click on the app store icon it jumps up once but nothing happens.