Ping request in Java

Hi All,
I am developing an application in Java were in i need to discover all IP enabled devices in the Network. It can be done using ping and Broadcast ping. If any one know about this please do inform.Or any one know the other way of acheving this please do resond immediately.
And one more query is that could we implement ICMP protocol in Java.
Thanks in advance.
regards
Ravi

You cannot effectively ping in Java. Do a search through this forum on ping. You'll get lots of hits.
Next time, do the search first, then ask later if you absolutely cannot find what you need on your own.

Similar Messages

  • Why does my system respond to ping requests?

    I have the software firewall on and in stealth mode; the online modem Firewall Setting must be at "Minimum Security (Low)" because if I use "Medium" or "High" my e-mail message center in Safari Version 5.1.5 (6534.55.3) times out. I ran GRC's Shields Up and my computer failed the "Ping reply" test. Here's the result:
    Ping Reply: RECEIVED (FAILED) — Your system REPLIED to our Ping (ICMP Echo) requests, making it visible on the Internet. Most personal firewalls can be configured to block, drop, and ignore such ping requests in order to better hide systems from hackers. This is highly recommended since "Ping" is among the oldest and most common methods used to locate systems prior to further exploitation.
    If this a problem that I should address what should I do. Thank you.

    Thanks fane_j.Based on your answer and following your instructions step-by-step, I am definitely behind a router which does NAT although I only have a wired Westell 6100F modem connected to the computer. I use no wireless devices and I do not connect to public hotspots. I did read somewhere that GRC's ShieldsUP! firewall test tends to "exaggerate" the severity of failing the ping reply test. So, at this point, it seems that I can uncheck the Mac's firewall "Stealth Mode" setting (which appears to have been the default unless I had checked it myself at some point in time and forgotten!!) Also, should I double-check my ISP's administrative controls (that can be changed online) and look for "Discard PING requests from the WAN side" or any words to that effect or is it unecessary? Lastly, should I just leave the online Firewall Setting at "Minimum Security (Low)" (because if I use "Medium" or "High" my e-mail message center in Safari Version 5.1.5 times out)? Thanks again.

  • JspServlet: unable to dispatch to requested page: java.io.FileNotFoundExcep

    Hi .,
    after successfully deploying the .ear file & registering the provider.........i am getting errors when i am trying to view my portlet in a page...
    i am following the below procedure to deploy...please let me know that am i going in a right way?
    Steps I am following:
    1.extracting template.ear file to my_ear directory
    2.extracting template.war to my_war directory
    3.in my_ear\htdocs\myjsp\my.jsp.....i am keeping my my.jsp file...
    4.web-inf\deployments.....i am keeping two property files i) _default.properties file and  ii)my.properties file...after modifing them
    5.in lib directory i am keeping two .jar files....pdkjava.jar and ptlshare.jar
    6.web-inf\providers\my\provider.xml..............after midifing the provider.xml
    so ....i am making my.war with all the above stuff including meta-inf directory....
    after that creating .ear file including .war file....after modifying application.xml
    till here i am getting successfull...
    and i can able to view my deployment through
    http://myserver.com:7778/my/providers.........where 'my' is my registration name.........
    this url i am using for registering the provider....
    after all this stuff i am getting below error after customizing the page...
    please give me solution.....
    Error I am getting
    6/2/03 2:23 AM PollAdmin: JspServlet: unable to dispatch to requested page: java.io.FileNotFoundException:
    /space/infra/ias_midtier/j2ee/OC4J_Portal/applications/PollAdmin/PollAdmin/htdocs/PollAdmin/PollAdmin.jsp (No such file or directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:64)
         at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java:153)
         at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java:169)
         at oracle.jsp.runtimev2.JspPageCompiler.fromReader(JspPageCompiler.java:345)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:250)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:171)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:338)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:481)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:108)
         at oracle.portal.provider.v2.render.http.ResourceRenderer.renderBody(Unknown Source)
         at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
         at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    PLease help me as soon as possible.........

    Hi Abhinav.,
    Actually as an example i mentioned "my" in previous posting...
    here is the provider.xml i am using...for "PollAdmin"
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>false</session>
    <useOldStyleHeaders>false</useOldStyleHeaders>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>3</id>
    <name>PollAdmin</name>
    <title>PollAdmin Portlet</title>
    <description>This portlet echos the poll information.</description>
    <timeout>40</timeout>
    <timeoutMessage>PollAdmin Portlet timed out</timeoutMessage>
    <showEdit>false</showEdit>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <contentType>text/html</contentType>
    <showPage>/htdocs/PollAdmin/PollAdmin.jsp</showPage>
    </renderer>
    </portlet>
    </provider>
    Thanks

  • Initiate request from java class

    Hello
    I got a peculiar question
    My web container contains the following
    a JSP page[b] page1.jsp
    second JSP page page2.jsp
    A servlet PushPage
    A java class ContactServlet
    What I want to achieve is when browser is displaying page1.jsp. The ContactSevlet.java class calls the servlet PushPage which redirects to page2.jsp
    I am able to successfully load the servlet from ContactServlet.java since I am able to print the response(the contents of page2.jsp) on to console.
    But the page2.jsp does not display on the browser, it still displays page1.jsp after servlet completes its function.
    Any idea how can I make the page2.jsp to display on the browser?
    In other words i should make the Servlet feel like the request has come from page1.jsp for page2.jsp.
    The code for servlet and java class are below
    package testpackage;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    * Servlet implementation class for Servlet: PushPage
    public class PushPage extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
         public PushPage() {
              super();
         protected void processAll(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              response.sendRedirect("http://localhost/rimpush/page2.jsp");
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
               processAll( request,  response);
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              processAll( request,  response);
    /*Java class*/
    package testpackage;
    import java.io.*;
    import java.net.*;
    import javax.servlet.http.HttpServletRequest;
    public class ContactServlet {
         public ContactServlet(){
         public static void main( String [] args ) {
              /*Call the servlet PushPage*/
              try {
                URL url = new URL("http://localhost/rimpush/PushPage");
                URLConnection conn = url.openConnection();
                conn.setDoOutput(true);
            catch ( MalformedURLException ex ) {
                // a real program would need to handle this exception
            catch ( IOException ex ) {
                // a real program would need to handle this exception
    }Any idea would be gracefully appreciated
    Thank you.

    Your ContactServlet program does makes a request to the "PushPage" servlet independant of the browser. In fact you may as well have just opened up a new browser window - it is the same effect.
    In most cases the only way you can put a new page in the browser is if the browser requests it. So if you want something to be loaded into the browser with page1.jsp displayed in it, then that browser needs to make a request to the server.
    The standard way of doing this is to either use a meta-refresh tag on the page, or a javascript window.setTimeout.
    If you want a "push" technology, you might take a look at [url http://www.pushlets.com] pushlets . I haven't actually used them, but they might be applicable in this case.
    Cheers,
    evnafets

  • ARP and RARP request in Java

    Hello,
    I'd like to send ARP and RARP request in Java, but I don't know how to.
    Thanks for help.

    Potentially you can find the RFCs for ARP and RARP and then code the functions at the socket level. To be a real pal, make the code into an open source library when you're done.

  • Making a ping program in java

    hey
    I know that java does'nt support ICMP protocols......and also JNI should be used if ne kind of pinging program has to be created.....
    can someone help me precisely how to do that........??
    regards and thnks
    ad

    class java.net.InetAddress
    public boolean isReachable(int timeout)
                        throws IOException
    Test whether that address is reachable. Best effort is made by the implementation to try to reach the host,
    but firewalls and server configuration may block requests resulting in a unreachable status
    while some specific ports may be accessible.
    A typical implementation will use ICMP ECHO REQUESTs if the privilege can be obtained,
    otherwise it will try to establish a TCP connection on port 7 (Echo) of the destination host.
    // Since: 1.5

  • How to enable ping service on java-stack only system

    I have installed SAP NetWeaver 7.0 - Java Trial on local host.
    How can you activate the ping service there?
    It should work under "http://localhost:50000/sap/bc/ping"
    (I know how to activate it with transaction SICF in an abap system, but I have java-stack only here, so I can't call transactions. I can only use the Visual Admin, right?, but there I could not detect a ping service so far)
    More detailed:
    I created system "SAP_WebDynpro_XSS". (this is necessary for connecting to ECC abap backend for ESS Packages) and set following parameter:
    template:"SAP system using connection string"
         category: Web Application Server
              Web AS host name: chrisSAP:50000
              Web AS path: /webdynpro/dispatcher/
              Web AS protocol: http
    But when I test the "SAP Web AS Connection" for this system, I got following error:
    7. The Web AS ping service http://chrisSAP:50000/sap/bc/ping was not pinged successfully. If the ping service is not activated on the Web AS, you can try to call the ping service manually.
    8. An HTTP/S connection to http://chrisSAP:50000/webdynpro/dispatcher/ was not
    obtained successfully; this might be due to a closed port on the Firewall.
    I guess step 8 did not pass because step 7 failed, and not because of a closed port or firewall (I made sure everything is open.)
    The strange thing is that the connection test fails, but the connection seems to work fine!
    I mean I can see the front ESS page in the portal when logging in with an ESS-user, and there are no errors in the log. If I change the SAP_WebDynpro_XSS parameters to some other made-up values, then the front ESS page does not come up and some errors appear with "SAP_WebDynpro_XSS" inside.
    That proofs that the connection is working despite the failed connection test, right?. But what can I do that the connection test passes? It seems that somehow SAP has hardcoded the path "/sap/bc/ping" which usually exists on an abap system. But I have java-stack only, so how can I tell that the function that runs the test?
    A system connection test fails, but the connection is working fine!
    If someone could explain that to me...

    Dear Srini Nookala,
    thank you for your answer. Unfortunately I don't understand the relation of my question to your answer.
    >> check with OSS note 1019335 SAP NetWeaver AS Java 6.40 SP21
    I have Version 7.0 SP14. I read the OSS note, but there are around 100 changes listed. I read them all, but couldn't figure out one that has to do with ping and system test. So which sentence inside the note are you referring to?
    >> The problem is due to JCo parameters configuration not properly, Ask Basis team, they will do it.
    I am basis team. I configured the JCo properly as described in manual and tested them afterwards. They run successful. Also all the links that you gave refer to JCO connections about how to set them up and test them. But what have JCO connections to do with System-connection tests? As far as I know JCO-connections are not used for system connectivity tests. You can set them up independent. I understand that JCO-connections are used for getting data from backend servers. But the system "SAP_WebDynpro_XSS" is defined for determing the webdynpros on localhost (frontend, not backend).
    So please can you explain me what JCO-connections which refer to remote hosts have to do with a ping service on local host that cannot be reached? And which part would be not configured "properly"? Timeouts? user?
    To define my question more properly:
    Is it possible to make the connection test work on a java-stack only host for a system that refers to itself (localhost)? Or is it a known bug?
    Some sub-questions
    Am I using the right system template (I am using "SAP system using dedicated application server")
    I have no abap on local host (chrisSAP). Only java stack. Usually path ..sap/bc/ping refers to an abap system, right? So in my opinion I have 3 possibilities:
    - install abap-stack on local host (portal) and activate ping service.
    - somehow install a ping service that runs under the given URL in Visual Admin (how?)
    - somehow tell the connection test to skip pinging and continue test. (How?)
    Any additional advice would be highly appreciated.

  • Creating RFC request in java

    Hi.
    I have a small issue, creating a RFC call from java.
    To be specific, I'm updating a table in the backend, using an adapter module.
    When creating the request using DOM, I get this error:
    Exception:
    Exception: error while processing message to remote system:
    com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst:
    com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declaration(2).
    I've seen a few places in the forum, that there's a simular problem in UDF, where you have to create the request string in one line. Else you get the same error.
    The question is, what is the difference between these two functions, and why is the DOM function failing when the other one works?
    The request should look like this:
      <?xml version="1.0" encoding="UTF-8"?>
      <rfc:Z_MON_SURV_UPDATE xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
          <ID>1</ID>
      </rfc:Z_MON_SURV_UPDATE>
    Function 1:
    private NodeList buildRequestXml(String id) {
    try {
         Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
         Node docRoot = doc.appendChild(doc.createElementNS("urn:sap-com:document:sap:rfc:functions","rfc:Z_MON_SURV_UPDATE"));
         Element ID = doc.createElement("ID");
         docRoot.appendChild(ID).appendChild(doc.createTextNode(id));
         return doc.getChildNodes();
    } catch (Exception e) {
         throw new RuntimeException("Error while building request XML", e);}
    Function 2:
    private NodeList buildRequestXml(String id) throws SAXException, IOException, ParserConfigurationException, FactoryConfigurationError {
         String res = "<rfc:Z_MON_SURV_UPDATE xmlns:rfc=\"urn:sap-com:document:sap:rfc:functions\"><ID>"id"</ID></rfc:Z_MON_SURV_UPDATE>";
         Document XMLDoc= DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new InputSource(new StringReader(res)));     
         return XMLDoc.getChildNodes();
    Regards...
    Peter

    Hi Aashish.
    Your right, thanks.
    Just tried the something like, what you suggest.
    In my case the result method looks like this:
    private NodeList buildRequestXml(String id) {
         try {
              Document doc =
                   DocumentBuilderFactory
                        .newInstance()
                        .newDocumentBuilder()
                        .newDocument();
              Node docRoot =     doc;
              Element Z_MON_SURV_UPDATE = doc.createElement("rfc:Z_MON_SURV_UPDATE");
              Z_MON_SURV_UPDATE.setAttribute("xmlns:ns1","urn:sap-com:document:sap:rfc:functions");
              docRoot = doc.appendChild(Z_MON_SURV_UPDATE);
              Element ID = doc.createElement("ID");
              docRoot.appendChild(ID).appendChild(doc.createTextNode(id));
              return doc.getChildNodes();
         } catch (Exception e) {
              throw new RuntimeException("Error while building request XML", e);
    Regards...
    Peter

  • How to retain socket connection for multiple requests in java 1.3

    Hi All,
    My problem is to retain client socket connection without opening and closing socket connection for every request.I want to open the socket connection once and send multiple requests one after the other based upon the response over the same socket.Finally I want to close the socket only after completing all my requests and receiving respective responses.I don't want to open and close the socket for each request and response.While at the same time I expect the socket to send each request only after receiving the response for the previous request.
    I am using java 1.3 and I am looking for the solution in same version.
    Please help me .
    Thanx in advance.

    Look at my response to "Telnet to Unix box from Java"
    http://forum.java.sun.com/thread.jsp?forum=31&thread=437231
    on "Java Programming" forum. It does exactly that to run the signon and a command. It would be easy to extend it to do multiple commands.

  • Is connection possible without ping request

    I have a question which is conceptual in nature, is it possible to receive traffic from a remote host to my host machine even if the ping from host to remote machine is not happening in Linux( Red Hat).
    I hope my question is clear that is it possible for a connection to happen from a host to remote machine even if it is not pinging from host to remote machine in Red Hat Linux.
    Requesting a reply to my query.
    Regards

    Hi,
    Like Dude said, we check the connection between Linux hosts by ICMP request/response and if you want to transfert data between Linux hosts there are many solutions like scp, ftp, sftp, sync, ......
    Note 1: Protocols like ICMP, ssh, ftp,.... use a different ports number, so you can block ICMP and accept Other. Or you can block ftp and accept ICMP.. As you like
    Note 2: The response of an ICMP request can be blocked by firewall or by the kernel it self when you modify the contents of the file /proc/sys/net/ipv4/icmp_echo_ignore_all from 0 to 1.
    Best regards

  • Invalid request for HTTP request from Java

    I've written the following code to retrieve data from HTTP url:
    byte [] buffer = new byte[1024];
                   URLConnection conn = src.openConnection();
                   //conn.setRequestProperty("Range", "bytes=" + (start + completed) + "-" + end);
                   //System.out.println("bytes=" + (start + completed) + "-" + end);
                   System.out.println("Response: " + ((HttpURLConnection)conn).getResponseCode());
                   BufferedInputStream bin = new BufferedInputStream(conn.getInputStream());
                   byte [] data = new byte[1024];
                   int readLen;
                   manager.addConnected();
                   while((readLen = bin.read(data)) != -1 && canContinue) {
                        dest.seek(start+completed);
                        dest.write(data, 0, readLen);
                        completed += readLen;
                        System.out.println(readLen + "\t" + completed);
                   dest.close();
                   System.out.println("Read: " + readLen);
              } catch(IOException e) {
                   manager.failConnection();
              }However, the response code printed is -1 and the following content is written to the file (dest is a random access file, you can ignore the seek(), it is needed when I start multi-threading).
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
    <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
    </HEAD><BODY>
    <H1>ERROR</H1>
    <H2>The requested URL could not be retrieved</H2>
    <HR noshade size="1px">
    <P>
    While trying to process the request:
    <PRE>
    GET /ubuntu/pool/main/f/firefox/firefox_2.0.0.2+0dfsg-0ubuntu0.6.10_i386.deb HTTP/1.1
    User-Agent: Java/1.6.0
    Host: security.ubuntu.com
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-alive
    </PRE>
    <P>
    The following error was encountered:
    <UL>
    <LI>
    <STRONG>
    Invalid Request
    </STRONG>
    </UL>
    <P>
    Some aspect of the HTTP Request is invalid.  Possible problems:
    <UL>
    <LI>Missing or unknown request method
    <LI>Missing URL
    <LI>Missing HTTP Identifier (HTTP/1.0)
    <LI>Request is too large
    <LI>Content-Length missing for POST or PUT requests
    <LI>Illegal character in hostname; underscores are not allowed
    </UL>
    <P>Your cache administrator is <A HREF="mailto:root">root</A>.
    <BR clear="all">
    <HR noshade size="1px">
    <ADDRESS>
    Generated Fri, 16 Mar 2007 11:14:48 GMT by inet (squid/2.6.STABLE3)
    </ADDRESS>
    </BODY></HTML>Where does the problem lie? It failed for other URLs too. Can I establish more than one connection by invoking openURLConnection() on the same URL object?

    Ive run into this issue also. I need a way for a portlet to change to its maximized state for the purposes of user registration. Is there anyway this can be done? I know that sun jsp "Providers" which are shown on their example desktop, have some sort of maximized state that they can go into, but im not sure how to use this in a portlet.
    There seems to be very inconsistent support between the proprietary sun provider api, and the portlet api.

  • Ping - Request Timed Out

    Anyone any ideas why I cannot ping my IP address? All I get is 4 lines of Request timed out
    Solved!
    Go to Solution.

    Unless you are using static/permanaent IP addresses, the address you have can change.  First I would make sure that the address that you are pinging is the correct address.  If you are on windows open a cmd/command prompt and run ipconfig, you should be able to figure out the IPv4 address from this and use that in the ping.  If this fails then as Ectophile says you likely have a software firewall that is blocking the ping - have you recently install an anti-virus suite that includes this?
    Assuming that this works and that you have home wifi/lan, from the ipconfig output there is also a 'Default Gateway' address, this should be your router, try pinging this address.  If this works then everything is should be fine from your pc to your router.
    Next, in your router config somewhere it should give you the IP address that it got from the network, ping this to verify that you can communicate from your pc to the external interface on your router.
    Taking this further, on the same screen on your router there is likely information for the routers 'Default Gateway', if you ping this address it tells you that you can ping from your PC through to the exchange equipment.
    /AGeezer

  • Proxy Login Request on Java applets

    • 10.4.5 Client
    • Windows 2.3k ISA 2005 Proxy Server
    • Users' fileserving to Win2.3k - ADmitMac for AD integration
    The client is a test machine on which I build campus master NetInstall images. In my testing procedures I've come across a bizarre problem with Java in the browsers (IE, Safari, & FireFox).
    We use ISA proxy server with web filtering, and users must authenticate to the proxy. On a new user's first use of any browser, the proxy username & password are requested, and the Add to Keychain checkbox is available. If the user checks the box, no further proxy login requests are made; the user's Keychain is updated with the proxy information.
    On pages with Java applets, however, each and every applet will ask for a proxy login, but the login window does not offer a Add to Keychain checkbox! If a page has 15 applets on it, the user will be asked 15 times to authenticate against the proxy.
    Naturally, this is a BIG problem, especially when several of the sites our teachers use in classes and labs contain many Java applets.
    On the web, there is almost nothing concerning setting up Java with proxy servers, as all Apple Java from v. 1.4.2 onwards picks up proxy information from the system's network settings.
    On the Apple Developer site, Tech Note QA1263 demonstrates a way of setting HTTPS proxy settings by entering text strings in the 1.3.1 and 1.4.1 Plugin Settings apps Java Runtime Parameters. The same capability exists in the J2SE 5.0 Java Preferences app, too. Unfortunately, the Java applets do not use HTTPS, so far as I can tell, so this remedy is useless.
    Any clues I can pursue? Any help or fixes?
    Thanks in advance!
    Derek I Smith
    Systems & Network Admin
    Riverdale Country School
    www.riverdale.edu
    eMacs,g4s,QSs,B/Ws,iMacs,G5,G5 XServe, etc   Mac OS X (10.4.5)  

    After some more research with the J2SE 5.0 Java Preferences app, I turned on the Java console, booted Safari and went to my favorite Java applet - babynamewizard. This is the output of the console log. From what I can glean, the plug-in sees the proxy server settings as it should, and reports them.
    In addition, the J2SE 5.0 Java Preferences app allows you to turn off all security settings. No change in behavior.
    The Log:
    Java Plug-in 1.5.0
    Using JRE version 1.5.0_05 Java HotSpot(TM) Client VM
    User home directory = /Users/admin
    network: Loading user-defined proxy configuration ...
    network: Done.
    network: Loading proxy configuration from Netscape Navigator ...
    network: Done.
    network: Loading manual proxy configuration ...
    network: Done.
    network: Proxy Configuration: Manual Configuration
    Proxy: http=pcproxy.riverdale.edu:8080,https=pcproxy.riverdale.edu:8080,ftp=pcproxy.ri verdale.edu:8080,gopher=pcproxy.riverdale.edu:8080,socks=pcproxy.riverdale.edu:8 080
    Proxy Overrides:
    basic: Cache is enabled
    basic: Location: /Users/admin/Library/Caches/Java/cache/javapi/v1.0
    basic: Maximum size: unlimited
    basic: Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@fb6354, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@dc0e7a
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    network: Connecting http://babynamewizard.com/namevoyager/nametide2.jar with proxy=HTTP @ pcproxy.riverdale.edu/172.16.1.52:8080
    network: Connecting http://babynamewizard.com/namevoyager/nametide2.jar with cookie "s_cc=true; s_sq=%5B%5BB%5D%5D"
    network: Firewall authentication: site=pcproxy.riverdale.edu/172.16.1.52:8080, protocol=http, prompt=ENKI.riverdale.edu, scheme=basic
    basic: User selected: 0
    ~ ~ ~
    The proxy login window appears at this point and I authenticate to the proxy
    The log continues...
    ~ ~ ~
    network: Connecting http://babynamewizard.com/namevoyager/nametide2.jar with proxy=HTTP @ pcproxy.riverdale.edu/172.16.1.52:8080
    basic: Loading http://babynamewizard.com/namevoyager/nametide2.jar from cache
    basic: No certificate info, this is unsigned JAR file.
    network: Connecting http://babynamewizard.com/namevoyager/namedb.zip with proxy=HTTP @ pcproxy.riverdale.edu/172.16.1.52:8080
    network: Connecting http://babynamewizard.com/namevoyager/namedb.zip with cookie "s_cc=true; s_sq=%5B%5BB%5D%5D"
    Columns found: 28
    Num years: 13
    YEAR NAME: 1880s
    YEAR NAME: 1890s
    YEAR NAME: 1900s
    YEAR NAME: 1910s
    YEAR NAME: 1920s
    YEAR NAME: 1930s
    YEAR NAME: 1940s
    YEAR NAME: 1950s
    YEAR NAME: 1960s
    YEAR NAME: 1970s
    YEAR NAME: 1980s
    YEAR NAME: 1990s
    YEAR NAME: 2004
    Num names: 5251
    0 --> 923475.0
    1 --> 915444.0
    2 --> 905002.0
    3 --> 910731.0
    4 --> 915165.0
    5 --> 924335.0
    6 --> 938721.0
    7 --> 940141.0
    8 --> 923814.0
    9 --> 869609.0
    10 --> 848116.0
    11 --> 800666.0
    12 --> 759055.0
    Rank misses: 21
    0.15
    0.4475
    0.395
    0.3425
    0.29000002
    0.23750001
    0.185
    0.48250002
    0.43
    0.3775
    0.325
    0.2725
    0.22
    0.1675
    0.465
    0.4125
    0.36
    0.3075
    0.255
    0.2025
    ~ ~ ~
    The applet runs

  • OIM should send spmlv2 requests via java code to service provider

    Hi,
    We have the situation in which OIM acts as Requesting authority,Spml provider acts as service provider.
    Oim should send spml requests from custom java code.Spml2Client is used.We are not using genericc technology connector.
    Require sample java code for Search operation.
    I had done for modify request.
    The request and response is as follows
    PSO ID returned after searching: org.openspml.v2.msg.spml.PSOIdentifier@5c32a864
    <deleteRequest xmlns='urn:oasis:names:tc:SPML:2:0' recursive='false'/>
    <deleteResponse xmlns='urn:oasis:names:tc:SPML:2:0' status='success'/>
    <modifyRequest xmlns='urn:oasis:names:tc:SPML:2:0' returnData='identifier'>
    <psoID ID='cn=TPS User8,ou=TPS,dc=fosterstechodc,dc=com'/>
    <modification modificationMode='replace'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='otherHomePhone' operation='replace'>
    <dsml:value>999999</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='delete'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='description' operation='delete'>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='add'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='firstname' operation='add'>
    <dsml:value>Barbara</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    </modifyRequest>
    SpmlClient: sending to http://10.101.151.209/ARServerSPML/SPMLProvider.asmx
    <modifyRequest xmlns='urn:oasis:names:tc:SPML:2:0' returnData='identifier'>
    <psoID ID='cn=TPS User8,ou=TPS,dc=fosterstechodc,dc=com'/>
    <modification modificationMode='replace'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='otherHomePhone' operation='replace'>
    <dsml:value>999999</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='delete'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='description' operation='delete'>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='add'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='firstname' operation='add'>
    <dsml:value>Barbara</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    </modifyRequest>
    SpmlClient: received
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><modifyResponse status="failure" xmlns="urn:oasis:names:tc:SPML:2:0"><error>malformedRequest</error><errorMessage>At least one &lt;modification&gt; element must be specified.</errorMessage></modifyResponse></soap:Body></soap:Envelope>
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><modifyResponse status="failure" xmlns="urn:oasis:names:tc:SPML:2:0"><error>malformedRequest</error><errorMessage>At least one &lt;modification&gt; element must be specified.</errorMessage></modifyResponse></soap:Body></soap:Envelope>
    org.openspml.v2.util.Spml2ExceptionWithResponse: At least one <modification
    The response says the modifaction tag is not present.
    The code for this request is
    Modification[] modifications =
                   { newModWithDSMLMod("otherHomePhone", "999999", ModificationMode.REPLACE),
                             newModWithDSMLMod("description", null, ModificationMode.DELETE),
                             newModWithDSMLMod("cn", "Barbara", ModificationMode.REPLACE)};
                   modifyResp = customSPMLClient.modifyUser(client,searchPSOId,modifications);
    method:
    public ModifyResponse modifyUser(Spml2Client client,PSOIdentifier psoId,Modification[] modifications) throws Exception {
              client.setTrace(true);
              ReflectiveXMLMarshaller marshaller = new ReflectiveXMLMarshaller();
              ModifyRequest modReq = new ModifyRequest(null, // String requestId,
                        null, // ExecutionMode executionMode,
                        psoId, // PSOIdentifier psoID
                        modifications, // Modification[] modifications
                        ReturnData.IDENTIFIER // ReturnData returnData
              System.out.println(modReq.toXML(marshaller));
              ModifyResponse modResp = (ModifyResponse) client.send(modReq);
              System.out.println(modResp.toXML(marshaller));
              return modResp;
    private static Modification newModWithDSMLMod(String modName, String modValue, ModificationMode modMode)
         throws DSMLProfileException
              /*DSMLModification dsmlMod = null;
              dsmlMod = new DSMLModification(modName, modValue, modMode);
              Extensible data = new Extensible();
              data.addOpenContentElement(dsmlMod);
              Selection component = null;
              return new Modification(component, data, null, modMode);
    Please help me out.
    I need sample java code for search operation tooo.
    regards,
    Sindhu.M

    the sample JAVA codes are provided for sending SPML requests, HTTPClient and one more (i dont remember rite now) within the OIM installation folders itself. It's in the 'SampleHttpClient' folder. Check it once. WSDL, sample XML's and the JAVA codes all are there. You just need to set the classpath and run it.
    - oidm.

  • How to enable/allow IPv6 ping requests

    My IPV6 provider sixxs.net needs to ping my end of the IPV6 connection. It looks like the working AEBS tunnel that I have setup is not responding to pings. Strangely the public IPv4 address seems quite happy to respond.
    How can I get the AEBS to respond to IPV6 ICMP requests?
    This is urgent as sixxs.net will disable my tunnel if they cannot reliably test connectiivity.
    Thanks,
    Adrian

    Thank you! I can't tell yet if that solved the problem.... I was able to click a few more facebook ads, but haven't seen the original one yet and don't know if there was something different about it. I did add the couple of websites I wanted to allow pop-ups for, and I'll test out the USPS one with my next shipment. I just updated yesterday to whatever the latest version of firefox is, and this time it seems like there are more changes than previous recent updates which I'm not used to yet. Since I visit new sites regularly, I'd like to be given the option with each one to allow the pop-up right on the spot, vs. having to go into the settings and add that particular website that I may or may not visit again. Unless I'm missing something, that seems kind of inconvenient.

Maybe you are looking for

  • New Macbook spontaneous restart

    Hi all, I have a month old Macbook pro that has been spontaneously restarting with an error. It doesn't matter what I am doing on it; it will restart at any point in time randomly. I took it to the genius bar and they said the only restart they found

  • How Do I Uninstall a Program from A iMac G5?

    I have just moved over to my first apple computer an iMac G5, and i installed a trial version of Sophos Anti Virus software which does not work well, and so I wish to remove it. The thing is I dont know how you uninstall programs from the Mac system.

  • E3000 Media Server

    Where can I find documentation on the built-in media server? There doesn't seem to be anything that comes with the router. I have it up and functioning - however, it shows me music files, but doesn't show any of the videos or photos that are availabl

  • When I stop listening, and then start again, it goes all the way to the beginning.Why?

    When I am listening to my ipod shuffle on in order, and then stop, and then go back, its starts from the very beginning. Why?

  • MSS iview not found

    Hi All, When clicking on any sqaure colored icon of Team Calendar iview in MSS , I get portal runtime exception "com.sapportals.portal.prt.runtime.PortalRuntimeException: iView not found: com.sap.pct.hcm.attendancedetail.default" Could you please hel