WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

exception while running java applet in the browser

  • 1.  exception while running java applet in the browser

    Posted 04/11/13 09:40 AM
    hi everbody ,

    iv'e websphere application server v6.0 with IHS plugin and oracle 9.0.1

    i'm getting an exception in java console , i've looked in the log file of the server and i get this :
    [11/04/13 11:11:17:484 GMT] 00000038 ServletWrappe E   SRVE0068E: Impossible d'appeler la méthode service() sur le servlet LoginServlet. Exception : javax.servlet.ServletException: LoginServlet failed
        at dk.idp.hybridmail.authenticationhttpservice.LoginServlet.doPost(LoginServlet.java:309)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)
        at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
        at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
        at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
        at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)

    [11/04/13 11:11:17:484 GMT] 00000038 WebApp        E   SRVE0026E: [Erreur de servlet]-[LoginServlet]: javax.servlet.ServletException: LoginServlet failed
        at dk.idp.hybridmail.authenticationhttpservice.LoginServlet.doPost(LoginServlet.java:309)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)
        at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
        at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
        at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
        at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)

    [11/04/13 11:11:17:484 GMT] 00000038 SRTServletRes W   WARNING: Cannot set status. Response already committed.
    [11/04/13 11:11:17:500 GMT] 00000038 WebApp        E   SRVE0115E: Une erreur s'est produite lors de l'appel du rapporteur d'erreurs com.ibm.ws.webcontainer.webapp.WebAppErrorReport: LoginServlet failed
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.constructErrorReport(ServletWrapper.java:857)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:691)
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)
        at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
        at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
        at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
        at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
    Caused by: javax.servlet.ServletException: LoginServlet failed
        at dk.idp.hybridmail.authenticationhttpservice.LoginServlet.doPost(LoginServlet.java:309)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
        ... 15 more

    [11/04/13 11:11:17:500 GMT] 00000038 WebApp        A   SRVE0180I: [HybridMailHttpService.war] [/HybridMailHttpService] [Servlet.LOG]: Error page exception  The server cannot use the error page specified for your application because of the exception printed below.
    [11/04/13 11:11:17:500 GMT] 00000038 WebApp        A   SRVE0181I: [HybridMailHttpService.war] [/HybridMailHttpService] [Servlet.LOG]: Error Page Exception: : com.ibm.ws.webcontainer.webapp.WebAppErrorReport: SRVE0199E: Elément OutputStream déjà obtenu
        at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:2538)
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2865)
        at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
        at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
        at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
        at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
    Caused by: java.lang.IllegalStateException: SRVE0199E: Elément OutputStream déjà obtenu
        at com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter(SRTServletResponse.java:462)
        at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:2488)
        ... 15 more
    I've search in ibm forum , i found nothing

    Any help please i'm running out of time , thanks in advance
     


  • 2.  exception while running java applet in the browser

    Posted 04/15/13 07:44 AM
    Hi, It looks like something wrong in servlet authentication! Did it work fine during development? if so did you try to access this servlet using internal HTTP port of WAS?


  • 3.  exception while running java applet in the browser

    Posted 04/15/13 08:34 AM
    hi , the problem occure while authentification when i enter in the authentification page wrong id or password the application respond correctly by printing invalid username or password (it means it communicates well with the webserver i'm using IBM http SERVER)
    if i enter the correct id and password i got the exception mentionned before
    i'm not the person who developped this application (the one who did this application  told me that the applet workes fine years ago in 2009), i'm working on reegenering of the project
    u said something about accessing this servlet using internal HTTP port of WAS, how i can do that and whats the purpose ?
    as you can see the problem is in the package of the jdk javax.servlet , mayb problem of version of jar i 'don't know .


  • 4.  exception while running java applet in the browser

    Posted 04/15/13 08:42 AM
    What was the WAS version used to run this application since 2009?


  • 5.  exception while running java applet in the browser

    Posted 04/15/13 08:51 AM
    it was on  WAS v6 installed in windows XP but the first version of the application in 2004  was running on WebSphere Application Server 5.1 with Fix pack 1 , do you think it's a problem of the version of WAS ?


  • 6.  exception while running java applet in the browser

    Posted 04/15/13 09:17 AM
    Yes, i think so. Did you migrate WAS using migration toolkit and checked if migration went smoothly?


  • 7.  exception while running java applet in the browser

    Posted 04/15/13 09:24 AM
    the migration was done between 2004 and 2009 and i've just started working on the project a month ago, so are yo sure the WAS version is the cause ?


  • 8.  exception while running java applet in the browser

    Posted 04/15/13 06:24 PM
    well i don't have a choice i'll try WAS 5.1 , but i can't find WAS 5.1 even if i called IBM
    any torrent our website for WAS 5.1


  • 9.  exception while running java applet in the browser

    Posted 04/16/13 05:11 PM
    well, can you try recompilling the project for WAS 6.1 i.e. java 1.5 again?


  • 10.  exception while running java applet in the browser

    Posted 04/17/13 11:43 AM
    hi the fact of recompiling the project is very good idea , i know that each version of WAS support specific version of JDK ,

    one more thing i have the WAS v6.0 with the plugin IBM HTTP Server 6.0 , could you tell me which version of jdk  to use in Rational Application developper  to recompile the project  and to take  into consideration both versions of WAS and IBM http Server in this choice of JDK version




  • 11.  exception while running java applet in the browser

    Posted 04/17/13 11:51 AM
    one more information the database version is oracle 9i 9.0.1.2 , about jdbc driver  this link show that four java use only 1.2  1.3  1.4 , what do you think ?


  • 12.  exception while running java applet in the browser

    Posted 04/17/13 11:52 AM
    SORRY  , here is the correct version of oracle i'm using  "SQL*Plus: Release 9.2.0.1.0"


  • 13.  exception while running java applet in the browser

    Posted 04/17/13 11:57 AM
    www-01.ibm.com/support/docview.wss?rs=18...
    WAS 6.0 work with JDK 1.4

    and www.oracle.com/technetwork/database/ente...

    oracle 9i 9.2.0.1 works with java 1.2 ,1.3 and 1.4

    i hope the recompiling will work