Could not insert secondary key...

Hi Developers,
when trying to store a key/data set, tuple bound and with a secondary db, I get this exception:
com.sleepycat.je.DatabaseException: Could not insert secondary key in ESetsIndex OperationStatus.KEYEXIST
     at com.sleepycat.je.SecondaryDatabase.insertKey(SecondaryDatabase.java:679)
     at com.sleepycat.je.SecondaryDatabase.updateSecondary(SecondaryDatabase.java:549)
     at com.sleepycat.je.SecondaryTrigger.databaseUpdated(SecondaryTrigger.java:43)
     at com.sleepycat.je.Database.notifyTriggers(Database.java:1158)
     at com.sleepycat.je.Cursor.putInternal(Cursor.java:723)
     at com.sleepycat.je.Database.putInternal(Database.java:532)
     at com.sleepycat.je.Database.put(Database.java:479)
If I fill the DB without the secondary on with some Key/Data sets I can access them without any problem, even when the secondary is on.
Only when try to put a new one in then I get this exception?
Possibly you need the TupleBinding and KeyCreator class for your analyses:
     // Inner Class to provide the EntitySet DB TupleBinding
     private class TBinding extends TupleBinding {
          private DatExchObj esData = new DatExchObj();
          private ArrayList<String> stRec;
          private ArrayList<Long> longRec;
          // Write an EntrySet Object to the TupleOutput
          public void objectToEntry(Object obj, TupleOutput output){
               esData = (DatExchObj)obj;
               stRec = esData.getStRec();
               longRec = esData.getLongRec();
               // Set Name at the 1. Position
               // EntityTyp Name or 'DSet' at the 2. Pos.
               for (int i = 0; i < stRec.size(); i++)
                    output.writeString(stRec.get(i));
               // Number of entity pointers at the 3. Pos.
               output.writeInt(longRec.size());     
               // Entity Pointer List
               for (int i = 0; i < longRec.size(); i++)
                    output.writeLong((Long)longRec.get(i));
          // Read an EntrySet from the TupleInput
          public Object entryToObject(TupleInput input){
               stRec = new ArrayList<String>();
               longRec = new ArrayList<Long>();
               // Set Name at index 1
               stRec.add(input.readString());
               // EntityTyp ID or 'DSet' at index 2
               stRec.add(input.readString());
               // Number of entity/property pointers to read
               int iToRead = input.readInt();
               // Entity Pointer List
               for (int i = 0; i < iToRead; i++)
                    longRec.add(input.readLong());
               esData.setStRec(stRec);
               esData.setLongRec(longRec);
               return esData;
     private class SecDBKC implements SecondaryKeyCreator {
          * Abstract method that we must implement.
          * Methods
          * 'createSecondaryKey'
          * Param:     SecondaryDatabase <The SecondaryDB name>
          *                DatabaseEntry <The KeyEntry>
          *                DatabaseEntry <The DataENtry>
          *                DatabaseEntry <The ResultEntry>
          private TupleBinding tB;
     public SecDBKC(TupleBinding tB) {this.tB = tB;}
     public boolean createSecondaryKey(SecondaryDatabase secDB,
     DatabaseEntry keyEntry, // From the primary
     DatabaseEntry dataEntry, // From the primary
     DatabaseEntry resultEntry) // set the key data on this.
          throws DatabaseException {
          try {
               DatExchObj ibData = (DatExchObj) tB.entryToObject(dataEntry);
               resultEntry.setData(ibData.getStRec().get(0).getBytes("UTF-8"));
          } catch (Exception e) { e.printStackTrace(); }
     return true;
What is wrong?
Thanks for any help
Staretzek

Hi Andrei,
yes I let the secondary DB create with and without allowed duplicates, because the indexed value is without duplicates too.
Here the store method blowen up for exmerimental uses:
     public long storeSet(DatExchObj esData)
          throws DatabaseException {
     /* To store an EntitySet to the setsDB BDB
     * If the key is 0, than a new entry will be performed, otherwise
     * the value of the given key will be overwritten by the given
     * new EntitySet.
     * Returns the new key, the EntitySet was written to the DB
     * or 0 if the given key was invalid.
          DatExchObj getDat;
          long lKey = esData.getLong(), l;
          if (lKey==0) {
               //Check if a Dataset with setName exists
               //if exists overwrite it with the new Data
               DatExchObj checkD = getSet(esData.getStRec().get(0));
               if (checkD!=null) lKey = checkD.getLong();
          try {
System.out.println("storeSet lKey="+lKey);
               DatabaseEntry obKey = new DatabaseEntry();
               DatabaseEntry obData = new DatabaseEntry();          
               DatabaseEntry firstData = new DatabaseEntry();          
               OperationStatus sOPS;
               lBind.objectToEntry(lKey, obKey);
               // Lookup the data set at lKey
if (true) {
               sOPS = setsDB.get(null, obKey, obData, LockMode.DEFAULT);
System.out.println(sOPS);
               if (lKey == 0) { //If a new data EntitySet shell be stored..
                    if (sOPS == OperationStatus.SUCCESS) {
                         // The given EntitySet shell be stored with a
                         // new key
                         // Read the key Counter
                         getDat = (DatExchObj)tBind.entryToObject(obData);
                         l = getDat.getLongRec().get(0);
System.out.println("Key "+lKey+"/stRec 0: "+
                                   getDat.getStRec().get(0));
System.out.println("Key "+lKey+"/stRec 1: "+
                                   getDat.getStRec().get(1));
                         // Raise value for the next Key
                         l++;
                         getDat.getLongRec().set(0,l);
                    } else { // When there is no 0 Key entry,
                         /* than the DB is empty
                         * So, prepare the 0 Key DataSet
                         * (This entry stores the key of the
                         * latest EntitySet)
                         * Prepare the data for the 0 key DataSet
                         * Set the Key to 1 for the first entry
                         * data set
                         getDat = new DatExchObj();
                         l = 1;
                         getDat.getStRec().add("DBEntityCounter");
                         getDat.getStRec().add("Internal");
                         getDat.getLongRec().add(l);
                    } // and now prepare the key again, but as Data
System.out.println("Key "+lKey+"/longRec 0: "+
          getDat.getLongRec().get(0));
//if (true) return l;
                    tBind.objectToEntry(getDat, firstData);
                    obKey = new DatabaseEntry();     
                    lBind.objectToEntry(lKey, obKey);                    
                    // and write it into the DB at key 0
                    setsDB.put(null, obKey, firstData);
                    lKey = l;
               } else // If no entry of this key exists - set lKey 0
                    if (sOPS == OperationStatus.NOTFOUND) lKey = (long)0;
//if (true) return lKey;
               if (lKey!=0) {
                    //Prepare the key for writing
                    obKey = new DatabaseEntry();     
                    lBind.objectToEntry(lKey, obKey);                    
                    // Prepare the entry data for writing
                    obData = new DatabaseEntry();     
                    tBind.objectToEntry(esData, obData);
                    // and write it to the DB
System.out.println("Write set -"+esData.getStRec().get(0));
                    Transaction txn =
                         suite.getBDBEnv().getEnv().
                         beginTransaction(null,null);
                    setsDB.put(txn, obKey, obData);
                    txn.commit();
          } catch(Exception e) { e.printStackTrace(); }
          return lKey;
Thanks for your time spending in my problems
Regards,
Joachim Staretzek

Similar Messages

  • Files moving to NFS error folder - Could not insert message into duplicate check table

    Hi Friends
    Have anyone faced this error, could suggest me why.
    The CSV Files failed on Sender Channel and moves to NFS error path  and in the log it says as below.
    Error: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not insert message  into duplicate check table. Reason: com.ibm.db2.jcc.am.SqlTransactionRollbackException: DB2 SQL Error

    Hi Uma - is that a duplicate file? have you enabled duplicate file check in sender channel?
    please check if the below note is applicable
    1979353 - Recurring TxRollbackException with MODE_STORE_ON_ERROR stage configuration

  • Could not insert Data in to the table

    hello friends
    I have some pbm in inserting values in to sqlserver database table.I could not insert values to the
    table having varchar datatype fields.partyType is a field name of varchar type.when i try to insert
    "LCL" for that field it throws following exception.
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]The name 'LCL'
    is not permitted in this context. Only constants, expressions, or variables allowed here. Column
    names are not permitted.
    sometime it throws
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not
    implemented
    If i give only numeric values to those fields it accepts.ie table accepts only integer values for all the fields.I use prepared statement for inserting data.I am inserting data to 4 tables at a time.I use ODBC driver.can u tell me where would be the problem??</p>
    with regards
    devi

    Hmmmm...
    ssniazi does nothing but ask for contact information or recommend Oracle products.
    Based on this I consider it likely that this person is some sort of sales representative either directly or indirectly associated with Oracle.
    I personally wouldn't provide any contact information to this person. Nor would I accept any advice until this person starts to actually provide some solutions or at least correctly reveals any financial interests that they might have.
    In addition I believe ssniazi is in violation of the conduct code of this website because ssniazi is requesting information which will be used by a business entity without telling the users that it will be used in that way. And I expect that Oracle itself would frown on such activities.
    2.3 You agree that You will not use the Website to:...(g) collect or store personal data about other users unless specifically authorized by such users.

  • Please help with an error "could not write value key \Software\classes\iTune.wav.....

    I have windows 7 with plenty of memory and storage capacity. When accessing iTunes I had an error message to uninstall and reinstall. I have uninstalled but when trying to reinstall I get the error message "could not write value key \software\classes\iTune.wav. Verify that you have sufficient access to that key or contact your support personnel"  I don't understand what this means, can anyone help please?

    For "Could not open key/write value" errors when reinstalling try b noir's user tip:
    "Could not open key: UNKNOWN\Components\[LongStringOfLettersAndNumbers]\
    [LongStringOfLettersAndNumbers]" error messages when installing iTunes for Windows.
    The technique can be applied to the branch of the registry mentioned in the error message.
    If you still have issues see Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Netweaver Error in Logs - JRA - Could Not Insert Row To ResultSet

    Hi there
    we have an MII 12.1.5 instance (with Patch) installed on a Netweaver platform (SP 3).  We're using the JRA action blocks to call an RFC (we populate the request doc with multiple nodes first) and they're all executing completely without any problems at face value.  When I look at the Netweaver logs (MII filter on), I'm getting quite a few entries per transaction run which hold the following Error Messages:
    Message:
    Could Not Insert Row To ResultSet
    Category:
    /Applications/XMII/Xacute
    or
    com.sap.xmii.storage.connections.JRAUtil
    Location:
    com.sap.xmii.storage.connections.JRAUtil
    Application:
    sap.com/xappsxmiiear
    Has anyone seen these errors or know what could be causing them?
    Thanks,
    Lawrence

    Hi.
    This is a known issue and have been there in some versions, the JRA action block seems to be working (but causes this problem in the Netweaver log) and the JCO action block do not have this problem.
    I have just reported as an OSS to SAP.
    BR
    Poul.
    Edited by: Poul Klemmensen on Apr 12, 2010 4:57 PM

  • Why do I get this error when opening I-Tunes 10.5.2?Internal Error: Could not insert menu bar item..  Error code = 5603

    I just upgraded to Snow Leopard and downloaded the latest version of I-tunes, 10.5.2, but everytime I open I-tunes, i get this error: Internal Error: Could not insert menu bar item.. Error code = 5603
    How do I fix this? Any help would be appreciated.
    Thanks.

    hello Mac.INXS, please [[Clear the cache - Delete temporary Internet files to fix common website issues|clear the cache]] & [[Delete cookies to remove the information websites have stored on your computer|cookies from mozilla.org]] and then try logging into AMO again.

  • Error: Could not insert message (INBOUND) into database in JDBC scenario

    Hello Experts,
    We have implemented an IDoc- JDBC scenario on PI 7.1.On sending an IDoc DEBMAS it gives the following error in SXMB_moni of PI.
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not insert message 167088e0-92c5-11de-c968-36d2afd1680e(INBOUND) into database. Reason: java.sql.SQLException: ORA-00904: "DSR_PASSPORT": invalid identifier
    Kindly advice.
    Thanks in advance,
    Elizabeth.

    >
    Elizabeth Jacob wrote:
    > Hello Experts,
    >
    > We have implemented an IDoc- JDBC scenario on PI 7.1.On sending an IDoc DEBMAS it gives the following error in SXMB_moni of PI.
    >
    > com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not insert message 167088e0-92c5-11de-c968-36d2afd1680e(INBOUND) into database. Reason: java.sql.SQLException: ORA-00904: "DSR_PASSPORT": invalid identifier
    >
    > Kindly advice.
    >
    > Thanks in advance,
    > Elizabeth.
    please check if DSR_PASSPORT is a valid field in the table or is it missing .
    Description of ORA-00904 error;
    ORA-00904:     string: invalid identifier
    Cause:     The column name entered is either missing or invalid.
    Action:     Enter a valid column name. A valid column name must begin with a letter, be less than or equal to 30 characters, and consist of only alphanumeric characters and the special characters $, _, and #. If it contains other characters, then it must be enclosed in double quotation marks. It may not be a reserved word.

  • [DPL] Exception with composite SecondaryKey - Not a secondary key . . .

    Can I use a composite key with a SecondaryKey annotation over Java-DPL, reference guide says that is possible but I'm having the next exception: Exception in thread "main" java.lang.IllegalArgumentException: Not a secondary key: org.banxico.dgobc.dsop.mav.foliado.servicio.salida.SolServicioSalida#solicitudParaAcuse*.
    I defined a Persistent class DatosSSSalidaAcuse.java to help indexing information as a SecondaryKey inside SolServicioSalida.java. DatosSSSalidaAcuse.java encapsulates all attributes that I need and each one has its KeyField annotation so I don’t handle why during code execution the system throws that exception even I reviewed the class implementation for the secondary key following the same rules as for a primary key type.
    Use this URL to view my class diagram:
    [http://i200.photobucket.com/albums/aa90/nordlicher/Job/ClassDiagram.jpg]
    Code:
    LlaveSolServicio.java*
    import com.sleepycat.persist.model.Persistent;
    import com.sleepycat.persist.model.KeyField;
    @Persistent
    public class LlaveSolServicio implements Comparable <LlaveSolServicio> {
    @KeyField(1)
    private String numEvento;
    private LlaveSolServicio() { super(); } // Requerido para deserializar.
    public LlaveSolServicio(String numEvento) {
    this.numEvento = numEvento;
    public String obtenNumEvento() {
    return numEvento;
    @Override
    public boolean equals(Object obj) {
    if (obj == null) {
    return false;
    if (getClass() != obj.getClass()) {
    return false;
    final LlaveSolServicio other = (LlaveSolServicio) obj;
    if ((this.numEvento == null) ? (other.numEvento != null) : !this.numEvento.equals(other.numEvento)) {
    return false;
    return true;
    @Override
    public int hashCode() {
    int hash = 7;
    hash = 43 * hash + (this.numEvento != null ? this.numEvento.hashCode() : 0);
    return hash;
    @Override
    public int compareTo(LlaveSolServicio objeto) {
    int result = 0;
    if (!equals(objeto)) {
    result = hashCode() - objeto.hashCode();
    return result;
    DatosSSSalidaAcuse.java*
    import com.sleepycat.persist.model.Persistent;
    import com.sleepycat.persist.model.KeyField;
    @Persistent
    public class DatosSSSalidaAcuse implements Comparable <DatosSSSalidaAcuse> {
    @KeyField(1)
    private Integer idNegocio;
    @KeyField(2)
    private Integer idSubsistema;
    @KeyField(3)
    private Integer idEntidad;
    @KeyField(4)
    private Integer pivote;
    @KeyField(5)
    private Long secuencial;
    @KeyField(6)
    private Byte estado;
    private DatosSSSalidaAcuse() { super(); } // Requerido para deserializar.
    public DatosSSSalidaAcuse(Integer idNegocio, Integer idSubsistema,
    Integer idEntidad, Integer pivote, Long secuencial, Byte estado) {
    this.idNegocio = idNegocio;
    this.idSubsistema = idSubsistema;
    this.idEntidad = idEntidad;
    this.pivote = pivote;
    this.secuencial = secuencial;
    this.estado = estado;
    public Integer obtenIdNegocio() {
    return this.idNegocio;
    public Integer obtenIdSubsistema() {
    return this.idSubsistema;
    public Integer obtenIdEntidad() {
    return this.idEntidad;
    public Integer obtenPivote() {
    return pivote;
    public Long obtenSecuencial() {
    return secuencial;
    public Byte obtenEstado() {
    return estado;
    public void asignaEstado(Byte estado) {
    this.estado = estado;
    @Override
    public boolean equals(Object obj) {
    if (obj == null) {
    return false;
    if (getClass() != obj.getClass()) {
    return false;
    final DatosSSSalidaAcuse other = (DatosSSSalidaAcuse) obj;
    if (this.idNegocio != other.idNegocio) {
    return false;
    if (this.idSubsistema != other.idSubsistema) {
    return false;
    if (this.idEntidad != other.idEntidad) {
    return false;
    if (this.pivote != other.pivote && (this.pivote == null || !this.pivote.equals(other.pivote))) {
    return false;
    if (this.secuencial != other.secuencial && (this.secuencial == null || !this.secuencial.equals(other.secuencial))) {
    return false;
    if (this.estado != other.estado && (this.estado == null || !this.estado.equals(other.estado))) {
    return false;
    return true;
    @Override
    public int hashCode() {
    int hash = 7;
    hash = 29 * hash + this.idNegocio;
    hash = 29 * hash + this.idSubsistema;
    hash = 29 * hash + this.idEntidad;
    hash = 29 * hash + (this.pivote != null ? this.pivote.hashCode() : 0);
    hash = 29 * hash + (this.secuencial != null ? this.secuencial.hashCode() : 0);
    hash = 29 * hash + (this.estado != null ? this.estado.hashCode() : 0);
    return hash;
    @Override
    public int compareTo(DatosSSSalidaAcuse objeto) {
    int resultado = 0;
    if (!equals(objeto)) {
    resultado = hashCode() - objeto.hashCode();
    return resultado;
    SolServicioSalida.java*
    import org.banxico.dgobc.dsop.mav.foliado.llave.servicio.LlaveSolServicio;
    import com.sleepycat.persist.model.Entity;
    import com.sleepycat.persist.model.SecondaryKey;
    import com.sleepycat.persist.model.PrimaryKey;
    import static com.sleepycat.persist.model.Relationship.MANY_TO_ONE;
    import org.banxico.dgobc.dsop.mav.foliado.servicio.salida.acuses.DatosSSSalidaAcuse;
    @Entity
    public class SolServicioSalida {
    @PrimaryKey
    private LlaveSolServicio llave;
    @SecondaryKey(relate = MANY_TO_ONE)
    private DatosSSSalidaAcuse llaveAcuse;
    private Byte noServicio;
    private Byte [] infoServ;
    private SolServicioSalida() { super(); }; //Requerido para deserializar.
    public SolServicioSalida(LlaveSolServicio llave,
    Byte noServicio, Byte [] infoServ, Integer idNegocio,
    Integer idSubsistema, Integer idEntidad, Integer pivote,
    Long secuencial, Byte estado) {
    this.llaveAcuse = new DatosSSSalidaAcuse(idNegocio, idSubsistema,
    idEntidad, pivote, secuencial, estado);
    this.llave = llave;
    this.noServicio = noServicio;
    this.infoServ = infoServ;
    public void asignaLlave(LlaveSolServicio llave) {
    this.llave = llave;
    public LlaveSolServicio obtenLlave() {
    return llave;
    public Byte[] obtenInfoServ() {
    return infoServ;
    public Byte obtenNoServicio() {
    return noServicio;
    public DatosSSSalidaAcuse obtenLlaveSSSalidaAcuse() {
    return llaveAcuse;
    ColaSalida.java* _(Test class that implements main() method and storage operations)_
    import com.sleepycat.persist.EntityStore;
    import com.sleepycat.persist.StoreConfig;
    import com.sleepycat.persist.EntityCursor;
    import com.sleepycat.persist.PrimaryIndex;
    import com.sleepycat.persist.SecondaryIndex;
    import com.sleepycat.je.DatabaseException;
    import com.sleepycat.je.Transaction;
    import com.sleepycat.je.LockConflictException;
    import org.banxico.dgobc.dsop.mav.foliado.persistencia.salida.configuracion.ColaSalidaConfig;
    import org.banxico.dgobc.dsop.mav.foliado.llave.servicio.LlaveSolServicio;
    import org.banxico.dgobc.dsop.mav.foliado.llave.servicio.salida.acuses.LlaveSSSalidaAcuse;
    import org.banxico.dgobc.dsop.mav.foliado.servicio.salida.SolServicioSalida;
    import org.banxico.dgobc.dsop.mav.foliado.servicio.salida.acuses.DatosSSSalidaAcuse;
    import static org.banxico.dgobc.dsop.utileria.registro.AsistenteRegistrador.*;
    import org.apache.log4j.BasicConfigurator;
    import org.apache.log4j.Level;
    import org.apache.log4j.Logger;
    public class ColaSalida {
    private final String nombreRepositorio = "ColaSalida";
    private EntityStore repositorio;
    private StoreConfig cfgRepositorio;
    private PrimaryIndex<LlaveSolServicio, SolServicioSalida>
    solicitudPorEvento;
    private SecondaryIndex<DatosSSSalidaAcuse, LlaveSolServicio,
    SolServicioSalida> solicitudParaAcuse;
    private final int INTENTO_MAX_DEADLOCK = 3;
    public ColaSalida(ColaSalidaConfig ambienteCfg) {
    if (ambienteCfg != null) {
    if (ambienteCfg.obtenAmbiente().isValid()) {
    cfgRepositorio = new StoreConfig();
    cfgRepositorio.setReadOnly(
    ambienteCfg.obtenConfiguracion().getReadOnly());
    cfgRepositorio.setAllowCreate(
    !ambienteCfg.obtenConfiguracion().getReadOnly());
    if (ambienteCfg.obtenConfiguracion().getTransactional()) {
    cfgRepositorio.setTransactional(true);
    } else {
    cfgRepositorio.setTransactional(false);
    try {
    repositorio = new EntityStore(ambienteCfg.obtenAmbiente(),
    nombreRepositorio, cfgRepositorio);
    /** Primary Index de la base de objetos. **/
    solicitudPorEvento = repositorio.getPrimaryIndex(
    LlaveSolServicio.class, SolServicioSalida.class);
    /** Secondary Index de la base de objetos. **/
    solicitudParaAcuse = repositorio.getSecondaryIndex(
    solicitudPorEvento,
    DatosSSSalidaAcuse.class,
    "solicitudParaAcuse");
    } catch (DatabaseException dbe) {
    if (obtenerRegistrador(
    Registradores.OPERACION).isInfoEnabled()) {
    registrarComoInfoEn(OPERACION, ColaSalidaConfig.class,
    "Ocurrio un error en la creacion de los indicies. "
    + dbe.getMessage());
    System.exit(-1);
    } else {
    System.out.println("Ambiente de Base de Datos es null, "
    + "ejecucion fallida.");
    if (obtenerRegistrador(
    Registradores.OPERACION).isInfoEnabled()) {
    registrarComoInfoEn(OPERACION, ColaSalidaConfig.class,
    "Ambiente de Base de Datos es null, ejecucion fallida.");
    System.exit(-1);
    public void cerrarRepositorio() {
    if (repositorio != null) {
    try {
    repositorio.close();
    } catch (DatabaseException dbe) {
    System.err.println("Error cerrando el repositorio "
    + dbe.getLocalizedMessage());
    if (obtenerRegistrador(
    Registradores.OPERACION).isInfoEnabled()) {
    registrarComoInfoEn(OPERACION, ColaSalidaConfig.class,
    "Error cerrando el repositorio " + dbe.getMessage());
    public EntityStore obtenRepositorio() {
    return this.repositorio;
    public StoreConfig obtenConfigRepositorio() {
    return this.cfgRepositorio;
    public SolServicioSalida seleccionarPorEvento(LlaveSolServicio llave) {
    if (solicitudPorEvento == null && llave == null) {
    return null;
    } else {
    return solicitudPorEvento.get(llave);
    public SolServicioSalida seleccionarParaAcuse(DatosSSSalidaAcuse llave) {
    if (solicitudParaAcuse == null && llave == null) {
    return null;
    } else {
    return solicitudParaAcuse.get(llave);
    public boolean insertar(SolServicioSalida ssObj, boolean esTransaccional) {
    Transaction txn = null;
    boolean resultado = false;
    int numIntentos = 0;
    if (solicitudPorEvento != null && ssObj != null)
    if (esTransaccional) {
    while (numIntentos < INTENTO_MAX_DEADLOCK && !resultado) {
    try {
    txn = repositorio.getEnvironment().beginTransaction(
    null, null);
    resultado = solicitudPorEvento.putNoOverwrite(txn, ssObj);
    txn.commit();
    } catch (LockConflictException le) {
    try {
    if (obtenerRegistrador(
    Registradores.OPERACION).isInfoEnabled()) {
    registrarComoInfoEn(OPERACION, ColaSalidaConfig.class,
    "Error al bloquear campo en el repositorio "
    + le.getMessage());
    if (txn != null) {
    txn.abort();
    txn = null;
    numIntentos++;
    if (numIntentos >= INTENTO_MAX_DEADLOCK
    && obtenerRegistrador(
    Registradores.OPERACION).isInfoEnabled()) {
    registrarComoInfoEn(OPERACION,
    ColaSalidaConfig.class,
    "Limite de intentos excedido. "
    + "Deteniendo la operacion.");
    } catch (DatabaseException ae) {
    if (obtenerRegistrador(
    Registradores.OPERACION).isInfoEnabled()) {
    registrarComoInfoEn(OPERACION,
    ColaSalidaConfig.class,
    "aborto de la txn fallido: " + ae.getMessage());
    } catch (DatabaseException e) {
    try {
    if (obtenerRegistrador(
    Registradores.OPERACION).isInfoEnabled()) {
    registrarComoInfoEn(OPERACION,
    ColaSalidaConfig.class,
    "Error durante ejecucion de transaccion "
    + e.getMessage());
    if (txn != null) {
    txn.abort();
    txn = null;
    } catch (DatabaseException ae) {
    if (obtenerRegistrador(
    Registradores.OPERACION).isInfoEnabled()) {
    registrarComoInfoEn(OPERACION,
    ColaSalidaConfig.class,
    "aborto de la txn fallido: "
    + ae.getMessage());
    } else {
    resultado = solicitudPorEvento.putNoOverwrite(ssObj);
    return resultado;
    public EntityCursor obtenerCursorEventos() {
    EntityCursor eventos = null;
    if (solicitudPorEvento != null) {
    eventos = solicitudPorEvento.entities();
    return eventos;
    public static void main (String args []) {
    BasicConfigurator.configure();
    Logger logger = Logger.getRootLogger();
    logger.setLevel(Level.INFO);
         try {
    org.banxico.dgobc.dsop.EITyS.BMcripto.BMcripto.setProvider("BC");
         } catch (Exception e) {
    e.printStackTrace();
    java.util.Properties propiedades = new java.util.Properties();
    System.setProperty("registro.cfg", "file:"
    + ColaSalida.class.getResource("/cfg/registro.cfg").getPath());
    try {
    propiedades.load(new java.io.FileInputStream("./cfg/registro.cfg"));
         } catch (java.io.IOException ex) {
    ex.printStackTrace();
         org.apache.log4j.PropertyConfigurator.configure(propiedades);
         registrarComoInfoEn(MONITOREO, ColaSalida.class,
         "Asistente registrador inicializado.");
    ColaSalidaConfig cfg = new ColaSalidaConfig(new java.io.File("./jedb"));
    ColaSalida colaSalida = new ColaSalida(cfg);
    Byte [] info = {1, 0, 1, 0};
    boolean resultado = false;
    resultado = colaSalida.insertar(
    new SolServicioSalida(
    new LlaveSolServicio("abcd"),
    Byte.valueOf((byte)0),
    info,
    new Integer(0), new Integer(0), new Integer(0),
    new Integer(0),
    new Long(0),
    Byte.valueOf((byte)1)),
    false);
    registrarParaDepurarEn(NO_MONITOREO, ColaSalidaConfig.class,
    "[Insercion 1]: " + resultado );
    System.out.println("[Insercion 1]: " + resultado);
    Edited by: AlanC. on 07.10.2010 18:00

    Hello Alan,
    Please post a full stack trace whenever you report a problem. Without a stack trace, I'm guessing that the exception is coming from the call below:
                        solicitudParaAcuse = repositorio.getSecondaryIndex(
                                solicitudPorEvento,
                                DatosSSSalidaAcuse.class,
                                "solicitudParaAcuse");Because the message is:
    Not a secondary key: org.banxico.dgobc.dsop.mav.foliado.servicio.salida.SolServicioSalida#solicitudParaAcuseThe entity class is SolServicioSalida:
    @Entity
    public class SolServicioSalida {
      @PrimaryKey
      private LlaveSolServicio llave;
      @SecondaryKey(relate = MANY_TO_ONE)
      private DatosSSSalidaAcuse llaveAcuse;
      private Byte noServicio;
      private Byte [] infoServ;
    }You're passing "solicitudParaAcuse" as the last parameter to getSecondaryIndex. This is supposed to be the field name of a field in the entity class, SolServicioSalida. But there is no such field. The only field tagged with @SecondaryKey is llaveAcuse. So don't you want to pass "llaveAcuse" as the last parameter?
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • BEA-000802: Could not find secondary on remote server

              I have a WebLogic cluster setup with two WebLogicServers, Admin Server and LoadBalancer
              with HttpClusterServlet.
              The first time I log into my web application I get the following error on managedServer
              1:
              ####<Jun 3, 2003 5:27:01 PM EDT> <Notice> <Cluster> <freerider1> <managedServer_1>
              <main> <<WLS Kernel>> <> <BEA-000102> <Joining cluster cluster on 237.0.0.1:7001>
              ####<Jun 3, 2003 5:27:01 PM EDT> <Notice> <WebLogicServer> <freerider1> <managedServer_1>
              <main> <<WLS Kernel>> <> <BEA-000330> <Started WebLogic Managed Server "managedServer_1"
              for domain "mydomain" running in Production Mode>
              ####<Jun 3, 2003 5:27:01 PM EDT> <Notice> <WebLogicServer> <freerider1> <managedServer_1>
              <main> <<WLS Kernel>> <> <BEA-000365> <Server state changed to RUNNING>
              ####<Jun 3, 2003 5:27:01 PM EDT> <Notice> <WebLogicServer> <freerider1> <managedServer_1>
              <main> <<WLS Kernel>> <> <BEA-000360> <Server started in RUNNING mode>
              ####<Jun 3, 2003 5:27:03 PM EDT> <Info> <WebLogicServer> <freerider1> <managedServer_1>
              <ListenThread.Default> <<WLS Kernel>> <> <BEA-000213> <Adding address: 165.218.167.197
              to licensed client list>
              ####<Jun 3, 2003 5:29:10 PM EDT> <Info> <WebLogicServer> <freerider1> <managedServer_1>
              <ListenThread.Default> <<WLS Kernel>> <> <BEA-000213> <Adding address: 165.218.167.196
              to licensed client list>
              ####<Jun 3, 2003 5:29:10 PM EDT> <Info> <HTTP> <freerider1> <managedServer_1>
              <ExecuteThread: '12' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047>
              <[ServletContext(id=23107068,name=smc,context-path=/smc)] /*: init>
              ####<Jun 3, 2003 5:29:10 PM EDT> <Info> <HTTP> <freerider1> <managedServer_1>
              <ExecuteThread: '12' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047>
              <[ServletContext(id=23107068,name=smc,context-path=/smc)] /*: Using standard I/O>
              ####<Jun 3, 2003 5:29:23 PM EDT> <Error> <Kernel> <freerider1> <managedServer_1>
              <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-000802>
              <ExecuteRequest failed
              weblogic.utils.NestedError: Could not find secondary on remote server - with
              nested exception:
              [weblogic.cluster.replication.NotFoundException: Unable to find object 823670646633126749].
              weblogic.cluster.replication.NotFoundException: Unable to find object 823670646633126749
                   at weblogic.cluster.replication.ReplicationManager.getPrimary(ReplicationManager.java:867)
                   at weblogic.cluster.replication.ReplicationManager.updateSecondary(ReplicationManager.java:712)
                   at weblogic.servlet.internal.session.ReplicatedSessionData.syncSession(ReplicatedSessionData.java:486)
                   at weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSessionContext.java:176)
                   at weblogic.servlet.internal.ServletRequestImpl.syncSession(ServletRequestImpl.java:2440)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3633)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
              --------------- nested within: ------------------
              weblogic.utils.NestedError: Could not find secondary on remote server - with nested
              exception:
              [weblogic.cluster.replication.NotFoundException: Unable to find object 823670646633126749]
                   at weblogic.servlet.internal.session.ReplicatedSessionData.syncSession(ReplicatedSessionData.java:494)
                   at weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSessionContext.java:176)
                   at weblogic.servlet.internal.ServletRequestImpl.syncSession(ServletRequestImpl.java:2440)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3633)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
              Does anybody know this problem? Any help on this greatly appreciated.
              Thanks, Marcel
              

    Hello Rozi,
              I've got the same error that you.
              Have you find out what is causing it?
              Thank you.

  • Installing iTunes,,,message could not writte value key

    Tring to install iTunes,,,message ,,,,,could not write value key        Software\microsoft\windows\currentversion\explorer\Autoplayhandlers\handlers\iTunesburnCDonArrival
    need sufficient access to that key
    How can I get this program to install?

    Denn.
    Look here.
    https://support.apple.com/en-us/HT203460
    REO
    HP Expert Tester "Now testing HP Pavilion 15t i3-4030U Win8.1, 6GB RAM and 750GB HDD"
    Loaner Program”HP Split 13 x2 13r010dx i3-4012Y Win8.1, 4GB RAM and 500GB Hybrid HDD”
    Microsoft Registered Refurbisher
    Registered Microsoft Partner
    Apple Certified Macintosh Technician Certification in progress.

  • "could not verify connection key"

    Hi
    One of our websites recently moved servers. I have done
    everything i can think of in re-setting up the new connection.
    Enabled Contribute in DW. Changed my FTP settings in Contribute
    etc.
    I can connect no problem, in both DW and Contribute, but our
    client cannot. I have sent her all the new FTP details to change
    the settings manually. When i did this she was given no option to
    alter the folder name that the site sits in.
    So instead i sent her a new connection key. Now she gets the
    error message:
    contribute could not verify your connection key. a network
    connection to the server could not be established. please contact
    your administrator for assistance.
    Any ideas?
    Thanks

    Hi!,
    I fixed mine by creating a totally new Apple ID with a brand new e-mail and new password. DO NOT link it with the account that's not working.
    Worked for me,
    Hoped it works for you!
    All the best,
    Marcel.

  • Could Not Open Quicktime Key

    So I had to install iTunes 6 and we all know how well that goes. Well neither iTunes nor Quicktime worked at that point. I uninstalled and reinstalled iTunes 5. Now my Quicktime says it is expired. I unistalled iTunes/Quicktime again and am trying to install the Quicktime 7 standalone, and I'm getting this message:
    Error 1402.Could not open key: HKEYLOCALMACHINE\Software\Classes\QuickTime.QuickTime|CLSID. Verify that you have sufficient access to that ket or contact your support personnel.
    ***?

    Also after this message is skipped, it says Installation Complete. I open Quicktime and get this message:
    Your cop of QuickTime 7.0.2a63, QuickTime Player 7.0.2a63 has expired. Please visit blah blah to download and install a new version.
    What the heck is going on?

  • Generate sample PHP service from db could not set primary key

    Hi,
        Some information about my system:
    OS :Windows 7 64 bit
    Computer type: HP Pavilion dv6-3013cl laptop
    Eclipse 3.5+Flash Builder 4 plugin
    DB: MySQL 5.0 local server
    Web Server: Apache 2.2+PHP 5.2.14
    Zend Frame work 1.10.1 (installed by Flash Builder)
        I am trying to configure a PHP service in the Connect to Data/Service wizard. I clicked "click here to generate a sample" to generate a Sample PHP service. I selected Generate from database radio button and entered the db connection information in all fields. I am able to connect to my local database and select the table I want to create the service. But after I selected the primary key from the dropdown, the Ok button is still disabled and a warning note at the bottom of the screen still prompt for selecting the table's primary key. At this point, the log in eclipse metadata folder in the workspace has the following error:
    !ENTRY org.eclipse.ui 4 0 2010-09-13 09:05:23.565
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.setPrimaryKeyColumn(PHPService.java: 185)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog$4.widgetSe lected(MySQLConfigurationDialog.java:419)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    I figured this explains why the OK button is not enabled. I could trick the screen by clicking the Generate from template radio button and back to clicking the Generate from database button which will enable the OK button. I clicked OK, and a Security Information warning about ricks of generating the service php file popped up asking if I want to continue. I clicked OK and back to the generate sample PHP service screen. After this, the process entered an endless Ok-warning-OK-warning-OK loop and could never proceed to actually generating the service file. In the Eclipse log file, I see more Unhandled event loop exception:
    !ENTRY org.eclipse.ui 4 0 2010-09-13 11:11:30.482
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.setPrimaryKeyColumn(PHPService.java: 185)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog$4.widgetSe lected(MySQLConfigurationDialog.java:419)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    !ENTRY org.eclipse.ui 4 0 2010-09-13 11:12:07.460
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.fillUpModel(PHPService.java:221)
        at com.adobe.flexbuilder.services.PHPService.PHPService.createFlexService(PHPService.java:27 7)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog.okPressed( MySQLConfigurationDialog.java:948)
        at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    !ENTRY org.eclipse.ui 4 0 2010-09-13 11:14:34.534
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.setPrimaryKeyColumn(PHPService.java: 185)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog$4.widgetSe lected(MySQLConfigurationDialog.java:419)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    I was able to do this on my old windows xp (Media Center OS) laptop. I wonder if this problem has anything to do with the Windows 7's system permission security feature. I 've stuck for 2 days now. Can someone help?! Thanks so much!

    Thanks for reporting the bug.
    I have filed another bug on, FB not validating PHP installation before generating sample https://bugs.adobe.com/jira/browse/FB-27522 .
    https://bugs.adobe.com/jira/browse/FB-27522Please vote/comment for the issue.
    Thanks,
    Radhakrishna

  • Text Area Dialog Could not insert a new line?

    Hi,
    I've just downloaded a new Oracle SQL Developer (formerly known as project raptor) and have tested-drive this software. I found some dissappointed thing there:
    - I would like to insert a long string (several paragraphs) in the data grid editor directly and after I commit the connection, sqldeveloper stripped all my new line (\n)! Is this normal or I've done a mistake here? The datatype of my column is varchar2. I've also tried if the datatype is clob, but the result is the same.
    - I dream someday sqldeveloper's data grid editor can show calendar dialog if the column type is DATE just like sqldetective does.
    thanks for any suggestion
    regrads,
    fox

    - I would like to insert a long string (several
    paragraphs) in the data grid editor directly and
    after I commit the connection, sqldeveloper stripped
    all my new line (\n)! Is this normal or I've done a
    mistake here? The datatype of my column is varchar2.
    I've also tried if the datatype is clob, but the
    result is the same.Yes, that's a bug. The fix would come soon with the first patch release.
    - I dream someday sqldeveloper's data grid editor
    can show calendar dialog if the column type is DATE
    just like sqldetective does.Sure.

  • Could not find HW Key on 8.81 PL5

    Hello Expert,
    I am using 8.81 PL5,I have used COM Licence Bridge 2.0 for 8.81 in my Add-on.
    When I try to run Add-on from Server it works Fine for Following Code but it throws Exception for Client Machine.
    Dim HKEY As String = ""
    Dim LicInf As SBOLICENSELib.LicenseInfo = New SBOLICENSELib.LicenseInfo
    LicInf.GetHardwareKey(HKEY)
    Please help me out!!
    Regards,
    Bhavank

    Hai,
    just try this,
    From menu,  Help-->About SAP Business one , we can retrieve HW key.
    SBO_Application.ActivateMenuItem("257")
    oForm = SBO_Application.Forms.GetForm(999999, 1)
    oEdit = oForm.Items.Item("79").Specific
    Dim HKey As String = oEdit.Value
    Hope this helps you.
    Thanks & Regards,
    Parvatha Solai.N

Maybe you are looking for