Windows 10 RDS Gateway Error

We have an 2008 RDS Gatway that works fine with Win7 but for some reason Windows 10 says can't connect to the remote computer because the Remote Desktop Gateway Server is temporarily unavailable.
Same Remote Desktop Settings on both but Windows 10 gets that error.
Any suggestions or solutions?
Thank you
Matt
This topic first appeared in the Spiceworks Community

Hi , Welcome to the HP Support Forums! I understand that you're experiencing scanning issues with your HP Deskjet 1510 Printer. I would be happy to look into this with you.
What is the error message you're receiving?I would do a hard reset to see if that will resolve the issue.
Leave the printer on and unplug the power cable from the printer and wall outlet for 60 seconds.
Then reconnect the power cable to the printer and wall outlet rather than a surge protector.
This ensures the printer is receiving full power and may help this situation. I would try the steps within this guide, HP Printers - A Communication or Connection Error Displays When Scanning. What were the results when you ran the Print and Scan Doctor? (did it print or scan, any error messages) Please respond to this post with the result of your troubleshooting. I look forward to hearing from you. Good Luck!

Similar Messages

  • RDS Gateway + Smart Card Error [ The specified user name does not exist.]

    I have the following Windows Server 2008 R2 servers:
    addsdc.contoso.com, AD DS Domain Controller for contoso.com
    adcsca.contoso.com, AD CS Enterprise CA, CDPs/AIAs published externally.
    fileserver.contoso.com, RDS Session Host for Administration enabled
    rdsgateway.contoso.com, RDS Gateway enabled
    tmgserver.contoso.com, 'Publishing' rdsgateway.contoso.com but with pass-through authentication
    And the following Windows 7 PCs:
    internalclient.contoso.com
    externalclient.fabrikam.com
    There's no trust between the domains, the external client is completely separate on the internet but the CA certificate for contoso.com has been installed in the trusted Root CA store. All servers have certificates for secure RDP.
    I enrolled for a custom 'Smart Card Authentication' certificate with Client Authentication and Smart Card Logon EKUs from the CA, stored on my new Gemalto smart card using the Microsoft Base Smart Card CSP.
    From internalclient.contoso.com, I can RDP to fileserver.contoso.com
    using the smart card just fine with no certificate errors.
    From externalclient.fabrikam.com, I can RDP to fileserver.contoso.com
    via rdsgateway.contoso.com using a username and password just fine with no certificate errors.
    From externalclient.fabrikam.com, I can RDP to fileserver.contoso.com
    via rdsgateway.contoso.com using the smart card to authenticate to the gateway, and a username and password to authenticate to the end server, just fine.
    BUT from when using a smart card to authenticate to the end server via the gateway, it fails with:
         The specified user name does not exist. Verify the username and try logging in again. If the problem continues, contact your system administrator or technical support. 
    When I move the client into the internal network and try the connection again (still via the RDS Gateway), it works fine - the only thing I can think of is being outside the network and not being able to contact the AD DS DC for Kerberos is causing the issue
    - but I'm pretty sure this is a supported scenario?
    The smart card works fine internally, the subject of the certificate is the user's common name (John Smith) and the only SAN is
    [email protected] which matches the UPN of the user account as it was auto-enrolled.
    Does anyone have any ideas?

    I had a similar issue where I am using a smart card through a Remote Desktop Gateway. I had to disable Network Level Authentication (NLA) on the destination Remote Desktop Server. If anyone has another way around this, I'd appreciate hearing it. I'd prefer
    to use NLA.

  • Remote App and Desktop RDP client never succeed to logon the RDS gateway server running Windows 2012R2

    Remote App and Desktop RDP client never succeed to logon the RDS gateway server running Windows 2012R2
    1. Client Os : Windows 7 Pro
    2. Server OS : Windows Server 2012R2 with RDS broker and RDS Gateway server with 3.part Certificate  with friendly name sky.mti-itservice.no activated.
    The  main problem is following: The RDP logon session never ends
    Any ideas ?
    Regards
    Kenneth Knudsen
    Email : [email protected]
    mvh Kenneth Knudsen MCSE 2003 HP ASE

    Hi Kenneth,
    Here for your case suggest you to configure RDP session time limit so that your user can disconnect\log off once the specific time limit reached.
    You can setup the session time limit in different method.
    1. Open the Server Manager, select Remote Desktop Services.
    2. In Remote desktop Services, in right side you can drop down to collections.
    3. Select the collection which you want to edit the settings.
    4. Under collections Properties, select Task and then Edit Properties.
    5. In Properties dialog box, select Session.
    6. You can find all thetimeout settings under session collection properties; edit according to your requirements and then OK. 
    And apart also by group policy setting as below.
    Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits 
    User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits 
    -  Set time limit for disconnected sessions
    -  Set time limit for active but idle Remote Desktop Services sessions
    -  Set time limit for active Remote Desktop Services sessions
    -  End session when time limits are reached
    Please check which setting suitable for your environment and you can apply for your case.
    [Forum FAQ] Restrict number of Active Sessions in RDS 2012 and 2012 R2
    https://social.technet.microsoft.com/Forums/en-US/00c2252b-8ec0-489f-8da2-07a434a9b5a2/forum-faq-restrict-number-of-active-sessions-in-rds-2012-and-2012-r2?forum=winserverTS
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • RDS Gateway 2012, RemoteApp Displays "A Revocation check could not be performed for the Certificate" via RDWEB

    I have searched through the forums and there are a number of posts that are similar but all the checks they list seem to not apply to this one.
    My current setup is as follows
    All Servers are 2012 R2
    1 x DC server
    1 x RDS Gateway server with RDS Web installed
    1 x Session Host Server
    Certificate supplied by godaddy with 5 names. (included is the name of the RDS Gateway/Web server in the certificate, the internal name of the session host server is not included as the internal names are differnet to the external)
    My tests are as follows
    Navigating to the RDSWEB page from a machine inside the same network (windows 7 sp1) but not on the same domain is fine no errors and logging in and launching any published application is fine with no errors.
    However logging in on another machine that is external from the network (windows 7 sp1) is ok up to the point of launching any of the published apps I get the error about ""A Revocation check could not be performed for the Certificate". this
    prompts twice but does allow you to continue and login and use the app till the next time. If I view the certificate from the warning message all appears to be ok with all certs in the chain.
    I have imported the root and intermediate certs to each of the gateway/rdsweb server and session host server into the computer cert store just to be on the safe side. This has not helped, I have also run the following command from both windows 7 machines
    with no errors on either
    certutil -f –urlfetch -verify c:\export.cer
    I cant seem to see where this is failing and I am beginning to think there is something wrong with godaddy cert itself somehow.
    If I skip rdsweb and just use MSTSC with the gateway server settings then I can login to any machine on the network with no errors so this is only related to launching published apps on the 2012 R2 RDWEB or session host servers.
    Any help appreciated

    Hi,
    1. Please make sure the client PCs have mstsc.exe (6.3.9600) installed.
    2. If you are seeing a name mismatch error, you can set the published name via this cmdlet:
    Change published FQDN for Server 2012 or 2012 R2 RDS Deployment
    http://gallery.technet.microsoft.com/Change-published-FQDN-for-2a029b80
    To be clear, the above cmdlet changes the name that shows up next to Remote computer on the prompt you see when launching a RemoteApp.  You should have a DNS A record on your internal network pointing to the private ip address of your RDCB server. 
    Additionally, in RD Gateway Manager, Properties of your RD RAP, Network Resource tab, you should select Allow users to connect to any network resource or if you choose to use RD Gateway Managed group you will need to add all of the appropriate names to the
    group.
    For example, when launching a RemoteApp you would see something like Remote computer: rdcb.domain.com and Gateway server: gateway.domain.com .  Both of these names need to be on your GoDaddy certificate.
    Please verify the above and reply back so that we may assist you further if needed.  It is possible you have an issue with the revocation check but I would like you to make sure that the above is in place first.
    Thanks.
    -TP
    Thanks for the response.
    To be clear I am only seeing a name mismatch and revocation error if I assign a self signed cert to the session host as advised earlier in the thread by "Dharmesh Solanki", if I remove this and assign the 3rd party certificate I then
    just get the revocation error , I have already ran the powershell to change the FQDN's but this has not resolved the issue although the RDP connection details now match the external url for RDWEB when looking at one of the remoteapp files. The workspace
    ID still shows an internal name though inside this same file. 
    RD Gateway is already set to connect any resource, when connecting using remote app both names (RDCB/RDGateway) show as being correct and are contained within the same UCC certificate. I also already have a DNS entry for the Connection broker pointing to
    the internal ip.
    Do you know if the I need the internal name of the session host servers contained within the same UCC certificate seeing as they are different fqdn's than what I am using for external access ? I resigned the UCC certificate and included the internal name
    of the session host server to see if this would help but for some reason I am still seeing the revocation error. I will check on a windows 8 client pc this evening to see if this gets any further as the majority of the testing has been done on windows 7 sp1
    client pc's
    Thanks

  • Windows 2012R2 RDS - Outlook 2013 preview handler not working

    Hello,
    We have an Windows 2012R2 RDS environment with Outlook 2013 installed. Currently we are experiencing some issues with the preview handler for non-administrator users. With an Administrator account it is working without issues.
    All users that open WORD, EXCEL, POWERPOINT or other office applications see the following error:
    This file cannot be previewed because of an error with the following previewer:
    Word/Excel/Powerpoint
    To open this file in its own program, double-click it.
    Other programs like Windows Media Player (voicemail messages), Image viewer, Notepad are working.
    Any idea what we can do to make this work?
    Thanks.
    Max

    Hi Max,
    Thanks for your information.
    After doing some research, this behavior might be related a DCOM permission. I suggest checking this point:
    1. Go to Component Services and Open it.
    2. Expand Component Services, click on Computers, then right click on My Computer and go to “properties".
    3. Click on Default Properties tab, and make sure the following is set:
    Default Authentication Level: Connect
    Default Impersonation Level: Identify
    If it’s a permission issue, we can use process monitor to get the logs.
    [Process Monitor Report]
    =================
    Process Monitor is an advanced monitoring tool for Windows that shows real-time file system, Registry and process/thread activity.
    To collect the process monitor, please refer to the following steps.
    a) On the machine which we will reproduce the issue, download Process Monitor from the following link:
    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    b) Extract the ZIP file, start Outlook in safe mode, stop all other applications and operation in Outlook, then run Processmon.exe
    c) While Process Monitor is running, click the microscope icon in the toolbar to stop the capture (CTRL+E) and clear the initial logs (CTRL+X).
    d) In Outlook, reproduce the issue by click the “Copy to my Calendar”, then start the capture (CTRL+E).
    e) Save (File -> Save ) the Process Monitor log and upload the log file (Logfile.PML) to me.
    You can send the log file to this email account:
    [email protected] and inform us here (the email subject should be the link of this thread).
    Please collect logs for an administer and a non-admin user.
    Regards,
    Ethan Hua
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • RDS Gateway Best practices Dual-Homed?

    Good Day,
    I am wondering what is a typical amount of time others see when end users launch a RemoteApp session that goes through the RDS Gateway.
    Our two RDS Gateway servers (entire environment is W2k12R2) seem slow to me. They are both Dual-Homed and with a Nic on the DMZ and Internal side of the network. Maybe I would be better off disabling the Internal Nics and reconfiguring the firewall rules
    so that everything routes through the DMZ nic?
    Steve J.

    Hi Steve,
    Thank you for posting in Windows Server Forum.
    Best practice for any server is depends on your environment scenario as you need to decide whether to place the gateway in DMZ or allow 443 to be opened to the internal network. Placing the RDS Gateway in DMZ is more secure, you can have more information from
    beneath article.
    RD Gateway deployment in a perimeter network & Firewall rules
    http://blogs.msdn.com/b/rds/archive/2009/07/31/rd-gateway-deployment-in-a-perimeter-network-firewall-rules.aspx
    For more detail and understand RD Gateway refer this article.
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • DEFAULT GATEWAY ERROR

    we recently installed microsoft outlook 2013 in windows 7 in our office whille we are trying to connect the outlook to exchange server it show some message
    message appearing on my screen is :The action can nt completed.The microsoft exchanage is  unavaliable.your network adapter doesnt have the default gateway error.
    In microsoft exchange community we seen some solution and that solutions are also tried we get solution for this problem,so please suggest us solution to this problem.

    Hi,
    If your client doesn't have a Default Gateway, then you need to create a Dword named
    DefConnectOpts, value "0" in the registry at HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\RPC
    See: http://support.microsoft.com/kb/913843
    If you do have Default Gateway, then may I ask if you are connecting to an Exchange Server over Direct Access?
    Martina Miskovic

  • TS-Gateway Error 23002

    The user "domain\user1", on client computer "ipaddress1", did not meet resource authorization policy requirements and was therefore not authorized to resource "computer_name". The following error occurred: "23002".
    What is an error 23002? 

    Having similar issue with this same error on a new configuration for our ASP hosted environment.
    DC = 2003 R2 SP2, domain/forest level are 2003
    Licensing, Gateway, NPS, and Session Broker, on same 2008 R2 (NON-sp1) server
    3 RDS Host servers running 2008 R2 (NON-sp1) as a single RDS farm.
    I have deleted and recreated the CAP and RAP policies.  I can connect to each individual RDS host, as well as the RDS farm with no issues.  I have an External trusted CA installed on the Gateway for our external domain.  If I try and connect
    to the RDS farm externally OR internally (making sure not to bypass gateway for internal addresses), I get a login failure and the 23002 error message.
    I have added "<domain>\domain users" to all resource ACL's (Remote Desktop Users on RDS Hosts, CAP policy, RAP policy), I've made sure that the RDS Hosts are apart of the RDS Broker Session Computers group, and I have also deleted and recreated the
    RDS Gateway Group (RDS farm).  Everything is configure to use the full FQDN.  No NetBIOS names are used anywhere.  I am able to confirm that the proper certificate is loaded.
    I am at a loss.  I've tried everything and nobody else seems to have run into this.  The only problem I run into is when I access the farm through the Gateway.  I know I've missed something, but I just can't find it.  I thought maybe
    it was the certificate, but if I change to a self-signed certificate on the Gateway then I get an error and can't even authenticate.
    The event logs actually show connectivity and resource allocation up to the point that it tries to authenticate to one of the hosts in the farm and then kicks back with the error.  It's almost like the RDS Hosts don't trust the Gateway for delegation
    to the broker.
    Is there some other group or security setting that the Gateway needs to be a member of?
    zim

  • Repository Gateway error ORA-03113: end-of-file on communication channel

    Hello -
    We have 4 Oracle Portals installed at my company which are all mirror installs of each other, but one server constantly has issues. About once a week I get an error in the <OraHome>\j2ee\OC4J_Portal\application-deployments\portal\OC4J_Portal_default_island_1\application.log
    11/03/20 06:01:51 portal: [module=PortalServlet, ecid=2766352842090,1] ERROR: Repository Gateway error: Database Error: ORA=3113 ORA-03113: end-of-file on communication channel
    11/03/20 06:01:51 portal: [module=PortalServlet, ecid=2766352842090,1] ERROR: oracle.webdb.repository.service.RepositoryServiceException: Portal session creation failed.
    11/03/20 06:02:44 portal: [module=PortalServlet, ecid=3917404131701,1] ERROR: Repository Gateway error: Database Error: ORA=3114 ORA-03114: not connected to ORACLE
    11/03/20 06:02:44 portal: [module=PortalServlet, ecid=3917404131701,1] ERROR: oracle.webdb.repository.service.RepositoryServiceException: Portal session creation failed.
    11/03/20 06:07:44 portal: [module=PortalServlet, ecid=6271046517224,1] ERROR: Repository Gateway error: Database Error: ORA=3114 ORA-03114: not connected to ORACLE
    11/03/20 06:07:44 portal: [module=PortalServlet, ecid=6271046517224,1] ERROR: oracle.webdb.repository.service.RepositoryServiceException: Portal session creation failed.
    Once this error occurs, a reboot of the server is needed to restore functionality. The Portal server is a 32-bit Windows Server 2003 and the database is Oracle 10g residing on a Unix server. Can anyone help me troubleshoot this?

    Hello -
    We have 4 Oracle Portals installed at my company which are all mirror installs of each other, but one server constantly has issues. About once a week I get an error in the <OraHome>\j2ee\OC4J_Portal\application-deployments\portal\OC4J_Portal_default_island_1\application.log
    11/03/20 06:01:51 portal: [module=PortalServlet, ecid=2766352842090,1] ERROR: Repository Gateway error: Database Error: ORA=3113 ORA-03113: end-of-file on communication channel
    11/03/20 06:01:51 portal: [module=PortalServlet, ecid=2766352842090,1] ERROR: oracle.webdb.repository.service.RepositoryServiceException: Portal session creation failed.
    11/03/20 06:02:44 portal: [module=PortalServlet, ecid=3917404131701,1] ERROR: Repository Gateway error: Database Error: ORA=3114 ORA-03114: not connected to ORACLE
    11/03/20 06:02:44 portal: [module=PortalServlet, ecid=3917404131701,1] ERROR: oracle.webdb.repository.service.RepositoryServiceException: Portal session creation failed.
    11/03/20 06:07:44 portal: [module=PortalServlet, ecid=6271046517224,1] ERROR: Repository Gateway error: Database Error: ORA=3114 ORA-03114: not connected to ORACLE
    11/03/20 06:07:44 portal: [module=PortalServlet, ecid=6271046517224,1] ERROR: oracle.webdb.repository.service.RepositoryServiceException: Portal session creation failed.
    Once this error occurs, a reboot of the server is needed to restore functionality. The Portal server is a 32-bit Windows Server 2003 and the database is Oracle 10g residing on a Unix server. Can anyone help me troubleshoot this?

  • No puedo conectar iCloud desde Windows vista, me marca error de servidor. Que hago para poder acceder iCloud desde vista?

    No puedo conectar iCloud desde Windows vista, me marca error de servidor. Que hago para poder acceder iCloud desde vista?

    The neighbor discovery on mac and PCs is based on broadcast.
    I think it's the same for yoru SQL application.
    Broadcast are blocked by default on the controller. You can enable "broadcast forwarding" in the controller menu

  • How to fix gateway error in a View Page?

    I have created an override view page and I need to add a button or link which should take the user to a page in different server. I am getting gateway error. The sample code as follows. Any thougts will be helpful. Thanks in advance.
    string sUrl = "<pt:gatewayLink pt:href='http://appserver/step1.asp' pt:objectID='206' pt:classID='35' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>"; HTMLAnchor myAnchor = new HTMLAnchor(sUrl); myAnchor.AddInnerHTMLString("Add a Logo"); myCell.AddInnerHTMLElement(myAnchor);

    i think, something is wrong in the approach itself.
    when you include the code, you do not need to create a new
    instance of Hmenu. Instead, you can simply use lnkBar .addChild(),
    because the this code is of your Hmenu itself.
    But i suggest you to use dataprovider for the linkbar instead
    of looping through the categories and adding the child.
    you just declare xmlData as Bindable and provide it as
    dataProvider of the linkbar.
    hope it works.

  • Window server 2008 r2 error show "stop :- c00002e3 security account manager initialization failed because of the for A DIVICE ATTACHED to the system is not funcation"

    Hi All
    Please help
    my server not working showing display error window server 2008 r2  error show "stop :- c00002e3 security account manager initialization failed because of the for A DIVICE ATTACHED to the system is not funcation"
    Please help me how to resolve this issue ???
    thnaks !!!

    Hi,
    If there is any external device plug into your computer, please unplug it and restart the Server.
    You can also test the issue in Safe mode.
    If it can boot into Safe mode, please update any driver has yellow warning on it, also check if the dump file is existing under %SystemRoot%\, if so, please help to post back for our research.
    Kate Li
    TechNet Community Support

  • 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

  • Obiee oracle gateway error while updating row count

    Hi ,
    OBIEE server 11.1.1.5 ,oracle server11g installed in linux 64bit,
    while updating row count in Admin tool i am getting the following error
    [NQODBC][SQL_STATE:HY000][nQSError:10058] A general error has occured.
    [nQSError: 43113]Message returned from OBIS.
    [nQSError:43093]An error occured while processing the EXECUTE PHYSICAL statement.
    [nQSError:17003]Oracle gateway error: OCIEnvNIsCreate or OCIEnvInit failed to initialize environment.Please check your Oracle Client installation and make sure the correct version of OCI libraries are in the library path.
    i am able to check the database from sqlplus it is working fine.
    Any suggestion highly appreciated plzzz

    Make sure your connection pool is valid and able to import or execute reports.
    If everything good as above said, in Physical layer database properties-> general tab choose the database version and try it once.
    If not
    Check the doc id 1271486.1
    Or
    To resolve the issue create a softlink (ln -s) in the <OracleBI>/server/Bin folder to link to the 32-bit Oracle Client Driver file.
    The example below shows how to perform a softlink from the 64 bit directory:
    cd /u10/app/orcladmin/oracle/OracleBI/server/Bin
    ln -s $ORACLE_HOME/lib32/libclntsh.so.10.1 libclntsh.so.10.1
    If helps mark

  • When i try to install itunes 10.6.3 for windows vista i get "error microsoft VC*80.CRT,type="win32",version="8.0.50727.6195".publicKey token="1fc8b3b9a1e18e3b",ProcessorArchitecture="x86"   what should i do?

    when i try to install itunes 10.6.3 for windows vista i get "error microsoft VC*80.CRT,type="win32",version="8.0.50727.6195".publicKey token="1fc8b3b9a1e18e3b",ProcessorArchitecture="x86"   what should i do?

    same problem. tried the ff fixes from microsoft but no joy
    http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/gett ing-error-message-an-error-occurred-during-the/10122022-2d88-4266-a695-6c6ddeafd 019?tab=AllReplies&page=1
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/ windows-vista-unable-to-install-itunes-an-error/19b48df7-54c8-47f3-8854-d34118fa a79a
    http://support.microsoft.com/mats/system_maintenance_for_windows/en-us
    other ideas would be appreciated.
    cheers

Maybe you are looking for