Mapping of element contains errors

Hi experts,
I was doing a complex mapping for creating a Sales Order (Items, ItemsX, ...)
Everything worked fine, I added 2 simple Types to the Data Type xsd file, redeployed and still worked.
Now all of a sudden I can't seem to map anymore, with a problem: "Mapping of element x contains errors".
When I start mapping, either I get an exception (and NullPointerExceptions) that he can't find the root element of my context anymore. Or I just save, and all my mappings dissapear and I get a screen like the screenshot bellow, with broken mappings.
All the failed mappings get the value "TaskOutput".
Another detail is, that when I delete all those broken mappings with the value "TaskOutput".. close and save, the broken mappings appear again.
Tried solving with: creating new .xsd file (same data), created new process, new UI component.
Screenshot of problem
http://i53.tinypic.com/2ykfh3r.png
Screenshot of illegalstate exception (I also get nullPointer sometimes)
http://i56.tinypic.com/1zl68m1.png

just delete old mapping

Similar Messages

  • TOAD error : Missing close tag in element Container.

    Hi ,
    when i try to open TOAD 8.6.1.0 fo oracle data base login ,
    It gives the error " Missing close tag in element Container", further i am not able to login and i have to forcefully kill the TOAD session , Please help me in this regard.
    Thanks & Rgds
    Ashok

    Hi;
    TOAD is a product from Quest,not from Oracle. It may be better you ask such a question in an appropriate TOAD forum:
    http://toadfororacle.com/index.jspa
    I totaly agree to Werner . You can post upper related link about your issue, by the way you can use Oracle sql_developer instread of toad.
    For more details please check:
    http://www.oracle.com/technology/products/database/sql_developer/index.html#news
    Regard
    Helios

  • %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next p

    I am getting the error in my 7200 vxr router where running ios is c7200p-advipservicesk9-mz.124-15.T4.bin
    my observation is
    when tunnel interface is going down that time i am getting this error
    error is
    %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next pointer, -
    Traceback= 0x140C170 0x3760FDC 0xE0E31C 0xE0EB80 0xE0B910 0x1A4C9FC 0x1A4CC44 0x1A5C378 0x168B05C 0x2D9298 0x1A3E854 0x1A3F110 0x2930240 0x2E5850 0x2905A30 0x2905F08

    It does not say much !
    The following are utility messages.
    Message
    %UTIL-3-DLL : Data structure error -- [chars]
    Explanation A software error occurred, resulting in a data structure inconsistency.
    Recommended Action Copy the message exactly as it appears on the console or in the system log. Research and attempt to resolve the issue using the tools and utilities provided at
    http://www.cisco.com/tac. With some messages, these tools and utilities will supply clarifying information. Also perform a search of the Bug Toolkit
    http://www.cisco.com/pcgi-bin/Support/Bugtool/home.pl. If you still require assistance, open a case with the Technical Assistance Center via the Internet
    http://tools.cisco.com/ServiceRequestTool/create, or contact your Cisco technical support representative and provide the representative with the gathered information.

  • %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next po

    I am getting the error in my 7200 vxr router where running ios is c7200p-advipservicesk9-mz.124-15.T4.bin
    error is
    %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next pointer, -
    Traceback= 0x140C170 0x3760FDC 0xE0E31C 0xE0EB80 0xE0B910 0x1A4C9FC 0x1A4CC44 0x1A5C378 0x168B05C 0x2D9298 0x1A3E854 0x1A3F110 0x2930240 0x2E5850 0x2905A30 0x2905F08
    Please help me out from this problem

    Error message decoder results:
    1. %UTIL-3-DLL: Data structure error -- %s A software error occurred, resulting in data structure inconsistency.
    Recommended Action: Copy the message exactly as it appears on the console or in the system log.  Research and attempt to resolve the issue using the tools and utilities provided at  http://www.cisco.com/tac. With some messages, these tools and utilities will supply clarifying  information. Search for resolved software issues using the Bug Toolkit at  https://tools.cisco.com/bugsearch/?referring_site=emd. If you still require assistance,  open a case with the Technical Assistance Center via the Internet at  https://tools.cisco.com/ServiceRequestTool/scm/mgmt/case, or contact your Cisco technical support  representative and provide the representative with the information you have gathered. Attach the  following information to your case in nonzipped, plain-text (.txt) format: the output of the show  logging and show tech-support commands and your pertinent troubleshooting logs.
    Related documents- No specific documents apply to this error message.

  • Coherence::net::messaging::ConnectionException: could not establish a connection to one of the following addresses: {10.242.152.242/10.242.152.242:8088}; make sure the "remote-addresses" configuration element contains an address and port of a running TcpA

    Hi
    I have installed coheI have installed coherence server "fmw_12.1.3.0.0_coherence_Disk1_1of1.zip" along with Examples on windows machine and C++ client coherence-cpp-12.1.3.0.0b51709-windows-x86-vs2012.zip on the same machine.
    I have built the "contacts" C++ Example successfully and while I execute this "contacts" using run I am facing TcpAcceptor error.
    On my coherence server the TcpAcceptor is listening on port 8088, so I have modified the extend-cache-config.xml file with values "ip address of my windows machine" and port as "8088".
    All the time I am getting below error,
    coherence::net::messaging::ConnectionException: could not establish a connection to one of the following addresses: {10.242.152.242/10.242.152.242:8088}; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor
        at class coherence::lang::TypedHandle<class coherence::component::net::extend::PofConnection> __thiscall coherence::component::util::TcpInitiator::openConne
    ction(void)(TcpInitiator.cpp:307)
        at coherence::component::util::TcpInitiator::openConnection
        at coherence::component::util::Initiator::ensureConnection
        at coherence::component::net::extend::RemoteCacheService::openChannel
        at coherence::component::net::extend::RemoteService::doStart
        at coherence::component::net::extend::RemoteService::start
        at coherence::component::util::SafeService::startService
        at coherence::component::util::SafeService::restartService
        at coherence::component::util::SafeService::ensureRunningServiceInternal
        at coherence::component::util::SafeService::start
        at coherence::net::DefaultConfigurableCacheFactory::configureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache
        at coherence::net::DefaultConfigurableCacheFactory::configureCache
        at coherence::net::DefaultConfigurableCacheFactory::ensureCache
        at coherence::net::CacheFactory::getCache
        at unsigned __int64 coherence::lang::class_spec<class coherence::lang::Managed<class ContactId>,class coherence::lang::extends<class coherence::lang::Object,class coherence::lang::Void<class coherence::lang::Object> >,class coherence::lang::implements<void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void> >::sizeOf(bool)
        at _onexit
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at BaseThreadInitThunk
        at RtlInitializeExceptionChain
        at RtlInitializeExceptionChain
        on thread "main"
    Caused by: coherence::net::messaging::ConnectionException: coherence::component::util::TcpInitiator::TcpConnection@029EAD78{Id=NULL, Open=1, LocalAddress=NULL,
    RemoteAddress=10.242.152.242/10.242.152.242:8088}: socket disconnect
        at class coherence::lang::TypedHandle<class coherence::net::messaging::Response> __thiscall coherence::component::net::extend::AbstractPofRequest::Status::g
    etResponse(void)(AbstractPofRequest.cpp:203)
        at coherence::component::net::extend::AbstractPofRequest::Status::getResponse
        at coherence::component::net::extend::AbstractPofRequest::Status::waitForResponse
        at coherence::component::util::Initiator::openConnection
        at coherence::component::net::extend::PofConnection::open
        at coherence::component::util::TcpInitiator::openConnection
        at coherence::component::util::Initiator::ensureConnection
        at coherence::component::net::extend::RemoteCacheService::openChannel
        at coherence::component::net::extend::RemoteService::doStart
        at coherence::component::net::extend::RemoteService::start
        at coherence::component::util::SafeService::startService
        at coherence::component::util::SafeService::restartService
        at coherence::component::util::SafeService::ensureRunningServiceInternal
        at coherence::component::util::SafeService::start
        at coherence::net::DefaultConfigurableCacheFactory::configureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache
        at coherence::net::DefaultConfigurableCacheFactory::configureCache
        at coherence::net::DefaultConfigurableCacheFactory::ensureCache
        at coherence::net::CacheFactory::getCache
        at unsigned __int64 coherence::lang::class_spec<class coherence::lang::Managed<class ContactId>,class coherence::lang::extends<class coherence::lang::Object
    ,class coherence::lang::Void<class coherence::lang::Object> >,class coherence::lang::implements<void,void,void,void,void,void,void,void,void,void,void,void,void
    ,void,void,void> >::sizeOf(bool)
        at _onexit
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at BaseThreadInitThunk
        at RtlInitializeExceptionChain
        at RtlInitializeExceptionChain
        on thread "main"
    Caused by: coherence::io::IOException: socket disconnect
        at unsigned int __thiscall coherence::net::Socket::readInternal(unsigned char *,unsigned int)(Socket.cpp:333)
        at coherence::net::Socket::readInternal
        at coherence::net::Socket::SocketInput::read
        at coherence::io::BufferedInputStream::fillBuffer
        at coherence::io::BufferedInputStream::read
        at coherence::component::util::TcpInitiator::readMessageLength
        at coherence::component::util::TcpInitiator::TcpConnection::TcpReader::onNotify
        at coherence::component::util::Daemon::run
        at coherence::lang::Thread::run
        on thread "ExtendTcpCacheService:coherence::component::util::TcpInitiator:coherence::component::util::TcpInitiator::TcpConnection::TcpReader"

    We are facing same issue.    Could you please provide us any working .Net sample code for the version 12.1.2.0.
    <ssl>
                  <protocol>Tls</protocol>
                  <local-certificates>
                    <certificate>
                      <url>c:\Cert\</url>
                      <password>password</password>
                      <flags>DefaultKeySet</flags>
                    </certificate>
                  </local-certificates>
                </ssl>
    thanks
    Bala

  • Document Contains Errors - Approval not possible

    Hi,
    We are having issue in our Invoice Workflow.
    When ever the approver is trying to approve the document, he is getting the error message "Document Contains Errors -> Approval not possible".
    We have verified the document and check for error messages and found the below error messages on the Document.
    E BBP_PD              047 Posting period 006 2011 is not open.
    The document was submitted some time in the first week of December and as part of AP process the posting period will be closed during the first week of every month.  This is a common business case and why is it stopping from posting the doc?
    FYI..this Invoice is posted against the WBS element.
    Pls give some insight on this and how to address the issue.
    Regards,
    Satya

    Hi,
    The posting date in the invoice is referring to the past period which is closed.You will have to change the invoice posting date to current period date and then process.
    Regards,
    Sanjeev

  • Import Container contains Error

    Hi,
    when i'm using in QAR, i didnt found any error in PO release strategy. But now, i'm facing the error Import container contains errors (are any obligatory elements missing?). I've checked workflow definition, it doesn't shows any error. And the import parameters are enabled.
    If anyone knows what is the problem, kindly let me know what i have to do...

    Hi,
    check, wether there are some obligatory container elements, wich are not filled when calling the workflow.
    The problem may be the data formats of the elements during runtime. If you try to assign elements, wich have different data-types may cause errors during runtime even the definition of the containers reports no problmes.

  • Import container contains errors issue for Release Strategy workflow

    Hello Experts,
    I have copied the standard workflow WS20000075 for PO approval on Release step.
    the copied workflow works fine in sandbox system, but in the test system I get an error saying 'import container contains errors (are any obligatory elements missing?)' I guess 'ReleaseCode' is not getting passed to the Workflow from the PO creation T-code.
    I went thru few SCN post, did check all the Linkages as said, everything seems to be ok. but still cannot trigger the workflow.
    need guidance as to where I may be going wrong.
    Regards,
    Jibran

    Hi Jibran
    If the WF is working in sandbox, it means that your definition, linkages etc are correct.
    Please check if the following note is relevant for you or not:
    1770720 - PO workflows run into error SFW_RUN594 - Import container contains errors
    It's about correcting the settings in SWEC and SWE2 (correct for your custom workflow definition)
    If not, then confirm with your MM consultant if the release strategy is configured correctly or not....take hints from the following SCN thread:
    http://scn.sap.com/message/14682486#14682486
    Regards,
    Modak

  • F4M document contains errors - URL missing from Media tag

    I feel like I'm getting close to finally get a live stream to work correctly in 4.5
    I can see the streams being recorded in the following directories
         C:\FMSHOME\applications\livepkgr\streams\_definst_\liveevent1
         C:\FMSHOME\applications\livepkgr\streams\_definst_\liveevent2
         C:\FMSHOME\applications\livepkgr\streams\_definst_\liveevent3
    Each directory contains five files: bootstrap ,control, meta, f4f, and f4x.
    I have a single file called Event.xml in the directory: C:\FMSHOME\applications\livepkgr\events\_definst_\liveevent
    <Event><EventID>liveevent</EventID>
    <Recording>
    <FragmentDuration>4000</FragmentDuration>
    <SegmentDuration>16000</SegmentDuration>
    <DiskManagementDuration>3</DiskManagementDuration>
    </Recording>
    </Event>
    However the client player receives the exception F4M document contains errors - URL missing from Media tag.
    If this file is dynamically generated on the fly by the server what do I need to change to resolve this issue?
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=10,0,0,0"
                width="600"
                height="409">
                <param name="movie" value="StrobeMediaPlayback.swf"></param>
                <param name="FlashVars" value="src=http://myserver/hds-live/livepkgr/_definst_/liveevent.f4m"></param>
                <param name="allowFullScreen" value="true"></param>
                <param name="allowscriptaccess" value="always"></param>
                <embed src="StrobeMediaPlayback.swf"
                       type="application/x-shockwave-flash"
                       allowscriptaccess="always"
                       allowfullscreen="true"
                       width="600"
                       height="409"
                       FlashVars="src=http://myserver/hds-live/livepkgr/_definst_/liveevent.f4m">
                </embed>
    </object>
    Thanks Again!
    Dave

    I will suggest you to go through this doc for complete implementation details. It is pretty comprehendable and would help you understand http live streaming better.
    http://help.adobe.com/en_US/flashmediaserver/devguide/WSeb6b7485f9649bf23d103e5512e08f3a33 8-8000.html#WSd391de4d9c7bd609a95b3f112a373a7115-7ff6.
    As per your questions -
    1. "I try to access the stream using the local player at http://localhost/hds-live/livepkgr/_definst_/liveevent/livestream.f4m" - This should be http://localhost/hds-live/livepkgr/_definst_/liveevent/liveevent.f4m.
         The name of the f4m is the name of the event you are referring to. In your case, the live event - liveevent is associated with all your three livestreams- namely livestream1, livestream2. livestream3.
    2. "Do I need to create BOTH a 'manifest.xml' and a 'event.xml'? And do both of these files need to be in the event directory like below?" - Yes. If you are using mbr you need both these files at the exact place you mnetioned.
    For simple single bitrate streams, mainfest.xml file is optional.
    3. "If I need to manually create a manifest.xml file would this file and directory be correct?" - Yes, you are right on track. Create the file Manifest.xml and place it inside events directory at the place you mentioned.
    4. "Do I need to use a absolute url in the streamid field in manifest.xml to resolve the error msg 'The F4M document contains errors URL missing from Media tag'?" - No. This is not needed. StreamId is not the content path, that is taken care of by the url path in the output manifest. You streamIds will be - livestream1, livestream2, livestream3.
    After all this, I would suggest you to check one more thing. If you are publishing the way you mentioned above, there would be '.stream' files (For eg - 'MTYxMjAzMzAzMg=.stream' ) created in your events folder - "C:\FMSHOME\applications\livepkgr\events\_definst_\liveevent\". You should check that there are 3 and only three files formed. It somehow happens that when you publish and republish again without deleting these files, FMS creates multiple copies and tries to map each one to the actual content written at - C:\FMSHOME\applications\livepkgr\streams\_definst_\livestream1\ etc.. So there should be three files and each one should point to one of the streams directory. If there are more, please delete these files, delete your hds streaming content (if possible) and republish again the same way.
    This should solve your problem. If still you are facing some issues, do let us know.
    Thanks,
    Apoorva.

  • Import container contains errors

    hi experts
    my Obj Type : BUS2012
    task :TS20000166
    workflow :WS2000075
    my workflow for PO is working fine.in outbox one mail which shows no errors in work flow log & everything is fine.
    but still am getting error mail in my inbox as
    still my workflow is working properly
    what will be the efffect for this
    Error processing following event linkage:
    BUS2012 RELEASESTEPCREATED WS20000075
    Following error occurred:
    SWF_RUN 594
    Message text:
    Import container contains errors (are any obligatory elements missing?)
    Event container appended as attachment.
    Event linkage not changed.
    Event stored temporarily.
    Events can be redelivered via event queue
    administration (transaction SWEQADM).
    nani

    hi balaji
    i did same config for both PR, PO
    both are working properly
    but for PO only y am getting this message in my inbox
    Error processing following event linkage:
    BUS2012 RELEASESTEPCREATED WS20000075
    Following error occurred:
    SWF_RUN 594
    Message text:
    Import container contains errors (are any obligatory elements missing?)
    Event container appended as attachment.
    Event linkage not changed.
    Event stored temporarily.
    Events can be redelivered via event queue
    administration (transaction SWEQADM).
    nani

  • The settings for accounting integration contain errors

    The settings for accounting integration contain errors
    Message no. DPR_FIN_GECCO004
    System Response
    The accounting functions are not available.
    Procedure
    Check the following in Customizing for Collaboration Projects:
    Did you assign an object type to the project type for communicating with the accounting system? See the IMG activity Make General Settings.
    Does this object type have the proxy class CL_DPR_OLR3_GECCO (for single-object controlling on internal orders) or CL_DPR_OLR3_WBSELEMENT (for single-object controlling on WBS elements)? See the IMG activity Define Object Types for Object Links.
    Has an RFC destination been entered in this object type? See the IMG activity Define Object Types for Object Links.
    In the project type did you choose the confirmation setting regarding 'Time Recording for' to match the integration scenario? See the IMG activity Define Project Types. For example, time recording for a role is not permitted in a structure-based scenario.
    All the steps mentioned in the in the above error have been verfied and are correct but the error is still existing. Is there anything that I am missing here?

    Hi SAP USER123 ,
    Actually the description of the messages should the reason of the problem. Please double check the settings again one by one.
    If the problem still remains, you can open a customer message for help.
    Kind regards
    Zhenbo

  • CProject - The settings for Accounting integration contain errors

    Hi,
    I got error message "The settings for Accounting integration contain errors"  from cProject page when I choose controlling method  (Project Role, Automatic).
    If I choose other controlling method then this the error message disappear.
    Maybe some thing wrong while setup Role Type?.
    Please help!
    Thank you
    Long Nguyen

    Hi,
    Are you using MULTILEVEL CONTROLLING ( PROJECT ROLE , AUTOMATIC)
    that means
    Multilevel Controlling (Project Role, <b>Automatic</b>): In this method, the system automatically creates a PS project definition for the project definition and a WBS billing element at the first level of the hierarchy. More WBS elements are created for the project roles of the cProjects projects.
    Multilevel Controlling (Project Role, <b>Manua</b>l): In this method, a user has to create the PS project in the ERP system. The user then has to assign the project roles of a cProjects project to the WBS elements of this PS project manually in cProjects.
    thanks
    sunil

  • The boot configuration data for your Pc is missing or contains errors: error code 0x000014c

    Hello, 
    See if any body may help here... I get this blue screen:
    RECOVERY
    Your PC needs to be repaired: 
    The Boot Configuration Data for your PC is missing or contains errors.
    file:\\EFI\Microsoft\Boot\BCD
    Error code: 0xc000014c
    You'll need to use the recovery tools on your installation media. If you don't have any installation media (like a a disc or USB device), contact your system administrator or PC manufacturer.
    Press Esc for UEFI Firmware Settings
    First I was able to get into the option 11 and run the whole factory reset, i was so happy because I tought it will be easy.. but then after I did the factory reset.. I keep getting this blue screen. if I press ESC I get into this next screen:
    F1 System Information
    F2 System Diagnostics
    F9 Boot Device Options
    F10 BIOS Setup
    F11 System Recovery
    ENTER - Continue Startup.
    this is what happen when I click any of this options:
    F1 I get into the System Information with no problems, then I click <ESC> to continue and get back to the last screen... then I press F2 and super, I am able to run Memory Test and Hard Drive Check 100% with no problems in any of those, after I am done with my teste I press exit and I am back to the F1,F2, ETC menu... now I want to try F9, F10 or F11. bummer.. in this 3 options I get back to the blue screen described at the beggining of this post. (I already connect a USB with an boot loader, which works perfectly) 
    so I can't do anything, nothing at all!! crazzines. 
    So what I did to check why I can't get into the BIOS or at least to boot from my USB... I removed the botton cover of my laptop and removed the hard drive and that's how then I was or I am able to Log into the BIOS, - I did the changes to boot first from the USB and then from the HD and this is how I was able to boot from the USB - BUT If I connect back the Hard drive, I am not able to get into the BIOS or boot from the USB - so basically I am stuck in this blue screen and I can't boot from a USB if I have the HD connected.. I can't use any option.. no BIOS, nothing.. only if again, i disconnect the HD.  
    This is an:
    HP ENVY TS Sleekbook 4
    PRODUCT NUMBER  D1A99UA#ABA
    SYSTEM BOARD ID: 1894
    Bios F.25 
    **** I though that by updating the BIOS I may be able to get help, nothing. What I did is, I removed the HD and then and boot from the USB and with a DOS command propmt I excecuted the Bios Update from F.21 to f.25... but again, when I installed the hard drive back, BUMMER, nothing I can't do nothing but this silly blue screen. 
    Any idea of what should I do? 
    Thanks in advance.
    This question was solved.
    View Solution.

    If you can't access BIOS with the hard disk connected, you certainly won't be able to boot to the usb recovery flashdrive. That is indicative of a failed hard disk.
    Install a new hard disk and then boot to the recovery flashdrive.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Error in using BAPI_CONFEC_CREATE : Interface data contains Errors

    Hi,
    I am using this BAPI BAPI_CONFEC_CREATE to create confirmations locally in SRM for a PO. I am following Documentation available for this BAPI.  But when I excuted with below data getting error " INTERFACE DATA CONTAINS ERRORS"
    I am passing these data:
    Hedaer: Ref_doc_no - PO Number
                  Description:
                 Process Type: "CONF"
    Header_cust:  parent_guid : PO GUID
    Item: Parent: PO Header GUID
            PO Number: PO number
            PO GUID: PO HEDAER GUD
            PO ITEM Number: PO item Number
           PO_ITEM_GUID: po item guid
    Account:
                   Parent_GUID : PO Item GUID
                   G/L acct : Po G/l acct
                   cost center : PO cost center
    what are the data sholud be passed to this BAPI?
    Am I missing any input data to this BAPI? Please let me know.
    Am I using correct Function Module to create a confirmation for a PO in Stand alone scenario?
    Thanks.
    Shears
    Edited by: Shears80 on Sep 10, 2010 1:39 AM

    Hi Matt
    I'm using the same FM but it's not working. Can you please share what data you are passing in the FM.
    After debugging I found that my confirmation is getting created but it's not getting saved.
    Please enlighten me.
    Thanks
    Ankit

  • Adding a window to a container: Error

    Hello there,
    Im facing a problem with my program.My program is about a Car Rental System and I am using GUI for the interface. From the main(CarRental) program,when user click one of the menu, there is another interface will appear for user to enter details.The problem is,my main (CarRental)program is running,click the first menu,then another interface open,but wen user enter details n click buttons , it is not even working. Below is my program:
    //This is main menu program
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    import javax.swing.JFrame;
    public class CarRental extends JFrame implements ActionListener{
         JFrame f;
         JLabel l1,l2,l3,choice;
         JPanel p1,p2,p3,p4,p5,p6,p7,p8,p9;
         JButton btnA,btnB,btnC,btnD,btnE,btnF;
         Connection conn;
         Statement stmt;
         ResultSet rs;
         public CarRental(){
              p1=new JPanel();p2=new JPanel();p3=new JPanel();
              p4=new JPanel();p5=new JPanel();p6=new JPanel();
              p7=new JPanel();p8=new JPanel();p9=new JPanel();
              f=new JFrame("New Rental Record");
              l1=new JLabel("........::: Car Rental System :::.........");
              l2=new JLabel("*******************************************************");
              choice=new JLabel("Please select your option:");
              btnA=new JButton("[1] New Rental Record");
              btnB=new JButton("[2] Update Rental Record");
              btnC=new JButton("[3] Search Rental Record");
              btnD=new JButton("[4] Delete Rental Record");
              btnE=new JButton("[5] Display Rental record");
              btnF=new JButton("[6] Exit");
              l3=new JLabel("*******************************************************");
              f.setLayout(new GridLayout(10,1));
              f.pack();
              f.setVisible(true);
              f.setSize(350,500);
              f.setBackground(Color.white);
              p1.add(l1);f.add(p1);
              p2.add(l2);f.add(p2);
              p3.add(choice);f.add(p3);
              p4.add(btnA);f.add(p4);
              p5.add(btnB);f.add(p5);
              p6.add(btnC);f.add(p6);
              p7.add(btnD);f.add(p7);
              p8.add(btnE);f.add(p8);
              p9.add(btnF);f.add(p9);
              btnA.addActionListener(this);
              btnB.addActionListener(this);
              btnC.addActionListener(this);
              btnD.addActionListener(this);
              btnE.addActionListener(this);
              btnF.addActionListener(this);
         f.addWindowListener(new WindowAdapter(){
                   public void windowClosing(WindowEvent e)
                        {System.exit(0);}});
              public void actionPerformed(ActionEvent e){
                        if(e.getSource()== btnA)
                        {     NewRecord nr=new NewRecord();}
                         else if(e.getSource()== btnB)
                        {     updateRecord ur=new updateRecord();}
                        else if(e.getSource()== btnC)
                        {     searchRecord sr=new searchRecord(); }
                        else if(e.getSource()== btnD)
                        {     deleteRecord dr=new deleteRecord(); }
                        else if(e.getSource()== btnE){
                             try{
                                  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                             catch(ClassNotFoundException e3) {
                                  JOptionPane.showMessageDialog(null,"ERROR:"+e3.getMessage());
                             try{
                                  conn=DriverManager.getConnection("Jdbc:Odbc:Car Rental", "", "");
                                  stmt=conn.createStatement();
                                  rs=stmt.executeQuery("Select * from Customer where CustID");
    String s=("CustID:   CustName:    CustAdd:          CustPhone:       No.of days rent:     Rate per rental: \n");
    while(rs.next())
    s=s+rs.getString(1)+"             "+rs.getString(2)+"              "+rs.getString(3)+"              "+rs.getString(4)+"                    "+rs.getString(5)+"                     "+rs.getString(6)+"\n";
                                       JOptionPane.showMessageDialog(null,s);}
    catch(SQLException e4){e4.printStackTrace();}}//end of F
    //to exit the program                    
    else if(e.getSource()== btnF){
    JOptionPane.showMessageDialog(null,"Thank you");System.exit(0);}
    else
    JOptionPane.showMessageDialog(null,"Invalid Option!");System.exit(0);
                   }//end of if statement
    public static void main(String args[]){
              CarRental cr= new CarRental();}//end of main
    }//end of main menu
    //New Rental program when user selects it
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    public class NewRecord extends JFrame implements ActionListener{
         JFrame f;
         Container c;
         FlowLayout layout;
         JLabel l1,l2,custId,custName,custAdd,custPhone,dayRent,rateRent;
    JTextField tid,tname,tphone,tday,trate;
                                  JTextArea tadd;
                                  JButton save,clear,exit;
                                  Connection conn;
                                  Statement stmt;
                                  ResultSet rs;
                                  JPanel p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11;
                             public NewRecord(){
                                //super("New Record");
                                  layout = new FlowLayout();
                                  c=getContentPane();
                                  c.setLayout(layout);
                                  p1=new JPanel();p2=new JPanel();p3=new JPanel();
                                  p4=new JPanel();p5=new JPanel();p6=new JPanel();
                                  p7=new JPanel();p8=new JPanel();p9=new JPanel();
                                  p10=new JPanel();p11=new JPanel();
                                  f=new JFrame();     
                                  l1=new JLabel("........::: New Rental Record :::.........");
                                  l2=new JLabel("*******************************************************");
                                  custId =new JLabel("Customer ID:");
                                  custName=new JLabel("Customer name:");
                                  custAdd=new JLabel("Customer address:");
                                  custPhone=new JLabel("Customer phone:");
                                  dayRent=new JLabel("Days of rental:");
                                  rateRent=new JLabel("Rate per rental:");
                                  tid= new JTextField(10);
                                  tname=new JTextField(10);
                                  tphone=new JTextField(10);
                                  tadd=new JTextArea(4,30);
                                  tday=new JTextField(5);
                                  trate=new JTextField(10);
                                  save=new JButton("SAVE");
                                  clear=new JButton("CLEAR");
                                  exit=new JButton("EXIT");
                                  f.setLayout(new GridLayout(11,1));
                                  f.setBackground(Color.white);
                                  f.setVisible(true);
                                  f.setSize(600,600);
                                  p1.add(l1);f.add(p1);
                                  p2.add(l2);f.add(p2);
                                  p3.add(custId);p3.add(tid);f.add(p3);     
                                  p4.add(custName);p4.add(tname);f.add(p4);
                                  p5.add(custAdd);p5.add(tadd);f.add(p5);
                                  p6.add(custPhone);p6.add(tphone);f.add(p6);                         
                                  p7.add(dayRent);p7.add(tday);f.add(p7);
                                  p8.add(rateRent);p8.add(trate);f.add(p8);
                                  p9.add(save);f.add(p9);
                                  p10.add(clear);f.add(p10);
                                  p11.add(exit);f.add(p11);
                             /*     f.add(l1);
                                  f.add(l2);
                                  f.add(custId);
                                  f.add(tid);
                                  f.add(custName);
                                  f.add(tname);
                                  f.add(custAdd);
                                  f.add(tadd);
                                  f.add(custPhone);
                                  f.add(tphone);
                                  f.add(dayRent);
                                  f.add(tday);
                                  f.add(rateRent);
                                  f.add(trate);
                                  f.add(save);
                                  f.add(clear);
                                  f.add(exit);*/
                                  c.add(f);
                                  save.addActionListener(this);
                                  clear.addActionListener(this);
                                  exit.addActionListener(this);
                                  f.addWindowListener(new WindowAdapter(){
                                  public void windowClosing(WindowEvent e)
                                       {System.exit(0);}});
                             public void actionPerformed(ActionEvent e){
                                  if(e.getSource()== exit)
                                       {System.exit(0);}
                                  if(e.getSource()== clear){
                                       tid.setText("");
                                       tname.setText("");
                                       tadd.setText("");
                                       tphone.setText("");
                                       tday.setText("");
                                       trate.setText("");}
                                  if(e.getSource()== save){
                                       try{
                                            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                                       catch(ClassNotFoundException e1) {
                                            JOptionPane.showMessageDialog(null,"ERROR:"+e1.getMessage());
                                       try{
                                            conn=DriverManager.getConnection("Jdbc:Odbc:Car Rental", "", "");
                                            stmt=conn.createStatement();
                                            rs=stmt.executeQuery("Select * from Customer");
                                            while(rs.next()){
                                            tid.setText(rs.getString(1));
                                            tname.setText(rs.getString(2));
                                            tadd.setText(rs.getString(3));
                                            tphone.setText(rs.getString(4));
                                            tday.setText(rs.getString(5));
                                            trate.setText(rs.getString(6));}
                                            String s=("CustID:   CustName:    CustAdd:          CustPhone:       No.of days rent:     Rate per rental: \n");
                                            while(rs.next())
                                            s=s+rs.getString(1)+"             "+rs.getString(2)+"              "+rs.getString(3)+"              "+rs.getString(4)+"                    "+rs.getString(5)+"                     "+rs.getString(6)+"\n";
                                                 JOptionPane.showMessageDialog(null,s);
                                       catch(SQLException e2){
                                                 e2.printStackTrace();
                             public static void main(String args[]){
                                       NewRecord nr=new NewRecord();
                                  //     nr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                                       }//end of newRecord class
                                  }//ends of New rental program
    I tried to use extending to JPanel or JApplet but still the same. Any help??

    Hi,
    In the NewRecord java file, use change the
    f = new JFrame();               
    c = f.getContentPane();, after that all panel add into the container
    p1.add(l1);c.add(p1);                    
    p2.add(l2);c.add(p2);
    p3.add(custId);p3.add(tid);c.add(p3);     
    p4.add(custName);p4.add(tname);c.add(p4);
    p5.add(custAdd);p5.add(tadd);c.add(p5);
    p6.add(custPhone);p6.add(tphone);c.add(p6);          
    p7.add(dayRent);p7.add(tday);c.add(p7);
    p8.add(rateRent);p8.add(trate);c.add(p8);
    p9.add(save);c.add(p9);
    p10.add(clear);c.add(p10);
    p11.add(exit);c.add(p11);and finally remove this line below
    //c.add(f);Try to avoid add frame into the container, or else you will receive adding a window to a container error.
    Rgrds,
    Sen
    Message was edited by:
    arjensen

Maybe you are looking for

  • Mssql backup failed in db13

    SQL Job information   ****************************** Jobname:    SAP CCMS Full DB Backup of ADQ [20110118203423-3-030000] Type:       TSQL DB-Name:    ADQ For Run:    20110119  03:00:00 Job history information  ***************************** Stepname:

  • SMTP in problem

    I'm testing inbound connections using a port listener software. all ports are working, only port 25 fail this is what I use to route inbound connections: access-list outside_access_in extended permit tcp any host 63.x.y.26 eq 951 access-list outside_

  • Error in process when creating Purchase Order against WBS

    Hi! We are creating a purchase order (BBP_POC) against a WBS. But when trying to purchase for more than what the project budget is set to the purchase order gets the status "Error in process". We do not want the purchase order to be replicated to ECC

  • Windows Crashes with JRE 1.4.2

    Hi! I work on a Java Applet/application that was originally written to run on java 1.1 -- only AWT that too. Recently I managed to convince my manager (and his manager and his manager) to migrate from the AWT framework on java 1.1 (Microsoft JVM that

  • Where is the in-built update function?

    Iam told that I need to update my Firefox. Where is the automatic update?