NullPointerException obtained while using multitable with a single class

Hi,
I get the following excepting while trying to create a row in database using a class associated with multiple tables in Toplink 10.1.3. I have checked my foreign keys and the tables are not linked through primary keys. Please let me know anything you may know related to this exception.
Thanks
[TopLink Warning]: 2005.11.04 03:32:26.453--DatabaseSessionImpl(2161283)--java.lang.NullPointerException
java.lang.NullPointerException
at oracle.toplink.internal.descriptors.ObjectBuilder.addPrimaryKeyForNonDefaultTable(ObjectBuilder.java:115)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildRowForTranslation(ObjectBuilder.java:868)
at oracle.toplink.queryframework.WriteObjectQuery.prepareForExecution(WriteObjectQuery.java:132)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:597)
at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1994)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:977)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:934)
at oracle.toplink.publicinterface.Session.writeObject(Session.java:3073)
at edu.rit.resapp.toplink.service.ReservationServiceImpl.addTrip(ReservationServiceImpl.java:93)
at edu.rit.resapp.toplink.service.ReservationServiceImpl.createReservation(ReservationServiceImpl.java:59)
at edu.rit.resapp.toplink.client.CreateReservation.createRes(CreateReservation.java:46)
at edu.rit.resapp.toplink.client.CreateReservation.main(CreateReservation.java:22)

Thanks for the reply. The multiple table descriptor is as follows:
<descriptor type="relational">
<name>toplink.model.CustomerImpl</name>
     <class-handle>
<type-name>toplink.model.CustomerImpl</type-name>
</class-handle>
     <transactional-policy type="relational">
<descriptor-alias>CustomerImpl</descriptor-alias>
<refresh-cache-policy/>
<caching-policy/>
<query-manager type="relational"/>
     <locking-policy type="relational">
<version-locking-column-handle/>
</locking-policy>
     <primary-key-policy>
     <primary-key-handles>
     <column-handle>
<column-table-name>CUSTOMER</column-table-name>
<column-name>CUST_ID</column-name>
</column-handle>
</primary-key-handles>
</primary-key-policy>
</transactional-policy>
     <mappings>
     <mapping type="direct-to-field">
