Not able to dispatch to an URL from servlet

Hi ,
I am trying to call a URL from a servlet, which is running in an oc4j instance of Oracle AS 10.1.2.0.2
My servlet (session_servlet) basically reads the session id, whenever it is accessed. It then inserts this session id into a table in an oracle database. Then, I want to access my Oracle Forms application from session_servlet, by dispatching to the URL, say
http://<my_host>/forms/frmservlet?config=test&session_id=<the_session_id_read_by_session_servlet>
session_servlet and frmservlet are running on the same Oracle AS, but on different http servers, session_servlet on port 7777 and frmservlet on the default 80.
<code snippet of my session_servlet, where I am dispatching to the URL>
getServletContext().getRequestDispatcher("http://<my_host>/forms/frmservlet?config=test&session_id="+session.getId()).forward(request,response);
But am getting the following error
500 Internal Server Error
java.lang.NullPointerException
at session_tracker.doGet(session_tracker.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:826)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:332)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Can someone please help me on this.
Thanks,
Suresh

getServletContext().getRequestDispatcher("http://<my_host>/forms/frmservlet?config=test&session_id="+session.getId()).forward(request,response)
From the Javadocs for ServletContext.getRequestDispather():
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html#getRequestDispatcher(java.lang.String)
The pathname must begin with a "/" and is interpreted as relative to the current context root. Use getContext to obtain a RequestDispatcher for resources in foreign contexts. This method returns null if the ServletContext cannot return a RequestDispatcher.
-steve-

