User error :- mysql and jsp

hello
i have configured a user in my sql and when i try to connect with the code the error message appears below
request help on what the message is trying to say, even after ive supplied username and password in the connect url
=================================================================
//sample code
<%@ page import="java.sql.*" %>
<%
String connecturl = "jdbc:mysql://mistry:3306/test,user1,test";
Connection connection = null;
Statement statement = null;
ResultSet rs = null;
%>
<html>
<body>
<% Class.forName("com.mysql.jdbc.Driver").newInstance();
connection = DriverManager.getConnection(connecturl);
statement = connection.createStatement();
rs = statement.executeQuery("select * from login");
while(rs.next())
out.println(rs.getString("firstname ")+ "<br>");
rs.close();
%>
</body>
</html>
========================================================
//error message
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Access denied for user ''@'mistry' (using password: NO)
     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
     at org.apache.jsp.handlelogin_jsp._jspService(handlelogin_jsp.java:81)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
     at java.lang.Thread.run(Thread.java:534)
root cause
java.sql.SQLException: Access denied for user ''@'mistry' (using password: NO)
     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:771)
     at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3649)
     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1176)
     at com.mysql.jdbc.Connection.createNewIO(Connection.java:2558)
     at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
     at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
     at java.sql.DriverManager.getConnection(DriverManager.java:512)
     at java.sql.DriverManager.getConnection(DriverManager.java:193)
     at org.apache.jsp.handlelogin_jsp._jspService(handlelogin_jsp.java:58)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
     at java.lang.Thread.run(Thread.java:534)
Apache Tomcat/4.1.31

it seems you have a problem here:
String connecturl = "jdbc:mysql://mistry:3306/test,user1,test";your better off doing something like this:
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          Connection connection = DriverManager.getConnection(url, username, password);where url is the url to the database in your case "jdbc:mysql://mistry:3306/test"
and username and password are the username and password to the database......
that's one thing, the other is that the username and password have to be approved of mysql, i don't think tha's your problem since the error shows that you supplied and empty username
Message was edited by:
Octavian

