Unable to create new rows

I recently switched from iPlanet webserver to Oracle 9iAS 9.0.2. With the migration I changed my code to use sessions.xml to read the datasource value. Now I can read and update existing data but cannot insert new rows. Below is the snippet of code I am using.
public void init() {
Session session = SessionManager.getManager().getSession("MODEL");
Project project = session.getProject();
AuditListener.addListeners(project);
DatabaseLogin login = project.getLogin();
login.setUsesStreamsForBinding(true);
project.setLogin(login);
SessionListener.addListener(session);
((DatabaseSession)session).login(); //using this to fire preLogin event
public static Session getSession() {
Session session = SessionManager.getManager().getSession("MODEL");
((DatabaseSession)session).login(); //doesn't work with or without this.
return session;
The error I get is
EXCEPTION [TOPLINK-4005] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: DatabaseAccessor not connected.
     at oracle.toplink.exceptions.DatabaseException.databaseAccessorNotConnected(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.incrementCallCount(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelect(Unknown Source)
     at oracle.toplink.queryframework.DataReadQuery.executeNonCursor(Unknown Source)
     at oracle.toplink.queryframework.DataReadQuery.execute(Unknown Source)
     at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
     at oracle.toplink.queryframework.ReadQuery.execute(Unknown Source)
     at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.internal.databaseaccess.OraclePlatform.nativeGetNextBatchOfSequenceNumbersNamed(Unknown Source)
     at oracle.toplink.internal.databaseaccess.OraclePlatform.nativeGetSequenceNumberNamed(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabasePlatform.getSequenceNumberNamed(Unknown Source)
     at oracle.toplink.publicinterface.Session.getNextSequenceNumberValue(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.getNextSequenceNumberValue(Unknown Source)
     at oracle.toplink.internal.descriptors.ObjectBuilder.assignSequenceNumber(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.assignSequenceNumbers(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.collectAndPrepareObjectsForCommit(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.commit(Unknown Source)
Any help would be highly appreciated.
Thanks,
Rajiv

I recently switched from iPlanet webserver to Oracle 9iAS 9.0.2. With the migration I changed my code to use sessions.xml to read the datasource value. Now I can read and update existing data but cannot insert new rows. Below is the snippet of code I am using.
public void init() {
Session session = SessionManager.getManager().getSession("MODEL");
Project project = session.getProject();
AuditListener.addListeners(project);
DatabaseLogin login = project.getLogin();
login.setUsesStreamsForBinding(true);
project.setLogin(login);
SessionListener.addListener(session);
((DatabaseSession)session).login(); //using this to fire preLogin event
public static Session getSession() {
Session session = SessionManager.getManager().getSession("MODEL");
((DatabaseSession)session).login(); //doesn't work with or without this.
return session;
}The SessionManager.getSession(java.lang.String) method returns a Session which is already logged in. If you want it to return a Session that you will log in yourself, then you should use an alternate version of getSession(XMLLoader,String,ClassLoader,boolean,boolean). The first boolean argument should be set to false to indicate that the Session should be return without having been logged in.
The login alterations you're making above are being done to a Session which is already logged in.
The Exception below is not sufficient to diagnose the problem. After commiting your UnitOfWork, TopLink has determined that some Objects need to be inserted and that these Objects need to be sequenced. The query which is fetching the next sequence number is throwing this Exception (because TopLink Database Connections seem not to be initialized correctly)
However, the reason the DatabaseAccessor is not connected should be contained in an earlier Exception. You may still be able to read because the ReadPool initialized okay. But when it comes time to fetch a new sequence number, the Connection responsible for that must have not initialized properly.
JIM
The error I get is
EXCEPTION [TOPLINK-4005] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: DatabaseAccessor not connected.
     at oracle.toplink.exceptions.DatabaseException.databaseAccessorNotConnected(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.incrementCallCount(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelect(Unknown Source)
     at oracle.toplink.queryframework.DataReadQuery.executeNonCursor(Unknown Source)
     at oracle.toplink.queryframework.DataReadQuery.execute(Unknown Source)
     at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
     at oracle.toplink.queryframework.ReadQuery.execute(Unknown Source)
     at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.internal.databaseaccess.OraclePlatform.nativeGetNextBatchOfSequenceNumbersNamed(Unknown Source)
     at oracle.toplink.internal.databaseaccess.OraclePlatform.nativeGetSequenceNumberNamed(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabasePlatform.getSequenceNumberNamed(Unknown Source)
     at oracle.toplink.publicinterface.Session.getNextSequenceNumberValue(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.getNextSequenceNumberValue(Unknown Source)
     at oracle.toplink.internal.descriptors.ObjectBuilder.assignSequenceNumber(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.assignSequenceNumbers(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.collectAndPrepareObjectsForCommit(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.commit(Unknown Source)
Any help would be highly appreciated.
Thanks,
Rajiv

Similar Messages

  • Unable to create new rows in master detail

    Hi, I am new to ADF
    I am using Jdeveloper 11.1.1.6, I have two tables customer and contacts, customerId is a foriegnKey in contacts. when customer is deleted all the contacts need to be deleted.
    I have created an association (1 to * customer to contacts) between customerEO & contactsEO (checked Composite association, implement cascade delete option), and a view link (1 to * customerVO to contactsVO).
    I am testing the viewlink through AM, not using JSF
    when i am trying to create new row in details(contacts) table, the customer id is populating in details table.
    when i am trying to commit to database (Details table) i am getting the following error
    java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (CONTACT_CUSTOMERID_FK) violated - parent key not found
    ORA-06512: at line 1
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
         at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9417)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6893)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
    Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (CONTACT_CUSTOMERID_FK) violated - parent key not found
    ORA-06512: at line 1
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
         at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
    Can you please help me how to solve this issue
    Thanks & Regards
    Ani
    Edited by: 987691 on Feb 12, 2013 2:50 PM
    Edited by: 987691 on Feb 12, 2013 2:54 PM

    Here is My CustomerEO.xml file_
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
    <!---->
    <Entity
    xmlns="http://xmlns.oracle.com/bc4j"
    Name="CustomerEO"
    Version="11.1.1.61.92"
    InheritPersonalization="true"
    DBObjectType="table"
    DBObjectName="XX_CUSTOMER"
    AliasName="CustomerEO"
    BindingStyle="OracleName"
    UseGlueCode="false"
    xmlns:validation="http://xmlns.oracle.com/adfm/validation"
    RowClass="customer.model.CustomerEOImpl">
    <DesignTime>
    <AttrArray Name="_publishEvents"/>
    <Attr Name="_codeGenFlag2" Value="Init|Access"/>
    <Attr Name="_isCodegen" Value="true"/>
    </DesignTime>
    <Attribute
    Name="Customerid"
    ColumnName="CUSTOMERID"
    SQLType="NUMERIC"
    Type="oracle.jbo.domain.DBSequence"
    ColumnType="NUMBER"
    TableName="XX_CUSTOMER"
    PrimaryKey="true"
    IsUpdateable="while_insert"
    DefaultValue="@0"
    Domain="oracle.jbo.domain.DBSequence"
    RetrievedOnInsert="true">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22"/>
    </DesignTime>
    </Attribute>
    <Attribute
    Name="Firstname"
    IsNotNull="true"
    Precision="50"
    ColumnName="FIRSTNAME"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Firstname_Rule_0"
    ResId="customer.model.CustomerEO.Firstname_Rule_0"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:PreDefinedValidationBean
    Name="Firstname_Rule_1"
    ResId="customer.model.CustomerEO.Firstname_Rule_1"
    ValName="Precision : (50)"
    Subtype="PRECISION_SCALE"/>
    <validation:RegExpValidationBean
    Name="Firstname_Rule_2"
    OnAttribute="Firstname"
    Pattern="^[a-zA-Z(\s)]*$"
    Inverse="false"
    ResId="customer.model.CustomerEO.Firstname_Rule_2"/>
    </Attribute>
    <Attribute
    Name="Middlename"
    Precision="10"
    ColumnName="MIDDLENAME"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="10"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Middlename_Rule_0"
    ResId="customer.model.CustomerEO.Middlename_Rule_0"
    ValName="Precision : (10)"
    Subtype="PRECISION_SCALE"/>
    <validation:RegExpValidationBean
    Name="Middlename_Rule_1"
    ResId="customer.model.CustomerEO.Middlename_Rule_1"
    OnAttribute="Middlename"
    Pattern="^[a-zA-Z(\s)]*$"
    Inverse="false"/>
    </Attribute>
    <Attribute
    Name="Lastname"
    IsNotNull="true"
    Precision="50"
    ColumnName="LASTNAME"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Lastname_Rule_0"
    ResId="customer.model.CustomerEO.Lastname_Rule_0"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:PreDefinedValidationBean
    Name="Lastname_Rule_1"
    ResId="customer.model.CustomerEO.Lastname_Rule_1"
    ValName="Precision : (50)"
    Subtype="PRECISION_SCALE"/>
    <validation:RegExpValidationBean
    Name="Lastname_Rule_2"
    ResId="customer.model.CustomerEO.Lastname_Rule_2"
    OnAttribute="Lastname"
    Pattern="^[a-zA-Z(\s)]*$"
    Inverse="false"/>
    </Attribute>
    <Attribute
    Name="Dob"
    IsNotNull="true"
    ColumnName="DOB"
    SQLType="TIMESTAMP"
    Type="oracle.jbo.domain.Date"
    ColumnType="DATE"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="7"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Dob_Rule_1"
    ResId="customer.model.CustomerEO.Dob_Rule_1"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:MethodValidationBean
    Name="Dob_Rule_0"
    ResId="customer.model.CustomerEO.Dob_Rule_2"
    MethodName="validateDob"/>
    </Attribute>
    <Attribute
    Name="Address1"
    IsNotNull="true"
    Precision="100"
    ColumnName="ADDRESS1"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Address1_Rule_0"
    ResId="customer.model.CustomerEO.Address1_Rule_0"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:PreDefinedValidationBean
    Name="Address1_Rule_1"
    ResId="customer.model.CustomerEO.Address1_Rule_1"
    ValName="Precision : (100)"
    Subtype="PRECISION_SCALE"/>
    <validation:RegExpValidationBean
    Name="Address1_Rule_2"
    ResId="customer.model.CustomerEO.Address1_Rule_2"
    OnAttribute="Address1"
    Pattern="^[a-z0-9A-Z(\s)]*$"
    Inverse="false"/>
    </Attribute>
    <Attribute
    Name="Address2"
    Precision="100"
    ColumnName="ADDRESS2"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Address2_Rule_0"
    ResId="customer.model.CustomerEO.Address2_Rule_0"
    ValName="Precision : (100)"
    Subtype="PRECISION_SCALE"/>
    <validation:RegExpValidationBean
    Name="Address2_Rule_1"
    ResId="customer.model.CustomerEO.Address2_Rule_1"
    OnAttribute="Address2"
    Pattern="^[a-z0-9A-Z(\s)]*$"
    Inverse="false"/>
    </Attribute>
    <Attribute
    Name="City"
    IsNotNull="true"
    Precision="30"
    ColumnName="CITY"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="City_Rule_0"
    ResId="customer.model.CustomerEO.City_Rule_0"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:PreDefinedValidationBean
    Name="City_Rule_1"
    ResId="customer.model.CustomerEO.City_Rule_1"
    ValName="Precision : (30)"
    Subtype="PRECISION_SCALE"/>
    <validation:RegExpValidationBean
    Name="City_Rule_2"
    ResId="customer.model.CustomerEO.City_Rule_2"
    OnAttribute="City"
    Pattern="^[a-zA-Z(\s)]*$"
    Inverse="false"/>
    </Attribute>
    <Attribute
    Name="Country"
    IsNotNull="true"
    Precision="30"
    ColumnName="COUNTRY"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Country_Rule_0"
    ResId="customer.model.CustomerEO.Country_Rule_0"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:PreDefinedValidationBean
    Name="Country_Rule_1"
    ResId="customer.model.CustomerEO.Country_Rule_1"
    ValName="Precision : (30)"
    Subtype="PRECISION_SCALE"/>
    </Attribute>
    <Attribute
    Name="State"
    IsNotNull="true"
    Precision="30"
    ColumnName="STATE"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="State_Rule_0"
    ResId="customer.model.CustomerEO.State_Rule_0"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:PreDefinedValidationBean
    Name="State_Rule_1"
    ResId="customer.model.CustomerEO.State_Rule_1"
    ValName="Precision : (30)"
    Subtype="PRECISION_SCALE"/>
    </Attribute>
    <Attribute
    Name="Gender"
    IsNotNull="true"
    Precision="5"
    ColumnName="GENDER"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="5"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Gender_Rule_0"
    ResId="customer.model.CustomerEO.Gender_Rule_0"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:PreDefinedValidationBean
    Name="Gender_Rule_1"
    ResId="customer.model.CustomerEO.Gender_Rule_1"
    ValName="Precision : (5)"
    Subtype="PRECISION_SCALE"/>
    </Attribute>
    <Attribute
    Name="Primaryphone"
    IsNotNull="true"
    Precision="12"
    ColumnName="PRIMARYPHONE"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER"
    DefaultValue="###-###-####">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="12"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Primaryphone_Rule_0"
    ResId="customer.model.CustomerEO.Primaryphone_Rule_0"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:PreDefinedValidationBean
    Name="Primaryphone_Rule_1"
    ResId="customer.model.CustomerEO.Primaryphone_Rule_1"
    ValName="Precision : (12)"
    Subtype="PRECISION_SCALE"/>
    <validation:RegExpValidationBean
    Name="Primaryphone_Rule_2"
    ResId="customer.model.CustomerEO.Primaryphone_Rule_2"
    OnAttribute="Primaryphone"
    Pattern="[0-9]{3}-?[0-9]{3}-?[0-9]{4}"
    Inverse="false"/>
    </Attribute>
    <Attribute
    Name="Secondaryphone"
    Precision="12"
    ColumnName="SECONDARYPHONE"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER"
    DefaultValue="###-###-####">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="12"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Secondaryphone_Rule_0"
    ResId="customer.model.CustomerEO.Secondaryphone_Rule_0"
    ValName="Precision : (12)"
    Subtype="PRECISION_SCALE"/>
    <validation:RegExpValidationBean
    Name="Secondaryphone_Rule_1"
    ResId="customer.model.CustomerEO.Secondaryphone_Rule_1"
    OnAttribute="Secondaryphone"
    Pattern="[0-9]{3}-?[0-9]{3}-?[0-9]{4}"
    Inverse="false"/>
    </Attribute>
    <Attribute
    Name="Email"
    IsNotNull="true"
    Precision="100"
    ColumnName="EMAIL"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Email_Rule_0"
    ResId="customer.model.CustomerEO.Email_Rule_0"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:PreDefinedValidationBean
    Name="Email_Rule_1"
    ResId="customer.model.CustomerEO.Email_Rule_1"
    ValName="Precision : (100)"
    Subtype="PRECISION_SCALE"/>
    <validation:RegExpValidationBean
    Name="Email_Rule_2"
    ResId="customer.model.CustomerEO.Email_Rule_2"
    OnAttribute="Email"
    Pattern="[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}"
    Inverse="false"/>
    </Attribute>
    <Attribute
    Name="Fax"
    Precision="12"
    ColumnName="FAX"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER"
    DefaultValue="###-###-####">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="12"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Fax_Rule_0"
    ResId="customer.model.CustomerEO.Fax_Rule_0"
    ValName="Precision : (12)"
    Subtype="PRECISION_SCALE"/>
    <validation:RegExpValidationBean
    Name="Fax_Rule_1"
    ResId="customer.model.CustomerEO.Fax_Rule_1"
    OnAttribute="Fax"
    Pattern="[0-9]{3}-?[0-9]{3}-?[0-9]{4}"
    Inverse="false"/>
    </Attribute>
    <Attribute
    Name="Languages"
    IsNotNull="true"
    Precision="50"
    ColumnName="LANGUAGES"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="XX_CUSTOMER">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <validation:PreDefinedValidationBean
    Name="Languages_Rule_0"
    ResId="customer.model.CustomerEO.Languages_Rule_0"
    ValName="Mandatory"
    Subtype="MANDATORY"/>
    <validation:PreDefinedValidationBean
    Name="Languages_Rule_1"
    ResId="customer.model.CustomerEO.Languages_Rule_1"
    ValName="Precision : (50)"
    Subtype="PRECISION_SCALE"/>
    </Attribute>
    <AccessorAttribute
    Name="ContactsEO"
    Association="customer.model.CustomerEOtoContactsEO"
    AssociationEnd="customer.model.CustomerEOtoContactsEO.ContactsEO"
    AssociationOtherEnd="customer.model.CustomerEOtoContactsEO.CustomerEO"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false"/>
    <Key
    Name="SysC007004">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007004"/>
    <Attr Name="_checkCondition" Value='"CUSTOMERID" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes"/>
    </Key>
    <Key
    Name="SysC007005">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007005"/>
    <Attr Name="_checkCondition" Value='"FIRSTNAME" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.Firstname"/>
    </AttrArray>
    </Key>
    <Key
    Name="SysC007006">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007006"/>
    <Attr Name="_checkCondition" Value='"LASTNAME" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.Lastname"/>
    </AttrArray>
    </Key>
    <Key
    Name="SysC007007">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007007"/>
    <Attr Name="_checkCondition" Value='"DOB" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.Dob"/>
    </AttrArray>
    </Key>
    <Key
    Name="SysC007008">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007008"/>
    <Attr Name="_checkCondition" Value='"ADDRESS1" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.Address1"/>
    </AttrArray>
    </Key>
    <Key
    Name="SysC007009">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007009"/>
    <Attr Name="_checkCondition" Value='"CITY" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.City"/>
    </AttrArray>
    </Key>
    <Key
    Name="SysC007010">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007010"/>
    <Attr Name="_checkCondition" Value='"STATE" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.State"/>
    </AttrArray>
    </Key>
    <Key
    Name="SysC007011">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007011"/>
    <Attr Name="_checkCondition" Value='"COUNTRY" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.Country"/>
    </AttrArray>
    </Key>
    <Key
    Name="SysC007012">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007012"/>
    <Attr Name="_checkCondition" Value='"GENDER" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.Gender"/>
    </AttrArray>
    </Key>
    <Key
    Name="SysC007013">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007013"/>
    <Attr Name="_checkCondition" Value='"PRIMARYPHONE" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.Primaryphone"/>
    </AttrArray>
    </Key>
    <Key
    Name="SysC007014">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007014"/>
    <Attr Name="_checkCondition" Value='"EMAIL" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.Email"/>
    </AttrArray>
    </Key>
    <Key
    Name="SysC007015">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C007015"/>
    <Attr Name="_checkCondition" Value='"LANGUAGES" IS NOT NULL'/>
    <Attr Name="_isCheck" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.Languages"/>
    </AttrArray>
    </Key>
    <Key
    Name="XxCustomerdetailsPk"
    PrimaryKey="true">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="XX_CUSTOMERDETAILS_PK"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="customer.model.CustomerEO.Customerid"/>
    </AttrArray>
    </Key>
    <ResourceBundle>
    <PropertiesBundle
    PropertiesFile="customer.model.CustomerModelBundle"/>
    </ResourceBundle>
    </Entity>

  • Unable to create new events in iCal

    I updated my iPhone 4 to iOS7, and now when I try to create a new event in iCal, nothing happens. I am able to tap the "+" and enter the event information, but when I tap "Done", no new event appears in the calendar.
    If I, instead, create the event in the Calendar on my PC, the phone syncs with Outlook, and the event appears on the phone's iCal app.
    Why am I suddenly unable to create new events on my phone in iOS7, and how can I fix this issue?

    Thanks! I've noticed the phone has been a bit "clunky" since the update too. Did you experience the same thing & did the hard restart help?

  • Unable to create new windows live id......the mess...

    i m unable to create new windows live id.
    the message have been shown that"your phone have too many windows live id,cant create new one..contact your senrvice provider" 
    i stolen my nokia music id password...so what can i do???????????????????

    mallar wrote:
    i m unable to create new windows live id.
    the message have been shown that"your phone have too many windows live id,cant create new one..contact your senrvice provider" 
    i stolen my nokia music id password...so what can i do???????????????????
    why would you steal your music id password? ..nokia id / account is different from windows live id btw.
    maybe you already have a windows live account, thats why its showing the that problem. check settings > email+accounts > you should ideally have only one(1) 'microsoft account' in there. if you want to use another one, you might want to just 'change' the existing one with your new credentials.

  • Warning: Unable to create new entry, caught: "javax.ejb.CreateException", message is:

    Warning: Unable to create new entry, caught: "javax.ejb.CreateException", message is: "Error creating EntityBean: Io exception: The Network Adapter could not establish the connection".
    while executing JSP:<%
    * add.jsp
    * Adds a new entry through EmployeeBean. This is a JSP that serves 2
    * functions. First of all, when called with no arguments, it will display a
    * table with a few input fields. The user should enter empNo, empName and
    * salary of the new record to be added. When she submits this
    * information, it is sent to this page again. If it is successful, then the
    * user can continue adding new entries. If it is not, then the old data will
    * be displayed, and a warning message will be shown to her.
    %>
    <%@ page import="com.webstore.*,java.io.*,java.util.*,javax.naming.*" %>
    <%
    // Make sure this page will not be cached by the browser
    response.addHeader("Pragma", "no-cache");
    response.addHeader("Cache-Control", "no-store");
    // We will send error messages to System.err, for verbosity. In a real
    // application you will probably not want this.
    PrintStream errorStream = System.err;
    // If we find any fatal error, we will store it in this variable.
    String error = null;
    // In a moment we will check if all columns were passed to this page
    String param_1 = "";
    String param_2 = "";
    String param_3 = "";
    long dptNo = 0;
    String dptName = null;
    // This variable indicates what function of this page is currently used. If
    // this page is called with parameters, then a new entry should be
    // added. In that case this variable is true.
    boolean submitting = false;
    // We will first attempt to get the reference to EmployeeHome from the
    // session. The "list.jsp" page sets this attribute in the session.
    DepartmentHome home = (DepartmentHome) session.getAttribute("DepartmentHome");
    if (home == null) {
    error = "No previous connection to DepartmentBean.";
    } else {
    // Attempt to get all 3 parameters from the session
    param_1 = request.getParameter("DPTNO");
    param_2 = request.getParameter("DPTNAME");
    // If all 3 parameters are specified, then this is probably a submission by
    // this very page. Note that if the user left one of the fields blank, then
    // the corresponding parameter will be "", not null.
    if (param_1 != null && param_2 != null) {
    param_1 = param_1.trim();
    param_2 = param_2.trim();
    submitting = true;
    // In the following variable we will store a (non-fatal) warning message. This
    // message will be displayed in the page, but so will the submission form.
    String warning = null;
    if (submitting) {
    warning = "";
    // If there is an empty param_1, param_2 and/or param_3, then this will be noted
    // in the warning message.
    if ("".equals(param_1)) {
    warning = "Null param_1 specified. ";
    if ("".equals(param_2)) {
    warning += "Null param_2 specified. ";
    // If we don't have a warning message yet, then we will attempt to create
    // a new record.
    if ("".equals(warning)) {
    try {
    dptNo = (long)Long.parseLong(param_1);
    dptName = new String(param_2);
    Department rec = (Department) home.create(dptNo);
    rec.setDptname(dptName);
    // empty columns after insert for effect
    param_1 = "";
    param_2 = "";
    // If we got this far, then there was no problem detected.
    warning = null;
    } catch (Exception e) {
    // Set the warning variable to indicate a problem.
    warning = "Unable to create new entry, caught: \"" +
    e.getClass().getName() + "\", message is: \"" +
    e.getMessage() + "\".";
    // Decide what the title will be.
    String title;
    if (error != null) {
    title = "Error";
    } else {
    title = "com.webstore | Add entry";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <HTML>
    <HEAD>
    <TITLE><%= title %></TITLE>
    </HEAD>
    <BODY bgcolor="#FFFFFF">
    <H1><%= title %></H1>
    <%
    // If there was a fatal error, then display the error message
    if (error != null) {
    %>
    <P><BLOCKQUOTE><%= error %></BLOCKQUOTE>
    <%
    // Otherwise display a table with fields to be filled in.
    } else {
    // If there was a warning, then display it.
    if (warning != null) {
    %>
    <TABLE border="1" bgcolor="#FF2222">
    <TR><TD><FONT color="#FFFFFF"><STRONG>Warning: <%= warning %></STRONG></FONT></TD></TR>
    </TABLE>
    <%
    } /* if */
    // Display the table with fields. There are two columns. The left column
    // contains the names of the fields, while the right column contains the
    // fields.
    %>
    <FORM action="dptadd.jsp" method="GET">
    <P><TABLE border="1">
    <TR>
    <TD><STRONG>DptNo:</STRONG></TD>
    <TD><INPUT type="text" name="DPTNO" value="<%= param_1 %>"></INPUT></TD>
    </TR>
    <TR>
    <TD><STRONG>DptName:</STRONG></TD>
    <TD><INPUT type="text" name="DPTNAME" value="<%= param_2 %>"></INPUT></TD>
    </TR>
    <TR>
    <TD colspan="3" align="center"><INPUT type="submit" value="Add this entry"></INPUT></TD>
    </TR>
    </TABLE>
    </FORM>
    <%
    } /* else */
    %>
    <P><TABLE border="1">
    <TR><TD>Back to list</TD></TR>
    </TABLE>
    </BODY>
    </HTML>
    Please guide me..

    Rajive,
    This is the same problem as in your other post:
    sql is running very slow
    So please refer to my answer there.
    Good Luck,
    Avi.

  • Runtime error and unable to create new web application

    Hi
    when i create new web application i faced this error Runtime error and unable to create new web application.
    in this farm we have
    2 wfe servers
    2 application servers.
    adil

    Adil,
    There could be many reason like IIS issue, Space issue, Permission issue, SQL issue which is not possible us to guess rather
    you need to jump in the SharePoint log(Program Files\Common files\Microsoft Shared\Web Server Extensions\14\LOGS) and find out the specific error log its throwing after which trouble shoot can be start.
    You can refer few similar threads here -
    Link
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Problem in creating new row

    Hi,
    I am facing a strange problem. i have created many new rows and inserted the data, but now i am facing a strange problem.
    This is my requirement.
    I have table with table action button as create.
    when i click create it is not at all creating new row for the view object but instead it will take the row at the top of the table and replace that line with new data.
    Below is the code :
    In CO
    In PR
    if (!pageContext.isBackNavigationFired(false))
    TransactionUnitHelper.startTransactionUnit(pageContext, "RVSchematicAttributeCreateTxn");
    if (!pageContext.isFormSubmission())
    System.out.println("control entered create block");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    System.out.println("before calling ");
    am.invokeMethod("createRVSchematicAttribute",null);
    System.out.println("after calling ");
    else
    if (!TransactionUnitHelper.isTransactionUnitInProgress(pageContext, "RVSchematicAttributeCreateTxn", true))
    OADialogPage dialogPage = new OADialogPage(NAVIGATION_ERROR);
    pageContext.redirectToDialogPage(dialogPage);
    IN PFR
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if(pageContext.getParameter("Apply")!=null)
    System.out.println("apply button is clicked");
    OAViewObject vo = (OAViewObject)am.findViewObject("xxczVAGCSSchematicAttributeVO1");
    String schematicId = (String)vo.getCurrentRow().getAttribute("SchematicId");
    String msg= "SchematicId "+schematicId+"has been added";
    am.invokeMethod("apply");
    System.out.println("returned back to create CO");
    OAException confirmMessage = new OAException(msg,OAException.CONFIRMATION);
    pageContext.putDialogMessage(confirmMessage);
    pageContext.forwardImmediately("OA.jsp?page=/va/oracle/apps/xxcz/gcs/maintenance/webui/xxczVAGCSRVSchematicAttributeResultsPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    in AM
    public void createRVSchematicAttribute()
    System.out.println("entered createRVSchematicAttribute ");
    xxczVAGCSSchematicAttributeVOImpl vo = this.getxxczVAGCSSchematicAttributeVO1();
    // OAViewObject vo = (OAViewObject)this.getxxczVAGCSSchematicAttributeVO1();
    vo.setMaxFetchSize(0);
    vo.clearCache();
    if (!vo.isPreparedForExecution())
    vo.executeQuery();
    /* Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    System.out.println("Row.STATUS_INITIALIZED");*/
    int rowCount = vo.getRowCount();
    Row row = vo.createRow();
    vo.insertRowAtRangeIndex(rowCount, row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    Please help me i don't know where i am going wrong. i have checked so many times but didn't find any bug.
    -Mithun

    Hi Zafar,
    Ok i will explain my problem with an example.
    I have employee table with following fields.
    Empname
    Empnumber
    Salary
    Table data
    Empname EmpNumber Salary
    Jack 10 1000
    sam 20 2000
    joe 30 3000
    Above is the table structure for which i need to add another row
    I have two page one results page and another create page
    In Results page i will show the above table structure with table action button "Create" in order to insert new record to table.
    When i click Create button it will navigate to create page
    In Create page i will get the below data
    Empname : Jack
    Empnumber :10
    Salary :1000
    Instead of
    Empname :
    Empnumber :
    Salary :
    suppose now if i change the jack to jack1 , 10 to 11 , or 1000 to 10001 and click submit
    Now the result page will show
    Empname EmpNumber Salary
    Jack1 11 1001
    sam 20 2000
    joe 30 3000
    No fourth row is created it is actually behaving like update functionality and updating the top most row.
    -Mithun

  • FTP error-Unable to create new pooled resource: com.sap.aii.adapter.file.ft

    Hi,
    We have a scenario where XI receives a Idoc and based on the contents of Idoc, It will generate 5 different files and send it to the external FTP server.We configured 5 receiver channels for these 5 files.
    When this interface runs, most of the files will be delivered but some of the messages will be errored out.
    The receiver channel has shown the following error-
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: com.sap.aii.adapter.file.ftp.FTPEx
    I tried to resend them by temperorily stopping other channels to reduce connections to this FTP server.But these messages again resulted with same error.
    Can someone suggest what might be the cause for this error.
    Thanks in advance.

    Hi ,
    As I am not sure about the problem so U just try all of the option I am writing below. It may help u as these are the probable solutions for this problem.
    1.perform Full CPA cache refresh using PIDIRUSER
    2.The problem seems to be in establishing the connection with the File server . This could be due to
    a. Wrong user name or password in receiver adapter .
    b. Firewall connection are not open
    actually you are saying that some files are being delivered so all the file has to be deliverd on same server on diffrent directory or all files are going on diffrent server at present I am assuming that all files are going on diffrent server so please check UID & PWD properly.if they are on same server but diff. directory it can be easily done using one Communication channel only.
    3. Finally please check the errorneous communication channel .
    to check your communication channels are working fine or not you can check in channel monitoring in PI7.0, adapter monitoring in Xi3.0.
    if you are on PI7.0, goto RWBCache monitoring select AE and cilck disply-select the date todays--check everything is greent here
    4.Please check your maximal connection pool .
    Regards,
    Saurabh

  • File Adapter - FTP - Unable to Create new pooled resource

    Hi Friends,
    I am getting the following error while using file adapter with FTP protocol...
    Attempt to process file failed with Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: FTPEx: PASS command failed
    Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: FTPEx: PASS command failed
    Error Exception caught by adapter framework: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: FTPEx: PASS command failed
    Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: FTPEx: PASS command failed.
    Can someone help me to solve this probelm..
    Regards,
    Shyam.

    Hi,
    Try to check the directory you have specified in the CC and also check whether you are able to connect to the FTP server with those login credential and access the directory specified.
    Also let me know whether it is working fine for other scenario's or not.
    Regards,
    Nithiyanandam

  • Java.lang.OutOfMemoryError: unable to create new native thread on Win2000

    Dear all,
    I install a java server (SAP J2EE) on the windows machine and run into the following problem: the total number of threads cannot exceed 1200 (as i see this in the task manager)
    After it does reach this number no other tasks can be started. Thereafter i get java.lang.OutOfMemoryError: unable to create new native thread error .
    However the other machine where the same distribution of Win2000 Server is installed can easily coupe with more than 2500 theads. The same is true when the safe mode on the first machine is on: I can generate more than 1200 threads. So it seems the problem has something to do with Windows itself.
    I am really puzzled here, would really appreciate any help.
    Thanks in advance,
    Dimitry
    Surkov Dimitry
    [email protected]
    +49.1632.492618

    well, i do not supply any options when i start jvm, but it is not the course:
    it also happens with c programs. however in the safe mode it works. both for c and for java program.
    so it must be either some software (however memory is ok) or ...? i am lost. In some Unix system you can set the total number of threads allowed as an option in the kernal. But i guess this is not the case with windows.
    Thanks a lot for your reply,
    dimitry

  • Java.lang.OutOfMemoryError: unable to create new native thread

    Hi All,
    I have installed weblogic server 8 sp4 in production environment . I am facing problems with JVM issues .
    JVM is crashing very frequently with the following errro :
    ####<Jun 18, 2009 10:58:22 AM IST> <Info> <Common> <IMM90K-21> <SalesCom> <ExecuteThread: '24' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-000628> <Created "1" resources for pool "PIConnectionPool", out of which "1" are available and "0" are unavailable.>
    ####<Jun 18, 2009 11:00:09 AM IST> <Info> <EJB> <IMM90K-21> <SalesCom> <ExecuteThread: '23' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-010051> <EJB Exception occurred during invocation from home: payoutCheck.ejb.payoutCheck_s6v3so_HomeImpl@121a735 threw exception: java.lang.OutOfMemoryError: unable to create new native thread
    java.lang.OutOfMemoryError: unable to create new native thread
         at java.lang.Thread.start(Native Method)
         at payoutCheck.classes.MyThread2.MyThreadv(PayoutCheckBOImpl.java:249)
         at payoutCheck.classes.PayoutCheckBOImpl.genSP(PayoutCheckBOImpl.java:184)
         at payoutCheck.ejb.PayoutCheckSLSB.genSP(PayoutCheckSLSB.java:191)
         at payoutCheck.ejb.payoutCheck_s6v3so_EOImpl.genSP(payoutCheck_s6v3so_EOImpl.java:315)
         at payoutCheck.ejb.payoutCheck_s6v3so_EOImpl_CBV.genSP(Unknown Source)
         at payoutCheck.deligate.PayoutCheckBD.genSP(PayoutCheckBD.java:226)
         at ui.action.SearchAction.callFilter(SearchAction.java:378)
         at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:220)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    The above mentioned is coming several times , anybody please help out to get rid of this issue.
    Thanks in advance ,
    Krikar.

    This only tells you that the JVM is running out of heap space. It doesn't tell you what is causing the problem. You likely have a memory leak, but you could also try increasing the max heap size of the JVM (-Xmx command line option). It would help to watch the % mem in use statistic, but only immediately after a garbage collection cycle (you can force a GC from the admin console). If the % mem in use after the GC is increasing over time, then that likely confirms you have a memory leak. Note that looking at that statistic during the server startup probably is irrelevant. You'd need to wait until the server finishes starting up, and likely processed a few messages (to load static data).
    If you get to the point of confirming that you have a memory leak, that requires doing detailed analysis with a Java profiler (JProfiler, JProbe, YourKit, etc.) to track down the source of the leak.

  • Help! Unable to create new native thread

    Ok I see this problem all over the web but most of the posts are many years old and still leave me a little confused.  Often at random times on the same tags like CFLDAP I get the error "Unable to create new native thread".  Then a few minutes later the same tag on the same page works just fine.
    I have 4GB of memory in this box with 1400 MB set as the maximum Java heap size by the way.
    Here are my arguments from the jvm.config file.
    # Arguments to VM
    java.args=-server  -Xmx1400m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{appli cation.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application. home}/../wwwroot/WEB-INF/cfform/jars,"C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\InterWeb-Prod\\includes\\classes"
    Here is a typical error that comes through.
    struct     
    Browser     Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4    
    DateTime    {ts '2010-06-23 10:07:44'}  
    Diagnostics unable to create new native thread null <br>The error occurred on line 122.
    GeneratedContent      
    HTTPReferer http://--------------------/index.cfm?FuseAction=HR.main    
    Mailto      interweb@--------------------- 
    Message     unable to create new native thread      
    QueryString fuseaction=ManagedLists.MailSubscriptions     
    RemoteAddress     192.168.250.124
    RootCause   struct    
    Message     unable to create new native thread      
    StackTrace          java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:597) at com.sun.jndi.ldap.Connection.<init>(Connection.java:208) at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:112) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2504) at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:263) at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:76) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.<init>(InitialContext.java:197) at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82) at coldfusion.tagext.net.LdapTag.do_ActionQuery(LdapTag.java:839) at coldfusion.tagext.net.LdapTag.doStartTag(LdapTag.java:616) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661) at cfadfunctions2ecfm1473603830$funcADLOOKUPUSERNAME.runFunction(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\includes\adfunctions.cfm:122) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471) at cfadfunctions2ecfm1473603830$funcADLOOKUPMULTIPLEUSERNAMES.runFunction(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\includes\adfunctions.cfm:54) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471) at cfdsp_managedlists2ecfm55598920.runPage(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\hr\managedlists\dsp_managedlists.cfm:232) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661) at cffbx_switch2ecfm2121232114.runPage(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\hr\managedlists\fbx_switch.cfm:23) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661) at cffbx_fusebox30_cf502ecfm1180471387._factor4(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\fbx_fusebox30_cf50.cfm:241) at cffbx_fusebox30_cf502ecfm1180471387._factor5(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\fbx_fusebox30_cf50.cfm:1) at cffbx_fusebox30_cf502ecfm1180471387.runPage(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\fbx_fusebox30_cf50.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661) at cfindex2ecfm749274359.runPage(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\index.cfm:23) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:175) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)  
    I could really use some help figuring this out.  We are getting random errors a few times a day and usually in places where we are using CFLDAP.
    Thanks,
    David

    Absolutely unbelievable that this has been going on for 4 YEARS and there are still NO definitive answers from Adobe!!
    There's no definite answer from Adobe, because there's no definitive single question.  These errors come up because - for any number of possible reasons - the JVM becomes overloaded.  And it's almost always down to an issue with the application code being run, and nothing to do with CF, per-se.  So what's Adobe supposed to do?  Come and fix your application for you?  There are plenty of diagnostic tools out there - some built into CF itself - which you could use to sort the problem out.  Or you could hire someone like Mike Brunt to come and have a look at your set up.  All it takes to fix these things is to actually do something about fixing it, rather than slamming one's fist on the desk saying "why doesn't Adobe do something!"
    I thought - and my knowledge in the area isn't expansive - the inability to allocate threads was down to the app being choked up: threads are a finite commodity, and if requests are queuing up faster than the JVM can clear them, you're gonna get errors eventually.  What causes this sort of thing?  More traffic than the server can process.  This could be because of server kit, or it could be due to code that doesn't scale to the requirement.  Usually the latter.  Basically one cannot polish a turd.
    I have a 24x7 production server that services 180,000 clients in 300 countries around the clock that cannot afford to be down for more than a few minutes at a time.
    I'm running Windows 2008 32-bit with 4GB of RAM because I have some graphics software that cannot tolerate a 64-bit OS.  Everything has been running fine for the past few months, but now it's starting to crash more and more frequently.  I have CF 8.0.1.195765 and Java 1.6.0_04
    How many concurrent requests for 180000 clients generate?  The number of clients matters less than how heavily the site is used.  But, to be honest, I get the impression the implication is "it's a busy site", in which case I think your hardware is a bit on the lean side.  Also, if it's a mission-critical app, running it on a single server is probably ill-advised, just from a fault-tolerance perspective even before one starts thinking about performance.
    If I was in your situation, I'd consider the following options:
    * upgrade your JVM to the most recent version (1.6.0_21?)
    * put more RAM in the box, and run a second CF instance on it.
    * get another box.
    * refactor the environment so the graphics software runs on a different box, upgrading the CF server to 64-bit (again, with more RAM)
    * run some diagnostics on the server, seeing what's taking up threads and where any bottlenecks might be
    * get an expert in to do the analysis side of things.
    * stop expecting Adode to fix "something".
    One of my other symptoms I have noticed is that any work done using RDP starts getting really really bogged down.  Opening Windows Explorer and searching for files can take minutes.  Restarting the CF service will sometimes fail to complete, and you have to wait a few minutes before the manual Start option appears in the dropdown.  Maybe coincidentally, the Performance Monitor will fail to add any of the ColdFusion metrics, for example Running Requests and Queued Requests, and the Event Monitor shows an error relating to an 8-byte boundary not being maintained.
    You don't, by any chance, store your client variables in the registry do you?  The only time I've seen this happen is when the CF box is munging the OS environment, and the only way I can think this could happen if it was clogging the registry.  Never store client variables in the registry.
    Adam

  • I am unable to create new folders 10.8.6

    Today I am unable to create new folders on my internal drive. I changed all the permissions for the applications with "get info" and unlocking plus selecting read and write for all three categories of users. My home office is shut down.
    HELP!

    reset home folder permissions
    1. Boot OS X Recovery by restarting the computer while holding the Command (⌘) and R keys.
    2. When the Repair Utilities screen appears, select Utilities from the Menu Bar, then click Terminal.
    3. In the Terminal window, type resetpassword and press Return.
    4. The password reset utility window will appear. Do not select a new password.
    Instead, click on the icon for your Mac's hard disk at the top. From the dropdown below it, select the user account with the problem.
    5. At the bottom of the window, you will see Reset Home Directory Permissions and ACLs. Click the Reset button. Repeat for each User account with the problem.
    The reset process may take a couple of minutes. When it finishes quit the programs and restart your Mac.
    Depending on exactly what you did to your Mac's permissions the above may not help. If it does not, read and follow Apple Support Communities contributor Niel's User Tip: kmosx: I accidentally set a disk's permissions to No Access

  • Creating new row right after popup opens (JBO-35007 because of  trigger)

    Hi,
    I have the same popup (with an ADF form) to add and to edit data. But i have two buttons which displays this popup - Add new and Edit, Edit works OK, on add, i insert new record like this:
            DCIteratorBinding dciter =
                (DCIteratorBinding)bindingContainer.get(iterator);
            ViewObject view = dciter.getViewObject();
            Row newRow = view.createRow();
            view.insertRow(newRow);
            view.setCurrentRow(newRow);before popup is open. And it adds a new record. But the record has id -10 (or some other negative number). This -10 is shown on calling page (the page from which the popup is open) in ADF ReadOnly table as -10 as id and other cells in row empty. That shouldn't happen (se bellow why). User then edits empty form in popup, and commits - then i get JBO-35007 because -10 changed to 123 - because of trigger.
    I tried to requery - it doesn't help, see Refresh after pop-up window closes.
    Can you suggest a solution on how to create a row right after popup opens?
    Also,
    i create new record on button's LaunchListener method. This method seems to execute before popup is open and so it affects the calling page also. I think the problem would be solved if new row would be created after popup is opened, not while opening it. (clicking create in popup works fine)

    in my real case, i usually don't show ids; but to simplify debugging, i created test project where i show as many things as possible.
    you mean, creating new record like following?
            bindings.getOperationBinding("Create").execute();I don't use that because i don't get empty fields in popup window (although new record is created). Actually, i don't know how to set this created record to be selected one. Suggestions?
    And I did some more testing, if I create new record with clicking on Create (not creating new row automatically), i get JBO-35007 only if there was selected any other than the first row in table.
    and i tried to move create method binding in pagedef, so it's the first one.. But it seems like there is no effect.
    btw, i found this in one of examples on web:
       <invokeAction Binds="Execute"
                      id="refreshTableViewObjectAfterAddingNewApp"
                      Refresh="prepareModel"
                      RefreshCondition="#{processScope.addedNewApp}" />refresh condition must be true when adding new row and false for everything else. I'm not sure what that does, but it seems to work... :)
    I really shouldn't use the same View Objects in popup and 'master' page, should I?

  • Zen Xtra unable to create new or update playli

    I am unable to create new play lists on my Zen Xtra. When I use the Zen itself, it looks like it creates the playlist but when I open it, the Zen screens draws a box and prints "error" in the box. Using Nomad explorer, it creates the list, I can add to it, delete from it, and it appears to work in every way but when I try to open it on the Zen, I get the little box and the word "error" in it. I tried taking an existing playlist, removing all the titles, add title to the playlist and I get the same eror message. I have run the clean up disk from the utilities menu on the Zen. I have also upgraded to the latest firmware version. Other than the error on the play list, the unit works perfectly.
    Any suggestions?
    Thanks
    Randy

    Does this player have an upgraded hard disk?
    Either way, how many tracks are on the player?

Maybe you are looking for