Using localhost problem.

Hi,
When I installed Oracle and Application Express, my laptop was connected to my home wireless network. I built an application using Application Express and when it was time to demo the application I did not have network connection as a result I could not run the applciation. It looks like the application is dependent on IP Address. What changes I need to do so I can run my application using localhost so my application is not dependent on being connected to my home network. The only way I can connect only using the address http://192.168.1.117:7778/pls/htmldb. I like to use the address http://localhost:7778/pls/htmldb without being connected to any network.
Thanks,
Bashar

I tried to use 127.0.0.1 when I was disconnected and it did not work. I checked the host file and it the correct entry for 127.0.0.1. When type the URL now I get the message
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at 192.168.1.117 Port 7778
When I type http://localhost:7778/ the appache site loads no problem.

Similar Messages

  • Unable to establish network endpoint connectivity from an executable using localhost - error: -314350

    Hi,
    We have two executables, one a sender and another a receiver. The receiver initiates a connection using the IP address of the sender's computer. They use the network endpoint connectivity mechanism to establish connection and transfer data. Everything (connectivity establishment, data transfer etc) works when the sender and receiver run on separate computers. If they run on the same computer the connection cannot be established and we get error message -314350 from 'Create Network Stream Reader Endpoint' VI on the receiver side. We tried using the IP address explicitly as well using localhost as the IP address. None of the options work.
    Now if we run the sender and receiver VIs from within the Labview environment, on the same computer, everything works fine. Everythng works whether we explicitly use the IP address of the computer or just use localhost.
    If one of the two runs as an executable and other runs in the environment, we get the same error message (-314350)
    Does anybody know what seems to be the problem ?

    In case anybody else runs into this problem, you might want to check out the Endpoint URLs section in the following tutorial.  To elaborate further on the issue, when creating an endpoint, you must supply a unique endpoint name that doesn't already exist in the system or an error will be generated.  This is fairly straight forward when dealing with a single application instance on a given machine.  However, if you have multiple application instances running on the same machine, things become more challenging.  If you have two applications App1 and App2 that both contain a reader endpoint named MyReader, we need to ensure the data received from the network is properly routed to each application.  To facilitate this, each endpoint is registered in a named context, and only one application can create endpoints in that named context.  If a second application tries to create an endpoint in a named context already being used by another application on that machine, you'll receive error -314350.  This is analagous to how applications on the same machine can't use the same port number when using TCP/IP to communicate.  If you don't explicitly specify a context when naming the endpoint, we'll attempt to create the endpoint in the default context (which is equivalent to the empty string).  This means things will work fine when running both VIs from the development environment since both VIs are in the same application instance.  However, if you create a built app for each VI and run both applications on the same machine, you'll receive error -314350 unless you've gone to the effort to make sure your endpoint names are unique across contexts.  The same thing would happen if you ran one VI in the 2010 dev environment and the second in the 2011 dev environment on the same machine.  I hope this helps clarify things.

  • Oracle9iAS(9.0.2.0.1) Can't connect X11 Window Server Using localhost:0.0

    Hi, everyone:
    I have installed the Oracle9iAS(9.0.2.0.1), at the first time installation, every thing is succeed in Miracle Linux 2.0, but after i reboot linux pc, then
    #$ORACLE_HOME/bin/emctl start is also succeed,
    unfortunately after i connect to that pc by 1810 port,
    it display a web page with the message of
    Servlet error: Renderer failed:
    java.lang.NoClassDefFoundError can't connect X11 window
    server using 'localhost:0.0' as the value of the DISPLAY
    variable
    why, and how to solve this problem, thanks in advanced

    Check out the support matrix for deploying to different versions of OracleAS.
    http://otn.oracle.com/products/jdev/htdocs/9.0.5.1/install.html#supported
    Following how-to has an FAQ which has details about invalid servlet path error.
    http://otn.oracle.com/products/jdev/howtos/appservers/deployias.html#faq
    raghu
    JDev Team

  • Can't connect to X11 window server using 'localhost:0.0'

    Hello again,
    I tried as you suggested under the GUI environment of Red Hat Linux Enterprise 3 (WS).
    =====
    [root@Linux2005 /]# su - oracle
    [oracle@Linux2005 oracle]$ /OraHome1/Disk1/runInstaller
    [oracle@Linux2005 oracle]$ Initializing Java Virtual Machine from /tmp/OraInstall2004-08-18_09-03-45AM/jre/bin/java. Please wait...
    Xlib: connection to "localhost:0.0" refused by server
    Xlib: No protocol specified
    Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
    at java.awt.Window.<init>(Window.java:188)
    at java.awt.Frame.<init>(Frame.java:315)
    at java.awt.Frame.<init>(Frame.java:262)
    at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)
    [oracle@Linux2005 oracle]$
    =====
    The server does not take it.
    What else can I do ? Any ideas ?
    PT

    I had the same problem (Oracle unbreakable Linux) and tried everything you suggest.
    Finally when I implement this in bash_profile of oracle user and relogin:
    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
    ORACLE_SID=TSH1; export ORACLE_SID
    ORACLE_TERM=xterm; export ORACLE_TERM
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
    if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
    fi
    fi
    runInstaller run as hell!

  • Want to use localhost

    <font face="Times New Roman" color="35349F" size="3">
    Hi,
    recently I have changed the IP within the TCP/IP of the machine to one specific IP. then such change led to that i could not connect to the local XE DB using the host like "localhost". Instead, i have to use that specific IP as the host. How can i continue to use localhost as the host?
    It's in WinXP
    Thanks & Best Regards,
    HuaMin
    </font>

    I can't seem to reproduce it now on my Win7 machine but I recall some testing I did once on XP that showed that -- at least the version and config I had during those tests -- where Windows would always resolve localhost to 127.0.0.1, regardless of what is in the hosts file. The whole world knows 'localhost' means '127.0.0.1' and I wouldn't be surprised to find other products that have that relationship hard-coded as well.. Trying to make 'localhost' something else is just asking for problems. Give your db server (even if that server is your laptop) a fixed IP address (other than 127.0.0.1) associated with some name other than localhost.

  • Cannot run a podcast using localhost or Intranet internal webserver

    Hi,
    I am testing the usability of podcasts on our training webserver to provide alternative platforms for users to access training videos.
    If I create a podcast xml file with the videos on an external webserver and put the URL link to the xml file in the subscribe to a podcast box, it works fine.
    If I replicate the structure and put it on one of our Intranet webservers, using either the Domain name or the IP address, the Podcast cannot be found.
    Putting the URL directly into a Browsers address bar shows the title of the Podcast in the page but no link to the video, which is what I normally do to check connections.
    Does iTunes podcasting files not work on internal severs or connections using Localhost as the server name?

    Thanks both of you, I just figured it out! As you might expect, it was something stupid.
    Creating a new php file as you suggested worked, so that led me down a path to do a few more tests and realised the mysql database connection file that had been moved. My dad must have also moved that when he renamed the sites folder -- didn't tell me about that one!!
    thanks again for the help

  • [svn] 1313: Fix for the use namespace problems we've been having with ASC ( I hope).

    Revision: 1313
    Author: [email protected]
    Date: 2008-04-20 09:41:41 -0700 (Sun, 20 Apr 2008)
    Log Message:
    Fix for the use namespace problems we've been having with ASC (I hope). The problem was that the use directive was being defined after we had called finish package. The UseDirectiveNode has a pkgdef ptr, and does different things depending if that ptr is null or not. It should not be null when the UseDirective is inside the package - but since we were generating the UseDirectiveNode after we had called finishPackage the UseDirectiveNode didn't have it's pkgdef ptr set, and so things went awry as the package didn't get set up with all the correct open namespaces. I haven't tested this in authoring/flex but I am pretty sure that this will fix all the problems we're seeing.
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Parser.java

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Last update to ios6 - worst ever, facetime does not work as it used to, problems with skype

    last update to ios6 - worst ever, facetime does not work as it used to, problems with skype, losing connection or no9t connecting facetime to face time. Do something with it.

    I'm not sure yet, but It may be as simple as "settings", "FaceTime" "Off"

  • Mildet connect to oracle DB using servlet problem ,help please

    hi guys i have a problem am tring to connect my midlet to databse through midlet but i don`t know what is the problem so far the midlet already connect to my servlet url but the servlet cant read the parameters to open the connection for database
    my servlet code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.text.*;
    * @author freddy
    public class getconnection extends HttpServlet {
        Statement statement;
    ResultSet rs=null;
    String bstr=null;
    String bstr1=null;
    String bstr2=null;
    public void init()
        * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
        * @param request servlet request
        * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try {
                /* TODO output your page here
                out.println("<html>");
                out.println("<head>");
                out.println("<title>Servlet getConnection</title>"); 
                out.println("</head>");
                out.println("<body>");
                out.println("<h1>Servlet getConnection at " + request.getContextPath () + "</h1>");
                out.println("</body>");
                out.println("</html>");
            } finally {
                out.close();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        * Handles the HTTP <code>GET</code> method.
        * @param request servlet request
        * @param response servlet response
        @Override
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
      doPost(request,response);
        * Handles the HTTP <code>POST</code> method.
        * @param request servlet request
        * @param response servlet response
        @Override
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
            DataInputStream in = new DataInputStream(
                    (InputStream)request.getInputStream());
            String sid = in.readUTF();
            String user = in.readUTF();
            String pwd = in.readUTF();
          //  "jdbc:oracle:thin:@localhost:1521"+": "+sid
            String message = message = "Name:"+bstr+" telephone:"+bstr1+" burthday:"+bstr2;
             try {
                connect(sid,user, pwd);
                message += "100 ok connected";
            } catch (Throwable t) {
                message += "200 " + t.toString();
            response.setContentType("text/plain");
            response.setContentLength(message.length());
            PrintWriter out = response.getWriter();
            out.println(message);
            in.close();
            out.close();
            out.flush();
        private void connect(String sid, String user,String pwd)
        throws Exception {
            // Establish a JDBC connection to the MYSQL database server.
            //Class.forName("org.gjt.mm.mysql.Driver");
            Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
            Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:"+sid,user,pwd);
            System.out.print("connected");
            try{
               statement =conn.createStatement();
                rs=statement.executeQuery(" Select*from WOH.P_DEMGRAPHICS where P_ID='P1000 '");
            catch(SQLException e)
            System.err.print(e);
           try{
    while (rs.next()) {
    bstr=rs.getString(2);
    bstr1=rs.getString(3);
    bstr2=rs.getString(4);
    statement.close();
       catch (SQLException e) {
    //bstr += e.toString();
    System.err.println(e);
    System.exit(1);
            // Establish a JDBC connection to the Oracle database server.
            //DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
            //Connection conn = DriverManager.getConnection(
            //      "jdbc:oracle:thin:@localhost:1521:"+db,user,pwd);
            // Establish a JDBC connection to the SQL database server.
            //Class.forName("net.sourceforge.jtds.jdbc.Driver");
            //Connection conn = DriverManager.getConnection(
            //      "jdbc:jtds:sqlserver://localhost:1433/"+db,user,pwd);
        * Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }Midlet code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.util.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    * @author freddy
    public class testOrcl extends MIDlet  implements CommandListener {
       protected String url;
        private String username;
        private Display display;
        private Command exit = new Command("EXIT", Command.EXIT, 1);;
        private Command connect = new Command("Connect", Command.SCREEN, 1);
        private TextField tb;
        private Form menu;
        private TextField tb1;
        private TextField tb2;
        DB db;
        public testOrcl() throws Exception
            display=Display.getDisplay(this);
            url="http://localhost:8084/getConnection/getconnection";
        public void startApp() {
            displayMenu();
        public void displayMenu()
        menu= new Form("connect");
         tb = new TextField("Please input database: ","",30,
                    TextField.ANY );
            tb1 = new TextField("Please input username: ","",30,
                    TextField.ANY);
            tb2 = new TextField("Please input password: ","",30,
                    TextField.PASSWORD);
            menu.append(tb);
            menu.append(tb1);
            menu.append(tb2);
            menu.addCommand(exit);
            menu.addCommand(connect);
            menu.setCommandListener(this);
            display.setCurrent(menu);
        public void pauseApp() {
        public void destroyApp(boolean unconditional) { }
        public void commandAction(Command command, Displayable screen) {
            if (command == exit) {
                destroyApp(false);
                notifyDestroyed();
            } else if (command == connect) {
                db  = new DB(this);
                db.start();
                db.connectDb(tb.getString(),tb1.getString(),tb2.getString());
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.util.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.lang.*;
    * @author freddy
    public class DB implements Runnable  {
        testOrcl midlet;
         private Display display;
            String sid;
            String user;
            String pwd;
            public DB( testOrcl midlet)
            this.midlet=midlet;
            display=Display.getDisplay(midlet);
        public void start()
        Thread t = new Thread(this);
                t.start();
        public void run()
         StringBuffer sb = new StringBuffer();
                try {
                    HttpConnection c = (HttpConnection) Connector.open(midlet.url);
                   c.setRequestProperty(
                       "User-Agent","Profile/MIDP-2.1, Configuration/CLDC-1.1");
                    c.setRequestProperty("Content-Language","en-US");
                    c.setRequestMethod(HttpConnection.POST);
                    DataOutputStream os =
                            (DataOutputStream)c.openDataOutputStream();
                    os.writeUTF(sid.trim());
                    os.writeUTF(user.trim());
                    os.writeUTF(pwd.trim());
                    os.flush();
                    os.close();
                    // Get the response from the servlet page.
                    DataInputStream is =(DataInputStream)c.openDataInputStream();
                    //is = c.openInputStream();
                    int ch;
                    sb = new StringBuffer();
                    while ((ch = is.read()) != -1) {
                        sb.append((char)ch);
               showAlert(sb.toString());
                    is.close();
                    c.close();
                } catch (Exception e) {
                    showAlert(e.getMessage());
         /* This method takes input from user like db,user and pwd and pass
                to servlet */
            public void connectDb(String sid,String user,String pwd) {
                this.sid = sid;
                this.user = user;
                this.pwd = pwd;
            /* Display Error On screen*/
            private void showAlert(String err) {
                Alert a = new Alert("");
                a.setString(err);
                a.setTimeout(Alert.FOREVER);
                display.setCurrent(a);
       

    Comment out process request or rewrite & move it to a position after you read the parameters and connect to the db. Decide where you want to write to the output stream. Also, you have some superfluous casting.
    I take it that you are using netbeans? If you debug and step through the code you will get an idea of the flow. The steps should be, midlet connects with POST, doPost is called, server reads parameters, server opens connection, executes query, releases/closes connection, and writes a response to the midlet.
    Some notes about the connect method; The scope of rs may cause problems. It is unlike you will have a valid result set if you have a problem with create statement or execute. Take a look at connection pooling and be mindful how the connections are opened, used, and closed; put all the important cleanup operations in a finally. Remove system.exit from your servlet. Actually I would suggest limiting the scope of all your vars;
    If you store the username, password, and sid on the midlet, you may have trouble updating the installation base if you need to change the values for any reason. Also, you have clients which contain your database u/p, susceptible to snooping and decompilation. Use the servlet to abstract the db from the client. And use a datasource (with connection pooling) for obtaining connections to db.

  • Connecting A Dreamweaver site to a database using localhost

    I have created a number of websites that connect to a databasde on localhost using the Windows\database utility built into Dreamweaver with no problems.
    Recently my version of Dreamweaver started crashing and DW Support did some work to rer4solve that.
    Now I cannot create a database connection to localhost and support say they are not trained to help.
    Here are the steps and error message
    Server Name: fhm
    Connect Using: Local/Network
    Server Folder: D:\FullHouseMarketing\
    Web URL: http://fhm/
    Server Model:PHP MYSQL
    In the Database Panen there are ticks against
    1) Create a site for this file
    2) Choose a document type (PHP)
    3) Set up the site's testing server
    Fill in the form and click select database
    Http Error Code 404 Filoe Not Found
    1) There is no testing server running on the server machine. (There is only one machine, the server is localhost, it is running and I can access the database)
    2) the testing server specified for this site does not map to the http//fhm/_mmServerScripts/MMHTTPDB.php&Type=MYSQL&ConnectionString=host=locaslhost.uics5 write.pwd=Smp URL. Verify that the URL Prefix maps to the root of the site. ( I have no idea how to do that)
    Any help appreciated

    mr.ztch wrote:
    Are you saying there is a new way to coonect with a database? If so could you point me to the documentation.
    Yes BUT you have to code it by hand.
    Start here, a 9  part video tutorial:
    https://www.youtube.com/watch?v=BEbKji_pSZM
    Connecting to a database is in part 3.
    You cannot mix up msql and mysqli so if you connect using mysqli which the video covers you need to use mysqli to query the database which is also covered in the video series. DW used mysql to connect and query.
    I stopped using the DW server behaviours some time ago............best thing I ever did.

  • XMLSocket to localhost problem

    Hello!
    Doe anyone have experience with XMLSockets that have to connect to the localhost (or 127.0.0.1)?
    My flash application can connect to all other servers but not to the server the flash app resides on.
    The server accepts the socket but in flash the onConnect event has "false" as parameter. If I ignore this and start sending anyway, sometimes the data is send to the server.
    I run windows CE6.0 R3 with flash lite 3.1.
    Any Idea's?
    Thanks,
    John.

    Hi,
    don't know if it helps still, but i am using XMLSocket on Symbian: my FlashLite code accesses an natice C++ http server, using XMLSOckets.
    It works quite well, however i had some small tunings to do:
    * XML form (the one which is sent over to the server) has to terminate by '\0'. My code is adding an addtioanla '\0\ at the end, both on the FL code and on the server code
    * Of course, you have to publish your FL as "netwrok access"
    * .... and also to solve all the security problems (i.e. either crossdomain, or using Trusted subdir).
    Voila, not sure how much of ti applies to your plateform !
    Jacques.

  • Localhost problems, firefox cant open localhost addresses?

    Hi,
    I really got sick of Chrome's data robbery. Nowadays, I switched back to FF and I cannot believe to this problem. FF cannot open local weblogic domain after restart. I have to restart FF, then everything fine. It repeats for my every weblogic restart.
    WebLogic address --> http://localhost:7001/console/
    Tried this, but still no access --> http://localhost:7001/console/login/LoginForm.jsp
    When I tried on Chrome and IE, everything is fine, and the console is accessible.
    Another problem is, FF adds www and .com extensions to the local addresses, I've fixed this by manual configuration on about:config. By the way, this was also a nightmare and primitive.
    FF Version: 35.0
    Error Page:
    Unable to connect
    Firefox can't establish a connection to the server at localhost:7001.
    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    ''guigs2 [[#answer-684452|said]]''
    <blockquote>
    The best place to start with this are these troubleshooting steps:
    *[http://kb.mozillazine.org/Error_loading_any_website]
    You may want to review your hosts file for entries other than the localhost. If you make changes to your local host file, please be sure to flush the dns to avoid connection issues.
    Are you using a proxy? The default for a proxy is to let the localhost bypass the proxy. The connection to the local host can be terminated as well.
    </blockquote>
    As I said before, when I restart the FF, everything is fine. No proxy, no any custom network configuration. I'm using FF as default installation except "www.com" configuration.

  • OS X Lion is running slow while using localhost

    I'm experiencing slow localhost web browsing when I want to test the web that I'm building in my laptop.
    Any idea, anyone?
    Please advise, Thanks.

    Ok guys I had the exact same problem but I think I found a solution. I just did it about 30 minutes ago and since then my MBP is running just like it used to with snow leapord. No gaurantees that i fixed the problem but this is what i did. I went to Applications>Utilities>Disk Utility. I then ran a verify disk scan and found that there were many problems with me Macintosh HD drive. It said I needed an install disk of lion to fix. Since there is no disk I thought I would experiment and this is what I did.
         1) shut down my computer and then started it back up while holding down the alt key. (this should bring up two disk options to run your computer)
         2) I chose the second option (I believe it is called something like "recovery disk" but dont quote me on that. you want to select the one that is NOT Macintosh HD)
         3) It loaded and then gave me four choises of what to do. I clicked disk utility.
          4) From there I ran the verify disk scan again then clicked repair disk.
         5) I then ran the verify disk perrmissions scan and then repaired those as well.
         6) then I restarted my computer and spotlight indexed the computer (i let it do its thing without running any programs) once it was done my computer worked so much faster and for the first time I can say, I AM GLAD I HAVE LION! I hope this is a permenant fix. Please let me know if you try this and how it works for you
    Good Luck!!!

  • ADSI query freezes PowerShell script when using "localhost" as computername

    Hi,
    As part of my learning PowerShell I'm writing some basic functions for querying local users and groups.  I have located the following as a "base" for locating local user accounts on a given computer:
    $CompObj = [ADSI]"WinNT://$ComputerName,computer"
    $Users = $compobj.psbase.children | Where-Object {$_.psbase.schemaclassname -eq "user"}
    What I've found (at least on most of the computers that I have tried) is that the script will freeze if run with "localhost" in the $ComputerName variable (which I often do when testing a script).  The point that it freezes is the "...
    | Where-Object {$_.psbase.schemaclassname -eq "user"}" component of the script.
    I verified this by running the following:
    $ComputerName = "localhost"
    $CompObj = [ADSI]"WinNT://$ComputerName,computer"
    $Users = $compobj.psbase.children
    This causes no freeze.
    So, the creation of the $Users variable does not cause a script freeze.  However, if I try to display the contents of the $Users variable *after* running the above code, I get a list of all of the local users and groups, before it freezes the script
    completely.  Here are the last two entries I get when I run it (removed references to my production domain):
    DistinguishedName :
    Path              : WinNT://acme.local/localhost/Message Capture Users
    distinguishedName :
    Path              : WinNT://acme.local/localhost/WinRMRemoteWMIUsers
    PowerShell continues to run at this point, prompting me (in the status bar) to press "Ctrl+Break" if I wish to stop it.  If I do, PowerShell displays "Stopping" in the status bar, and in fact it never finishes stopping
    (I have to close Powershell, though not forcibly).  I ran this on a colleagues computer and we found that the output also includes Services (remember that we didn't filter it this time with the "Where-Object" cmdlet.
    So, we reason that something about the services causes the script to freeze.  I have tried this on the following (not hugely extensively, one of each):
    Win 7 SP1 x86: Appears to work
    Win 7 SP1 x64: script freezes
    Win 2008 R2 x64: script freezes
    Win 2012 R2 x64: script freezes.
    I'm not sure if the architecture is to blame at all, but I don't want to chase this as it's not a high priority; I'm very curious though to know the cause and how to troubleshoot it.
    I did trace the problem to the usage of the word "localhost" in the $ComputerName variable; if I use the actual computer name in place of localhost, the script runs exactly as planned and when I try to display the contents of "$User"
    it does not freeze before showin the services, and displays the services correctly.
    So, I'm trying to identify why this happens - I am thinking that I will have to validate the input into my script to prevent usage of the "localhost" value (or find a clever way to translate that into the hostname itself).
    Has anyone experienced this issue before or can help me identify what is causing the behaviour?

    Thanks - I'll have my script check for localhost and use "$Env:COMPUTERNAME" to replace it if it does.
    It certainly works as expected, since it passes the computername to the ADSI query instead of "localhost", which does.

  • SCP and Localhost Problems

    I have two problems that may or may not be related. The first is trying to use scp from the command line. It used to work fine, but now when I try it, I get prompted for the remote password, then the date gets displayed, and that's it. No file transfer happens. An example run looks like this:
    [12:22 PM][~]$scp [email protected]:boolean/programs/btbs.pl .
    [email protected]'s password:
    Mon Nov 21 12:20:39 EST 2005
    [12:22 PM][~]$
    The second problem I have is trying to user a web browser to connect to localhost. I have PHP installed on my system and am running the apache web server. It worked fine for a while, but now when I try to view a PHP page on my machine, the browser tells me it cannot connect to the server. An example looks like this:
    Safari can’t open the page “http://127.0.0.1/~user/index.php” because it could not connect to the server “127.0.0.1”.
    Any input would be much appreciated.
    Thanks

    Just some wild guesses:
    The problem with scp may be due to your terminal emulation.
    With regard to localhost, you might check whether web access to your computer has somehow been turned off.
    Please excuse, if this is all nonsense.

Maybe you are looking for

  • Inconsistent datatypes: expected NUMBER got CHAR error

    Hi, I have the following table create GLOBAL TEMPORARY TABLE br_total_rtn_data_tmp code varchar(50)     NOT NULL, name                         varchar(255),      cum_ytd_rtn_amt          varchar(255),      cum_one_mon_rtn_amt          varchar(255)   

  • Can't import photos from Kodak EasyShare M1093IS

    Had this camera for over a year and I have never had a problem until today. I can't upload any photos into iPhoto. Message says it's not a supported format. The photos are .jpg and I can see them in the screen where you select photos for import. Runn

  • How to download photo booth for mac

    ?

  • Sqlplus and asmcmd

    Ello What are the default connect strings used by sqlplus and asmcmd when connecting to asm instance ? Is it "/ as sysasm" for asmcmd and operating system authentication for sqlplus or operating system authentication for asmcmd and none for sqlplus ?

  • Generate public private keys inside smart card

    Dear all, I am using this code to generate public and private key inside the smart card. KeyPair kp = new KeyPair(KeyPair.ALG_RSA_CRT, KeyBuilder.LENGTH_RSA_512); kp.genKeyPair(); PrivateKey prikey = kp.getPrivate(); PublicKey pubkey = kp.getPublic()