Similar Messages

  • Mysql and jsp PLZ PLZ PLZ HELP ME

    Hi >>>>>
    I want to as if there any problem with the fallowing code????
    ===========================================================
    DriverManager.registerDriver(driver);
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/ecom","ecomAdmin","ecomAdmin");
    state=conn.createStatement();
    ============================================================
    becoz this code isn`t work and givn`t any Exception er ERROR or any thing .
    so PLZ Tell me what to do ?????

    Since I am not using the same driver I cannot be sure of the problem.
    This is how I make a connection using the com.mysql.jdbc.Driver
    // Set SQL jdbc driver
    String connectionDriver = "com.mysql.jdbc.Driver";
    // Create connection string for local host
    String connectionString = "jdbc:mysql://localhost/passport?user=root&password=xxx";
    // Load database driver
    Class.forName(connectionDriver);
    // Make the actual connection
    Connection sqlCon = DriverManager.getConnection(connectionString);
    I hope this helps
    rykk

  • MySQL and JSP

    this is my jsp coding.
    <HTML>
    <HEAD><TITLE>Employee List</TITLE></HEAD>
    <BODY>
    <%@ page import="java.sql.*" %>
    <TABLE BORDER=1 width="75%">
    <TR><TH>Segment ID</TH><TH>Market Segment</TH></TR>
    <%
    Connection conn = null;
    Statement st = null;
    ResultSet rs = null;
    try {
    String url = "jdbc:mysql://localhost/cust";
    Class.forName ("com.mysql.jdbc.Driver").newInstance ();
    conn = DriverManager.getConnection(url);
    st = conn.createStatement();
    rs = st.executeQuery("select * from market_segment");
    while(rs.next()) {
    %>
    <TR><TD><%= rs.getString("Segment_No") %></TD>
    <TD> <%= rs.getString("Segment_Desc") %></TD></TR>
    <%
    %>
    </TABLE>
    <%
    } catch (Exception ex) {
    ex.printStackTrace();
    %>
    </TABLE>
    Database not connected
    <%
    finally {
    if (rs != null) rs.close();
    if (st != null) st.close();
    if (conn != null) conn.close();
    %>
    </BODY>
    </HTML>

    i have written a java code and call it into jsp page..however no data is available. but my java code is able to retrive the database information n display it in dos command. so i think there is nothing wrong with the coding nor the JDBC sinc eit can retrieve data out of the database. is there any setting to be done for displaying databse info at web page using jsp?

  • Help on mysql and jsp

    hi i am building a web based questionnaire using JSP and i am trying to store some questions with 4 possible choices and a correct answer in a database so that i can print them out in a browser and anwser them and get the feedback on the ones answered right and wrong
    eg....
    Question 1:
    A Method is invoked with
    o Method Call
    o Local Variable
    o Return Statement
    o None of the above
    can anyone help me with the database structure on how to do this....
    and some tips on how to check the questions answered to the correct answer....thanx

    Database:
    1. Create a table Called 'Questions' with Qid and QDescription columns. Qid is the primary key.
    2. Create a table called 'Answers' with Qid, AnswerId, Answer and AnswerCode columns. Qid is the Foreign Key and refers the Qid in Questions table. AnswerId is the primary key. AnswerCode typically contains A,B,C,and D (and E if at all it is there).
    3.Create a table called 'QandA' with Qid and AnswerId columns. Qid is the foreign key and refers to Qid of 'Questions' table, AnswerId is the foreign key and refers to AnswerId of 'Answers' table and combination of Qid and AnswerId is primary key.
    Java Bean
    1. Create an Info bean QInfo with properties qId, answer1, answer2, answer3 and answer4 plus respective set and get methods.
    2.Query the database for some 50 questions and store the push resultset contents into the infobean (i.e, you will create 50 different instances of QInfo bean) and add all these info beans to a Vector.
    3.Return this vector to the Caller (either JSP or Servlet).
    JSP
    1. Execute the getQandA() method of the java bean.
    2. Display the contents of info beans onto the browser (Question with sequential numbers and Answers with check boxes);
    3.On submission of the page, post the contents to another JSP (preferably to a servlet).
    4.Get the question id and the answer code from the request body and cross check them against the QandA and Answers tables.
    5.Forward the request to another JSP with the no of right answers. Display the result in this page.
    Hope this helps and is not too complecated.
    Sudha

  • Mysql and JSP or Servlets

    hi, I would like to know if there is any document on the internet containing these information:
    -how to setup a working MySQL server
    -setup a new database!
    -how to use MySQL databases with java
    -basic information on how to read/add data to a database
    as you see I'm a newbie on SQL! but thanks in advance!
    leonard

    When you download mySql it does come with information about how to install it and use it (including a few hundred pages documenting its implementation of SQL). On the mySql download page you should be able to track down a reference to a JDBC driver you can download separately to connect Java to mySql. It comes with documentation that explains how to use it.

  • Error Handling and Error Messages

    I already posted this in the java programming forum, but I dont think the people responded understand patterns, or what I was asking. Here is my original post, for reference I am not asking how to catch and exception, or how to display an error, I am asking about the pattern implementation.
    I am currently in the process of creating my Exception model for my program, and I have a question about error messages. I was reading the book "Effective Java Programming" which deals with patterns and it states that an exception should state the error and report information on all relavent states. For instance If you have a class the modeled some sort of memory array, and an access was requested to a block of memory outside the array you should throw an ArrayIndexOutOfBoundsException("Index:" + index + ", start:" + 0 + ",end:" + Array.length) or if you made your own MemoryAddressOutOfBoundsException(same as above) which when printed should read
    ArrayIndexOutOfBoundsException: Index:-1, start:0, end:0
    stack trace
    The pertinate information is the index, start index, and end index.
    The book CLEARLY states as an industry design pattern that exceptions weather checked or unchecked should not contain user error messages. For instance with the above example one might be tempted to use this as the exception message: "The memory addres index is not a valid memory address." This is clearly a user error message.
    So heres my situation. In a gui environment (command line console not visible) how do you generated a user error message, letting the user know that an internal exception has occured.
    In my previous implementation of my project, I used the exception message the user error message and just reported the message on a dialog. I have heard of people using error catalogs, which centrallizes all the error messages into a single class or file.
    I was wondering if and Error catalog was a good approach, how I might go about implementing one, and if not how do you the community handle user error messages.

    class MyAppErrors {
       public static final int FILE_NOT_FOUND = 0;
       public static final int DIR_NOT_FOUND = 1;
       public stat final String[] errMsgs = {
          "The file was not found.",
          "The directory was not found.",
       public String getErrMsg( int n ) { return errMsgs[n]; }
    [\code]
    And a nicer version would allow the calling code to pass in a substring so you could say "The file 'somename.ext' was not found."                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • An error when using JSP to activate connection between Javabean and MySQL

    I just input two paramenters in the input.htm, then click button 'submit' to
    run output.jsp, then activate adder.getSum(); This function is to add two
    number, save the sum to the MySQL database, and return the sum. I think the
    java code and jsp file are no problem. A guess it's the problem relating to
    the servlet engine trying to talk to the Javabean. Should I set some
    envirenment or other? Please take a look. If necessary, I will attach my jsp
    and java codes later.
    The error is as below:
    Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error)
    that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException:
    at org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:273)
    root cause org.apache.jasper.JasperException:
    at org.apache.jasper.runtime.JspRuntimeLibrary.convert(JspRuntimeLibrary.java:184)
    I just selected some. Thanks,

    Yes, I'd be curious to see your code. In principle that should work.
    -chicagoJava

  • Installed PHP & MySQL, and now I have file permission errors.

    Hi Everyone
    I recently made a switch from using MAMP to making a separate installation of PHP, MySQL and Rails. I used the first tutorial for Rails + MySQL, and the second one for PHP;
    http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx
    http://www.entropy.ch/software/MacOSx/mysql/
    Unfortunately, I now receive errors when trying to install activeCollab through it's own PHP install script, and WordPress won't let me import xml backups into a locally installed WordPress. This must mean that I don't have full Read/Write access to my 'Sites' directory (this is set as my default htdocs in the Apache httpd.conf). I haven't noticed any problems with Rails - so far it's only been PHP based CMS's which have thrown up the permission errors.
    I've checked the file permissions on my 'Sites' folder - I'm the only user on the machine, and my account has full Read/Write access to the folder. However, I've noticed that there is also the option to choose 'Group' access, for which my account is again selected and given Read/Write access.
    Then there is 'Others' category, and this has 'Read only' access. Is there an option in there which I need to select and give Read/Write permissions to? mysql, php ?
    Or, is there a MySQL/PHP/Apache config file somewhere, within which I need to give global read/write permissions?
    I didn't have this problem when I was served up local sites from MAMP - and I also configured MAMP to use the 'Sites' folder as it's default htdocs folder. I get the impression that because MAMP was installed as an 'Application', that it automatically inherited my user permissions - maybe PHP and MySQL don't inherit my user account permissions because they are services?...
    I've come very far with getting everything installed to work with the OS X bundled Apache server (which I believe is 1.3 - I certainly haven't updated it) so I'd love to get everything finally configured - therefore, any help with this is very, very much appreciated!
    MacBook Pro 2.4Ghz    

    You'll probably get a better response at the Server Products or Networking & Web http://discussions.apple.com/forum.jspa?forumID=733 forums.

  • I'm having trouble loading photos on my I phone 4s and I pod.  I don't see the photos tab in Itunes?? Prob user error but wanted to get some help.

    I'm having trouble loading photos on my I phone 4s and I pod.  I don't see the photos tab in I-tunes? I'm sure its user error but wanted to get some help.

    What's the origin of this external drive? It sounds very much like it's a Windows-formatted (NTFS) drive which Macs can't write to. If you can, copy the files off the drive, reformat it as Mac format (using Disk Utility) and copy the files back. If you need to continue writing to it from a Windows PC, you should format it ExFAT in Disk Utility.
    Matt

  • My Mac is doing strange things: delaying between users, mouse flickering and bouncing, gets stuck with rainbow wheel flickering. I ran the appel hardware test and it detected an error: 4MOT/4/40000003:HDD-1233 Does anybody know what that means? HELP!

    My imac is doing strange things:
    -delaying between users: when closing session it goes to blue, then takes a while to appear users signin box, and then wont recognize mouse command to enter until a couple of minutes later... then everything seems alright until....
    -it gets stuck between things, the rainbow wheel appears and its just delays there forever....
    -and every now and then the mouse starts flickering and bouncing wildly onscreen.
    I ran the appel hardware test and it detected an error:
    4MOT/4/40000003:HDD-1233
    Does anybody know what that means? HELP!

    WZZZ answered about where to get iStat. And do check the SMART status. If it is an overheating problem due to a fan or logic board problem, your hard drive is possibly cooking itself to death. If so it isn't a faulty hard drive even though the hard drive might fail. So assuming it's a temperature problem, even if you are able to repair things on the disk with software, that is working on symptoms, not causes. I could be wrong however.
    RE: AppleCare: Your iMac came with one year of AppleCare (Apple's warranty program), but within the first year you can buy 2 more years. You have to extend by the one year anniversary of purchase of the computer. Your 10,1 is too old to still be in the first year, and since you asked what it was, I'm sure you don't have it. Bottom line meaning is that whatever this problem turns out to be, you'll have to pay for it. Unless there is something like this. It is for 2011 iMacs with certain Seagate drives. You can put in your serial number for fun, but it looks like yours is too old. Lastly, some people have had Apple help them anyway if it is just out of warranty, but many have not. Your machine is one of these. Type in 10,1 in the search box. Is there an Apple Store near you? Just b/c it's out of warranty doesn't mean you shouldn't have it looked at by Apple. But no one here can say at all what Apple will or will not do.
    Hope you get it taken care of!

  • MySQL and JDBC Classpath errors

    I am new to Java and installed MySql and also installed mysql-connectorJ driver. I can compile the code below, but when I go to run it, I get "Exception in thread "main" java.lang.NoClassDefFoundError: JDBCDemo/class" error. I can't figure out what I am doing wrong.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class JDBCDemo {
         public static void main(String[] args) {
              try{  
    Class.forName("com.mysql.jdbc.Driver");
              catch (Exception e)
                   e.printStackTrace();
    I have a the following environment variable called MySQL_Driver located at "C:\Program Files\Java\jdk1.5.0_06\lib".
    Path = "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared;%JAVA_HOME%;%JAVA_HOME%\lib;%JAVA_VM%\bin;%JAVA_VM%\lib;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\QuickTime\QTSystem\;%MySQL_Driver%"

    What is your CLASSPATH set to as you need to make sure that the driver is in the path as well as the directory/jar where the JDBCDemo app lives.
    Try explictly specifying everything via the -classpath option on your java command line

  • I have a problem in this that i want to paas a form in a case that when user pres n then it must go to a form but error arises and not working good and threading is not responding

    made in cosmos help please need it
    using System;
    using Cosmos.Compiler.Builder;
    using System.Threading;
    using System.Windows.Forms;
    namespace IUOS
        class Program
            #region Cosmos Builder logic
            // Most users wont touch this. This will call the Cosmos Build tool
            [STAThread]
            static void Main(string[] args)
                BuildUI.Run();
            #endregion
            // Main entry point of the kernel
            public static void Init()
                var xBoot = new Cosmos.Sys.Boot();
                xBoot.Execute();
                Console.ForegroundColor = ConsoleColor.DarkBlue;
                a:
                Console.WriteLine("------------------------------");
                Console.WriteLine("WELCOME TO THE NEWLY OS MADE BY THE STUDENTS OF IQRA UNIVERSITY!");
                Console.WriteLine("------------------------------");
                Console.WriteLine();
                Console.WriteLine();
                Console.WriteLine();
                Console.WriteLine("\t _____                                
                Console.WriteLine("\t|     |        |            |        
    |            |      |");
                Console.WriteLine("\t|     |        |            |        
    |            |      |");
                Console.WriteLine("\t|     |        |            |        
    |            |      |");
                Console.WriteLine("\t|     |        |            |        
    |            |      |___________");
                Console.WriteLine("\t|     |        |            |        
    |            |                  |");
                Console.WriteLine("\t|     |        |            |        
    |            |                  |");
                Console.WriteLine("\t|     |        |            |        
    |            |                  |");
                Console.WriteLine("\t|     |        |            |        
    |            |                  |");
                Console.WriteLine("\t|     |        |            |        
    |            |                  |");
                Console.WriteLine("\t|_____|        |____________|         |____________|      ____________");
                string input;
                Console.WriteLine();
                Console.Write("\nAbout OS     : a");
                Console.Write("\nTo Shutdown  : s");
                Console.Write("\nTo Reboot    : r");
                Console.Write("\nStart Windows Normaly : n");
                Console.WriteLine();
                input = Console.ReadLine();
                if (input == "s" || input == "S"){
                    Cosmos.Sys.Deboot.ShutDown();
                else
                if (input == "r" || input == "R"){
                    Cosmos.Sys.Deboot.Reboot();
                else
                if (input == "a" || input == "A"){
                    Console.ForegroundColor = ConsoleColor.DarkBlue;
                    Console.Clear();
                    Console.WriteLine("\n\n\n-------------------------------------");
                    Console.WriteLine("version: DISPLAYS OS VERSION");
                    Console.WriteLine("about: DISPLAYS INFO ABOUT ANGRY OS");
                    Console.WriteLine("hello or hi: DISPLAYS A HELLO WORLD");
                    Console.WriteLine("MESSAGE THAT WAS USED TO TEST THIS OS!!");
                    Console.WriteLine("-----------------------------------");
                    Console.Write("You Want to know : ");
                    input = Console.ReadLine();
                    if (input == "version"){
                        Console.WriteLine("--------------------");
                        Console.WriteLine("OS VERSION 0.1");
                        Console.WriteLine("--------------------");
                    else
                    if (input == "about"){
                        Console.WriteLine("--------------------------------------------");
                        Console.WriteLine("OS IS DEVELOPED BY Qazi Jalil-ur-Rahman & Syed Akber Abbas Jafri");
                        Console.WriteLine("--------------------------------------------");
                    Console.Write("Want to go back to the main window");
                    Console.Write("\nYes : ");
                    string ans = Console.ReadLine();
                    if (ans == "y" || ans == "Y")
                        goto a;
                        Thread.Sleep(10000);
                    else
                    if (input == "n" || input == "N")
                        Thread.Sleep(5000);
                        Console.Clear();
                        for (int i = 0; i <= 0; i++){
                            Console.Write("\n\n\n\n\t\t\t\t\t  ____        ____   ___  
                            Console.Write("\n\t\t|\t\t |  |      |    |     
    |   |  | |  |  |");
                            Console.Write("\n\t\t|\t|    |  |----  |    |     
    |   |  | |  |  |---");
                            Console.Write("\n\t\t|____|____|  |____  |___ |____  |___|  |    |  |___");
                            Thread.Sleep(500);
                        Thread.Sleep(5000);
                        Console.Clear();
                        BootUserInterface();
                        Console.ReadLine();
    //                    Form1 fo = new Form1();
                    else{
                        for (int i = 0; i <= 5; i++){
                            Console.Beep();
                            Thread.Sleep(1000);
                            goto a;
                while (true);
            private static void BootUserInterface() {
                Thread t = new Thread(UserInterfaceThread);
                t.IsBackground = true;
                t.SetApartmentState(ApartmentState.STA);
                t.Start();
            private static void UserInterfaceThread(object arg) {
                Form1 frm = new Form1();  // use your own
                Application.Run(frm);
     

    Hi
    Jalil Cracker,
    >>when user pres n then it must go to a form but error arises and not working good and threading is not respondin
    Could you post the error information? And which line caused this error?
    If you want to show Form1, you can use form.show() method
    Form1 frm = new Form1();
    frm.Show();
    In addition, Cosmos is an acronym for C# Open Source Managed Operating System. This is not Microsoft product.If the issue is related to Cosmos, it would be out of our support. Thanks for your understanding. And you need raise an issue at Cosmos site.
    Best regards,
    kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Dbc file and Jsp error

    Dear all,
    I am trying to do multinode installtion on AIX 5.3 HACMP . During post installation i am getting this error.
    Dbc file and Jsp error
    Updating Server Security Authentication
    java.sql.SQLException: Io exception: Invalid number format for port number
    Database connection to jdbc:oracle:thin:@host_name:port_number:database failed
    Updating Server Security Authentication failed with exit code 1
    adgendbc.sh exiting with status 1
    ERRORCODE = 1 ERRORCODE_END
    SQLPLUS Executable : /mglapp/oramgl/mglora/8.0.6/bin/sqlplus
    SP2-0642: SQL*Plus internal error state 2165, context 4294967295:0:0
    Unable to proceed
    ERRORCODE = 1 ERRORCODE_END
    Thanks in advance

    Maybe you have problem with the date format, please ensure that NLS_DATE_FORMAT env variable is set to a valid value.
    Please view SP2-0642: Sql*Plus Internal Error State 2165, Context 4294967295:0:0 Doc ID: Note:396154.1.
    Hope it helps.
    Adith

  • Why does Apple not give a list of error messages and possible solutions? I have the (-54) error continually that has suddenly appeared and cannot find a solution, even though other users seem to have the same problem.

    Why does Apple not give a list of error messages and possible solutions? I have the (-54) error continually that has suddenly appeared and cannot find a solution, even though other users seem to have the same problem.

    This is a user to user forum.  Apple isn't here and won't answer you.  You need to contact Apple directly.  You can use the Contact button at the bottom of the screen.

  • [Forum FAQ] Troubleshoot the error "The Remote Desktop Session Host server is in Per User licensing mode and No Redirector Mode"

    Symptom
    RD License server is a key component of RDS. It licenses users to access RDS servers.
    After purchase the required RDS CALs, we need to activate the RDS License server and install the purchased RDS CALs. However, during the installation or after installation, we may face errors
    about RDS License.
    In most cases, the following error may occur.
    Error:
    The Remote Desktop Session Host server is in Per User licensing mode and No Redirector Mode, but license server "Server name" does not have any installed licenses with the following
    attributes:
    Product version: Windows Server 2012
    Licensing mode: Per User
    License type: RDS CALs
    Troubleshooting
    1. Check whether the RD License Configuration is configured properly and there are no Warnings in the Event.
    2. The License Server should be part of 'RD Server License' group in Active Directory Domain Services.
    3. Check if the Licensing Mode is correct.
    - To change the Licensing Mode we can use RD Licensing diagnose, PowerShell cmdlet and Group Policy.
    Via PowerShell cmdlet:
    To change the licensing mode on RDSH/RDVH:
    $obj = get-wmiobject -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
    $obj.ChangeMode(value)
    # Value can be 2 - per Device, 4 - Per user
    Via Group Policy
    Path: Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Licensing
    Use the specified RD license servers = FQDN of server name
    Set the Remote Desktop licensing mode =
    Per User
    However, if issue persists, please provide detailed information and post the question in the
    Remote Desktop Services (Terminal Services) forum.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hi Richard,
    You need to uninstall Remote desktop session host feature. After removing it, you will default two connections which does not need to purchase RD CALs'.
    Thanks,
    Umesh.S.K

Maybe you are looking for

  • How do you import actions from an older version of elements to a newer one?

    I just upgraded from Elements 6 for a mac to Elements 9. I have about twenty or so actions  I've downloaded into Elements 6.  Does anyone know how I might import these actions into Elements 9?  I'm hoping there is an easier way than importing them ea

  • T420 can't use dual DVI connected monitors

    I have a T420 connected to The ThinkPad Mini Dock Plus Series 3 - 90W (433810U* - United States), DVI port 1 connected to monitor and VGA connected to second monitor using extended desktop.  This configuration works fine but when I hook up both DVI p

  • Modify or delete record via WEB

    hi, I've just created a simple jsp page that connect to a database and get data from it. Here no problem. Then I modified the code in order to modify the records in the database. Also here no problem. Then I've add a second link that allow me a secon

  • Recovering files from mac that won't boot?

    The other night when I was reading on my Macbook Pro, it randomly started giving me the spinning-wheel-of-death.  I waited for about 15 minutes, but ended up shutting it down in the end because it was still frozen.  I tried restarting, but now it won

  • Css fixes for IE not fixing

    I have a webpage which appears ok in Firefox and Safari but fails to format correctly in IE. www.offalog.co.uk I looked at the code generated and found that DW has inserted css fixes for IE but these do not seem to work. Any clues as to what I should