Java.io.IOException: Error initializing HTTP tunnel connection:

Hi,
I am running sample Midlet to communicate to any URL like http://www.google.com or my internal servlet. It is opening the connection but when I try to open the inputstream it gives me following error.
java.io.IOException: Error initializing HTTP tunnel connection:
HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
Via: 1.1 TPSL-PROXY
Proxy-Authenticate: Negotiate
Proxy-Authenticate: Kerberos
Proxy-Authenticate: NTLM
Proxy-Authenticate: Digest qop="auth",algorithm=MD5-sess,nonce="3ace49b386edc8013f52a8f9b7c0638bfb8a6ca60b76bf826632da7cd6185c30d3c61c1a61a0aa91",charset=utf-8,realm="TPSL.LOCAL"
Connection: close
Proxy-Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 722
     at com.sun.midp.io.j2me.http.Protocol.doTunnelHandshake(+333)
     at com.sun.midp.io.j2me.http.Protocol.connect(+145)
     at com.sun.midp.io.j2me.http.Protocol.streamConnect(+57)
     at com.sun.midp.io.j2me.http.Protocol.startRequest(+12)
     at com.sun.midp.io.j2me.http.Protocol.sendRequest(+38)
     at com.sun.midp.io.j2me.http.Protocol.sendRequest(+6)
     at com.sun.midp.io.j2me.http.Protocol.closeOutputStream(+4)
     at com.sun.midp.io.BaseOutputStream.close(+14)
     at HTTPTest.getGrade(+155)
     at HTTPTest.startApp(+8)
     at javax.microedition.midlet.MIDletProxy.startApp(+7)
     at com.sun.midp.midlet.Scheduler.schedule(+270)
     at com.sun.midp.main.Main.runLocalClass(+28)
     at com.sun.midp.main.Main.main(+80)
I think it is going through SSL handshake which implemented in HTTP protocol in J2ME.
I have already done the proxy setup and authentication in Sun Wireless toolkit > preferences > Network configuration.
Still error is there. Please help me regarding this, not able to go ahead and rest in peace.
thanks & regards,
mJK

Hi,
have you checked proxy settings in WTK preferences?
Peter