Similar Messages

  • Not able to read the wsdl file from server Premature EOF encounter

    Hi All,
    I am facing issue while accessing a web Service from server. Here is the clear view about it.
    I created a simple SyncBpel process in a composite and deployed in to the server and it is working fine. Later i created a new Asyn bpel process in a composite and in the external reference i dragged a web Service and imported the wsdl url from server of the SyncBpel and wired the Asynbpel process to webserive .
    Now here i am facing peculiar behavior which i am not able to trace it out.
    1) For the first time when i import the url of syncBpel from the server i am not facing any error and it is working fine as expected but when i close the Jdeveloper and open it i am not able to user the web Service and it is saying as "Not able to read the wsdl file from server Premature EOF encounter"
    2)When i close and open the Jdeveloper i can see the url of the wsdl which imported in webserver is changing from http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel/bpelsync_client_ep?WSDL to http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel/BPELsync.wsdl
    3)when I open and see the url http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel/bpelsync_client_ep?WSDL I can see the soap address as *<soap:address location="http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel!1.0*soa_5cfb8416-c106-40a2-a53b-9054bbe04b9c/bpelsync_client_ep"/>*
    I don’t understand why the soap end contains “*soa_5cfb8416-c106-40a2-a53b-9054bbe04b9c” and this kind of url for soap address is coming to all the bpel process which I am deploying in the server.
    I checked the in Jdeveloper where webproxy is uncheck and the server is also up but still I am facing issue of reading the error.
    Can someone please help in resolving the issue.
    I am using SOA 11g 11.1.1.5 and Jdeveloper 11.1.1.5
    Many thanks.
    Tarak
    Edited by: user11896572 on Jan 17, 2012 5:22 PM

    Hi,
    Setting default from the jdeveloper -
    During composite deployment from Jdeveloper (wizard driven), you will be given an option to choose the version of the composite and there will also be an option for you to choose if the composite needs to be deployed as default.
    Setting default from the em console -
    After deploying a composite, login to the em console and click on the composite that you want to set as default, and you will find a tab - "Set as Default". please note that this tab will not be seen, if the composite is already set as default.
    Refer -
    http://docs.oracle.com/cd/E12839_01/integration.1111/e10226/soacompapp_mang.htm
    8.2 Managing the State of Deployed SOA Composite Applications
    Thanks

  • Why I am not able to copy and paste photos from my desktop to my Itouch?

    I am not able to copy and paste photos from my computer to my Itouch. I use to be able to do it. Now there is an error message that says my device is wither disconnected or stopped responding.
    But when I plugged in the Itouch, it still shows on my computer, still able to see my existing pictures in it. Just not able to paste/drag any new pictures into the folder.
    Anyone has this problem and able to solve it?
    Thank you.

    Hi BobRz
    Thanks for you suggestion but it didn't work - are there other ways for solving this problem? Or is it because my files that I want to copy and paste onto my hard disk etc are too big? (However there is space on my hard disk and it works on a PC)

  • TS3988 I am not able to open the settings icon from my old iPAD. When I try to select the settings icon it looks like it's about to launch and open however; it will not stay open. I am trying to transfer all my data from my old iPAD to my new 4th gen iPAD

    I am not able to open the settings icon from my old iPAD. When I try to select the settings icon it looks like it's about to launch and open however; it will not stay open. I am trying to transfer all my data from my old iPAD to my new 4th gen iPAD.

    Try a soft reset - press the home and power bottons and keep them pressed until the Apple logo comes on.  Then see if you can access Settings.

  • I'm not able to copy and paste files from my mac to hard disk and usb. I have tried dragging the items to those devices but it won't work. I also have tried copying and pasting those files onto those devices but that doesn't work too. Can any one help?

    I'm not able to copy and paste files from my mac to hard disk and usb. I have tried dragging the items I want to copy to those devices but it won't work. I also have tried copying and pasting those files onto those devices too but that doesn't work too. Can any one help?

    Hi BobRz
    Thanks for you suggestion but it didn't work - are there other ways for solving this problem? Or is it because my files that I want to copy and paste onto my hard disk etc are too big? (However there is space on my hard disk and it works on a PC)

  • Sender File Adapter  not able to get file via FTP from an external system

    Hi,
    I have a Sender File Adapter using FTP which polls a server every 10 seconds looking for a file ".xml".  The adapter will connect and pick up the waiting file, but sometimes the adapter not able to get file via FTP from an external system. The file is on the server, but despite the polling, the adapter does not pick up it. There is no return error.
    The connect mode is Permanently and the transfer mode is Binary.
    Can you help me?
    Thanks.
    T.

    Hi Teresa,
    does this case appears with a file size higher the others?
    Personally, I do not recommend to have a polling under 1min.
    10s could be too just, if the file is not small and/or if the file server is far (several kilometers) to where the Adapter Engine is, and/or this file server is beside a firewall. Do not forget also that, with previous points, you could have like a conflict, betwen the 1st polling and the 2nd polling, if in less 10s PI adapter has not enough time: to connect to the FTP server (several Km), find the file (perhaps among 100 other files in the directory), go back to the file to Adapter Engine server (several Km again), convert your file to XML message (with a complex Content Conversion), then check the XML structure, and when all that is done, return back to FTP server (several Km), to archive the source file... Well It's my understanding of a FTP exchange with FILE adapter...
    If you really need a 10s polling, that's mean your have a pseudo real time interface. In that case, in my mind file should not be used! but we should use a Web service, JDBC JMS (any exchange without a physical object like a file). For me, it's a non-sens to have a file in that case.
    regards.
    mickael

  • Client GWI - not able to download a gwi profile from crm server

    hey there,
    I´m faced with an issue about client based GW Integration and with the gwi profile download.
    The thing is, I´ve two separate crm systems. Last week i´ve implemented it with my notebook for the first system and it works fine - i mean the gwi profile download.
    but this week, i tried to implement it on the second system. i cannot use my notebook, but I´m armed with a workstation.
    so I did the same things as I did last week (notes, settings and so on). I used the official gwi pdf files to do so.
    But I´m not able to download the gwi profile from the second system/server. (either SAP_DEFAULT nor my z-profile)
    do you have any ideas? that would be great!
    if you need more information, i will provide it here.
    thanks in advance!
    /*************EDIT
    Solved the issue!
    There was a Link problem...I had to change the Link manually, which is used after you klick on "Edit Sync Options" under personalization.
    END***************/
    Edited by: Marcus Findeisen on Aug 16, 2011 3:21 PM

    hey danny,
    greyed out problem:
    go to spro and profile definition. scroll horizontal in order to change display mode from show to edit
    link problem:
    we had problems with the connection over, i dont know, services or other systems between end user computer and sap maschine. we couldn´t use the original sap server link. we had to use another one. so I enhanced the component to integrate this speciall linkn.
    hope i could help u.

  • Not able to find ...Create From Existing Service option in OSB 11g??

    Hi,
    Iam new to OSB....Iam doing a simple demo in wch i have a business service which calls a java web srvc...now when iam creating a proxy service to route the request to Business service..iam
    not able to find the option Create From Existing Service option(proxy or business service ) option in the eclipse galileo ..can some one pllz help.??

    I don't have osb/oepe running over here, but the option when you rightclick on the 'business service > oracle service bus > create proxy service from busiiness service' , is gone ?

  • Photos app in my mac is not able to open the iPhoto library from my external hard disk.

    I am using iMac (21.5-inch, Late 2013) OS 10.10.3. i have 2 iPhoto library one on my Mac HD and the other on my External HD which i primarily use and which has all the latest photos in it. Now with the new update to photos app in Mac i am not able to open the iPhoto library from my external HD. I get the following error message please help.  

    i am not able to open the iPhoto library from my external HD
    How is the external HD formatted? Is the filesystem MAcOS Extended (Journaled) as necessary?
    Is theHD directly connected or by a networked connection?
    Have you tried to set the "Ignore Ownership on this volume" flag?
    See how to prepare the drive for storing an iPhoto Library on it in this document: iPhoto: Sharing libraries among multiple users
    Which version of iPhoto created the library? If it was iPhoto 7.1.2 or earlier, download and run the iPhoto Library upgrader.
    iPhoto '11 or later: About the Library Upgrader - Apple Support

  • I am not able to change  photo to video from Camera mode.  The same problem is occurred now with iPhone.  What is a problem?

    I am not able to change  photo to video from Camera mode.  The same problem is occurred now with iPhone.  What is a problem?

    Ahhhh... didn't know  this with iOS 7.  Thank you so much.

  • HT4528 On connecting my iphone5 to my windows7 pc I am not able to open the iphone folder from my computers. It says "you dont have permission to access this phone"

    On connecting my iphone5 to my windows7 pc I am not able to open the iphone folder from my computers. It says "you dont have permission to access this phone"

    I'm not sure what you're asking.  Are you writing a program that results in the error when you test it?  (This is the developer forum).

  • Hello , I'm not able to download os x mavericks from apple store

    hello , I'm not able to download os x mavericks from apple store & to be honest I m giving up of this application so where else I can downlaod this online thanks .

    It can't be downloaded anywhere else. It is a large file, 5.3 GB. Are you giving it time to download?

  • Not able to login to this forum from opera in xfce4 in arch[SOLVED]

    I installed xfce4 and opera and they are working well. However, I am not able to login to this forum from there. The login page is loaded, I enter the login and password, login accepted message comes but when the page is reloaded, I am still not logged in and I cannot post to the forum. I am writing this from my previous distro + firefox.
    Last edited by rnarch (2012-03-21 17:34:42)

    rnarch wrote:I am writing this from my previous distro + firefox.
    Have you tried Firefox in Arch? If that works, then there's something wrong with the settings in Opera (maybe it's showing a cached page).

  • I'm not able to edit text in Numbers from my iPad.

    I'm not abl to edit text in Numbers from my iPad.  The files were originally created on the iPad and for years have worked effortlessly between my Macbook, iPhone and iPad.  After the last update in Numbers (Can't remmember if it was on the Macbook or iPad) I've had this issue.  Any solutions please?!

    for years have worked effortlessly between my Macbook, iPhone and iPad.
    You were lucky!  I had frequent syncing troubles with the old Numbers.  The new Numbers syncs well.
    Are you are running the latest version everywhere?
    Numbers on iPad: 2.0.1
    Numbers on Mac: 3.0.1
    iOS: 7.0.4
    If you're still having trouble, try creating new documents and copying your tables over from the old documents. There may have been a glitch somewhere when you imported the old documents into the new version.
    SG

  • HT5887 I am not able to transfer files on airdrop from phone to another. Whereas I can receive files from the other phone. Both devices are iPhone 5.

    I am not able to transfer files on airdrop from phone to another. Whereas I can receive files from the other phone. Both devices are iPhone 5.

    I have tried all sorts of Settings but just doesnt seem to work one way. I keep getting messages "Airdrop cancelled".

Maybe you are looking for

  • Insert filename and path?

    Hi, Can you insert the filename and path into a footer in a ID document same as you would with a Microsoft Word document? Thank you, Barb

  • What can I do to restore good wifi reception after upgrading Snow Leopard

    My situation is similar to what is described by others, but different enough that I thought starting a new thread might help.  I upgraded from Leopard to Snow Leopard (10.6.3) in January.  All was good.  As new upgrades came out I conscientiously upd

  • Regd Integration of Domino.doc with Oracle 9i AS Portal

    I want to know whether the integration of domino.doc with oracle 9i as portal is possible or not. Can anyone guide me whether the integration is possible or not and if it is possible which document should i refer for the same. and i dont know much ab

  • ABAP Real Time Questions..

    Dear Friends, please help me out in getting some real time question and answers related to ABAP.

  • Why the hell can't I contact Mozilla directly?

    Why the hell do I have to ask a question to a public "community"? I want to contact someone at Mozilla directly. Why isn't there a direct contact link? Can someone give me a link, phone number or email address to Mozilla directly. My account has been