<name>cardExpDate</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>cardExpDate</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getCardExpDate()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setCardExpDate(java.util.Date)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>PAYMENT_INFO</column-table-name>
<column-name>CARD_EXP_DATE</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>cardHolderName</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>cardHolderName</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getCardHolderName()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setCardHolderName(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>PAYMENT_INFO</column-table-name>
<column-name>CARD_HOLDER_NAME</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>cardNumber</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>cardNumber</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getCardNumber()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setCardNumber(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>PAYMENT_INFO</column-table-name>
<column-name>CARD_NUMBER</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>cardType</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>cardType</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getCardType()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setCardType(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>PAYMENT_INFO</column-table-name>
<column-name>CARD_TYPE</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>city</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>city</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getCity()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setCity(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>ADDRESS</column-table-name>
<column-name>CITY</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>country</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>country</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getCountry()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setCountry(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>ADDRESS</column-table-name>
<column-name>COUNTRY</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>email</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>email</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getEmail()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setEmail(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>CUSTOMER</column-table-name>
<column-name>EMAIL</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>firstName</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>firstName</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getFirstName()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setFirstName(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>CUSTOMER</column-table-name>
<column-name>FNAME</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>id</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>id</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getId()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setId(long)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>CUSTOMER</column-table-name>
<column-name>CUST_ID</column-name>
</column-handle>
</mapping>
     <mapping type="one-to-many">
<name>invoices</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>invoices</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getInvoices()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setInvoices(java.util.Collection)</method-signature>
</set-method-handle>
     <reference-descriptor-handle>
<descriptor-name>toplink.model.InvoiceImpl</descriptor-name>
</reference-descriptor-handle>
<maintains-bidirectional-relationship>true</maintains-bidirectional-relationship>
     <relationship-partner-mapping-handle>
<mapping-descriptor-name>toplink.model.InvoiceImpl</mapping-descriptor-name>
<mapping-name>customer</mapping-name>
</relationship-partner-mapping-handle>
     <reference-handle>
<reference-table-name>INVOICE</reference-table-name>
<reference-name>INVOICE_CUSTOMER</reference-name>
</reference-handle>
     <container-policy type="collection">
     <container-class>
<uses-default-container-class>true</uses-default-container-class>
</container-class>
</container-policy>
</mapping>
     <mapping type="direct-to-field">
<name>lastName</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>lastName</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getLastName()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setLastName(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>CUSTOMER</column-table-name>
<column-name>LNAME</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>phone</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>phone</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getPhone()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setPhone(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>CUSTOMER</column-table-name>
<column-name>PHONE</column-name>
</column-handle>
</mapping>
     <mapping type="one-to-many">
<name>reservations</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>reservations</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getReservations()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setReservations(java.util.Collection)</method-signature>
</set-method-handle>
     <reference-descriptor-handle>
<descriptor-name>toplink.model.ReservationImpl</descriptor-name>
</reference-descriptor-handle>
<maintains-bidirectional-relationship>true</maintains-bidirectional-relationship>
     <relationship-partner-mapping-handle>
<mapping-descriptor-name>toplink.model.ReservationImpl</mapping-descriptor-name>
<mapping-name>customer</mapping-name>
</relationship-partner-mapping-handle>
     <reference-handle>
<reference-table-name>RESERVATION</reference-table-name>
<reference-name>RESERVATION_CUSTOMER</reference-name>
</reference-handle>
     <container-policy type="collection">
     <container-class>
<uses-default-container-class>true</uses-default-container-class>
</container-class>
</container-policy>
</mapping>
     <mapping type="direct-to-field">
<name>state</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>state</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getState()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setState(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>ADDRESS</column-table-name>
<column-name>STATE</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>streetAddress</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>streetAddress</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getStreetAddress()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setStreetAddress(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>ADDRESS</column-table-name>
<column-name>STREET</column-name>
</column-handle>
</mapping>
     <mapping type="direct-to-field">
<name>zip</name>
     <attribute-handle>
<attribute-declaring-type-name>toplink.model.CustomerImpl</attribute-declaring-type-name>
<attribute-name>zip</attribute-name>
</attribute-handle>
<uses-method-accessing>true</uses-method-accessing>
     <get-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>getZip()</method-signature>
</get-method-handle>
     <set-method-handle>
<method-declaring-type-name>toplink.model.CustomerImpl</method-declaring-type-name>
<method-signature>setZip(java.lang.String)</method-signature>
</set-method-handle>
     <column-handle>
<column-table-name>ADDRESS</column-table-name>
<column-name>ZIP</column-name>
</column-handle>
</mapping>
</mappings>
     <primary-table-handle>
<table-name>CUSTOMER</table-name>
</primary-table-handle>
<uses-sequencing>true</uses-sequencing>
<sequence-number-name>RESAPP_SEQ_CUST</sequence-number-name>
     <sequence-number-table-handle>
<table-name>CUSTOMER</table-name>
</sequence-number-table-handle>
     <sequence-number-column-handle>
<column-table-name>CUSTOMER</column-table-name>
<column-name>CUST_ID</column-name>
</sequence-number-column-handle>
     <multi-table-info-policy>
     <secondary-table-holders>
     <table-holder>
     <table-handle>
<table-name>ADDRESS</table-name>
</table-handle>
<primary-keys-have-same-name>false</primary-keys-have-same-name>
     <reference-handle>
<reference-table-name>CUSTOMER</reference-table-name>
<reference-name>CUST_ADDR</reference-name>
</reference-handle>
</table-holder>
     <table-holder>
     <table-handle>
<table-name>PAYMENT_INFO</table-name>
</table-handle>
<primary-keys-have-same-name>false</primary-keys-have-same-name>
     <reference-handle>
<reference-table-name>CUSTOMER</reference-table-name>
<reference-name>CUST_PAY</reference-name>
</reference-handle>
</table-holder>
</secondary-table-holders>
</multi-table-info-policy>
</descriptor>
I have checked and all field seem to be mapped. I also have foreign key constraints set up. Please let me know if anything you feel in the descriptor is incorrect.
Thanks.

Similar Messages

  • How to trigger New page while using ALV with classes/oops?

    Hi All
    I am trying to print a report which has to show the data in two pages.
    I am using ALV with classes/oops.
    Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
    Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
    Please send some code samples also if available.
    Thanks in advance.
    Jerry

    using sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
    in case of list you can view that directly.
    sort-fieldname = 'FIELDNAME'.
    sort-group = '*'  "triggers new page
    sort-up = 'X'.
    append sort to it_sort.

  • Why doesn't apple tv show song info while using pandora with AirPlay?

    Why doesn't apple tv show song info while using pandora with AirPlay?

    Welcome to the Apple Community.
    I'm not really familiar with Pandora but I assume it's an audio app and the app places text on screen to inform you of the current track playing.
    As an audio app, it seems to make sense it will stream audio over AirPlay, which doesn't include text of course. For that matter the text is also unlikely to be a video stream either, just to cover the possibility you ask why can't they stream it over AirPlay as video.

  • Error while using RSCRM_BAPI with remote cubes

    Hi,
       We are getting short dump while trying to use RSCRM_BAPI with hierarchies i.e.display hierarchies to extract data to a flat file.
    We do get a warning that display hierachies are not longer supported in 2004s with RSCRM_BAPI and have been going on and on with SAP development.  They are saying we need to find alternatives.
    I wanted to know if anybody has tried using display hierarchies with RSCRM_BAPI in 2004s if not then I would like to know what are my options in getting a flat hierarchy report on to a flat file? 
    I dont think infospoke supports flat hierarchy extracts as infoproviders dont store hierarchy information.
    Thanks

    Heres my thought -
    to use Bex Broadcaster to download the information,am not sure if RSCRM_BAPI is replaced by new functionality ,might wait for SAP to confirm.
    <b>Key capabilities:-</b>
    1)The right information:Based on BExqueries, views, workbooks, Web applications & enterprise reports
    2)In different formats:HTML, MHTML, PDF, ZIP, printer formats, online links, SAP alerts…
    3)To the right people:e.g., single users, groups, distribution lists, user-specific or role-specific (incl. non-SAP users)
    4)In different channels:e-mail, Portal, BExPortfolio (unified access based on Knowledge Management folders), collaboration rooms, Universal Work List…
    At the right time:event driven, exception driven, ad-hoc, scheduled
    Bex Broadcaster + Information Broadcasting
    Note 760775 - Settings for Information Broadcasting
    Functions of Bex broadcaster
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/220c40ac368f5ce10000000a155106/frameset.htm
    Hope it Helps
    Chetan
    @CP..

  • Licence Error while Using nqcmd with Analytics Web DSN

    Hi,
    While running nqcmd with Analytics Web DSN i am getting a DataDirect error, stating that you do not have appropriate licence to run ODBC Data Direct.
    I am getting this on Linux box but while running the same on Windows their is no such error.
    Have any one of you got such kind of stuff. I am using OBIEE which Oracle provides on her website for free for development purpose.
    Please help.
    Edited by: RKK on Oct 3, 2011 10:01 PM

    Hi,
    kindly Refer
    https://forums.oracle.com/forums/thread.jspa?messageID=2289534&#2289534
    Thanks
    Deva

  • Performance issue in linux while using set with URL object

    Hi,
    I am facing performance issue while using Set(HashSet) with URL object on linux. But it is running perfectly on windows.
    I am using
    set.contains(urlObject)
    Above particular statement is taking 40 sec on Linux, and only a fraction of ms on windows.
    I have checked the jre version on both OS. It is the same version (jre6)
    on both the OS.
    Could anyone please tell me what is the exact reason, why the same statement is taking more time on linux than windows.
    Thanks & Regards
    Naveen

    jtahlborn wrote:
    I believe the URL hashCode/equals implementations have some /tricky behavior which involves network access in order to run (doing hostname lookups and the like). you may want to either use simple Strings, or possibly the URI class (i think it fixed some of this behavior, although i could be wrong).The second new thing I have learned today. I was wrong in reply # 1 because looking at the URL code for 1.6 I see that the hash code is generated from the IP address and this has a lazy evaluation. Each URL placed in a HashMap (or other hash based collection) requires a DNS lookup the first time the hash code is used.
    P.S. 40 seconds does seem a long time for a DNS lookup!
    Edited by: sabre150 on Feb 13, 2008 3:40 PM

  • After effects instantly crashes while using opengl with nvidias new drivers 178.24

    Since I installed nvidias new drivers 178.24, after effects instantly crashes while using opengl. Anyone else experienced this?
    I have Geforce 8600 GT.
    As a minor note, I had major problems with the new quicktime 7.5.5 update, both After effects and Premiere got problems with interpreting footage and frames here and there got the "missing frame" look. I also got more problems so I uninstalled it instantly. Is there a major problem with the update or a major problem with me?
    Thanks
    / Olle

    I use Vista (in retroperspective this was probably a mistake, but the company wanted to test the capabilities with Vista when we bought the computer a year ago). And specs are:
    *Graphics: Asus Extreme GeForce 8600GT SILENT 512MB DDR3 TV-out HDTV DUAL DVI RETAIL PCI Express
    *HD: Samsung HD501LJ 500GB 7200rpm 16MB SATA2
    *Audio: Creative Sound Blaster X-Fi Xtreme Audio Retail
    *Mem: Corsair QUAD2X4096-6400C5DHX QuadDHX 4x1024MB (tot. 4096MB) Kit DDR2 XMS2-6400 800MHz
    *Motherboard: Asus P5K iP35 4DDR2-DIMM 3PCI 3PCIe SATA Raid Audio GB-LAN Firewire Socket775 ATX
    *Processor: Intel Core 2 EXTREME QUAD QX6850 3.0GHz 8MB FSB1333 Boxed (with cpu-cooler!) Socket 775
    *Power: Sirtec/Chieftec CFT-750-14C 750W 140mm fan ATX2.0 20/24-pin 4/8-pin 12V Modular
    Sorry not to give more info on the Quicktime problem, I don't remember exactly what more problems there where as we have had extremely much to do these last couple of weeks and I just freaked out and uninstalled it as soon as the problems emerged. I do remember the frame issue however, it was very clear, i imported an image sequence in premiere and everything worked fine, then i updated and frames were suddenly dropped, then i uninstalled and installed 7.5 again and it worked just fine. I also tried to flush the cache, restart and generally search for the source of the problem for a couple of hours.
    / Olle

  • Problem while using XML with Oracle

    I have a problem using XML with oracle applications
    The process I am following
    1. Making a XML string.
    2. Parsing it to get a document
    3. Free the parser using xmlparser.freeparser
    4. Traversing through nodes .
    5. Freeing the document.
    The whole Process is executed in batch mode.
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")
    Can you please help me out to overcome this problem
    It's urgent
    I have
    Oracle version 8.1.7.0.0
    XML version 1.2
    OS Windows NT
    To resolve the problem I have increase shared memory size and java initialization parameters ,which seems OK
    Looking forward for your answer.

    Hello, Reena
    Your process flow seems to be correct in term of getting/freeing memory.
    Following error
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")may be caused by memory leaks in xdk or memory fragmentation(due to get/free memory cycle)
    To find out if this is an memory leak issue you could try to monitor V$SGASTAT from one session while running your batch process in another session.
    To prevent (or lower its impact) fragmentation issues try to PIN objects, and adjust java_pool_size and shared_pool_reserved_size.
    Anyway, counsult your Oracle DBA.
    Oracle version 8.1.7.0.0I think, you should apply database patch first of all. The latest one (8.1.7.4.x) could be accured from Metalink.

  • Error while using pppd with chat script.

    We are using pppd with chat script to establish a connection.
    In the process we get the "Protocol reject" error.
    e.g.
    Fri Feb 26 11:35:40 2010 : Serial connection established.
    Fri Feb 26 11:35:40 2010 : Using interface ppp0
    Fri Feb 26 11:35:40 2010 : Connect: ppp0 <--> /dev/cu.usbmodem413
    Fri Feb 26 11:35:43 2010 : Remote message: PAP access OK
    Fri Feb 26 11:35:43 2010 : PAP authentication succeeded
    Fri Feb 26 11:35:43 2010 : Protocol-Reject for unsupported protocol 0x382
    Fri Feb 26 11:35:46 2010 : Protocol-Reject for unsupported protocol 0x382
    Fri Feb 26 11:35:48 2010 : local IP address 161.30.96.51
    Any inputs for resolving this error.

    Some more details:
    Tue Mar 9 13:39:34 2010 : Serial connection established.
    Tue Mar 9 13:39:34 2010 : using link 0
    Tue Mar 9 13:39:34 2010 : Using interface ppp0
    Tue Mar 9 13:39:34 2010 : Connect: ppp0 <--> /dev/cu.usbmodem413
    Tue Mar 9 13:39:35 2010 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x23b22dfd> <pcomp> <accomp>]
    Tue Mar 9 13:39:35 2010 : rcvd [LCP ConfRej id=0x1 <asyncmap 0x0> <magic 0x23b22dfd> <pcomp> <accomp>]
    Tue Mar 9 13:39:35 2010 : sent [LCP ConfReq id=0x2]
    Tue Mar 9 13:39:35 2010 : rcvd [LCP ConfAck id=0x2]
    Tue Mar 9 13:39:37 2010 : rcvd [LCP ConfReq id=0x34 <mru 1500> <auth pap>]
    Tue Mar 9 13:39:37 2010 : lcp_reqci: returning CONFACK.
    Tue Mar 9 13:39:37 2010 : sent [LCP ConfAck id=0x34 <mru 1500> <auth pap>]
    Tue Mar 9 13:39:37 2010 : sent [PAP AuthReq id=0x1 user="void" password=<hidden>]
    Tue Mar 9 13:39:37 2010 : rcvd [PAP AuthAck id=0x1 "PAP access OK"]
    Tue Mar 9 13:39:37 2010 : Remote message: PAP access OK
    Tue Mar 9 13:39:37 2010 : PAP authentication succeeded
    Tue Mar 9 13:39:37 2010 : sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 161.30.96.51> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
    Tue Mar 9 13:39:37 2010 : sent [ACSCP ConfReq id=0x1 <ms-dns1 0.0.0.1> <ms-dns1 0.0.0.1>]
    Tue Mar 9 13:39:37 2010 : rcvd [LCP ProtRej id=0x35 03 82 35 01 01 00 10 01 06 00 00 00 01 02 06 00 00 00]
    Tue Mar 9 13:39:37 2010 : Protocol-Reject for unsupported protocol 0x382
    Tue Mar 9 13:39:39 2010 : rcvd [IPCP ConfRej id=0x1]
    Tue Mar 9 13:39:39 2010 : sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 161.30.96.51> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
    Tue Mar 9 13:39:40 2010 : sent [ACSCP ConfReq id=0x1 <ms-dns1 0.0.0.1> <ms-dns1 0.0.0.1>]
    Tue Mar 9 13:39:40 2010 : rcvd [LCP ProtRej id=0x36 03 82 35 01 01 00 10 01 06 00 00 00 01 02 06 00 00 00]
    Tue Mar 9 13:39:40 2010 : Protocol-Reject for unsupported protocol 0x382
    Tue Mar 9 13:39:41 2010 : rcvd [IPCP ConfRej id=0x2]
    Can anyone provide help to resolve the above error ?

  • Junk characters display while using multipart with html content in Javamail

    Hi All,
    I have used Java mail API to send mail with attachment. To enable to attachment in mail and to do content formatting i have used multipart and html content type together.
    My web application runs on apache tomcat 5.5 in MAC server. Java version is 1.5.
    The Function which i have used for sending mail with attachment is as follows:
    public void sendmailAttached(String to,String from,String host,boolean debug,String mailContent,String mailSubject,String cc,String attachFiles)
              String mailarray[]=to.split(";");
              Properties props = new Properties();
              //props.put("mail.smtp.port","425");
              props.setProperty("mail.smtp.host", host);
              if (debug) props.setProperty("mail.debug", ""+debug);
              Session session = Session.getInstance(props, null);
              session.setDebug(debug);
              try {
                   Message msg = new MimeMessage(session);
                  msg.setFrom(new InternetAddress(from));
                 javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[mailarray.length];
                 for (int i=0;i<mailarray.length ;i++ )
                                            toAddress=new javax.mail.internet.InternetAddress(mailarray[i]);
              msg.setRecipients(Message.RecipientType.TO, toAddress);
              msg.setSubject(mailSubject);
              try{
                        String ccaray =cc;                    
                        String mailarray1[]=ccaray.split(";");
                        javax.mail.internet.InternetAddress[] CCAddress=new javax.mail.internet.InternetAddress[mailarray1.length];
         for (int i=0;i<mailarray1.length ;i++ )
         CCAddress[i]=new javax.mail.internet.InternetAddress(mailarray1[i]);
              msg.setRecipients(Message.RecipientType.CC,CCAddress);
              }catch(Exception ss)
                        System.out.println("CC mail exception is ====>"+ ss.getMessage());     
              msg.setSentDate(new java.util.Date());
              Multipart multipart = new MimeMultipart("related");
              BodyPart messageBodyPart = new MimeBodyPart();
              messageBodyPart.setContent(mailContent, "text/html");
              multipart.addBodyPart(messageBodyPart);
                   String fileName = attachFiles.substring(attachFiles.lastIndexOf("/")+1,attachFiles.length());
                   if(!fileName.equals(""))
                        messageBodyPart = new MimeBodyPart();
              DataSource source = new FileDataSource(attachFiles);
              messageBodyPart.setDataHandler(new DataHandler(source));
              messageBodyPart.setFileName(fileName);
              multipart.addBodyPart(messageBodyPart);
              msg.setContent(multipart);
              Transport.send( msg );
              catch(MessagingException mex)
                   Exception ex = mex;
                   if (ex instanceof SendFailedException)
                   SendFailedException sfex = (SendFailedException)ex;
    Address[] invalid = sfex.getInvalidAddresses();
    if (invalid != null) {
    if (invalid != null) {
    for (int i = 0; i < invalid.length; i++)
    System.out.println("Invalid Addresss --------> " + invalid[i]);
    try
         Message msg = new MimeMessage(session);
              msg.setFrom(new InternetAddress(from));
              Multipart multipart = new MimeMultipart("related");
         BodyPart messageBodyPart = new MimeBodyPart();      
         messageBodyPart.setContent(mailContent, "text/html");
    multipart.addBodyPart(messageBodyPart);
    Address[] validUnsent = sfex.getValidUnsentAddresses();
    javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[validUnsent.length];                         
    if (validUnsent != null) {
    for (int i = 0; i < validUnsent.length; i++)
    System.out.println("Valid Address ------>"+validUnsent[i]);
    String test = validUnsent[i]+"";
    toAddress[i]=new javax.mail.internet.InternetAddress(test);
    msg.setRecipients(Message.RecipientType.TO, toAddress);
    msg.setSubject(mailSubject);
    String fileName = attachFiles.substring(attachFiles.lastIndexOf("/")+1,attachFiles.length());
                   if(!fileName.equals(""))
                        messageBodyPart = new MimeBodyPart();
              DataSource source = new FileDataSource(attachFiles);
              messageBodyPart.setDataHandler(new DataHandler(source));
              messageBodyPart.setFileName(fileName);
              multipart.addBodyPart(messageBodyPart);
    msg.setContent(multipart);
    Transport.send( msg );
    catch(Exception e)
         System.out.println("Mail Not Send");
              else
                        System.out.println("Mail Server Not Connectd ");
    This code is working properly and i am able to send mail with attachment and html formatted content without any problem. But console of server is filled up with too much junk characters because of which the catalina.out file of tomcat server is becoming fully filled.
    Sample cosnole display with  junk characters are as follows:
    Subject: HBSP - DRUCKER - QC - CH16 - QC  R2 Completed
    MIME-Version: 1.0
    Content-Type: multipart/related;
         boundary="----=_Part_34_15681668.1247471518887"
    ------=_Part_34_15681668.1247471518887
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    <b>Hi,</b><br><br>     Chapter CH16 in the project DRUCKER is Completed . <br><br>     <b>Comments :</b> Qc Accepted.<br><br> <b><i>Thanks,<br>ANTONY.</i></b>
    ------=_Part_34_15681668.1247471518887
    Content-Type: application/octet-stream; name=9420317_CH06_p084-119.pdf.zip
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=9420317_CH06_p084-119.pdf.zip
    UEsDBBQAAAAIAMOz6TqHaQ4BUtXhAGzP8QAZAAAAOTQyMDMxN19DSDA2X3AwODQtMTE5LnBkZsQ7
    CTxUX9tCUpIWEomxpoWZuTN3FmvW7P9skaUajCXGiCHSYiuKFrIvlWStROSvaBEtiIpkK5WlUipa
    ZKl898wYRP/37fve7/e69TjnPuc5z3LOuc95zjP3ym7S1lXAKuL5ZTu7HjTyL8ATiCgMiu6wA6Wi
    gjZy86RSvN12U51QWLQRCguT8ESISED/hcITMWgdFJZIgPAwBm2CwhHQFqAdRySRcWg9lC2KBBNQ
    WAIRZ6+mxk/1dEI48qNYF7+/N9WZHwiCSPyY8QtLQDFLlCf/AhYGgiHyDBwBIs7EETEzcCR4Bg6H
    IZBn4LBE7AwcNBOHJ87EwWQ8aTqOgIWJM3C4mX2JMH6GLiQiHjMDR8bD03BYDBYizcDh8LjpOCyM
    xczAETH4mbgZOmNhmDCDHwE7Qz+IhMNO54eHCKTp/GAcboYuBBJMmi6DSIZxU+lYF7KSJnEMb4qb
    B9WbH1md5sjCROHJMHqTN9VvfPGRcGgzOp2BwhOQMUKZofU9nenIDYF1o22rgtXU1EWGRgsia2vp
    Like this display of junk characters are filling up multiple pages of console file.
    Can any one suggest me how to overcome this problem?
    Many thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    There is no "sendmail" method in the JavaMail API.
    The debug flag is set using the Session.setDebug method, or by setting the Session property "mail.debug".
    If you're using someone else's helper classes with JavaMail, they may provide another way to set it.

  • Error while using Send With Document service

    Hi,
    I am using the send with document email service, and trying to pass an attachment (a text document). When i invoke the process using java component i get the following error:
    com.adobe.workflow.engine.PEUtil logFailedFaultRouting An exception was thrown with name com.adobe.idp.dsc.email.SendMailFailedException message:Failed to send email to mail server: null:25. Cause: null while invoking service EmailService and operation sendWithDocument and no fault routes were found to be configured.
    Can someone give me an idea of how to resolve this issue?
    Thanks..

    From the exception fragment it is complaining that your email properties are not set correctly. In this case the email server name is resolving to null. Make sure they are all set up correctly. The no fault routes just means you have no route in your workflow to handle any errors/exceptions.

  • Getting errors while using PI_GOODSMVT_CREATE' with 561+K

    Hi ,
      I am using this BAPI to Create Material Documents with out ref. while doing so i am getting this error.my code enclosed here ? i have to Use Movement Type 561+ Spe.Stock: 'k'.
    waiting for val inputs.
    LOOP AT I_WERKS.
    L_GHEADER-PSTNG_DATE = SY-DATUM.
    L_GHEADER-DOC_DATE = SY-DATUM.
    LOOP AT I_UPLOAD WHERE WERKS = I_WERKS-WERKS.
    I_GITEM-MATERIAL = I_UPLOAD-MATNR.
    I_GITEM-PLANT    = I_UPLOAD-WERKS.
    I_GITEM-STGE_LOC = I_UPLOAD-LGORT.
    I_GITEM-BATCH     = I_UPLOAD-CHARG.
    I_GITEM-MOVE_TYPE = '561'.
    I_GITEM-SPEC_STOCK = 'K'.
    I_GITEM-VENDOR = I_UPLOAD-LIFNR.
    I_GITEM-ENTRY_QNT = I_UPLOAD-ERFMG.
    I_GITEM-ENTRY_UOM = I_UPLOAD-ERFME.
    I_GITEM-PROD_DATE = I_UPLOAD-HSDAT.
    I_GITEM-EXPIRYDATE = I_UPLOAD-VFDAT.
    I_GITEM-mvt_ind = ''.
    APPEND I_GITEM.
    ENDLOOP.
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
           EXPORTING
                goodsmvt_header       = l_gheader
                goodsmvt_code         = '03'
           IMPORTING
                goodsmvt_headret      = l_goodsmvt_headret
                materialdocument      = l_materialdocument
                matdocumentyear       = l_matdocumentyear
           TABLES
                goodsmvt_item         = i_gitem
                return                = i_return.
    commit work and wait.
      IF SY-SUBRC = 0.
      ENDIF.
    clear I_GITEM[].
    ENDLOOP.
    ENDFORM.
    and  i am getting this errors,
    <b> E     M7     96     Goods movement not possible with mvmt type 561          0     561                    GOODSMVT_ITEM     1          
    </b>
    what would be the Problem, while doing manually its allowing me to post.

    hi Sanjya,
      thanks for reply. i checked that table , entry is there for 561.
    how i am getting this error.
    1 E0     58 Entry 84150 LFA1  does not exist in  - check your entry          0     84150     LFA1               GOODSMVT_ITEM     1          UNIX410
    When i am doing manually no errors with this Vendor ? but in BAPI i am getting this error.
    LOOP AT I_WERKS.
    L_GHEADER-PSTNG_DATE = SY-DATUM.
    L_GHEADER-DOC_DATE = SY-DATUM.
    LOOP AT I_UPLOAD WHERE WERKS = I_WERKS-WERKS.
    I_GITEM-MATERIAL = I_UPLOAD-MATNR.
    I_GITEM-PLANT    = I_UPLOAD-WERKS.
    I_GITEM-STGE_LOC = I_UPLOAD-LGORT.
    I_GITEM-BATCH     = I_UPLOAD-CHARG.
    I_GITEM-MOVE_TYPE = '561'.
    I_GITEM-SPEC_STOCK = 'K'.
    I_GITEM-PART_ACCT = I_UPLOAD-LIFNR.
    I_GITEM-VENDOR = I_UPLOAD-LIFNR.
    I_GITEM-ENTRY_QNT = I_UPLOAD-ERFMG.
    I_GITEM-ENTRY_UOM = I_UPLOAD-ERFME.
    I_GITEM-PROD_DATE = I_UPLOAD-HSDAT.
    I_GITEM-EXPIRYDATE = I_UPLOAD-VFDAT.
    I_GITEM-MOVE_REAS = ''.
    * I_GITEM-mvt_ind = ''.
    APPEND I_GITEM.
    ENDLOOP.
    * Post Document Reason Code Wise
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
           EXPORTING
                goodsmvt_header       = l_gheader
                goodsmvt_code         = '05'
           IMPORTING
                goodsmvt_headret      = l_goodsmvt_headret
                materialdocument      = l_materialdocument
                matdocumentyear       = l_matdocumentyear
           TABLES
                goodsmvt_item         = i_gitem
                return                = i_return.
    commit work and wait.
      IF SY-SUBRC = 0.
      ENDIF.
    clear I_GITEM[].
    ENDLOOP.

  • Dump; while using LSMW with RFBIBL00.

    Hi,
    I am using Standard Batch/direct input method.
    Ending up with a dump with the following error message:
    The reason for the exception is:
    The program attempted to interpret the value "/" as a number, but
    since the value contravenes the rules for correct number formats,
    this was not possible.
        IF BBKPF-PROPMANO(1)                 NE NODATA.
         CLEAR: FTPOST-FNAM, FTPOST-FVAL.
          FTPOST-FNAM = 'BKPF-PROPMANO                    '.
          FTPOST-FVAL = BBKPF-PROPMANO                   .
        APPEND FTPOST.
       ENDIF.
    215    >>>   IF BBKPF-VATDATE(1)                  NE NODATA.
          CLEAR: FTPOST-FNAM, FTPOST-FVAL.
          FTPOST-FNAM = 'BKPF-VATDATE                     '.
           FTPOST-FVAL = BBKPF-VATDATE                    .
           APPEND FTPOST.
       ENDIF.
    ENDFORM.
    This code is a part of include program RFBIBL02.
    While i am testing the same project in the sandbox system, it's working fine, as the condition                   
    "IF BBKPF-VATDATE(1) NE NODATA"
    is not there in the program RFBIBL02 (in sandbox system) .
    Is there any way to bypass this condition or any other way to get it resolved?
    Please suggest me a relevant solution.
    Thanks.

    Hi ,
    If u r not passing any value to the date field then no data value will be taken as '/'.
    As date field cannot be given as '/' u r getting the dump.
    Please clear the date field if there is no data. u can give the following piece of code in mapping section of that date field.
    If not aritems-vatdate is initial.
    bbkpf-vatdate = aritems-vatdate.
    else.
    clear bbkpf-vatdate.
    endif.
    this will clear the '/' value if there is no data in date field.
    Reward points if useful.
    Asif

  • Strange error while using ActionListener with RichCommandLink

    Hi,
    I am using Technology preview 3.
    I have RichTable bound to af:table in my JSF page.
    I am showing database contents inside richTable.
    Inside richTable i have one extra column in which i am showing remove link. So every row of table will have remove link. I have added ActionListener as inner class for the backing bean. and this actionlistener i am adding into RichCommandLink(remove link)
    But when i click on remove link I am getting weired exception. And i am not able to get why this error is coming.
    This problem occures whenever I use contentDelivery parameter with <af:table>
    Here is the stack trace of the error.
    java.lang.InstantiationException: com.backingBean.UpdateSampleTypeB
    ackingBean$MyLinkActionListener
    at java.lang.Class.newInstance0(Class.java:335)
    at java.lang.Class.newInstance(Class.java:303)
    at org.apache.myfaces.trinidad.bean.util.StateUtils$Saver.restoreState(S
    tateUtils.java:286)
    at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreStateHolder(S
    tateUtils.java:202)
    at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreList(StateUti
    ls.java:257)
    at org.apache.myfaces.trinidad.bean.PropertyKey.restoreValue(PropertyKey
    .java:231)
    at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreState(StateUt
    ils.java:148)
    at org.apache.myfaces.trinidad.bean.util.FlaggedPropertyMap.restoreState
    (FlaggedPropertyMap.java:194)
    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.restoreState(FacesBean
    Impl.java:358)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.restoreState(U
    IXComponentBase.java:881)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:861)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponent
    Base.java:1154)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponent
    Base.java:1154)
    at org.apache.myfaces.trinidadinternal.application.StateManagerImpl.rest
    oreView(StateManagerImpl.java:487)
    at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl
    .java:287)
    at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWra
    pper.java:193)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.resto
    reView(ViewHandlerImpl.java:258)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(Li
    fecycleImpl.java:438)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(L
    ifecycleImpl.java:229)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(Lifecyc
    leImpl.java:155)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterC
    hain.java:65)
    at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilte
    r(SharedLibraryFilter.java:135)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
    istChain.doFilter(TrinidadFilterImpl.java:284)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter
    (RegistrationFilter.java:69)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
    istChain.doFilter(TrinidadFilterImpl.java:284)
    at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter
    .java:74)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
    istChain.doFilter(TrinidadFilterImpl.java:284)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invoke
    DoFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilt
    erImpl(TrinidadFilterImpl.java:165)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilte
    r(TrinidadFilterImpl.java:138)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFi
    lter.java:92)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterC
    hain.java:15)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:1
    18)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:611)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:362)
    at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpReq
    uestHandler.java:915)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
    estHandler.java:821)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:626)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:599)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
    stHandler.java:383)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:161)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:142)
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(Server
    SocketReadHandler.java:275)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(Server
    SocketAcceptHandler.java:237)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocket
    AcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(
    ServerSocketAcceptHandler.java:878)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
    utor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:675)
    Can anybody please provide any help on this?
    Regards,
    Hiren

    Hi Simon,
    I am using addActionListener method of RichCommandLink
    Here is how i am trying to use it.
    public class backingBean {
         private RichTable table;
         public backingBean() {
         RichColumn rc = new RichColumn();
         RichCommandLink cmd = new RichCommandLink();
         MyActionListener listener = new MyActionListener();
         cmd.addActionListener(listener);
         public RichTable getTable() {
         return table;
         class MyActionListener implements ActionListener {
              public void processAction (ActionEvent actionEvent) throws AbortProcessingException {
              // Processing related to edit components of backing bean
    Hiren

  • Error while using TXDataSource with Weblogic 6.1 & Oracle 8.1.6

    Hi,
    I am using Weblogic 6.1 and Oracle 8.1.6.
    I have configured JDBC XA Connection Pool with Oracle thin driver. These are my settings...
    Connection Pool:
    Name - myXAPool
    URL - jdbc:oracle:thin:@myServer:1521:myDb
    DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
    TXDataSource:
    Name - myXADS
    JNDIName - myXADS
    PoolName - myXAPool
    I get the following error when I try to lookup the datasource. I am not sure where the problem is as I have configured Connection Pool and TXDataSource as mentioned in the documentation.
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() failed on resource 'myXAPool' Unexpected error during start for XAResource 'myXAPool': null
    It would be really great if you can help me out.
    Thanks in Advance,
    Sudhir.

    Hi Sudhir,
    If you do not know if upgrade or not, have a look here :
    http://e-docs.bea.com/wls/docs61/notes/bugfixes2.html
    Note that at the end of June SP3 will be released...
    Sergi
    "Sudhir Babu" <[email protected]> wrote:
    >
    Hi Sergi,
    Thanks a lot for the class file, I figured out what the problem was. Actually
    the
    database version I was working with was 8.0.6.0. The Oracle driver doesn't
    work with
    this but the JDriver worked. This is the output of running CheckDriver..
    DatabaseProductName : Oracle
    DatabaseProductVersion : Oracle8 Enterprise Edition Release 8.0.6.0.0 -
    Production
    With the Partitioning and Objects options
    PL/SQL Release 8.0.6.0.0 - Production
    DriverName : Oracle JDBC driver
    DriverVersion : 8.1.7.1.0
    Then I tried on using the Oracle Driver on another instance which has the
    version
    8.1.7.1.0 and it worked. The JDriver and Oracle driver both work with this
    database.
    The output of CheckDriver for this Oracle instance is..
    DatabaseProductName : Oracle
    DatabaseProductVersion : Oracle8i Enterprise Edition Release 8.1.7.1.0 -
    Production
    With the Partitioning option
    JServer Release 8.1.7.1.0 - Production
    DriverName : Oracle JDBC driver
    DriverVersion : 8.1.7.0.0
    By the way I am working on WLS 6.1 SP1. What is the advantage of SP2 ? Should
    I upgrade
    Thanks once again,
    Sudhir.
    "Sergi Vaz" <[email protected]> wrote:
    Hi Sudhir ,
    JDriver works well, you can work with it.
    Just for curiosity, can you run the class I attached using the "exact"classpath
    of your WL instance (with Oracle drivers in front of weblogic.jar) ? What
    is the
    output ?
    On which platform are you running your WLSP2 ?
    Thanks
    Sergi
    "Sudhir Babu" <[email protected]> wrote:
    Hi Sergi,
    I just checked the things you mentioned. The connection pool starts correctly
    without
    any errors. I also made sure SELECT previlege was granted to DBA_PENDING_TRANSACTIONS.
    I do have the JAVA_XA package installed and it has EXECUTE permission
    to
    PUBLIC.
    I actually tried using the Weblogic JDriver (weblogic.jdbc.oci.xa.XADataSource)
    and
    it works perfect without any issue. The only consideration is that itis
    a Type 2
    Driver and needs to have the Oracle Client installed. But right now Ido
    have it
    installed on the same machine.
    Do you know any known issues with Weblogic JDriver. Do you think it'sa
    good idea
    to go with it ?
    Thanks,
    Sudhir.
    "Sergi Vaz" <[email protected]> wrote:
    Hi Sudhir,
    does your connection pool start correctly ?
    Check the setup of your Oracle server too:
    1) grant select on DBA_PENDING_TRANSACTIONS table to PUBLIC
    2) package JAVA_XA installed (with grant execute to PUBLIC)
    Sergi
    "Sudhir Babu" <[email protected]> wrote:
    Hi Sergi,
    Thanks for the response. I downloaded the driver for 8.1.7 from Oraclesite
    and put
    it in classpath in front of weblogic.jar. I still get the same problem.
    Is there
    another location where we can download the Oracle driver with the bug
    fixed
    Regards, Sudhir.
    "Sergi Vaz" <[email protected]> wrote:
    Hi Sudhir,
    I think you are using Oracle JDBC drivers 8.1.6.
    They have a bug, they do not accept a foreign XID.
    Use 8.1.7 or higher to solve this problem.
    Sergi
    Sudhir Babu <[email protected]> wrote:
    Hi,
    I am using Weblogic 6.1 and Oracle 8.1.6.
    I have configured JDBC XA Connection Pool with Oracle thin driver.
    These
    are my settings...
    Connection Pool:
    Name - myXAPool
    URL - jdbc:oracle:thin:@myServer:1521:myDb
    DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
    TXDataSource:
    Name - myXADS
    JNDIName - myXADS
    PoolName - myXAPool
    I get the following error when I try to lookup the datasource. I amnot
    sure where the problem is as I have configured Connection Pool and
    TXDataSource
    as mentioned in the documentation.
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager errorhas
    occured in the transaction branch start() failed on resource 'myXAPool'
    Unexpected error during start for XAResource 'myXAPool': null
    It would be really great if you can help me out.
    Thanks in Advance,
    Sudhir.

Maybe you are looking for

  • I can't find a way to preserve app data while upgrade from iOS 3 to 4

    During the weekend I am helping one family member to upgrade the iOS on her iPhone 3G from 3.1 to the latest available, 4.2.1, and I ran into a problem which mades me frustrated. Before the upgrade, iTunes warns me "Upgrading to iOS 4.2 will delete a

  • FI Open Interface vs FQEVENTS

    Hi, My understanding is that FQEVENTS transaction is only active for FICA (contract account). Please correct. Is this also available for FI-AP? If FQEVENTS is not available for FI-AP, we then need to use BTE (Business Transaction Evetnts-FIBF). I hav

  • Line Items in Sales Order not Replicated

    Hi 1. We created an order in CRM with 10 line items ( all are same service items) and this order is replicated to R/3. 2. We added to the same order 5 more same line items and saved but thid items are not replicted. Please suugest me how to trance it

  • How to get system restored after replacing hard drive.

    Bought a MacBook Pro about two years ago, hard drive failed and was replaced. Any way to get my iphoto, imovie, etc back on computer without having to pay for it since it originally came with the computer when I bought it?

  • Solaris 10 x86 login hanging

    We are experiencing some odd behavior with our Solaris 10 machine. We installed it in January and everything was working fine up to about March. Since March we've been seeing an issue with the login hanging. This happens when running command via rsh