Similar Messages

  • Error initializing HTTP tunnel connection

    Hi ,
    I too got the same error like,
    java.io.IOException: Error initializing HTTP tunnel connection:
    HTTP/1.0 404 Not Found
    Server: servletrunner/2.0
    Content-Type: text/html
    Content-Length: 95
    Date: Wed, 03 Jan 2007 14:59:05 GMT
    Here I used J2ME as client application, through servlet runner I am tring to connect to server program. Initially Its worked fine.. But I changed some interner explorer settings. then I got this error. When I changed those setttings to normal also I am not able to connect to the server. Even I reinstall the whole softwares. But the problem is still there.
    So could any one help me to resolve the problem.
    Its very Urgent project. Its completed but when I try to demonstrate, that day only to connect my PC remotly I changed internet explorer settings very badly. It causes all the damage. Even I changed them to normal also I am not getting any.
    Please help me to resolve it.
    waiting for your response....
    Thanks,
    Sri...

    Size(kb): 0
    Name: TEMPLATE_STORE
    Records: 12
    Size(kb): 14
    Remaining Space(kb): 5831
    file://localhost/c:/Nokia/
    Midlet exit status: true
    file://localhost/root1/
    Midlet exit status: true
    java.io.IOException: java.io.IOExceptionFilesystem root root1/ is not mounted.
    file:///c:/
    Midlet exit status: true
    file:///e:/
    Midlet exit status: true
    file:///c:/Nokia/Images/
    Midlet exit status: true
    file:///c:/Nokia/Videos/
    Midlet exit status: true
    file:///CFCard/
    Midlet exit status: true
    java.io.IOException: java.io.IOExceptionFilesystem root cfcard/ is not mounted.
    file://localhost/
    Midlet exit status: true
    java.lang.IllegalArgumentException: Malformed file location.
    file://localhost/c:/
    Midlet exit status: true
    file://localhost/e:/
    Midlet exit status: true
    Default File System Root is: file://localhost/c:/nokia/vaayoo/
    Listing files in directory and its sub directories: file://localhost/c:/nokia/vaayoo/
    java.io.IOException: Error initializing HTTP tunnel connection:
    HTTP/1.1 400 Bad Request
    Date: Mon, 23 Apr 2007 08:13:04 GMT
    Server: Apache/2.2.4 (Win32)
    Content-Length: 226
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    Error initializing HTTP tunnel connection:
    HTTP/1.1 400 Bad Request
    Date: Mon, 23 Apr 2007 08:13:04 GMT
    Server: Apache/2.2.4 (Win32)
    Content-Length: 226
    Connection: close
    Content-Type: text/html; charset=iso-8859-1

  • Java.io.IOException: Error in HTTP operation

    hai
    My Application is working fine in emulator and working fine under Via OTA and also works fine in Nokia 7210 ,but i install in Nokia 6230i i got the error java.io.IOException: Error in HTTP operation,when i type the same url in Nokia 6230i browser the result came back from the server ,only in application its not working ,plese help me regarding this , what is the problem
    my code for Http Connection
    System.out.println("in here");
         HttpConnection c = null;
    InputStream is = null;
    try
              System.out.println("in try");
    c=(HttpConnection)Connector.open(url);
              c.setRequestMethod(HttpConnection.GET);
              c.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");
              c.setRequestProperty("Content-Language", "en-US");
              System.out.println("after passing url");
    int rc = c.getResponseCode();
    if (rc != HttpConnection.HTTP_OK)
    throw new IOException("HTTP response code: " + rc);
    System.out.println("after responce");
    is = c.openInputStream();
    ByteArrayOutputStream bin = new ByteArrayOutputStream();
    byte[] buffer = new byte[3000];
    int rd;
    while ( (rd=is.read(buffer))!= -1)
    bin.write(buffer,0,rd);
    System.out.println("after getting data");
    bin.flush();
    return bin.toString();
    Thanks & regards
    Ravi varma

    You still did not answer my question on the other forum: what is the value of rc? int rc = c.getResponseCode();Mihai

  • Error allocating HTTP/WSP connection

    Our midlet interacts with the Servlet with HttpConnecction, sends data to the Servlet and receive the Servlet response.
    Midlet is running correctly on Siemens CX75 Emulator and default java emulators. (Netbeans IDE) And when we testedt it on the real mobile device(Sony Ericsson) it operated correctly.
    But when we tried it on the S75 emulator, and Siemens S75 real device, we faced that it can not connect to the Servlet. We receive "java.io.IOException: Error allocating HTTP/WSP connection� error message. It seems that the application can not open the HttpConnection so Midlet can not interact with the Servlet.
    the error's full stack is;
    java.io.IOException: Error allocating HTTP/WSP connection
    - com.siemens.mp.io.wsp.WspConnection.sendRequest(), bci=208
    - com.sun.midp.io.j2me.http.HttpConnection.openInputStream(), bci=20
    - MobileTSP.sendData(), bci=8
    - MobileTSP.ReceiveData(), bci=46
    - MobileTSP$1.run(), bci=20
    Can't receive any data
    We use Thread that handles the network connection (HttpConnection). How can it be, an application that runs correctly in the emulator which can not run in the real phone and other emulators?
    Thanks...

    Welcome to the world of MIDP development.
    Once we find a problem with a specific phone we apply a different build process depending on what phone were using. (the work around is applied only to the affected phone).
    (Sorry i cant be of any real help)

  • Oc4jDcmServlet  : java.io.IOException: Error writing to server

    I've been using the following ant task to do a remote deployment to an OC4J container :
    <tasks>
    <java jar="../../../../../MAVEN-WORK/portal-lib/oc4j_remote_deploy.jar" fork="yes" maxmemory ="512m">
    <jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient"/>
    <arg value="http://wblv-ep-sp05:1824/Oc4jDcmServletAPI/"/>
    <arg value="ias_admin"/>
    <arg value="admin_dev3"/>
    <arg value="redeploy"/>
    <arg value="/app/oracle/product/oc4jext10.1.2-d3"/>
    <arg value="../portal-ear/target/portal.ear"/>
    <arg value="portal"/>
    <arg value="OC4J_portal"/>
    </java>
    </tasks>
    This has worked before , but I'm suddenly getting error when trying to run it .The error message and stack trace are shown below :
    [INFO] Executing tasks
    [java] Initializing log
    [java] Servlet interface for OC4J DCM commands
    [java] Command timeout defined at 600 seconds
    [java] Executing DCM command...
    [java] Executing command redeploy /app/oracle/product/oc4jext10.1.2-d3 ../e
    portal-ear/target/ePortalep2x-QA-V-02_00_5-20070220.ear eportal OC4J_Eportal
    [java] Command = REDEPLOY
    [java] Reading application's ear file
    [java] Ear file was successfully read
    [java] Opening connection to Oc4jDcmServlet
    [java] Setting userName to ias_admin
    [java] Sending command to DCM servlet
    [java] **** Could not check HTTP response code
    [java] ** Thread[main,5,main] ** Sun Feb 25 20:47:34 CAT 2007 ** ** EXCEP
    TION: java.io.IOException: Error writing to server
    [java] java.io.IOException: Error writing to server
    [java] at sun.net.www.protocol.http.HttpURLConnection.writeRequests(Htt
    pURLConnection.java:416)
    [java] at sun.net.www.protocol.http.HttpURLConnection.writeRequests(Htt
    pURLConnection.java:428)
    [java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
    tpURLConnection.java:934)
    [java] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.
    java:367)
    [java] at oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.isHttpResponseO
    k(Unknown Source)
    [java] at oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.sendCommand(Unk
    nown Source)
    [java] at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.execute(Unknow
    n Source)
    [java] at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.redeployApplic
    ation(Unknown Source)
    [java] at oracle.j2ee.tools.remote_deploy.Oc4jDcmMain.main(Oc4jDcmMain.
    java:63)
    [java] #### HTTP response is NOT ok
    [java] Closing connection to Oc4jDcmServlet
    [java] #### DCM command did not complete successfully (-1)
    [java] #### HTTP return code was -1
    [java] Java Result: -1
    [INFO] Executed tasks
    It seems to stall at the "Sending command to DCM servlet" stage , then fails.
    Does the DCM servlet write out logs that I can look at?Where is the Oc4jDcmServlet.ear located in an OC4J container directory hierarchy?How do I redeploy the Oc4jDcmServlet.ear ?
    This was working a few hours ago as seen here in my previous logs (and I do not understand what could have gone wrong) :
    ** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Initializing log
    ** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Servlet interface for OC4J DCM commands
    ** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Command timeout defined at 600 seconds
    ** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Executing command redeploy /app/oracle/product/oc4jext10.1.2-d3 ../portal-ear/target/portal.ear portal OC4J_portal
    ** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Command = REDEPLOY
    ** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Reading application's ear file
    ** Thread[main,5,main] ** Thu Feb 22 14:50:45 CAT 2007 ** Ear file was successfully read
    ** Thread[main,5,main] ** Thu Feb 22 14:50:45 CAT 2007 ** Opening connection to Oc4jDcmServlet
    ** Thread[main,5,main] ** Thu Feb 22 14:50:45 CAT 2007 ** Setting userName to ias_admin
    ** Thread[main,5,main] ** Thu Feb 22 14:50:45 CAT 2007 ** Sending command to DCM servlet
    ** Thread[main,5,main] ** Thu Feb 22 14:50:50 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
    ** Thread[main,5,main] ** Thu Feb 22 14:50:50 CAT 2007 ** Command was successfully sent to Oc4jDcmServlet
    ** Thread[main,5,main] ** Thu Feb 22 14:50:50 CAT 2007 ** Receiving session id from servlet to check command status
    ** Thread[main,5,main] ** Thu Feb 22 14:50:50 CAT 2007 ** Session id = 0afb65197201792b582df0d486285eef6aa19c1ab64
    ** Thread[main,5,main] ** Thu Feb 22 14:50:50 CAT 2007 ** Please, wait for command to finish...
    ** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** Checking command status...
    ** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** Setting userName to ias_admin
    ** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
    ** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** Checking command status
    ** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
    ** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** Command has not finished yet
    ** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** Checking command status...
    ** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** Setting userName to ias_admin
    ** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
    ** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** Checking command status
    ** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
    ** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** Command has not finished yet
    ** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** Checking command status...
    ** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** Setting userName to ias_admin
    ** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
    ** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** Checking command status
    ** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
    ** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** Command has not finished yet
    ** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** Checking command status...
    ** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** Setting userName to ias_admin
    ** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
    ** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** Checking command status
    ** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
    ** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** Command has not finished yet
    ** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** Checking command status...
    ** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** Setting userName to ias_admin
    ** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
    ** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** Checking command status
    ** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
    ** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** Command has not finished yet
    ** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** Checking command status...
    ** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** Setting userName to ias_admin
    ** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
    ** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** Checking command status
    ** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
    ** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** Command has not finished yet
    ** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** Checking command status...
    ** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** Setting userName to ias_admin
    ** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
    ** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** Checking command status
    ** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
    ** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** Command has finished

    I looked at the log.xml file under the dcm/logs/daemon_logs directory and saw this :
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2007-02-26T08:49:13.203+02:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>DCM</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>wblv-ep-sp05</HOST_ID>
    <HOST_NWADDR>10.251.101.25</HOST_NWADDR>
    <MODULE_ID>oracle/defaultLogger/ExceptionLogger</MODULE_ID>
    <THREAD_ID>Deamon Worker for TaskMaster of iAS instance at: /app/oracle/product/oc4jext10.1.2-d3 JVM Id = 1b09468.110df14be01.-8000</THREAD_ID>
    <USER_ID>oracle</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>10.251.101.25:47620:1172472553186:2846</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>principals specified in application is not a valid path: /app/oracle/product/oc4jext10.1.2-d3/j2ee/home/config/../application-deployments/ADFBCManager/principals.xml</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    The same MSG_TEXT appears in the log every time i had a failed deploy.

  • Java.io.IOException: Server returned HTTP response code: 500

    Hi,
    I am connecting to a servlet from an applet to send and receive data using the following code.
    try
    URL servletURL = new URL("http://www.progressivecoding.com/servlet/gatesqlang");
                   URLConnection servletConnection = null;
                   URLConnection servletConnection = servletURL.openConnection();
                   servletConnection.setDoOutput(true);
                   servletConnection.setUseCaches(false);
                   PrintStream out = new PrintStream(servletConnection.getOutputStream());
                   out.println("hhd8836gh828dhhskjdhn38847gosf747");
                   out.close();
                   InputStream in = servletConnection.getInputStream();
                   StringBuffer response = new StringBuffer();
                   int chr;
                   while ((chr=in.read())!=-1)
                        response.append((char) chr);
                   in.close();
                   return response.toString();
              catch (IOException e)
              e.printStackTrace();
              tfTxtFile.setText(e.toString());
              return "An error occurred: " + e.toString();
    Everything was working well and fine. All of a sudden without any change of code. It began to return this error to applet
    An error occurred: java.io.IOException: Server returned HTTP response code: 500 for URL: http://www.progressivecoding.com/servlet/gatesqlang
    But I am able to access the same URL from a browser.
    Someone please tell me what could be the problem

    hi, that error got solved, the SessID i was receiving in that code had some leading or trailing white spaces. so SessID = SessID.trim() did the job.
    But i have a question. This program workd fine when i compile and run from my local system. But when i port this on to the oracle server (JAVA_TOP) and access this from a JSP, then the program performs very un-reliably.
    The first data transfer works fine, i get the SessID, when i pass that SessID along with the DTSSessionID to the server, the server says that i doesn't recognise my SessID, and throws a client.Authentication Error.
    So there goes the parsing out of the window for the data in the second iteration.

  • How to initialize the Http Tunnel Connection

    hi all,
    I am developing an application in which i have to get the images from the server.At first i have used the Apache Tomcat it was working fine in my localSystem.
    when the same application when getting the images from the server it was getting the following exception in the RunTime,Error in HTTP Tunnel initializing
    what does it mean,is this a problem in the network.Can anybody give me the way to initialize the Server or the midlet to get the image.
    When the same URL in the Browser it was displaying the image.Can anybody please give me the solution in this aspect
    thanks in advance
    lakshman

    hi ,
    The above preferences about the network will work fine when you are working with the localhost.When the same application dealing with the network connection like http://mywebsite/.... it was not giving wny response.
    I don't know the reason for that, if you know please share with me.but the application will work fine in mobile. I tested that application with the ASP file in my website with the 6630.
    if you have any doubts feel free to post here
    lakshman

  • Java.io.IOException: Error writing to server after installing SP17

    After installing SP17 in production, we are seeing message in AE failing with com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: Error writing to server.
    The messages don't make it to IS and are stuck in AE.
    We've checked pipeline url / sm59 entry for INTEGRATION_DIRECTORY_HMI using user - XIISUSER, we did a full cache refresh.
    They all appear to be set correctly.
    We'll take any ideas and suggestions.
    Thank you.

    Yes...we have been working all night on this. The FM did create an entry but it does no look like its recognising.
    This is what we see in the Adapter messaging tool.
    2006-09-18 13:28:24 Error Returning synchronous error notification to calling application: Received HTTP response code 401 : Unauthorized.
    2006-09-18 13:28:24 Error Transmitting the message using connection http://host:8176/sap/xi/engine?type=entry failed, due to: Received HTTP response code 401 : Unauthorized.
    2006-09-18 13:28:24 Error The message status set to FAIL.
    2006-09-18 13:28:24 Error Returning to application. Exception: Received HTTP response code 401 : Unauthorized
    Any help?

  • Applet attempting to access dead http tunneling connection of its immediate predecessor

    We're encountering weblogic exceptions when switching between client applets
    in the same browser session. Each applet, when invoked, establishes an http
    (ie, an http tunneling) connection with the weblogic server. When we use t3
    as our protocol, everything works fine. When we use http, however, we get
    the following client-side exception as soon as we switch over to the second
    applet.
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Dead thread ]
    at weblogic.net.http.KeepAliveCache.put(KeepAliveCache.java:57)
    at weblogic.net.http.HttpClient.finished(HttpClient.java:147)
    at weblogic.net.http.KeepAliveStream.close(KeepAliveStream.java:89)
    at weblogic.net.http.KeepAliveStream.justRead(KeepAliveStream.java:37)
    at weblogic.net.http.KeepAliveStream.read(KeepAliveStream.java:47)
    Some details:
    1) We are using sun java plugin, v1.3
    2) We are using weblgoc 5.1, sp5.
    3) We can temporarily stop this problem from happening by delaying the death
    of the first applet. That is, we cause its thread to pause before allowing
    itself to die. When we do this, the second applet works fine UNTIL the first
    one dies, then it pukes with a similar error to the one above.
    It seems like the 2nd applet is trying to access the first one's http
    connection stream, and in doing so is throwing an exception upon discovering
    that this applet's thread is already gone.
    Can anyone guess why this may be happening?
    Many thanks.
    Ramsey

    Ramsey Shehadeh <[email protected]> wrote:
    >
    Yes, we've tried that. Doing two t3 (or t3s) connections seems to work
    fine. It's only the tunneling that's causing us problems.interesting...
    looks like they are sharing.
    Is there any
    way you know of to prevent the applets from sharing sessions? dont know at this time...
    session identification are put in cookies and browser instance maps that to a URL.So everytime the browser connects to the URL it identifies with these and they, as far as i know will be same for both applets...
    purely a browser concern?dont know...
    maybe weblogic could do something at its marshalling/unmarshalling layer of HTTP tunelling...but not sure...
    >
    Thanks.
    Ramsey
    shivu wrote:
    AFAIK this could be because both applets are sharing the same connection/session...I think when you run two applets in the same browser session, some things get shared especially HTTP Session...
    Are you making two different t3 connections in two applets?
    "Ramsey Shehadeh" <[email protected]> wrote:
    We're encountering weblogic exceptions when switching between client applets
    in the same browser session. Each applet, when invoked, establishes an http
    (ie, an http tunneling) connection with the weblogic server. When we use t3
    as our protocol, everything works fine. When we use http, however, we get
    the following client-side exception as soon as we switch over to the second
    applet.
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Dead thread ]
    at weblogic.net.http.KeepAliveCache.put(KeepAliveCache.java:57)
    at weblogic.net.http.HttpClient.finished(HttpClient.java:147)
    at weblogic.net.http.KeepAliveStream.close(KeepAliveStream.java:89)
    at weblogic.net.http.KeepAliveStream.justRead(KeepAliveStream.java:37)
    at weblogic.net.http.KeepAliveStream.read(KeepAliveStream.java:47)
    Some details:
    1) We are using sun java plugin, v1.3
    2) We are using weblgoc 5.1, sp5.
    3) We can temporarily stop this problem from happening by delaying the death
    of the first applet. That is, we cause its thread to pause before allowing
    itself to die. When we do this, the second applet works fine UNTIL the first
    one dies, then it pukes with a similar error to the one above.
    It seems like the 2nd applet is trying to access the first one's http
    connection stream, and in doing so is throwing an exception upon discovering
    that this applet's thread is already gone.
    Can anyone guess why this may be happening?
    Many thanks.
    Ramsey

  • Java.io.IOException: Server returned HTTP response code: 502 for URL

    Hi,
    I am calling below method in ADF 11g Ver 11.1.2.3.0 . for creating report in our developed Form Report Apps.
    below generated URL accessible in browser and showing pdf but runtime this URL is not opening automatically and throwng some error.
    http://ittest:7779/reports/rwservlet?orientation=PORTRAIT&desformat=PDF&destype=cache&desname=RF07D10.pdf&server=repittest11&report_execution_mode=RUNTIME&P_DOCCOD=24&report_comm_mode=SYNCHRONOUS&P_COMCOD=5&report=H:\ami\RF07D10.rdf&userid=refmdba/refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
    public static void fileUrl(String fAddress, String localFileName, String destinationDir) {
    System.out.println("\n mak fAddress = "+fAddress+"\n mak localFileName="+localFileName+"\n mak mak destinationDir = "+destinationDir);
    OutputStream outStream = null;
    URLConnection uCon = null;
    //InputStream is = null;
    InputStream is = null;
    try {
    URL url;
    byte[] buf;
    int ByteRead, ByteWritten = 0;
    url = new URL(fAddress);
    outStream = new BufferedOutputStream(new FileOutputStream(destinationDir + "\\" + localFileName));
    System.out.println("outStream = "+outStream);
    uCon = url.openConnection();
    System.out.println("uCon = "+uCon);
    is = uCon.getInputStream(); //Error Caught in this line
    System.out.println("is = "+is);
    buf = new byte[size];
    while ((ByteRead = is.read(buf)) != -1) {                 
    outStream.write(buf, 0, ByteRead);
    ByteWritten += ByteRead;
    System.out.println("Downloaded Successfully.");
    System.out.println("File name:\"" + localFileName + "\"\nNo ofbytes :" + ByteWritten);
    } catch (Exception e) {
    System.out.println("Exception Caught");
    e.printStackTrace();
    } finally {
    try {
    is.close();
    outStream.close();
    } catch (IOException e) {
    e.printStackTrace();
    SOP for confirmation, in console all variables and parameter have value
    fileName = refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
    mak fAddress = http://ittest:7779/reports/rwservlet?orientation=PORTRAIT&desformat=PDF&destype=cache&desname=RF07D10.pdf&server=repittest11&report_execution_mode=RUNTIME&P_DOCCOD=24&report_comm_mode=SYNCHRONOUS&P_COMCOD=5&report=H:\ami\RF07D10.rdf&userid=refmdba/refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
    mak localFileName=refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
    mak mak destinationDir = D://Resource
    outStream = java.io.BufferedOutputStream@b8c77f
    uCon = sun.net.www.protocol.http.HttpURLConnection:http://ittest:7779/reports/rwservlet?orientation=PORTRAIT&desformat=PDF&destype=cache&desname=RF07D10.pdf&server=repittest11&report_execution_mode=RUNTIME&P_DOCCOD=24&report_comm_mode=SYNCHRONOUS&P_COMCOD=5&report=H:\ami\RF07D10.rdf&userid=refmdba/refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
    Error Console
    Exception Caught
    java.io.IOException: Server returned HTTP response code: 502 for URL: http://ittest:7779/reports/rwservlet?orientation=PORTRAIT&desformat=PDF&destype=cache&desname=RF07D10.pdf&server=repittest11&report_execution_mode=RUNTIME&P_DOCCOD=24&report_comm_mode=SYNCHRONOUS&P_COMCOD=5&report=H:\ami\RF07D10.rdf&userid=refmdba/refm11gtest@refm11g&P_DOCNO=945861&disposition=inline&P_DOCFYR=2013
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileUrl(UrIDownload.java:34)
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileDownload(UrIDownload.java:64)
         at amgdom.refm.view.managebean.collection.MakePayment2.callReport(MakePayment2.java:259)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <ActionListenerImpl> <processAction> java.lang.NullPointerException
    javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileUrl(UrIDownload.java:48)
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileDownload(UrIDownload.java:64)
         at amgdom.refm.view.managebean.collection.MakePayment2.callReport(MakePayment2.java:259)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 54 more
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    javax.faces.FacesException: #{makePayment2.callReport}: java.lang.NullPointerException
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         ... 53 more
    Caused by: java.lang.NullPointerException
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileUrl(UrIDownload.java:48)
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileDownload(UrIDownload.java:64)
         at amgdom.refm.view.managebean.collection.MakePayment2.callReport(MakePayment2.java:259)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 54 more
    <JUCtrlHierNodeBinding> <release> [3154] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_579, value:DummyVpartyDealDetVOIterator
    <JUCtrlHierNodeBinding> <release> [3155] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_579, value:DummyVpartyDealDetVOIterator
    <DCIteratorBinding> <releaseDataInternal> [3156] Releasing iterator binding:DummyVpartyDealDetVOIterator
    <DCIteratorBinding> <releaseDataInternal> [3157] Releasing iterator binding:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [3158] Releasing iterator binding:variableIterator
    <JUCtrlHierNodeBinding> <release> [3159] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_581, value:CompanyAMIVOIterator
    <JUCtrlHierNodeBinding> <release> [3160] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_581, value:CompanyAMIVOIterator
    <DCIteratorBinding> <releaseDataInternal> [3161] Releasing iterator binding:CompanyAMIVOIterator
    <DCUtil> <findSpelObject> [3162] DCUtil, returning:oracle.jbo.uicli.binding.JUFormBinding, for ptb1
    <JUCtrlHierNodeBinding> <release> [3163] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_581, value:CompanyAMIVOIterator
    <JUCtrlHierNodeBinding> <release> [3164] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_581, value:CompanyAMIVOIterator
    <DCIteratorBinding> <releaseDataInternal> [3165] Releasing iterator binding:CompanyAMIVOIterator
    <ADFLogger> <begin> Rollback transaction
    <ApplicationModuleImpl> <resetState> [3166] Resetting AM=Root
    <ApplicationPoolMessageHandler> <doPoolMessage> [3167] **** PoolMessage REQ DETACH LWS
    <May 21, 2013 4:22:17 PM AST> <Error> <HTTP> <BEA-101017> <[ServletContext@20213623[app:REFMApp module:amificweb path:/amificweb spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@182b8[
    POST /amificweb/faces/makePayment/makePayment_2?_adf.ctrl-state=spmhovpgy_24 HTTP/1.1
    Connection: keep-alive
    Content-Length: 316
    Cache-Control: max-age=0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Origin: http://192.168.102.41:7101
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22
    Content-Type: application/x-www-form-urlencoded
    Referer: http://192.168.102.41:7101/amificweb/faces/makePayment/makePayment_2?_adf.ctrl-state=spmhovpgy_24
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Cookie: oracle.uix=0^^GMT+3:00; JSESSIONID=JTRBRb0FQQYDWJNvyL26fhj2MNPtyDwH05GtH2kDLLwqyBVLxPzD!1337581137
    ]] Root cause of ServletException.
    javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileUrl(UrIDownload.java:48)
         at amgdom.refm.view.managebean.authentication.UrIDownload.fileDownload(UrIDownload.java:64)
         at amgdom.refm.view.managebean.collection.MakePayment2.callReport(MakePayment2.java:259)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         Truncated. see log file for complete stacktrace
    >
    Maroof

    dvohra21 wrote:
    Caused By: java.lang.NullPointerException
    at amgdom.refm.view.managebean.authentication.UrIDownload.fileUrl(UrIDownload.java:48)
    The file url is producing NullPointerException.Dear
    method fileUrl() not have problem,
    problem at line number 19.
    1.     public static void fileUrl(String fAddress, String localFileName, String destinationDir) {
    2.     System.out.println("\n mak fAddress = "+fAddress+"\n mak localFileName="+localFileName+"\n mak mak destinationDir = "+destinationDir);
    3.     OutputStream outStream = null;
    4.     URLConnection uCon = null;
    5.     //InputStream is = null;
    6.     InputStream is = null;
    7.     try {
    8.     URL url;
    9.     byte[] buf;
    10.     int ByteRead, ByteWritten = 0;
    11.     url = new URL(fAddress);
    12.     outStream = new BufferedOutputStream(new FileOutputStream(destinationDir + "\\" + localFileName));
    13.     System.out.println("outStream = "+outStream);
    14.     //Error Caught
    15.     uCon = url.openConnection();
    16.     System.out.println("uCon = "+uCon);
    17.     //---------------------------------
    18.     // is = uCon.getInputStream();
    *19.     is = uCon.getInputStream();*
    20.     System.out.println("is = "+is);
    21.     buf = new byte[size];
    22.     while ((ByteRead = is.read(buf)) != -1) {                 
    a.     outStream.write(buf, 0, ByteRead);
    b.     ByteWritten += ByteRead;
    23.     }
    24.     System.out.println("Downloaded Successfully.");
    25.     System.out.println("File name:\"" + localFileName + "\"\nNo ofbytes :" + ByteWritten);
    26.     } catch (Exception e) {
    27.     System.out.println("Exception Caught");
    28.     e.printStackTrace();
    29.     } finally {
    30.     try {
    a.     is.close();
    b.     outStream.close();
    31.     } catch (IOException e) {
    a.     e.printStackTrace();
    32.     }
    33.     }
    34.     }
    Maroof
    Edited by: Maroof Ahmad on May 22, 2013 9:19 AM

  • Java.sql.SQLException: Error in allocating a connection. Cause: No Password

    I'm deploying an EJB Module with a CMP in SJAS from SJSE.
    I get the following exception "java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found" the first time a CMP tries to connect to the MS SQL Server database.
    I can connect through the Admin console (PING works fine) but this error hapens in runtime.
    The datasource classname i'm using is "com.sun.sql.jdbcx.sqlserver.SQLServerDataSource" which is suggested by the SJSE.
    Any help will be welcome...
    Nelson Marques

    If you are using Netbeans, then this link might help:
    http://forum.java.sun.com/thread.jspa?forumID=136&threadID=598423
    Otherwise, have you try this ?
    Verify your sun-ejb-jar.xml does not use default-resource-princinpal element:
    <res-ref-name>jdbc/pdisasdb</res-ref-name>
    <jndi-name>jdbc/pdisasdb</jndi-name>
    <default-resource-principal>
    <name>myname</name>
    <password>geheim</password>
    </default-resource-principal>
    </resource-ref>

  • Java.io.IOException: Server returned HTTP response code: 500 for URL:

    Hi,
    I am using java.net.URLConnection to invoke servlet which uses oracle.xml.sql.dml.OracleXMLSave for dml operations.
    I am facing below exception.
    09/05/26 17:47:50 java.io.IOException: Server returned HTTP response code: 500 for URL: http://xxx.com/servlets/com.xxx.qu.XMLDocPostOracleInsert
    09/05/26 17:47:50 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpConnection.java:)
    09/05/26 17:47:50 at com.xxx.util.http.HTTPRequester.makePostRequest(HTTPRequester.java:)
    09/05/26 17:47:50 at com.xxx.qu.PostReceiver.doPost(PostReceiver.java:145)
    09/05/26 17:47:50 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    09/05/26 17:47:50 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    09/05/26 17:47:50 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
    09/05/26 17:47:50 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    09/05/26 17:47:50 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    09/05/26 17:47:50 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    09/05/26 17:47:50 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    09/05/26 17:47:50 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    09/05/26 17:47:50 at java.lang.Thread.run(Thread.java:534)
    The oraclexmlsave operations are with in try-catch block as shown below, but its not getting caught there(Donnno Whyy????).Instead its giving
    exception at HttpURLConnection.getInputStream
    try{
    System.out.println("entered try :1");
    String Query="SELECT * from global_name";
    Statement CntStmt=con.createStatement();
    ResultSet rsEmailAlertQuery=CntStmt.executeQuery(Query);
    while(rsEmailAlertQuery.next()){
    System.out.println(rsEmailAlertQuery.getString(1));
    OracleXMLSave oxs = new OracleXMLSave(con,insertObject);
    System.out.println("MI B: ");
    oxs.setRowTag("row");
    oxs.setIgnoreCase(true);
    int rowsInserted = oxs.insertXML(xd);
    System.out.println("MI C: ");
    out.println("<success>TRUE</success>");
    con.commit();
    System.out.println("MI D: ");
    catch(OracleXMLSQLException e){
    System.out.println("OracleXMLSQLException");
    e.printStackTrace();
    catch(SQLException e){
    System.out.println("SQLException");
    e.printStackTrace();
    catch(Exception e){
    System.out.println("Exception");
    e.printStackTrace();
    Normal jdbc queries(rsEmailAlertQuery) are working properly.The problem is only with OracleXMLSave.
    Any help would be greatfull.
    Edited by: suryaraj on 29-May-2009 06:45

    Hi,
    May be you can get the description of the error on the server log of the server running on ip:url
    -Priyanka

  • Http tunnel connection unexpectedly closes

    Hi,
    I'm trying to ichat to work on an imac connected to a coporate network. I'm trying to connect through a proxy and keep getting the error "http tunnel connection unexpectedly closes".
    My .mac account is set to connect through a proxy on port 80 using the http protocol.
    Cheers
    Craig

    Hi,
    Can I suggest you ask here about the HTTP tunnel issue.
    I have never used iChat this way and think you need to solve that first.
    I do know that iChat manages Proxy connections better if pointed to using the System Preferences Settings (Network > Advanced Button)
    8:43 PM Tuesday; July 13, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Java.sql.SQLException: Error in allocating a connection

    hi,
    I have developed enterprise application using net beans IDE 5.5.I created one enity bean using sql server database.When i tried deploy this project i am getting following error...
    Internal Exception: java.sql.SQLException: Error in allocating a connection.
    Cause: Class name is wrong or classpath is not set for : com.microsoft.jdbc.sqlserver.SQLServerDataSourceError
    can anybody please help me.....where i went wrong...i am new to netbeans IDE
    regrds
    patel

    u need to download the three jar files.
    download the following jar files and add in ur classpath.
    msutil-2000.sp2-lib.jar
    msbase-2000.sp2-lib.jar
    mssqlserver-2000.sp2-lib.jar
    This is sample program...
    u can test in standalone first and do in netbeans....
    import java.sql.*;
    public class querybean {
    public String getdata(String sql) {
         try {
    System.out.println("testing connection ");
              Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
         Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;databaseName=master;user=sa;password=userpass;");
         Statement statement = connection.createStatement();
    ResultSet rs = statement.executeQuery(sql);
    System.out.println("testing connection pooling");
    while(rs.next()) {
    System.out.println(rs.getString(1));
    } catch(Exception e1) {
    System.out.println("exception caught" + e1);
    return "";
    public static void main (String args[]) throws Exception {
    querybean qb = new querybean();
    qb.getdata("select * from sampletable");
    I belive it will work now

  • .and suddenly java.io.IOException: Server returned HTTP response code: 500

    I have this code for a long time and it always works:
         URL url = new URL("http://www.infoamistades.net/load.do");          
              URLConnection urlConnection = null;
              urlConnection = url.openConnection();
              urlConnection.setRequestProperty("Content-Type","text/html; charset=utf-8");
    urlConnection.setRequestProperty("Accept-Charset","utf-8");
    BufferedReader bin = new BufferedReader(new InputStreamReader(urlConnection.getInputStream(),"utf-8"));
    but....suddenly I always have the java.io.IOException: Server returned HTTP response code: 500 (?!?!?)
    using this URL works properly
    URL url = new URL("http://www.infoamistades.net/");     
    but now it doesn't works with URL url = new URL("http://www.infoamistades.net/load.do");     
    and putting thia addrees to the browser it works, of course..
    no changes at the server, not firewalls.. (?!?!)
    thanks,

    Hi,
    Actually I am also having exactly same problem that you mentioned, I am new to the world of servlets. I could not get what you mean by "put variable in the request" Please tell me exactly what to do to solve this problem.
    Someone please help.........

Maybe you are looking for

  • How to view hierarchy in reports

    how to view hierarchy in reports

  • Photoshop CC Locking Up

    Hello, I had PS CS6 since it came out, and it was steady as a rock. Ever since I've moved to PS CC, it locks up about every 30-60 minutes. It doesn't crash, just freezes. I have to Ctrl-Alt-Del and start the task manager and kill the application ther

  • Safari's mail link and mail page options cause system wide hang

    I am having a very odd and serious problem with mail/safari in the 10.4.6 update When I select mail contents of this page or mail link to this page from the file menu and mail is NOT open it causes the entire system to hang and the only option is to

  • Sending Hashtable[] to Bean from a JSP

    Is it possible to send a Hashtable[] from a JSP to bean if possible how Thanks Srikanth

  • How to recall variable screen in Bex web template 3.5 ?

    When I execute a BW web report and I want to recall the variable screen in order to modify a variable , how to .... Also how to export to excel ? is it possible to export table + graph ? Indeed in query designer , when you execute the query, you see