URLConnection getLastModified hangs

Hi.
I (am at least planning to) use the getLastModified method of URLConnection to create local caching. I'm using this currently, and it works like a charm - stores timestamp and new entry if updated, if no timestamp available no caching - but when it comes to a certain file i'm trying to access it just "hangs".
I'm running a library on a tomcat/apache installation, and my (relevant) code is this:
static Boolean bDebug = true;
if( getURLLastModified( url ) > 0 )
  // do some caching stuff
public static long getURLLastModified(String incomingURL)
  try
    URL url = new URL(incomingURL);
    URLConnection uc = url.openConnection();
    if(bDebug) System.out.println("URL : " + uc.getURL().toString());
    if(bDebug) System.out.println("MODIFIED : " + uc.getLastModified());
    if(bDebug) System.out.println("getLastModified works");
    return uc.getLastModified();
  catch(Exception ex)
    if(bDebug) System.out.println(ex.toString());
}I can access the "special" file using my browser - renders without a problem, and i can wget it from my server - so no connectivity issues.
But, as mentioned, when i'm trying to retrieve the timestamp of the file using getURLLastModified it just hangs - apparently indefinitely.
That is - my tomcat instance is hanging ang not able to server anything, while the apache works (static files can be served).
Is there any way of avoiding this somehow? Some kind of timeout on getLastModified or something?
Any help on this topic will be higly appreciated :)

Set a read timeout on the URLConnection.
And close it before you exit that method!

