Communicating with a Servlet

How do i send objects from an application to a Servlet so that the servlet can use those objects to check if they exist in a database
thank you kindly

Since i cant setup my Servlet engine and check if it works i thought id ask if there are gonna be any problems with this code so i can continue on with my project
heres the modified Info class
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
public class Info extends JFrame{
     private JLabel user, pass, cpass;
     private JTextField usert;
     private JPasswordField passt, cpasst;
     private Socket s;
     private ObjectOutputStream out;
     public Info(){
          super("Login");
          Container c = getContentPane();
          c.setLayout(new GridLayout(6,1));
          user = new JLabel("Username");
          pass = new JLabel("Password");
          cpass = new JLabel("Confirm Pass");
          usert = new JTextField("ivo");
          passt = new JPasswordField();
          cpasst = new JPasswordField();
          c.add(user);
          c.add(usert);
          c.add(pass);
          c.add(passt);
          c.add(cpass);
          c.add(cpasst);
          try{
               s = new Socket("127.0.0.1", 3456);
               out = new ObjectOutputStream(s.getOutputStream());
               out.writeObject(user.getText());
          }catch(Exception e){
               e.printStackTrace();
          setSize(200,200);
          show();
     public static void main(String args[]){
          Info app = new Info();
}and heres the Servlet class
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.net.*;
public class servlet extends HttpServlet{
private ServerSocket ss;
private Socket s;
private ObjectInputStream in;
public void init(){
     try{
     ss = new ServerSocket(3456);
     s = ss.accept();
     in = new ObjectInputStream(s.getInputStream());
     System.out.print((String)in.readObject());
}catch(Exception e){
     e.printStackTrace();
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
     response.setContentType("text/html");
     PrintWriter out;
     out = response.getWriter();
     StringBuffer buf = new StringBuffer();
     buf.append("<HTML><HEAD><TITLE>\n");
     buf.append("My Servlet\n");
     buf.append("</TITLE></HEAD><BODY>\n");
     buf.append("<H3>SUP!!!</H3>");
     buf.append("</BODY></HTML>");
     out.println(buf.toString());
     out.close();
}thank u in advance

Similar Messages

  • Applet communication with struts servlet

    Hi
    I�ve seen a lot of examples where a Java applet communicates with a servlet.
    I�ve made a web application using Struts, and i would like to know if it is possible to use an applet (View) and send to Stuts some data, I mean, call an action like http://localhost:8080/ViewRoads.do.
    Is it possible? ,Where can I find some examples about?, could anyone explain how would it work?, any good book to read about?.
    Thank you.

    I'm sorry but don't you have a communication source code example between a servlet and an applet that does work ? I'm looking for one of these since Two days already.
    thanks

  • Standard Java class communicating with a servlet

    Hey,
    I am trying to access a standard java classes member via a servlet class however the data is never received even though the member is visible on compilation. is there something Im doing wrong ?
    public class Start {
    //lots of stuff
         static List<Plug> plugList = Collections.synchronizedList(new LinkedList<Plug>());
    //lots more stuff
    public class wah extends HttpServlet{
            public void doGet( HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException{
                    doPost(request, response);
        public void doPost(HttpServletRequest request,
                                    HttpServletResponse res)throws ServletException, IOException{
                    res.setContentType("text/html");
                    PrintWriter out = res.getWriter();
                    out.println("wahwahwah");
                    synchronized(Start.plugList){
                            out.println("pluglist");
                            Iterator i1 = Start.plugList.iterator();
                            while (i1.hasNext()) {
                                    Plug oldPlug = (Plug)i1.next();
                                    out.println("PLug : " + oldPlug.getaddress64());
            }//doPost
    }

    Don't post all your code. Instead, make a simplified version of the code that demonstrates what your problem is and that we could compile and see what is going on. Make it as simple as possible but still demonstrating the problem.
    Who knows, when you make the SSCCP (small, self contained, compileable program) you will find your mistake as well.
    But without seeing any code all I can say is that the date you are accessing in the list has not been made available when you try to get it from the servlet. Perhaps the servlet call is blocking the other threads from accessing the list to put data into it, perhaps the other threads haven't begun working yet, perhaps the list you give to the servlet isn't the same list (but instead a copy of the list) that the data is being entered into, or many other reasons.
    One thing I would assume you need to do, since the Servlet is the data consumer, you need to make sure the data has been entered before the servlet tries to read it. The best way to do that is to put a wait() in the servlet code so that it knows it can't do anything until the producers are finished. Then the producers would add a notify() to tell the servlet to go ahead and display the data.
    So some modification might be:
    public class Start {
    //lots of stuff
         static List<Plug> plugList = Collections.synchronizedList(new LinkedList<Plug>());
            //marker to let servlet know that it can consume data
            private static boolean done = false;
            //producers call this method when list is ready for use
            static void setReadyToConsume() { done = true; }
            //servlet calls this to check if the list is ready
            public static boolean isReadyToConsume() { return done; }
    //lots more stuff
        public void doPost(HttpServletRequest request,
                                    HttpServletResponse res)throws ServletException, IOException{
                    res.setContentType("text/html");
                    PrintWriter out = res.getWriter();
                    out.println("wahwahwah");
                    synchronized(Start.plugList){
                           //Hold off trying to use list until list is ready
                            while (!Start.isReadyToConsume()) {
                                  try {
                                          Start.plugList.wait();
                                  } catch (InterruptedException ie) {
                                          log("Waiting for Plugs to be ready interrupted.  Continuing to wait.");
                                          log(ie.getMessage(), ie);
                            out.println("pluglist");
                            Iterator i1 = Start.plugList.iterator();
                            while (i1.hasNext()) {
                                    Plug oldPlug = (Plug)i1.next();
                                    out.println("PLug : " + oldPlug.getaddress64());
            }//doPostAnd don't forget to add a Start.plugList.notify() or Start.plugList().notifyAll() in the producer code after it calls the setReadyToConsume() method.

  • VB Client communicating with a Java servlet

    Hi,
    I have a java servlet and I would like to have a VB application communicating with the servlet.
    Can I do it ? and if yes, how to do it.
    Thanks in anticipation,
    Ayana

    The VB client can open an internet or Http connection to the servelet, send a request and parse the response. We've done it here but I don't know exactly which ActiveX control the VB guy uses.
    Also look into using webservices.

  • Servlet Communication with Java WebStart

    Hi there,
    we have an application that works fine with Java WebStart whenever we start it in a local area network. But from outside the LAN the application cannot communicate to it's servlets. I use the codebase IP address with the servlet runner's port (http://<codebase IP>:port/) as URL for servlet communication, but the application's request never reaches the servlets.
    My question is now, if anyone had the same or a similar problem with servlet communication using Java WebStart, or if anyone knows, if that might be a problem with proxy configuration.
    The servlet runner we use, is JServ from Sun (JSDK2.0) and the webserver where it is running on is not behind a firewall or a proxy, but the client PC with the web start application is.
    Thanks,
    Katja

    Thank you for your early reply. But I think, that's not the problem.
    I get no security error and the webserver is identified the same way it is in the jnlp file. Also my application is not running in the Sandbox. My assumption is, that the http-request to the servlet does not go through the proxy server between my PC and the PC the servletrunner is running on.
    I wonder if I have to configure my application to use a proxy server for communication with the servlets instead of the direct http-request to the servlet runner?

  • Communicating with Servlets....

    hi!
    Wat are all the different ways in which the JSP used to communicate with Servlet?
    Thanx,
    Rgds,
    Sasi

    Jsp page communication with Servlets....
    web.xml -- Servlets loaded during application startup
    struts config -- Servlet mapping (w.r.t struts).
    and u can import servlets in jsp and can use it... there are so many possible ways of using servlets coz jsp pages inturn convert into servlets and got executed.....

  • How can I use URLConnection to use applet communication with servlet?

    I want to send a String to a servlet in applet.I now use URLConnection to communicat between applet and servlet.
    ====================the applet code below=========================
    import java.io.*;
    import java.applet.Applet;
    import java.awt.*;
    import java.net.*;
    //I have tested that in applet get data from servlet is OK!
    //Still I will change to test in applet post data to a servlet.
    public class TestDataStreamApplet extends Applet
    String response;
    String baseurl;
    double percentUsed;
    String total;
    public void init()
    try
    java.net.URL url = new java.net.URL(getDocumentBase(),"/servlet/dataStreamEcho");
    //String currenturl=new String("http://lib.nju.edu.cn");
    java.net.URLConnection con = url.openConnection();
    //URL currentPage=getCodeBase();
    // String protocol=currentPage.getProtocol();
    // String host=currentPage.getHost();
    //int port=currentPage.getPort();
    // String urlSuffix="/servlet/dataStreamEcho";
    // URL url=new URL(protocol,host,port,urlSuffix);
    // URLConnection con=url.openConnection();
    con.setUseCaches(false);
    con.setDoOutput(true);
    con.setDoInput(true);
    ByteArrayOutputStream byteout = new ByteArrayOutputStream();
    PrintWriter out=new PrintWriter(byteout,true);
    String currenturl=new String("http://lib.nju.edu.cn");
    String var1=this.encodedValue(currenturl); //encode the data
    String data="currenturl="+var1;
    out.print(data);
    out.flush();
    con.setRequestProperty("Content-Length",String.valueOf(byteout.size()));
    con.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    byteout.writeTo(con.getOutputStream());
    BufferedReader in=new BufferedReader(new InputStreamReader(con.getInputStream()));
    String line;
    while((line=in.readLine())!=null)
         System.out.println(line);
    catch (Exception e)
    e.printStackTrace();
    private String encodedValue(String rawValue)
         return(URLEncoder.encode(rawValue));
    =========================The servlet code below=====================
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class DataStreamEcho extends HttpServlet
    {public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
          res.setContentType("text/plain");
          PrintWriter out = res.getWriter();
          Runtime rt = Runtime.getRuntime();
          out.println(rt.freeMemory());
          out.println(rt.totalMemory());
          response.setContentType("text/html; charset=GBK");     
          request.setCharacterEncoding("GBK");
          PrintWriter out = response.getWriter();
          HttpSession session=request.getSession();
          ServletContext application=this.getServletContext();
          String currenturl=(String)session.getAttribute("currenturl");
          out.print(currenturl);
    =============================================================
    I have done up,but I found the program don't run as I have thought.
    Can you help me to find where is wrong?Very thank!

    You are trying to pass the current URL to the servlet
    from the applet, right?
    Well, what I put was correct. Your servlet code is
    trying to read some information from session data.
    request.getInputStream() is not the IP address of
    anything...see
    http://java.sun.com/products/servlet/2.2/javadoc/javax
    servlet/ServletRequest.html#getInputStream()
    Please read
    http://www.j-nine.com/pubs/applet2servlet/Applet2Servle
    .htmlNo,you all don't understand I.
    I want to send an Object to the server from a applet on a client.not url only.I maybe want to send a JPEG file instead.
    All I want is how to communicate with a servlet from an applet,send message to servlet from client's applet.
    for example,Now I have a method get the desktop picture of my client .and I want to send it to a server with a servlet to done it.How can I write the applet and servlet program?
    Now my program is down,But can only do string,can't not done Object yet.Can anyone help me?
    =======================applet=============================
    public void init()
    try
    java.net.URL url = new java.net.URL(getDocumentBase(),"/servlet/dataStreamEcho");
    //String currenturl=new String("http://lib.nju.edu.cn");
    java.net.URLConnection con = url.openConnection();
    //URL currentPage=getCodeBase();
    // String protocol=currentPage.getProtocol();
    // String host=currentPage.getHost();
    //int port=currentPage.getPort();
    // String urlSuffix="/servlet/dataStreamEcho";
    // URL url=new URL(protocol,host,port,urlSuffix);
    // URLConnection con=url.openConnection();
    con.setUseCaches(false);
    con.setDoOutput(true);
    con.setDoInput(true);
    ByteArrayOutputStream byteout = new ByteArrayOutputStream();
    PrintWriter out=new PrintWriter(byteout,true);
    String currenturl=new String("http://lib.nju.edu.cn");
    String var1=this.encodedValue(currenturl); //encode the data
    String data="currenturl="+var1;
    out.print(data);
    out.flush();
    con.setRequestProperty("Content-Length",String.valueOf(byteout.size()));
    con.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    byteout.writeTo(con.getOutputStream());
    con.connect();
    BufferedReader in=new BufferedReader(new InputStreamReader(con.getInputStream()));
    String line;
    while((line=in.readLine())!=null)
         System.out.println(line);
    catch (Exception e)
    e.printStackTrace();
    =======================servlet=============================
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         response.setContentType("text/html; charset=GBK");
    //request.setCharacterEncoding("GBK");
    PrintWriter out = response.getWriter();
    HttpSession session=request.getSession();
    ServletContext application=this.getServletContext();
    //String currenturl=(String)session.getAttribute("currenturl");
    String currenturl=(String)request.getParameter("currenturl");
    out.print(currenturl);
    File fileName=new File("c:\\noname.txt");
    fileName.createNewFile();
    FileOutputStream f=new FileOutputStream(fileName); //I just write the String data get from
    //applet to a file for a test.
    byte[] b=currenturl.getBytes();
    f.write(b);
    f.close();
    }

  • How to use an IFrame with my servlet?

    Hello, my question is this (basically, I'm building a "social" application for one of the social networks out there,
    but I'm using a java servlet as my back-end server, though I don't know if it matters to my question) -
    I want to insert an iframe to my application, but I didn't find good material on how to use this, and what to add to my servlet
    for completing the communication with the iframe - can anyone give an example maybe, or a link to a good piece of code.
    Basically, what I want for my application is to simply allow a user to record a voice message, and save it somewhere,
    and for that I need to use a java library, and this is why I thought building it with an iframe that will directly communicate with my java servlet. - IS THIS A GOOD IDEA?
    thanks :)
    Kogan.

    IFrame is just a HTML element. You normally embed HTML elements in a JSP file. How to use an IFrame is covered by every average HTML tutorial.
    What's your actual problem?

  • Error in communicating with Group Administration Server

    Hello everyone, i am requesting your help for an issue with LMS 4.2.5
    When i browse to Admin-> Group Management -> Fault.
    I get the following:
    OGS Server Error
    Error
    Error in communicating with Group Administration Server.
    It may be down or not yet up. Please make sure that the Group Administration Server is up and running, then refresh the page.
    here is the pdshow output
    pdshow
            Process= ESS
            State  = Program started - No mgt msgs received
            Pid    = 5536
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:21
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= EssMonitor
            State  = Running normally
            Pid    = 5567
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:25
            Stop   = Not applicable
            Core   = Not applicable
            Info   = ESS is fully up now !
            Process= EventFramework
            State  = Program started - No mgt msgs received
            Pid    = 5584
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:26
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= SyslogCollector
            State  = Running normally
            Pid    = 5585
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:26
            Stop   = Not applicable
            Core   = Not applicable
            Info   = SyslogCollector Started at Fri Oct 31 14:13:28 CST 2014
            Process= RMEDbEngine
            State  = Program started - No mgt msgs received
            Pid    = 5586
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:26
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= FHDbEngine
            State  = Program started - No mgt msgs received
            Pid    = 5663
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:30
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= EPMDbEngine
            State  = Program started - No mgt msgs received
            Pid    = 5696
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:34
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= EPMServer
            State  = Running normally
            Pid    = 5729
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:38
            Stop   = Not applicable
            Core   = Not applicable
            Info   = EPMServer is up and running
            Process= AdapterServer
            State  = Program started - No mgt msgs received
            Pid    = 5748
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:42
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= AdapterServer1
            State  = Program started - No mgt msgs received
            Pid    = 5749
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:42
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= FHServer
            State  = Running normally
            Pid    = 5750
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:42
            Stop   = Not applicable
            Core   = Not applicable
            Info   = FHServer started.
            Process= INVDbEngine
            State  = Program started - No mgt msgs received
            Pid    = 5751
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:42
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= PMServer
            State  = Running normally
            Pid    = 5936
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:46
            Stop   = Not applicable
            Core   = Not applicable
            Info   = PMServer is up and running
            Process= IpmDbEngine
            State  = Program started - No mgt msgs received
            Pid    = 5960
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:50
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= UPMDbEngine
            State  = Program started - No mgt msgs received
            Pid    = 5993
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:54
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= UPMDbMonitor
            State  = Running normally
            Pid    = 6026
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:58
            Stop   = Not applicable
            Core   = Not applicable
            Info   = DbMonitor Running Normally.
            Process= ANIDbEngine
            State  = Program started - No mgt msgs received
            Pid    = 6027
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:13:59
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= MACUHIC
            State  = Running normally
            Pid    = 6055
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:03
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Started.
            Process= UTLITE
            State  = Running normally
            Pid    = 6056
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:03
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Started.
            Process= FDRewinder
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= CmfDbEngine
            State  = Program started - No mgt msgs received
            Pid    = 6057
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:03
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= CmfDbMonitor
            State  = Running normally
            Pid    = 6183
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:08
            Stop   = Not applicable
            Core   = Not applicable
            Info   = DbMonitor Running Normally.
            Process= DfmBroker
            State  = Running normally
            Pid    = 6190
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:09
            Stop   = Not applicable
            Core   = Not applicable
            Info   = DfmBroker is running normally
            Process= DfmServer
            State  = Running normally
            Pid    = 6322
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:13
            Stop   = Not applicable
            Core   = Not applicable
            Info   = DfmServer initialized OK.
            Process= DfmServer1
            State  = Running normally
            Pid    = 6323
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:13
            Stop   = Not applicable
            Core   = Not applicable
            Info   = DfmServer1 initialized OK.
            Process= DFMLogServer
            State  = Program started - No mgt msgs received
            Pid    = 6324
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:13
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= DFMCTMStartup
            State  = Administrator has shut down this server
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = 11/03/14 11:55:05
            Stop   = 11/03/14 11:55:05
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= FHPurgeTask
            State  = Transient terminated
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = 11/03/14 00:00:00
            Stop   = 11/03/14 00:00:44
            Core   = Not applicable
            Info   = DPS Task FHPurgeTask completed at Mon Nov 03 00:00:44 CST 2014. For status check Job Browser UI.
            Process= DFMMultiProcLogger
            State  = Program started - No mgt msgs received
            Pid    = 6327
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:13
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= CSDiscovery
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= DCRDevicePoll
            State  = Transient terminated
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = 11/03/14 09:15:02
            Stop   = 11/03/14 09:15:50
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= CSRegistryServer
            State  = Running normally
            Pid    = 6328
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:13
            Stop   = Not applicable
            Core   = Not applicable
            Info   = CSRegistryServer is running
            Process= Tomcat
            State  = Program started - No mgt msgs received
            Pid    = 6330
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:13
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= TomcatMonitor
            State  = Running normally
            Pid    = 6670
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:14:17
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Tomcat Server up
            Process= Apache
            State  = Running normally
            Pid    = 7183
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:02
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Web Server initialized ok.
            Process= DCRServer
            State  = Running normally
            Pid    = 7204
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:06
            Stop   = Not applicable
            Core   = Not applicable
            Info   = DCRServer is up and running
            Process= CMFOGSServer
            State  = Program started - No mgt msgs received
            Pid    = 7257
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:12
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= TISServer
            State  = Program started - No mgt msgs received
            Pid    = 7258
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:12
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= DFMOGSServer
            State  = Program started - No mgt msgs received
            Pid    = 7323
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:16
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= NOSServer
            State  = Running normally
            Pid    = 7375
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:20
            Stop   = Not applicable
            Core   = Not applicable
            Info   = NOSServer is up and running
            Process= PTMServer
            State  = Running normally
            Pid    = 7376
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:20
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Started Successfully
            Process= InventoryCollector
            State  = Running normally
            Pid    = 7377
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:20
            Stop   = Not applicable
            Core   = Not applicable
            Info   = InventoryCollector is up and running
            Process= Interactor
            State  = Program started - No mgt msgs received
            Pid    = 7496
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:24
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= InventoryCollector1
            State  = Program started - No mgt msgs received
            Pid    = 7497
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:24
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= Interactor1
            State  = Program started - No mgt msgs received
            Pid    = 7589
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:28
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= UPMProcess
            State  = Running normally
            Pid    = 7590
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:28
            Stop   = Not applicable
            Core   = Not applicable
            Info   = UPMProcess started successfully.
            Process= UTManager
            State  = Running normally
            Pid    = 7591
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:28
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Started.
            Process= EssentialsDM
            State  = Running normally
            Pid    = 7592
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:28
            Stop   = Not applicable
            Core   = Not applicable
            Info   = RME Device Management started.
            Process= ICServer
            State  = Running normally
            Pid    = 7730
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:31
            Stop   = Not applicable
            Core   = Not applicable
            Info   = ICServer started.
            Process= EnergyWise
            State  = Running normally
            Pid    = 7923
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = EnergyWise Process is running normally Fri Oct 31 14:16:45 CST 2014
            Process= PMCOGSServer
            State  = Program started - No mgt msgs received
            Pid    = 7924
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= ConfigMgmtServer
            State  = Running normally
            Pid    = 7925
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = DCMA is running normally Fri Oct 31 14:17:02 CST 2014
            Process= ConfigUtilityService
            State  = Running normally
            Pid    = 7926
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = ConfigUtilityService started.
            Process= CAAMServer
            State  = Running normally
            Pid    = 7927
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = CAAMServer started.
            Process= VNMServer
            State  = Program started - No mgt msgs received
            Pid    = 7928
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= WlseUHIC
            State  = Running normally
            Pid    = 7929
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Started.
            Process= IPMOGSServer
            State  = Program started - No mgt msgs received
            Pid    = 7940
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= TopoServer
            State  = Program started - No mgt msgs received
            Pid    = 7941
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= LicenseServer
            State  = Program started - No mgt msgs received
            Pid    = 7942
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= NameServer
            State  = Program started - No mgt msgs received
            Pid    = 7946
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:35
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= NameServiceMonitor
            State  = Program started - No mgt msgs received
            Pid    = 8205
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:39
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= EDS
            State  = Running normally
            Pid    = 8290
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:16:43
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Initialization complete
            Process= ANIServer
            State  = Running with busy flag set
            Pid    = 8768
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:17:14
            Stop   = Not applicable
            Core   = Not applicable
            Info   = ANIServer started.
            Process= UTMajorAcquisition
            State  = Transient terminated
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = 11/03/14 10:00:00
            Stop   = 11/03/14 10:14:13
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= EDS-GCF
            State  = Running normally
            Pid    = 8807
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:17:18
            Stop   = Not applicable
            Core   = Not applicable
            Info   = GCF Initialization complete at Fri Oct 31 14:17:53 CST 2014
            Process= jrm
            State  = Running normally
            Pid    = 8808
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:17:18
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= DataPurge
            State  = Administrator has shut down this server
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:18:12
            Stop   = 10/31/14 14:19:11
            Core   = Not applicable
            Info   = DataPurge initialization completed at Fri Oct 31 14:19:11 CST 2014.
            Process= IPMProcess
            State  = Program started - No mgt msgs received
            Pid    = 9155
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:18:12
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= CTMJrmServer
            State  = Running normally
            Pid    = 9156
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:18:12
            Stop   = Not applicable
            Core   = Not applicable
            Info   = CTMJrmServer started.
            Process= SyslogAnalyzer
            State  = Running normally
            Pid    = 9246
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:18:23
            Stop   = Not applicable
            Core   = Not applicable
            Info   = SyslogAnalyzerService Started at Fri Oct 31 14:18:35 CST 2014
            Process= ChangeAudit
            State  = Program started - No mgt msgs received
            Pid    = 9247
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:18:23
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= 1014
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= 1965
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= 1964
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= 2360
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= 3056
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= 3104
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= 1001
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= 3177
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= 3206
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= 1015
            State  = Never started
            Pid    = 0
            RC     = 0
            Signo  = 0
            Start  = N/A
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Not applicable,
            Process= 1524
            State  = Program started - No mgt msgs received
            Pid    = 21804
            RC     = 0
            Signo  = 0
            Start  = 11/02/14 19:00:00
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= 3306
            State  = Program started - No mgt msgs received
            Pid    = 17433
            RC     = 0
            Signo  = 0
            Start  = 11/03/14 11:37:17
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
            Process= 1005
            State  = Running normally
            Pid    = 19289
            RC     = 0
            Signo  = 0
            Start  = 11/03/14 12:00:00
            Stop   = Not applicable
            Core   = Not applicable
            Info   = 1005 started.
            Process= diskWatcher
            State  = Program started - No mgt msgs received
            Pid    = 9249
            RC     = 0
            Signo  = 0
            Start  = 10/31/14 14:18:23
            Stop   = Not applicable
            Core   = Not applicable
            Info   = Application started by administrator request.
    Thanks in advance for your help.
    Best regards.

    Also when i click the alarms bar that is sitting in the bottom right i got these in DFMOGSServer.log
    [ Thu Nov 06  15:25:37 CST 2014 ] ERROR  com.cisco.nm.xms.ogs.kilner10.KilnerEventConsolidator makeEvent  - MAKE CONSOLIDATED_DFMOGS_EVENT: 9 data:
    [ Thu Nov 06  15:25:46 CST 2014 ] FATAL  com.cisco.nm.xms.ogs.server.OGSServer main  - Exception while OGS Server start up: CTMRegistryClient::addNewURNEntry  URN : ogs_server_urn ErrMsg : URN already in use
    com.cisco.nm.xms.ogs.util.OGSException: CTMRegistryClient::addNewURNEntry  URN : ogs_server_urn ErrMsg : URN already in use
            at com.cisco.nm.xms.ogs.server.OGSImpl.publishURN(OGSImpl.java:1396)
            at com.cisco.nm.xms.ogs.server.OGSServer.main(OGSServer.java:73)
    [ Thu Nov 06  15:31:54 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.webapp.GroupUserImpl isUserInTable  -
    java.lang.NullPointerException
            at com.cisco.nm.trx.epm.providers.persistence.ResultSetWrapper.next(Unknown Source)
            at com.cisco.nm.cuom.eventmon.webapp.GroupUserImpl.isUserInTable(GroupUserImpl.java:171)
            at com.cisco.nm.cuom.eventmon.webapp.GroupUserImpl.processCommand(GroupUserImpl.java:61)
            at com.cisco.nm.cuom.eventmon.webapp.AbstractCommandProcessor.execute(AbstractCommandProcessor.java:94)
            at com.cisco.nm.cuom.eventmon.webapp.EventMonitoringServlet.doPost(EventMonitoringServlet.java:202)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
            at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
            at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)
            at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
            at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
            at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
            at java.lang.Thread.run(Thread.java:662)
    [ Thu Nov 06  15:31:54 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    [ Thu Nov 06  15:31:55 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    [ Thu Nov 06  15:31:55 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.GroupManager getDevicesForNonOGSGroup  - getDevicesForNonOGSGroup() called with Unreachable Devices
    [ Thu Nov 06  15:31:55 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.GroupManager getDevicesForNonOGSGroup  - getDevicesForNonOGSGroup() Got 9 devices from TIS
    [ Thu Nov 06  15:31:55 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.GroupManager getDevicesForNonOGSGroup  - getDevicesForNonOGSGroup() called with Unmanaged Devices
    [ Thu Nov 06  15:31:55 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.GroupManager getDevicesForNonOGSGroup  - getDevicesForNonOGSGroup() called with Suspended Devices
    [ Thu Nov 06  15:31:55 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.GroupManager getDevicesForNonOGSGroup  - getDevicesForNonOGSGroup() Got 0 devices from TIS
    [ Thu Nov 06  15:31:55 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.webapp.GroupUserImpl isUserInTable  -
    java.lang.NullPointerException
            at com.cisco.nm.trx.epm.providers.persistence.ResultSetWrapper.next(Unknown Source)
            at com.cisco.nm.cuom.eventmon.webapp.GroupUserImpl.isUserInTable(GroupUserImpl.java:171)
            at com.cisco.nm.cuom.eventmon.webapp.GroupUserImpl.processCommand(GroupUserImpl.java:61)
            at com.cisco.nm.cuom.eventmon.webapp.AbstractCommandProcessor.execute(AbstractCommandProcessor.java:94)
            at com.cisco.nm.cuom.eventmon.webapp.EventMonitoringServlet.doPost(EventMonitoringServlet.java:202)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
            at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
            at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)
            at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
            at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
            at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
            at java.lang.Thread.run(Thread.java:662)
    [ Thu Nov 06  15:31:55 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.webapp.GroupUserImpl isUserInTable  -
    java.lang.NullPointerException
            at com.cisco.nm.trx.epm.providers.persistence.ResultSetWrapper.next(Unknown Source)
            at com.cisco.nm.cuom.eventmon.webapp.GroupUserImpl.isUserInTable(GroupUserImpl.java:171)
            at com.cisco.nm.cuom.eventmon.webapp.GroupUserImpl.processCommand(GroupUserImpl.java:61)
            at com.cisco.nm.cuom.eventmon.webapp.AbstractCommandProcessor.execute(AbstractCommandProcessor.java:94)
            at com.cisco.nm.cuom.eventmon.webapp.EventMonitoringServlet.doPost(EventMonitoringServlet.java:202)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
            at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
            at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)
            at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
            at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
            at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
            at java.lang.Thread.run(Thread.java:662)
    [ Thu Nov 06  15:32:05 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    [ Thu Nov 06  15:32:05 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    [ Thu Nov 06  15:32:05 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    [ Thu Nov 06  15:32:05 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    [ Thu Nov 06  15:32:05 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    [ Thu Nov 06  15:32:05 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    [ Thu Nov 06  15:32:05 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    [ Thu Nov 06  15:32:05 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    [ Thu Nov 06  15:32:05 CST 2014 ] ERROR  com.cisco.nm.cuom.eventmon.api.impl.HbmDBManager executeQuery  - ExecuteQuery, returnList is empty or NULL, []
    Don´t know much about databases, but it seems im missing some important tables or data

  • Error occured while communicating with web server

    In Netweaver if you receive this error  " error occured while communicating with web server "
    check your script logic file if you have mande any change to dimension
    names
    Vinoo

    Hi,
    validate below note
    Note 1330145 - an error occured while communicating with the web server
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b161a590-0201-0010-5590-91fa5076a914
    regards
    nag

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Change file name with oreilly servlet

    I am using oreilly servlet package and I want to change the file name to the file I am uploading, is this possible ?
    How ?
    Thanks.
    here I post the servlet code:
    package com.reducativa.sitio.servlets;
    * DemoParserUploadServlet.java
    * Example servlet to handle file uploads using MultipartParser for
    * decoding the incoming multipart/form-data stream
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import com.oreilly.servlet.multipart.*;
    public class DemoParserUploadServlet extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    PrintWriter out = response.getWriter();
    response.setContentType("text/plain");
    out.println("Demo Parser Upload Servlet");
    File dir = new File("f:/");
    if (! dir.isDirectory()) {
    throw new ServletException("Supplied uploadDir " + "f:/ " +
    " is invalid");
    try {
    MultipartParser mp = new MultipartParser(request, 10*1024*1024); // 10MB
    Part part;
    while ((part = mp.readNextPart()) != null) {
    String name = part.getName();
    if (part.isParam()) {
    // it's a parameter part
    ParamPart paramPart = (ParamPart) part;
    String value = paramPart.getStringValue();
    out.println("param; name=" + name + ", value=" + value);
    else if (part.isFile()) {
    // it's a file part
    FilePart filePart = (FilePart) part;
    String fileName = filePart.getFileName();
    if (fileName != null) {
    // the part actually contained a file
    long size = filePart.writeTo(dir);
    out.println("file; name=" + name + "; filename=" + fileName +
    ", filePath=" + filePart.getFilePath() +
    ", content type=" + filePart.getContentType() +
    ", size=" + size);
    else {
    // the field did not contain a file
    out.println("file; name=" + name + "; EMPTY");
    out.flush();
    catch (IOException lEx) {
    this.getServletContext().log("error reading or saving file");
    }

    Hi there,
    I am facing the same problem that you have stated in your Feb 26, 2002 10:28 AM message regarding "change file name with oreilly servlet", I would like to change the file name to include a unique identifier upon upload, did you ever find a solution to your problem?
    Thanks!
    Todd
    [email protected]

  • I get an error message when trying to install windows 7 on my macbook pro. The message says "windows has encountered a problem communicating with a device connected to your computer. I don't have anything connected to my computer. How do I fix this?

    I'm trying to install windows 7 on my macbook pro. I went through the process of bootcamp telling it to install windows 7. Once the windows boot manager started an error message came up. The error message says " windows has encountered a problem communicating with a device connected to your computer. I don't have a usb connected to my computer. I  am using windows 7 professional install disc. I  can't figure out what i am doing wrong. The same message keeps coming up over and over. Am I doing something wrong or is it something else?

    Well, shucks, i just spent almost 30 minutes trying to find your model user guide to explain it better, I guess they never got around to making it.....
    I would just borrow another Windows disk and try installing it again and if it does it again then you might take it to an Apple Store and see if one of the "Genius' " can figure it out.
    Make sure your internet is enabled and click on your blank desktop and at the top of your screen is a Help menu option, enter PRAM and it should give you a list of things relating to Pram. It may take a few seconds to list anything as it has to connect to Apples severs first. It should list the things you may have to fill back in when your done.
    "P-ram" stores some common information that is used in the background, your date, time, startup disk, etc, that you don't have to re-fill when you restart, it's a little different for each computer.

  • "The software required for communicating with the iPod is not installed..."

    I realize my explanation of my problem is long-winded, so if you want a shortened version, here it is:
    I've followed all the instructions trying nearly everything, and no matter what I do, iTunes gives me the error saying: "The software required for communicating with the iPod is not installed correctly. Please reinstall iTunes to install the iPod's software." My G5 iPod (60GB) works on two other computers (both without any music on them), so I assume there something wrong with my computer and not the iPod itself.
    Now for the long-winded story of the last eight hours of my life...
    I just got the Generation-5 iPod Video (60GB) a today and I'm having problems already. I followed the instructions and installed the iPod software and then plugged in my iPod (iTunes has been on my computer for a while now). I was expecting iTunes to open after plugging in the iPod, but my device manager only detected and installed "a new device". I manually opened iTunes and got an error saying: "The software required for communicating with the iPod is not installed correctly. Please reinstall iTunes to install the iPod's software."
    After re-installing the iPod software and iTunes, and restarting my computer countless times, I came looking for help here. I found this page, which seemed to outline my problem exactly. My computer recognizes the iPod as a drive, but iTunes won't have anything to do with it. I have all the symptoms outlined in the heading, so I hoped to solve my problem there. I followed the instructions step-by-step, and after the final restart, I open iTunes to get the same exact error message.
    I decided to determine whether there was a problem with my iPod or if it was my computer. I plugged my iPod into my uncles's powerbook, and got to the point where I can name and configure my iPod. I expected it to work flawlessly on a Mac (which it did) but there is no way for me to continue using a Mac (after tomorrow) for my iPod. This formatted the iPod for a Mac, so I went to another (different from the original) Windows computer, clean of any iTunes and iPod software, and followed the instructions exactly as they're supposed to be followed. After the installations, I plugged in my iPod, and although iTunes didn't open, I was able to format back to Windows and name my iPod (a step in the right direction). I should note that my (anti-iPod) computer is a Windows XP Pro, and the working one is Windows XP Home Edition. This was all well and good, until I remembered there was no music on this computer. So my iPod is completely working there, but there isn't anything I can do with it.
    Next, I came back here and browsed around the discussion boards, hoping to find somebody with a similar problem to mine. There seems to be alot of errors concerning iTunes not recognizing the iPod, but none of the solutions I tried worked for me, including changing the drive letter. I get the "iPod Service Error" while trying to restore to factory settings through iPod updater.
    Of course, I could transfer all 32GB of music from one computer to another, but the second (working) computer isn't mine and I won't have access to it in a couple months. It would be most convenient if I could get my iPod working on my own computer. Any help would be appreciated, especially from somebody who has solved this problem or know how to solve this problem.
    P.S.
    Here are some other minor details that my be important, but I didn't feel they were worth including.
    - My brother has his iPod mini set up on my computer, under a different user login. He gets the same error once in a while, but re-installing iTunes always solves the problem for him. I had him try solving my problem his way, but nothing worked for him either.
    - My computer is an AMD Athlon 64 Processor 3200+, 512MB RAM with Windows XP Pro SP2 installed. My internal hard drive is partitioned, using the letters C, D and H (C being my system files, D used for recovery files and H for my applications and games). My E drive is used as a DVD/CD-ROM Drive, and drives F and G are reserved for virtual drives (none have been running during this entire ordeal). My external hard drive uses the letter I, and I manually set my iPod to use the letter J (I've never used 'J' for anything else before).
    - Yes, I have downloaded and installed the latest versions of iTunes and the iPod software.
    - I'm assuming there is a problem with my computer and not my iPod, since it worked on both other computers I tried. I'm hoping it's as simple as changing a registry file or cleaning out (yet another) temp directory.

    Solution to "Software required for communicating with the iPod is not installed"!
    I battled this same problem for about 5 hours. Going through re-installations, the "5 R's", all these discussion boards. Nothing worked.
    The problem is that iPodService was repeatedly crashing after minute or so. You can verify this by hitting Ctrl-Alt-Delete and noting that iPodService is missing from the process list (sort by image name), or by right-clicking on My Computer and selecting "Manage", then going to Services and checking out the IPodService service - if it gives you the option to "Start", then it's not running.
    Here is what worked.
    1. De-install iTunes and iPod (if you have the updater installed) completely by going to Start --> Control Panel --> Add/Remove Programs. Also delete the C:\Program Files\iTunes and c:\Progam Files\iPod\bin directories. (Don't worry, this doesn't affect your saved music files.)
    2. Log in as an Administrator
    3. Go into the registry (note this is dangerous - you should be careful) and remove the iPod entries that the uninstaller misses.
    3.1 Go to Start menu --> Run.
    3.2 Type in "regedit".
    3.3 Go to HKEYCLASSESROOT --> IPodService.iPodManager.
    There are two keys here, iPodManager and iPodManager.1. In my case, I did not have permission to view either of these. I think this is the root cause of the problem. I think the installer can't properly update these because it doesn't have permission. So you need to change the permissions:
    3.4 Right-click on IPodService.IPodManager
    3.4.1 Select "Permissions..." A warning will appear saying you don't have permission, but that you can change permissions.
    3.4.2 On the window that launches, click on "Advanced..."
    3.4.3 Click on the "Owner" tab.
    3.4.4 Select a valid account (the one you're logged in under) under "Change Owner To".
    3.4.5 Hit "OK".
    3.4.6 Back on the main Permissions window, hit Add and add the same account as a valid user.
    3.4.6.1 Where it says "Enter the object names to select", type in the account name, e.g. "Smith".
    3.4.7 Click on the "Allow" checkboxes for "Full Control" and "Read".
    3.4.8 Hit "OK".
    3.5 Repeat procedure for the "iPodManager.1" key.
    3.6 Now right-click and delete both of these keys.
    I think that's all that's required, but I also searched through the registry and deleted the following keys.
    4. Other keys I deleted:
    4.1 HKEYCLASSESROOT --> IPodManager.IPodManagerUI.1
    4.2 HKEYLOCALMACHINE --> SOFTWARE --> Apple Computer Inc. --> iPod
    I think that's all I deleted, but I'm not positive. I seached for instances of "ipod" using the Find... and Find Next functions under the Edit menu.
    5. Exit out of the registry editor.
    6. Re-install iTunes. I re-installed iTunes and reconnected the iPod, and everything worked.
    I want to repeat that editing the registry can completely mess up your computer if you modify the wrong things, so only do this if you're comfortable, and be extremely careful.
    Hopefully this helps!
    Apple support people: assuming this works, please add it to your solutions page, and feel free to reimburse me for spending half of Christmas figuring this out.
    Mark

  • I get an error message when trying to sign into the support community with another Apple id. On the pick a username screen I get "an account utilizing this address already exists...." despite trying a few usernames. Anyone know how I can resolve this?

    I get an error message when trying to sign into the support community with another Apple id. On the <pick a username> screen I get "an account utilizing this address already exists.Only one account per email address is allowed on the Apple Support Communities" despite trying a few usernames. Anyone know how I can resolve this?

    This problem has been driving me demented. The instructions that Ivan gives have partially worked for me. By following his link
    "How to find out if you have multiple Apple IDs" I was able to identify that yes I did have two apple accounts using the same e mail address. One was very old that I used to use for the forum boards and one is my much more recent ID that I use for everything these days. So I changed the e mail address for the old account which is associated with these discussion boards and that's the account that I am now posting this from. However even though the two accounts now have different e mail addresses when I try to log onto the boards with my more recent main apple ID I still get all the same errors as described at the start of this thread by rodgers_j. And of course that's the one I want to use so that I only have one itunes account for everything.
    So if anyone has any more hints I'd be very grateful.

Maybe you are looking for

  • How to change the server for the existing project in netbeans5.5?

    we r using netbeans5.5 with visual we pack. In netbeans for the project properties>run it is not giving in the list box it is only showing sun java system applicationn server 9. the remaining servers like tomcat and jboss which we have it is not show

  • Iphone 6 to iCloud Sync IOS 8

    Hey, I added a contact to my address book, but I can't seem to get that contact up to icloud, so then it can trickle to all the other devices associated to my icloud account.. On my iphone 6, I see the contact on the rest of my devices (mac mini, ipa

  • Searching folder of pdfs by keywords only, not text in body

    in pro 9: I have a large collection of pdfs in folders. I want to be able to search for a subset of pdfs using only the keywords which I entered in the metadata field. I don't want pdfs which have those words in the body of the pdfs, just in the meta

  • Loading on Aggregated Levels

    when i am loading the data from cube to PA, i see there is good change in the total qty in PA. I see the numbers are different if i load on aggregated levels ( say if i load on just 3 chars out of 10) to the load on detailed level. Why this should ch

  • Cancellation of services

    I have infinity option 3 with evening and weekend calls. Have paid my line rental in advance. To cancel, according to the terms and conditions, the charge is £14 per month plus the £30 cease broadband charge (which is quite frankly a con). When I can