Similar Messages

  • URLconnection.getLastModified cannot identify file changes after connection

    In my code, I am using URLconnection.getLastModified to watch for file changes. Unfortunately, when the file changes after the URLconnection is made, it does not recognize the file changes. Any ideas on how to make this work?
    Thanks
    public FileChangeMonitor(URL fileURL) throws IOException {
    targetURLconnection = fileURL.openConnection();
    targetURLconnection.setUseCaches(false);// This didn't seem to help - can be deleted.
    public static void main(String[] args) throws InterruptedException {
    FileChangeMonitor testFileChangeMonitor = null;
    try {
    URL MyDataFile = new URL("http://localhost/MyDataFile.xml");
    testFileChangeMonitor = new FileChangeMonitor(MyDataFile);
    } catch (IOException i) {
    testFileChangeMonitor.start();
    @Override
    public void run() {
    long lm = targetURLconnection.getLastModified();
    long lm2 = 0;
    try {
    while (true) {
    Thread.sleep(POLL_INTERVAL);
    lm2 = targetURLconnection.getLastModified();
    if (lm2 != lm) {
    flag = FLAG_CHANGED;
    lm = lm2;
    fireStateChanged();
    System.out.println("MyDataFile Changed!!!");
    } catch (InterruptedException e) {
    e.printStackTrace();
    }

    If (hypothetically speaking) you had an HTTP URL (which of course points to a resource in general but it might happen to be a file in your case), then a common way to examine its last-modified date is to send an HTTP HEAD request and examine the headers in the response.

  • URLConnection.getOutputStream() hang when applet displayed a second time

    This is happening on Linux using the 1.31_02 plugin.
    My applet uses a URLConnection object to get information from a servlet. This method is in it's own thread, and is periodically called to keep the display of the applet up to date.
    The second time the applet is displayed (navigate away from the page and then return), the applet hangs in the method URLConnection.getOutputStream().
    Note that this only happens on Linux browsers, it's fine on Windows.
    Is there any way to programatically force a reset on the URL? The only way I have been able to recover is to restart the browser.
    Thanks.

    I am having similar problem with URLConnection.getOutputStream() that hangs in Mozilla 1.2.1 browser when it tries to write to linux server. It never creates this object outputStream = new BufferedWriter( new OutputStreamWriter(connect.getOutputStream())); System.out.println before this line shows but the one after does not show at all. Can you help? I am using Java plug-in 1.3.1_02. I would appreciate any help.

  • URLConnection getOutputStream hangs

    Hi,
    I have an application using applet to servlet communication,the https communication is established by URLConnection.However after certain time of communication the applet just hangs at getOutputStream .without any error or exception.
    The environment is JRE 1.4.2_07 and Tomcat with SSL enabled.I spent lot of time tracking this bug but could not find any answer.Any help or ideas are appreciated.
    Thanks.

    I want to bring to your notice that getOutputStream() hangs or blocks only for https but works fine with http,also not during start of applet but after changing the applet state.I assume it may not be the problem from URLConnection may be the applet looses the https authentication during state change and hangs in connect or getOutputStream().we are considering to move to HttpClient but not sure if its going to resolve this problem.Any ideas ar appreciated.
    many thanks.

  • Getting .php files(output)with java

    i'm trying to get he contenty of a php file,
    but i don't receive anything with .html files it works great kan someone help me, please
    import java.io.*;
    import java.net.*;
    import java.util.Date;
    class URLConnecties
        public static void main(String args[]) throws Exception
            int teken;
            URL url = new URL("http://www.gamer.mineurwar.nl/net/javachallenge.php?command=DaTe");
            URLConnection urlconnection = url.openConnection();
            System.out.println("Type inhoud: " +
                urlconnection.getContentType());
            System.out.println("Datum document: " +
                new Date(urlconnection.getDate()));
            System.out.println("Laatst gewijzigd: " +
                new Date(urlconnection.getLastModified()));
            System.out.println("Document vervalt: " +
                urlconnection.getExpiration());
            int lengteinhoud = urlconnection.getContentLength();
            System.out.println("Lengte inhoud: " + lengteinhoud);
            if (lengteinhoud > 0) {
                InputStream in = urlconnection.getInputStream();
                while ((teken = in.read()) != -1) {
                    System.out.print((char) teken);
                in.close();
    }

    but i don't receive anything with .html files it works great kan someone help me, pleaseWhat's that mean? Either you need to call:
    URLConnection urlconnection = url.openConnection();
    urlconnection.connect();
    Or you mean you aren't getting things like the images in the file... Well, of course, cuz there are no images in an HTML file. Only links to images, which a browser would parse out of the HTML and make another connection to the server to get. So you'd have to do the same thing. URLConnection is not a browser, it doesn't parse HTML.

  • Java.lang.SecurityException: Unsupported keysize or algorithm parameters

    Hi I need urgent help, I am getting below exception while loading trusted certificates from the jks keystore files DemoTrust.jks and cacerts using wls server.
    java.lang.SecurityException: Unsupported keysize or algorithm parameters
         at javax.crypto.Cipher.init(DashoA12275)
         at com.certicom.tls.provider.Cipher.init(Unknown Source)
         at com.certicom.tls.ciphersuite.SecurityParameters.createWriteCipher(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.changeCipherSpec(Unknown Source)
         at com.certicom.tls.record.handshake.ClientStateReceivedCertificate.handle(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
         at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
         at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
         at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
         at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
         at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
         at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
         at com.certicom.tls.record.WriteHandler.write(Unknown Source)
         at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
         at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
         at weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:122)
         at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:322)
         at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:29)
         at weblogic.net.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:594)
         at java.net.HttpURLConnection.getHeaderFieldDate(HttpURLConnection.java:343)
         at java.net.URLConnection.getLastModified(URLConnection.java:429)
         at com.cramer.core.framework.serviceimpl.ImageServiceImpl.getURLImage(ImageServiceImpl.java:269)
         at com.cramer.core.framework.serviceimpl.ImageServiceImpl.getImages(ImageServiceImpl.java:224)
         at com.cramer.core.framework.serviceimpl.ImageServiceImpl.getGraphicsCacheData(ImageServiceImpl.java:634)
         at sun.reflect.GeneratedMethodAccessor1067.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
         at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.cramer.core.sso.ApplicationFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.cramer.core.framework.serviceimpl.ClientAddressFilter.doFilter(ClientAddressFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Pls help , Thanks is Advance !!!

    HI
    I tried with replacing the jar with unlimited strength stuff but it didn't work for me , i got "class not found" Exception after that.
    but one point i bring in to notice that i come accross this Error when try to loading trusted certificates
    <Mar 6, 2012 3:26:22 PM EST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /appl/bea/wls81sp5/weblogic81/server/lib/DemoTrust.jks.>
    <Mar 6, 2012 3:26:22 PM EST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /appl/j2sdk1.4.2_17/jre/lib/security/cacerts.>
    java.lang.SecurityException: Unsupported keysize or algorithm parameters
         at javax.crypto.Cipher.init(DashoA12275)
         at com.certicom.tls.provider.Cipher.init(Unknown Source)
         at com.certicom.tls.ciphersuite.SecurityParameters.createWriteCipher(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.changeCipherSpec(Unknown Source)
         at com.certicom.tls.record.handshake.ClientStateReceivedCertificate.handle(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
         at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
         at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
         at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
         at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
         at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
         at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
         at com.certicom.tls.record.WriteHandler.write(Unknown Source)
         at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
         at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
         at weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:122)
         at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:322)
         at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:29)
         at weblogic.net.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:594)
         at java.net.HttpURLConnection.getHeaderFieldDate(HttpURLConnection.java:343)
         at java.net.URLConnection.getLastModified(URLConnection.java:429)

  • How to get php content with java ??

    i have made a php file what will display a number,
    here's a example
    <?php
    if ($action == "answer"){
    echo "18274926";
    ?>
    no i want to get the number with java
    so here's my java code
    import java.io.*;
    import java.net.*;
    import java.util.Date;
    class URLConnecties
        public static void main(String args[]) throws Exception
            int teken;
            URL url = new URL("http://www.gamer.mineurwar.nl/net/javachallenge.php?command=DaTe");
            URLConnection urlconnection = url.openConnection();
            System.out.println("Type inhoud: " +
                urlconnection.getContentType());
            System.out.println("Datum document: " +
                new Date(urlconnection.getDate()));
            System.out.println("Laatst gewijzigd: " +
                new Date(urlconnection.getLastModified()));
            System.out.println("Document vervalt: " +
                urlconnection.getExpiration());
            int lengteinhoud = urlconnection.getContentLength();
            System.out.println("Lengte inhoud: " + lengteinhoud);
            if (lengteinhoud > 0) {
                InputStream in = urlconnection.getInputStream();
                while ((teken = in.read()) != -1) {
                    System.out.print((char) teken);
                in.close();
    }if you change the url ro a .html file it displays the code correctly(source),
    but when trying to get the content of a php file (the number)
    it says that there is no content from the php file
    yhe source of the original php file what's in the code can be found at
    www.gamer.mineurwar.nl/net/javachallenge.txt

    The 'content' is generated dynamically by a PHP script so the "content lenght" can't be known in advance by the server. For this reason connection.getContentLenght() returns -1; it doesn't mean that there is no content, only that it can't be known how much there will be.
    To solve the issue, remove the if statement from around the while-loop:// if (lengteinhoud > 0) { DELETE THIS LINE
    InputStream in = urlconnection.getInputStream();
    while ((teken = in.read()) != -1) {
        System.out.print((char) teken);
    // } and this too

  • Using non-blocking NIO, need Main Thread wait?

    I'm trying to utilize the New IO libraries to create a simple url check application. The application just tests return codes to make sure the list of urls I have are still valid.
    I'm using the NIO libraries because I had problems with the URLConnection object hanging when I ran into a url where the server never replied. It just sat there waiting for a reply.
    Now I have a new problem, the connection to the web server is now in a new thread and I need to wait for the connection to finish before using it. I can't figure out how to make the main app wait for the connection. All of the documentation I find for the Wait() method refers to threads and I can't find how to refer to the main application thread.
    Any suggestions?
    Josh

    Ok, this is were I have some gaps in my Java knowledge. How do I wait for OP_CONNECT to fire. Is it like setting up a ActionListener but for a non-visual object?
    Also what do you mean when you refer to deregistering it?
    You don't need to explain everything. I would be happy if I was just pointed at the appropriate pages and I'll do the leg work.
    Josh
    If you're using NIO the connection can be handled in
    the same thread as the I/O. Just wait for OP_CONNECT
    to fire, deregister it, and away you go.

  • Stateless Session EJB hangs using URLConnection but WLS doesn't clean up

    Hi
    We have a stateless session EJB running under WLS 5.1 with service
    pack 10 on Solaris.
    The bean calls a remote HTTP server using the java.net.URLConnection
    class and forwards the response to the EJB client. The bean is largely
    working fine but some threads hang waiting on the HTTP response. Debug
    statements, which are written immediately after the response has been
    read and the connection has been closed, do not appear in our log for
    the hung threads. The WebLogic Console displays these threads as "in
    use" and a "netstat -an" displays the tcp connections as ESTABLISHED.
    However, the access logs of the remote Apache server show the HTTP
    connections of the threads in question completed successfully with
    HTTP code 200. The Apache server is using keep-alive connections.
    Some EJB threads are still waiting for something it seems.
    Has anyody else experienced this when using URLConnection from
    stateless session EJBs under WLS?
    The second problem is why doesn't WLS time these threads out after
    trans-timeout-seconds (we're using the default of 300 seconds)? The
    WLS log shows no error messages relating to this problem.
    I'm grateful for any info offered.
    Thanks in advance
    Steve

    If you suspect that WLS protocol handler is at fault (and quite often it is),
    one thing to try is (if you use Sun's JVM) to use Sun's HTTP protocol handler
    instead of WLS (the most common symptom is when code which makes HTTP requests
    works fine outside of WebLogic and you have problems getting it to work inside
    WebLogic) :
    replace
    URL url = new URL("http://...");
    HttpURLConnection conn = (HttpURLConnection)url.openConnection();
    with
    URL url = new URL(null, "http://...", new sun.net.www.protocol.http.Handler());
    HttpURLConnection conn = (HttpURLConnection)url.openConnection();
    You will have to edit weblogic.policy to allow your code to specify protocol
    handler.
    Also note that transaction timeout is only checked on method boundaries, or
    when your code attempts to do something with the database - it is not going to
    interrupt thread which is waiting for HTTP response.
    Steve Lock <[email protected]> wrote:
    Hi
    Thanks for the info. The remote HTTP server's access log shows that
    the requests were successfully processed. Doesn't this mean that the
    connection is then closed? I know the web server is using keep-alive
    connections but I thought this was transparent to the client...?
    Also why doesn't WLS remove the hung threads?
    Steve
    "Ignacio G. Dupont" <[email protected]> wrote in message news:<[email protected]>...
    We have had a problem like yours with Weblogic 6.1 SP2 on Linux
    The problem is sun's implementation of the HTTP connections doesn't have a
    timeout, so if the other peer doesn't close the connection your threads will
    be "locked" on the connection.
    We have found searching the web that the Jakarta project has a package
    called Jakarta commons that implements HTTP connections with an
    setSoTimeout(int timeout) method so you can open the connections with your
    desired timeout. You have to download the code from the CVS as the released
    version doesn't support the timedout sockets yet.
    When support for the JDK 1.4 version will be announced by Bea you could use
    one of its new features that will allow you to pass arguments to the JVM to
    specify the maximum socket connection stablising timeout and the max
    inactivity on the socket too.
    Hope it helps you.
    Dimitri

  • Error while posting xml file to URL using URLConnection

    Hello everyone,
    I am facing an issue from long time related to URLConnection. If this would be resolved by your help then I would be very grateful to you.
    One application which posts xml file to URL hangs and after waiting for 5 mins it throws 504 error:
    java.io.IOException: Server returned HTTP response code: 504 for URL: http:hostname.
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:715)
    Same application is running fine without error on another environment from last 5 years. But on another env it is erroring out from the day 1.
    We have many workarounds in place none worked.
    I tried to use HttpClient from apache but that too hanged at URLConnection.getInputStream() method call.
    App is running on iPlanet web server 6.1 using JDK 1.4.0_03
    We still dont know why this program hangs at that particular line in only one env but many times it runs fine. That means 30% of the times it posts xml file without error but 70% times it errors out. So our program logic is to retry until post is successful.
    Once this issue is resolved we will remove the logic of trying again and agian.
    Please provide inputs.
    Thanks,
    Nitin

    The HTTP response 504 means that the server, acting as a gateway, has not received a response from an upstream server in the time it expected.
    I think this is problem is due to the remote server that receives the XML and takes too long to return a response to the local application that posted the XML.
    Try HttpClient and set the timeout variable of the HttpClient instance used.
    Here http://svn.apache.org/viewvc/jakarta/commons/proper/httpclient/trunk/src/examples/PostXML.java?revision=480424&view=markup
    a Post XML sample.
    NB: HttpClient > setTimeout method is deprecated. See : http://jakarta.apache.org/commons/httpclient/apidocs/index.html for an alternative
    Hope That Helps

  • Parse method hangs

    I am trying to to parse a file using DocumentBuilder. The parse() method hangs for no reason. There are no errors or exceptions thrown. I even used a StringReader but in vain. Pl see code below:
    The file is read correctly and i could even print the XML string out.
    System.out.println("Parsing XML file from performParsing():" +s);
              Document doc = null;
              DocumentBuilderFactory factory = null;
              DocumentBuilder builder = null;
              try{
                   factory = DocumentBuilderFactory.newInstance();
                   System.out.println("Parsing XML factory:" +factory);
                   builder = factory.newDocumentBuilder();
                   System.out.println("Parsing XML builder:" +builder);
                   URL url = new URL(s);
                   URLConnection urlConnection = url.openConnection();
                   InputStream in = urlConnection.getInputStream();
                   String XMLStr = getStringReaderFromFile(in); //private method that gives a string
                   StringReader stReader = new StringReader(XMLStr);
                   InputSource ins = new InputSource(stReader);
         doc = builder.parse(ins);--->IT HANGS HERE

    Not an expert on this but presumably you have the properties set up correctly.
    From javadoc ...
    DocumentBuilderFactory uses the system property javax.xml.parsers.XmlDocumentParserFactory to find the class to load. So you can change the parser by calling:
    System.setProperty("javax.xml.parsers.XmlDocumentParserFactory",
    "com.foo.myFactory");

  • Platform921_generic.jar hangs on Solaris 10 x86

    I downloaded platform921_generic.jar for Soalris x86 platform. The installer hangs in either graphic mode or console mode. Did anyone have installed Weblogic 9.2.1 for soalris 10 on x86 successfully? If so, please let me know how you did. I appreciate any thoughts.
    My install stucks at
    Loaded com.bea.plateng.common.util.Execute from file:/apps/regress/tmp/platform921_generic.jar]
    Here are the complete verbose output:
    528:regress@sol-nona-tc/apps/regress/jdk1.5.0_06/bin>./java -jar /apps/regress/tmp/platform921_generic.jar -mode=console -Djava.io.tmpdir=/apps/regress/tmp
    Extracting 0%....................................................................................................100%
    <------------------------ BEA Installer - BEA Products ----------------------->
    Welcome:
    This installer will guide you through the installation of BEA Products. Type
    "Next" or enter to proceed to the next prompt. If you want to change data
    entered previously, type "Previous". You may quit the installer at any time by typing "Exit".
    Enter [Exit][Next]>
    <------------------------ BEA Installer - BEA Products ----------------------->
    BEA Systems License Agreement:
    BEA SYSTEMS, INC. SOFTWARE LICENSE AGREEMENT
    USE OF SOFTWARE ORDERED FROM BEA SYSTEMS, INC. ("BEA") IS PROVIDED ONLY UNDER
    LICENSE FROM BEA. PLEASE READ THE FOLLOWING LICENSE CAREFULLY AND INDICATE YOUR ACCEPTANCE BY CLICKING THE ACCEPTANCE BOX. CERTAIN CAPITALIZED TERMS ARE
    DEFINED IN SECTION 11.
    1. LICENSE TERMS
    a. WebLogic SDK Use. The terms of this Section 1(a) are applicable to you if
    you have registered as a WebLogic SDK customer. Subject to the terms of this
    Agreement, BEA grants to you a non-exclusive, non-transferable, royalty-free
    license to use WebLogic SDK solely for Development Use and Scale-Limited
    Personal Use for the number of users and/or developers and the number of CPU's, Servers and/or at the Sites, as specified at the time of registration. Third
    party software products or modules supplied by BEA, if any, may be used solely
    with the Software. All rights not specifically granted to you herein are
    retained by BEA.
    b. WebLogic SDK Pro Use. The terms of this Section 1(b) are applicable to you
    if you have registered as a WebLogic SDK Pro customer. Subject to the terms of
    this Agreement, BEA grants to you a non-exclusive, non-transferable,
    Use above value or select another option:
    1 - Yes, I agree with the terms of the license
    2 - No, I do not agree with the terms of the license
    Enter option number to select OR [Down][Exit][Previous]> 1
    <------------------------ BEA Installer - BEA Products ----------------------->
    Choose BEA Home Directory:
    "BEA Home" = [Enter new value or use default "/home/regress/bea"]
    Enter new BEA Home OR [Exit][Previous][Next]> /apps/regress/bea921
    <------------------------ BEA Installer - BEA Products ----------------------->
    Choose BEA Home Directory:
    "BEA Home" = [apps/regress/bea921]
    Use above value or select another option:
    1 - Enter new BEA Home
    2 - Change to default [home/regress/bea]
    Enter option number to select OR [Exit][Previous][Next]>
    -Done-jar.info: Enable INFO level diagnostics. These show high-level operations inside the One-JAR support code.
    -Done-jar.verbose: Enable VERBOSE level diagnostics. These show in tedious detail the operations inside One-JAR, including class-loading and resource resolution.
    549:regress@sol-nona-tc/apps/regress/jdk1.5.0_06/bin>./java -jar -verbose /apps/regress/tmp/platform921_generic.jar -mode=console -log=/apps/regress/tmp/bea_install.log -Djava.io.tmpdir=/apps/regress/tmp
    [Opened /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Opened /apps/regress/jdk1.5.0_06/jre/lib/jsse.jar]
    [Opened /apps/regress/jdk1.5.0_06/jre/lib/jce.jar]
    [Opened /apps/regress/jdk1.5.0_06/jre/lib/charsets.jar]
    [Loaded java.lang.Object from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.Serializable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Comparable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.CharSequence from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.String from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.GenericDeclaration from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.Type from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.AnnotatedElement from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Class from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Cloneable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ClassLoader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.System from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Throwable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Error from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ThreadDeath from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Exception from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.RuntimeException from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.ProtectionDomain from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.AccessControlContext from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ClassNotFoundException from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.LinkageError from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.NoClassDefFoundError from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ClassCastException from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ArrayStoreException from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.VirtualMachineError from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.OutOfMemoryError from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.StackOverflowError from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.Reference from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.SoftReference from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.WeakReference from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.FinalReference from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.PhantomReference from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.Finalizer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Runnable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Thread from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Thread$UncaughtExceptionHandler from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ThreadGroup from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Map from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Dictionary from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Hashtable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Properties from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.AccessibleObject from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.Member from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.Field from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.Method from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.Constructor from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.MagicAccessorImpl from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.MethodAccessor from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.MethodAccessorImpl from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.ConstructorAccessor from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.ConstructorAccessorImpl from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.DelegatingClassLoader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.ConstantPool from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Iterable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Collection from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.List from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.RandomAccess from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.AbstractCollection from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.AbstractList from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Vector from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Appendable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.AbstractStringBuilder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.StringBuffer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.StackTraceElement from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.Buffer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.AtomicLong from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.AtomicLongCSImpl from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Boolean from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Character from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Number from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Float from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Double from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Byte from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Short from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Integer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Long from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.management.MemoryUsage from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.NullPointerException from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ArithmeticException from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.StrictMath from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.ObjectStreamField from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Comparator from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.String$CaseInsensitiveComparator from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.Guard from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.Permission from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.BasicPermission from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.RuntimePermission from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.AbstractMap from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.SoftCache from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.ReferenceQueue from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.ReferenceQueue$Null from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.ReferenceQueue$Lock from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.HashMap from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.ObjectStreamClass from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.PrivilegedAction from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.ReflectionFactory$GetReflectionFactoryAction from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.AccessController from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Stack from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.ReflectionFactory from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Map$Entry from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.HashMap$Entry from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.IncompatibleClassChangeError from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.NoSuchMethodError from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.annotation.Annotation from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.ReflectPermission from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.Reference$Lock from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.Reference$ReferenceHandler from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ref.Finalizer$FinalizerThread from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Enumeration from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Hashtable$EmptyEnumerator from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Iterator from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Hashtable$EmptyIterator from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Hashtable$Entry from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Version from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.Closeable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.InputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.FileInputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.FileDescriptor from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.Flushable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.OutputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.FileOutputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.FilterInputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.BufferedInputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Unsafe from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.Reflection from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Collections from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Random from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.concurrent.atomic.AtomicLong from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Class$3 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.Modifier from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.LangReflectAccess from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.reflect.ReflectAccess from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Set from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.AbstractSet from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Collections$EmptySet from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Collections$EmptyList from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Collections$EmptyMap from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Collections$ReverseComparator from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Collections$SynchronizedMap from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.misc.ReflectUtil from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.FilterOutputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.PrintStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.BufferedOutputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.Writer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.OutputStreamWriter from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.StreamEncoder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.io.Converters from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.security.action.GetPropertyAction from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.charset.Charset from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.charset.spi.CharsetProvider from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.FastCharsetProvider from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.StandardCharsets from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.util.PreHashedMap from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.StandardCharsets$Aliases from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.StandardCharsets$Classes from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.StandardCharsets$Cache from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ThreadLocal from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.StringBuilder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.HistoricallyNamedCharset from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.ISO_8859_1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Class$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.ReflectionFactory$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.NativeConstructorAccessorImpl from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.reflect.DelegatingConstructorAccessorImpl from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.VM from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.StreamEncoder$CharsetSE from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.charset.CharsetEncoder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.ISO_8859_1$Encoder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.charset.CodingErrorAction from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.charset.CharsetDecoder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.ISO_8859_1$Decoder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.ByteBuffer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.HeapByteBuffer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.Bits from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Runtime from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.ByteOrder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Readable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.CharBuffer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.HeapCharBuffer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.charset.CoderResult from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.charset.CoderResult$Cache from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.charset.CoderResult$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.charset.CoderResult$2 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.Surrogate$Parser from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.Surrogate from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.BufferedWriter from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.File from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.FileSystem from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.UnixFileSystem from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.ExpiringCache from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.LinkedHashMap from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.ExpiringCache$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.LinkedHashMap$Entry from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ClassLoader$3 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.ExpiringCache$Entry from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ClassLoader$NativeLibrary from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Terminator from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.SignalHandler from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Terminator$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Signal from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.NativeSignalHandler from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.JavaLangAccess from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.System$2 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.SharedSecrets from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Compiler from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Compiler$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Launcher from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.net.URLStreamHandlerFactory from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Launcher$Factory from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.SecureClassLoader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.net.URLClassLoader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Launcher$ExtClassLoader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.security.util.Debug from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.StringTokenizer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.PrivilegedExceptionAction from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Launcher$ExtClassLoader$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.net.www.ParseUtil from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.BitSet from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.net.URL from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Locale from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.CharacterDataLatin1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.net.Parts from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.net.URLStreamHandler from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.net.www.protocol.file.Handler from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.HashSet from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.URLClassPath from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.ArrayList from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.net.www.protocol.jar.Handler from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Launcher$AppClassLoader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Launcher$AppClassLoader$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.SystemClassLoaderAction from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.zip.ZipConstants from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.zip.ZipFile from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.jar.JarFile from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.JavaUtilJarAccess from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.jar.JavaUtilJarAccessImpl from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.StringCoding from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ThreadLocal$ThreadLocalMap from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.ThreadLocal$ThreadLocalMap$Entry from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.StringCoding$StringDecoder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.StringCoding$CharsetSD from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.zip.ZipFile$ZipCloser from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.zip.ZipFile$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.ch.DirectBuffer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.MappedByteBuffer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.nio.DirectByteBuffer from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Cleaner from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.zip.ZipEntry from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.jar.JarEntry from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.jar.JarFile$JarFileEntry from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.DataInput from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.DataInputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.ByteBuffered from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.zip.ZipFile$ZipFileInputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.zip.ZipFile$MappedZipFileInputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.zip.InflaterInputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.zip.ZipFile$2 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.zip.Inflater from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.jar.Manifest from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.ByteArrayInputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.jar.Attributes from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.jar.Manifest$FastInputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.UTF_8 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.UTF_8$Decoder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.Surrogate$Generator from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.jar.Attributes$Name from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.ASCIICaseInsensitiveComparator from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Math from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.jar.JarVerifier from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.ByteArrayOutputStream from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.net.URLClassLoader$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.URLClassPath$3 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.URLClassPath$Loader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.URLClassPath$JarLoader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.FileURLMapper from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.JarIndex from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.ExtensionDependency from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.PrivilegedActionException from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.Reader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.BufferedReader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.InputStreamReader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.StreamDecoder from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.nio.cs.StreamDecoder$CharsetSD from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.Queue from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.AbstractSequentialList from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.LinkedList from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.LinkedList$Entry from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.Resource from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.misc.URLClassPath$JarLoader$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.lang.Package from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.CodeSource from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.PermissionCollection from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.Permissions from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.net.URLConnection from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.net.www.URLConnection from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.net.www.protocol.file.FileURLConnection from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.net.ContentHandler from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.net.UnknownContentHandler from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded sun.net.www.MessageHeader from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.FilePermission from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.FilePermission$1 from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.io.FilePermissionCollection from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.AllPermission from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.UnresolvedPermission from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.BasicPermissionCollection from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.Principal from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.security.cert.Certificate from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded java.util.EventListener from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded com.bea.plateng.wizard.event.WizardActionListener from file:/apps/regress/tmp/platform921_generic.jar]
    [Loaded com.bea.plateng.wizard.tasks.ITaskObserver from file:/apps/regress/tmp/platform921_generic.jar]
    [Loaded com.bea.plateng.wizard.IWizardController from file:/apps/regress/tmp/platform921_generic.jar]
    [Loaded java.util.Observable from /apps/regress/jdk1.5.0_06/jre/lib/rt.jar]
    [Loaded com.bea.plateng.wizard.WizardController from file:/apps/regress/tmp/platform921_generic.jar]
    [Loaded com.bea.plateng.common.CommonException from file:/apps/regress/tmp/platform921_generic.jar]
    [Loaded com.bea.plateng.wizard.WizardDefinitionException from file:/apps/regress/tmp/platform921_generic.jar]
    [Loaded com.bea                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

    Interesting,
    we have the same problem on SunOS Generic_118833-36 on V440, V445, V240, V245, but not on an old E420, and not on a T2000.
    We upgraded them with patch cluster to Generic_138888-07, but it has not changed anything:
    E420 and T2000 are stable, the Fire-Vxxx have problem, each has its own "problem interval": one system 1.5 days, two systems 10 days, one every 3 months.
    The problem is: NFS/TCP is suddenly dead. Then all NFS mounts, e.g. a manual mount, is hung with "NFS server not responding". A reboot helps.
    We have added proto=udp to the mount options. No more problems since.
    Permanent mounts, without Automounter, would certainly work, too.
    But IMHO there is nothing wrong with Automounter itself, but the hanging occurs e.g. after 4000 NFS mounts, and Automounter is the enabler for that.

  • How can we close a URLConnection ?

    Problem: URL Connections sometimes hang if, socket is there but not responding... the code will hang at urlConnection.getHeaderField(i).
    and My code will keep waiting for infinity ... only solution I have is to close the connection after a specified time (Using a thread).
    Sadly java.net.URLConnection doesn't have close() ...
    Can someone help me on this?
    Regards,
    Neo
    * HostExaminer.java
    * Created on September 28, 2002, 9:47 PM
    package serverconfig.microkernel.examiner;
    import java.net.Authenticator;
    import java.net.URL;
    import java.net.URLConnection;
    import java.io.InputStream;
    import java.util.StringTokenizer;
    import serverconfig.microkernel.request.Request;
    import serverconfig.microkernel.worker.Director;
    import serverconfig.microkernel.worker.Locator;
    import serverconfig.microkernel.worker.Guardian;
    import serverconfig.microkernel.examiner.PresentationObjectInputStream;
    * @author  Neo
    public class HostExaminer implements Examiner {
        /** Creates a new instance of HostExaminer */
        public HostExaminer() {
        public boolean examine(final Request request, PresentationObjectInputStream presentationObjectInputStream){
            Guardian guardian = null;
            synchronized(guardian = Guardian.getInstance(request)){
                Authenticator.setDefault(guardian);
                try{
                    System.out.println("Before URL");
                    final URL url = new URL(new Locator(request).getInstanceURL()+new Director(request).getDirection());
                    System.out.println("Before URLConnection");
                    URLConnection urlConnection = url.openConnection();
                    System.out.println("Before for(;;)");
                    for(int i=0 ; ; i++){
                        System.out.println("Before urlConnection.getHeaderField("+i+");");
                        String header = urlConnection.getHeaderField(i);// <-- here it hangs
                        if(header == null ) break;
                        System.out.println("Before urlConnection.getHeaderFieldKey("+i+");");
                        final String headerKey = urlConnection.getHeaderFieldKey(i);
                        if(headerKey == null){
                            final StringTokenizer stringTokenizer = new StringTokenizer(header," ");
                            stringTokenizer.nextToken();
                            final String token = stringTokenizer.nextToken();
                            request.getResponse().setCode(new Integer(token.trim()));
                        //request.getResponse().appendContent( (headerKey == null ?"": (headerKey + " = ")) + header +"\n" );
                    System.out.println("Before presentationObjectInputStream");
                    presentationObjectInputStream.setInputStream(urlConnection.getInputStream());
                catch(java.net.UnknownHostException uhe){
                    request.getResponse().setCode(new Integer(404));
                    uhe.printStackTrace();
                    return false;
                catch(java.net.ProtocolException pe){
                    request.getResponse().setCode(new Integer(401));
                    pe.printStackTrace();
                    return false;
                catch(java.net.BindException be){
                    request.getResponse().setCode(new Integer(401));
                    be.printStackTrace();
                    return false;
                catch(java.net.ConnectException ce){
                    request.getResponse().setCode(new Integer(503));
                    ce.printStackTrace();
                    return false;
                catch(java.net.NoRouteToHostException nrthe){
                    request.getResponse().setCode(new Integer(408));
                    nrthe.printStackTrace();
                    return false;
                catch(java.io.IOException io){
                    request.getResponse().setCode(new Integer(500));
                    io.printStackTrace();
                    return false;
                catch(java.lang.Throwable th){
                    request.getResponse().setCode(new Integer(500));
                    th.printStackTrace();
                    return false;
            if(request.getResponse().getCode().intValue() >= 400){
                return false;
            else{
                return true;
    }

    HttpURLConnection.disconnect()
    *Sun's Comment:
    * Indicates that other requests to the server are unlikely in the near future.
    * Calling disconnect() should not imply that this HttpURLConnection instance can be reused for other requests.
    public abstract void disconnect(){
    Can you please make me under `what does this comment mean ?`
    Thanx Hedin, HttpURLConnection makes my code neat :) but this method does not close the connection!
    Regards,
    Neo
    * HostExaminer.java
    * Created on September 28, 2002, 9:47 PM
    package serverconfig.microkernel.examiner;
    import java.net.HttpURLConnection;
    import java.net.Authenticator;
    import java.net.URL;
    import java.net.URLConnection;
    import java.io.InputStream;
    import java.util.StringTokenizer;
    import serverconfig.microkernel.request.Request;
    import serverconfig.microkernel.worker.Director;
    import serverconfig.microkernel.worker.Locator;
    import serverconfig.microkernel.worker.Guardian;
    import serverconfig.microkernel.examiner.PresentationObjectInputStream;
    * @author  Neo
    public class HostExaminer implements Examiner {
        HttpURLConnection urlConnection;
        /** Creates a new instance of HostExaminer */
        public HostExaminer() {
        public void disconnect(){
            if(urlConnection != null)
                urlConnection.disconnect();
        public boolean examine(final Request request, PresentationObjectInputStream presentationObjectInputStream){
            Guardian guardian = null;
            synchronized(guardian = Guardian.getInstance(request)){
                Authenticator.setDefault(guardian);
                try{
                    System.out.println("Before URL");
                    final URL url = new URL(new Locator(request).getInstanceURL()+new Director(request).getDirection());
                    System.out.println("Before URLConnection");
                    HttpURLConnection urlConnection = (HttpURLConnection)url.openConnection();
                    System.out.println("Before get Response Code");
                    request.getResponse().setCode(new Integer(urlConnection.getResponseCode())); //<<-- It hangs here now !
                    System.out.println("Before presentationObjectInputStream");
                    presentationObjectInputStream.setInputStream(urlConnection.getInputStream());
                catch(java.net.UnknownHostException uhe){
                    request.getResponse().setCode(new Integer(404));
                    uhe.printStackTrace();
                    return false;
                catch(java.net.ProtocolException pe){
                    request.getResponse().setCode(new Integer(401));
                    pe.printStackTrace();
                    return false;
                catch(java.net.BindException be){
                    request.getResponse().setCode(new Integer(401));
                    be.printStackTrace();
                    return false;
                catch(java.net.ConnectException ce){
                    request.getResponse().setCode(new Integer(503));
                    ce.printStackTrace();
                    return false;
                catch(java.net.NoRouteToHostException nrthe){
                    request.getResponse().setCode(new Integer(408));
                    nrthe.printStackTrace();
                    return false;
                catch(java.io.IOException io){
                    request.getResponse().setCode(new Integer(500));
                    io.printStackTrace();
                    return false;
                catch(java.lang.Throwable th){
                    request.getResponse().setCode(new Integer(500));
                    th.printStackTrace();
                    return false;
            if(request.getResponse().getCode().intValue() >= 400){
                return false;
            else{
                return true;

  • Mozilla 1.7.x  hangs in applet code on RH Linux with JRE 1.5.0

    Hi all,
    From my applet code when an URLConnection.getInputStream() method is called the browser hangs, if authentication is turned on the webserver.
    This works with jre 1.4.2 on linux, for the matter on windows with Jre1.5 also.
    Also it works on 1.5 if suthentication is not set.
    So it is this particular combination of (jre1.5/mozilla on linux/authentication) that doesnot work :):).
    I tried to set the auth header, but nothing seem to help.
    String login = "userid"+":"+"password";
    String encodedLogin = new sun.misc.BASE64Encoder().encode(login.getBytes());
    httpsCon.setRequestProperty("Authorization", "Basic " + encodedLogin);
    Searched on the sun/mozilla sites to see if any known issues, couldn't find any.
    Thanks
    RT

    Just to add upon that a simple code like this will hang
    String str = "https://ppp.qqq.com/admin/50_splash.gif";
    try {
    URL url = new URL(str);
    URLConnection con = url.openConnection();
    HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
    con.setDoInput(true);
    try {
    con.connect(); //-->hangs here
    It looks to me like at this point plugin tries to popup the authentication dialog box but it cannot.
    Thanks
    RT

  • URL Connection &  POST - java hangs

    Im trying to send Query String to third party application. Until now I used to send in form of query string (GET). Now i intend use POST Method.
    Following is my piece of skeletal code
    String urlString = "abc" ;
    URLConnection conn;
    InputStream urlInputStream = null;
    String urlString1 = "age=23;salary=2000";
    try {
    urlString1 = "http://ggg:8080/ps" + urlString ;
    URL url = new URL(urlString1);
    conn = url.openConnection();
    System.out.println("1");
    conn.setRequestProperty("Content-length", "9056"); // If I dont set this line, Im getting HTTP 411 //Response Code. I have arbritarily set 9056
    System.out.println("2");
    ((HttpURLConnection)conn).setRequestMethod( "POST");
    System.out.println("3");
    System.out.println("connected");
    urlInputStream = conn.getInputStream(); ---> hanging
    System.out.println("4");
    Output - Im getting 1, 2 and 3. But program is hanging at when it tries to getInputStream(). Im forced to quit .
    Need help on this.

    Here are some elements that may help you :
    If you use the POST method, don't write the arguments in the URL (this is only for the GET method).
    You should just open the URL, and write the POST args with an OutputStream .
    urlString1 = "http://ggg:8080/ps" ;
    Then, open an OutputStream with something like that :
    PrintWriter out = new PrintWriter(new InputStreamWriter(conn.getOutputstrem()) ;
    and write the args :
    out.println("arg1=10&arg2=30") ;

Maybe you are looking for