Accessing an IFRAME tag after page being called from Servlet

Hi there, can anyone help me please.
I have two JSP pages, JSP1a and JSP2. When I call JSP1a from my browser, it runs some alert messages and then calls JSP2, which does a check on my database and then returns control to JSP1a and reloads the page. This all works fine.
I am now trying to integrate these two pages into my main app, but I get a problem. I am now calling JSP1a, from a controlling Java Servlet (my app is based around a Model 2 architecture) which fires fine, but the reference to the line
"window.frames.hidFrame.location.href=jsp2.jsp"
doesnt seem to work. "hidFrame" is an IFRAME in the body tag of my JSP1a page.
Can anyone help ? why does this line not fire, when the page has been loaded from a Java Servlet ? but it fires fine when I load the page directly ? and what is the solution to get around this problem please.
Thanks
Robert
JSP1a.jsp
<HTML>
<HEAD>
<SCRIPT language="JavaScript" type="text/javascript">
     function checkFunction(){
          var seconds = new Date();
          alert("inside function 1c ");     
          window.frames.hidFrame.location.href = "jsp2.jsp";
     function retMessage(){
          alert("inside return function");
          window.location.reload(true);
</SCRIPT>
</HEAD>
<BODY onload="setTimeout('checkFunction()',5000);">
<p>this is JSP1a</p>
<SCRIPT language="JavaScript">
alert("inside main body");
</SCRIPT>
<IFRAME frameborder="0" id="hidFrame" style="display:none"></iframe>
</BODY>
</HTML>
JSP2.jsp
<%@ page import="java.util.*" %>
<jsp:useBean id="dbBean" scope="application" class="myApp.DbBean"/>
<HTML>
<!-- JSP2.JSP -->
<%
boolean flag = false;
int i=1;
flag = dbBean.checkForUpdates();
System.out.println("flag = " + flag);
//if(flag == false) {
if (i == 1){
%>
     <BODY onload="parent.retMessage()">
<%} else {%>
     <BODY onload="parent.setTimeout('checkFunction()', 5000)">
<%}%>
</BODY>
</HTML>

its ok, I have found the problem. Someone recommended to me to change the IFRAME tag to make it visible just while I was debugging and low-and-behold there was a 404 error message being displayed which I had no idea about. It couldnt find my JSP2.jsp page. Because I am calling JSP1a from a servlet now, I needed to add a full path to my reference so that the servlet would know where to look. I did this and it works ok. I know its probably not best practice to hard code the full path to JSP2.jsp, I guess I should go back to the servlet and call JSP2 from there ?
Regards
Robert

Similar Messages

  • How can i debug a rfc being called from sap

    hello Gurus,
    We made a RFC call from SAP r3 to sap grc nfe......we did not receive any data in sap grc .......we go to SM58 and there it gives
    the message "Name or password is incorrect (repeat logon)u201D.
    How can i find out where the data has stuck.
    Please help.
    BR
    Honey

    HI,
    please have a look at the link below..
    this may help u !!!
    [Re: how can i debug a rfc being called from .net connector (NCO) v2.0?;
    Best of Luck !!1
    Regards
    Ravi

  • Import parameter is empty after an RFC call from BW to JCo

    I am calling a Java function (implemented using JCO and deployed on J2EE stack of the Portal box) from within a user-exit in BW (on a separate box) using RFC. The code in BW looks like:
    CALL FUNCTION 'Z_BW_VALIDATE_PROXY' DESTINATION 'ACF2PROXY'
        EXPORTING
            IREQUESTOR = 'AE012345'
            IREQUESTED = '012345'
        IMPORTING
            ERESULT = lv_result
        EXCEPTIONS
            SYSTEM_FAILURE = 1 message lv_rfc_mess
            COMMUNICATION_FAILURE = 2 message lv_rfc_mess.
    The following are working/setup correctly:
    1. RFC destination ACF2PROXY, in BW using transaction SM59;
    2. Java function 'Z_BW_VALIDATE_PROXY' , as the server log on the Portal(J2EE) shows the correct IMPORT and EXPORT parameters after processing a call from BW;
    The data types of the parameters in the function call above matches with those of the formal parameters in Java function where they are defined using JCO data types (export parameter is defined at CHAR 1 at both places).
    The problem is that I am not getting any value back in the IMPORT parameter 'lv_result'. I am expecting either '0' or '1' which is populated correctly in the Java function.
    Any insight is appreciated.

    The following is the code of the method in the class that inherits from JCO.Server. In this method the export parameter ERESULT is set with the value of variable 'result'. I thought it may be helpful to reporduce it here.
    protected void handleRequest(JCO.Function function) throws MMException
              if (function == null) {
                  LOGGER.logInfo("handleRequest - JCO.Function object is null.");
                   return;
              LOGGER.logDebug("handleRequest(" + function.getName() + ")");
              //process this function only, although I don't know what else would fall to this
              //server request method...
              if (function.getName().equalsIgnoreCase(ACF2Listener.ABAP_RFC_PROXY_FUNCTION)) {
                   //get input & output definitions from RFC. These are defined in the repository interface definition
                   JCO.ParameterList input = function.getImportParameterList();
                  JCO.ParameterList output = function.getExportParameterList();
                  LOGGER.logDebug("Received the following from ABAP: " + input.toString());
                  String requestor = input.getString("IREQUESTOR");
                  String requested = input.getString("IREQUESTED");
                  //call DAO to read ACF2 for these values
                  String result = null;
                  try {
                       ACF2DAO acf2 = ACF2DAO.getInstance();
                       if (acf2 != null) {
                            result = acf2.getACF2Delegation(requestor,requested);
                  catch (MMException e) {
                      LOGGER.logError("Exception occured during ACF2 DAO lookup: " + e.getMessage());
                      throw e;
                 output.setValue(result, "ERESULT");
                 LOGGER.logDebug("ACF2 Service Call returning: " + output.toString());
              else {
                   throw new JCO.AbapException("NOT_SUPPORTED","This service is not implemented by the ACF2 Proxy external server.");
    Thanks
    Sanjeev

  • Debugging a program being called from a shell script

    hi All,
    i want to know how debug a C program being called from A Shell Script,
    my script looks like the following :
    ecReqProcMain $Cfg/ecReq.g $TotCnt 2>> $ErrFilei also have to pass some arguments to the script itsellft, which in trun going to pass it to the program,
    also in some cases i may be required to Pipe some data to the program, like the folowing
    cat DataFile | myProgramThanks ,

    You can also use ss_attach with the scheme that Anton
    suggested above. Instead of inserting "dbx" into your
    script, insert "ss_attach" into your script.
    It's also possible to change your script to something like this:
    cat DataFile | ${DEBUG} myProgram
    Then you can run your script like this:
    setenv DEBUG ss_attach
    ecReqProcMain $Cfg/ecReq.g $TotCnt 2>> $ErrFile
    --chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Naren - I don't see MB_POST_DOCUMENT being called from MIGO

    naren  -
    I put a breakpoint on the call statement here:
      CALL CUSTOMER-FUNCTION '001'
           TABLES  XMKPF = ZMKPF
                   XMSEG = ZMSEG
                  XVM07M = ZVM07M.
    But when I hit post in MIGO, it doesn't stop at this breakpoint.
    Are you sure MIGO goods receipt posting calls MB_POST_DOCUMENT ???
    If so, what am I doing wrong ?
    Shouldn't this breakpoint catch the flow if MB_POST_DOCUMENT is being called from MIGO ???
    Thanks again ...
    djh-

    Hi,
    Enter all the data in MIGO..
    Before pressing the save button..
    Put /h in the command field..
    When you go to the debugging mode..
    In the menu choose...SETTINGS -> UPDATE DEBUGGING..
    Now you will get a message..Update debugging is switched on..
    Press F8..
    The debugging will be opened in an other session..
    It will call all the update modules one by one..
    Continue till MB_POST_DOCUMENT FM is called..
    Update debugging is required for debugging UPDATE FMs.
    Thanks,
    Naren

  • Query To Locate Action Variable Being Called From

    we have this "M011 - 0" action variable that resets the value back to 0. i can't seems to find where this action variable is being called from the tidal. i looked at every places and failed to locate it. does anyone have a SQL query to find where this piece of info can be located?
    thank you,
    warren

    Try the Query that joins events and actions to find your event... then you can do a similar query to find jobs
    Marc
    SELECT dbo.tskmst.tskmst_name AS [Action Name], dbo.trgmst.trgmst_name AS [Event Name]
    FROM dbo.trgmst INNER JOIN
    dbo.trgtsk ON dbo.trgmst.trgmst_id = dbo.trgtsk.trgmst_id RIGHT OUTER JOIN
    dbo.tskmst ON dbo.trgtsk.tskmst_id = dbo.tskmst.tskmst_id
    WHERE (dbo.tskmst.tskmst_name LIKE '%M011%')

  • Multpile inits being called in Servlet

    I am trying to create one thread which will be executed once Jakarta-Tomcat begins execution. To do this I have the following code:
    web.xml
      <servlet>
        <servlet-name>initializecontroller</servlet-name>
        <servlet-class>roverlook.InitializeController</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>     
    InitializeController.java
    public class InitializeController extends HttpServlet {
      public void init(ServletConfig config) throws ServletException {
        super.init(config);
        Daemon.INSTANCE.start(); // start daemon thread
    Daemon.java
    public class Daemon extends Thread{
      public static final Daemon INSTANCE = new Daemon(null); // singleton
      public synchronized void run  () {
         while(true) {
            LoggerCentral.info("Daemon executing required jobs at "+ (new java.util.Date()).toString(), null);
            // do work here
            try {
           Thread.sleep(1000*60);       
            } catch (InterruptedException e) {
                LoggerCentral.exception("Daemon:run():sleep interrupted", null);
        }         When I run Jakarta-Tomcat, I can see the Daemon writing once every ~1 minute as expected. However, when I run other Servlets (which aren't related to this) there are additional instances of the Daemon which are apparently created, because I see many writes to the logfile, sometimes only 1 second apart. It seems like the init() function is being called again even though I t should not be.
    To simplify things, I just put a System.out.print() statement in init() and it is in fact called multiple times! Putting a similar statement reveals that destroy() is not being called.
    I'm confused, because I thought init() was supposed to run once - Can anyone help out?
    Thanks alot

    Thank you for the good suggestion - I think I was able to make some progress. The first init() is called in
            at roverlook.InitializeController.init(InitializeController.java:37)
            at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)which looks like normal initialization to me. The second one is:
            at roverlook.InitializeController.init(InitializeController.java:37)
            at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
            ....     org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfigurationHandler.java:313)
            at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfigurationHandler.java:117)
            at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:189)
            at java.lang.Thread.run(Thread.java:536)which makes me think it has to do with the fact that I am using Apache Tomcat as a front end and using the Warp connector. In my httpd.conf file I have the following:
    WebAppDeploy roverlook warpConnection /roverlook/
    WebAppDeploy roverlook warpConnection /roverlook/jsp/*.jspIt would appear that this warp connector is causing init() to be called more than once! (could it be in a different JVM?). I need things which are accessed via the connector to share the same space with things in tomcat that load via 'load-on-startup'.
    Any additional suggestions? Thanks.

  • No std Inf.& warning messages while CAT2 being called from custom Zprogram

    Hi,
    We have built a custom z program that will be called CAT2 transaction using batch data processing(BDC).
    CAT2 being called  by CALL TRANSACTION ' USING bdcdata  MODE 'N'.
    The idea was that facilitate users  to choose multiple employees at a time and  go to directly CATS time entry screen.  No dialog call.   When we call CAT2 by running zprogram,  std.cat program warnings & information messages getting suppressed.
    Seeking your ideas is there any way we can run zprgm with out suppressing warning & information messages in std. program.
    Regards
    Prav

    Hi,
    We have built a custom z program that will be called CAT2 transaction using batch data processing(BDC).
    CAT2 being called  by CALL TRANSACTION ' USING bdcdata  MODE 'N'.
    The idea was that facilitate users  to choose multiple employees at a time and  go to directly CATS time entry screen.  No dialog call.   When we call CAT2 by running zprogram,  std.cat program warnings & information messages getting suppressed.
    Seeking your ideas is there any way we can run zprgm with out suppressing warning & information messages in std. program.
    Regards
    Prav

  • Database connection remains open after close being called

    I am using oracle OC4J as my application server. I am not using connection pool and I am using non-pooled datasource to get connection. The database connection is made at runtime and then closed. I want to test if the users' connection sessions have been killed after they logout the application. But when I checked the table v$session in the database, it shows one connection remaining. I checked my program, the close method has been called. Does anybody know the solution?

    Hi Chen,
    This is just a suggestion for something to try -- only if you haven't
    already tried it, that is!
    Try running OC4J in "debug" mode. Here are details on how to do that:
    http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
    Hope this helps you!
    Good Luck,
    Avi.

  • Request dispatcher and jsp pages called from servlets

              Given the following webapp directory structure:
              root/
              jsp/
              ..all jsp files
              web-inf/
              classes/
              /servlets
                   ..all servlet files
              /com
              ..all other java class files
              I have the jsp directory coded as: jspdir = "/jsp/" (and have tried variations
              on this theme)
              I try to open a new jsp page with the following code in a servlet in the above
              servlet directory:
                   RequestDispatcher rd;
                   rd = getServletContext().getRequestDispatcher(jspdir + myjsp.jsp);
                   rd.forward(req, res);
              rd continues to return null.
              The jsp pages are not registered in the web.xml file for this webapp, if that
              makes any difference.
              Does anyone have any suggestions?     
              [problem.txt]
              

    I create a small sample and put these files into /jsp in my war context
              it works fine, please send me the example code you are using and the
              environment description of the deployed application
              I attached my samples, that work
              Filip
              ~
              Namaste - I bow to the divine in you
              ~
              Filip Hanik
              Software Architect
              [email protected]
              www.filip.net
              "Bill Blackmon" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Yes, I am able to access the jsp pages with the url listed.
              >
              > "Filip Hanik" <[email protected]> wrote:
              > >The weblogic servlet engine, is by default mapping anything that ends
              with
              > >*.jsp to be a JSP.
              > >so there shouldn't be a problem. You didn't answer my first question,
              > >are you able to access your JSP through the browser?
              > >http://localhost:7001/root/jsp/myjsp.jsp
              > >
              > >Filip
              > >
              > >--
              > >~
              > >Namaste - I bow to the divine in you
              > >~
              > >Filip Hanik
              > >Software Architect
              > >[email protected]
              > >www.filip.net
              > >"Bill Blackmon" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> The code you are reading in the message here was pasted in and
              > >> looks bad, so maybe that's what you are referring to? The dispatcher
              code
              > >is called
              > >> in the service() method of the servlet.
              > >> I have a suspicion that the jsp directory needs to be defined someplace
              > >-
              > >weblogic.properties
              > >> or web.xml?, though I don't see this in any of the examples that come
              > >with
              > >the product.
              > >>
              > >>
              > >>
              > >> "Simon Ng" <[email protected]> wrote:
              > >> >
              > >> >Hello Bill,
              > >> > Did you put a <BR>
              > >> >return;
              > >> ><BR>
              > >> >statement right after the dispatcher.forward() statement? Well, I am
              > >assuming
              > >> >your
              > >> >code is in the doPost() or doGet() methods.
              > >> >
              > >> >Simon
              > >> >
              > >> >
              > >> >"Filip Hanik" <[email protected]> wrote:
              > >> >>if you do http://localhost:7001/root/jsp/myjsp.jsp
              > >> >>
              > >> >>do you get a result?
              > >> >>
              > >> >>make sure you have the right character case on the filename.
              > >> >>
              > >> >>Filip
              > >> >>
              > >> >>--
              > >> >>~
              > >> >>Namaste - I bow to the divine in you
              > >> >>~
              > >> >>Filip Hanik
              > >> >>Software Architect
              > >> >>[email protected]
              > >> >>www.filip.net
              > >> >>"Bill Blackmon" <[email protected]> wrote in message
              > >> >>news:[email protected]...
              > >> >>>
              > >> >>> Given the following webapp directory structure:
              > >> >>> root/
              > >> >>> jsp/
              > >> >>> ..all jsp files
              > >> >>> web-inf/
              > >> >>> classes/
              > >> >>> /servlets
              > >> >>> ..all servlet files
              > >> >>> /com
              > >> >>> ..all other java class files
              > >> >>>
              > >> >>>
              > >> >>> I have the jsp directory coded as: jspdir = "/jsp/" (and have tried
              > >> >>variations
              > >> >>> on this theme)
              > >> >>> I try to open a new jsp page with the following code in a servlet
              > >in
              > >> >the
              > >> >>above
              > >> >>> servlet directory:
              > >> >>> RequestDispatcher rd;
              > >> >>> rd = getServletContext().getRequestDispatcher(jspdir + myjsp.jsp);
              > >> >>> rd.forward(req, res);
              > >> >>>
              > >> >>> rd continues to return null.
              > >> >>>
              > >> >>> The jsp pages are not registered in the web.xml file for this
              webapp,
              > >> >>if
              > >> >>that
              > >> >>> makes any difference.
              > >> >>>
              > >> >>> Does anyone have any suggestions?
              > >> >>>
              > >> >>
              > >> >>
              > >> >
              > >>
              > >
              > >
              >
              [filipInclude.jsp]
              [filipForward.jsp]
              [filip.jsp]
              

  • ADF -- Accessing table column header in java bean called from jsf

    Hi everyone,
    I am calling a common bean function for all columns of a table from jsf inlineStyle, for each call i need to access caller column's headerText in bean.
    How can i access the same in that common function, i.e. for each column's call to the bean, i need the respective headerText accessible in bean.
    Can anyone help me out with this???

    store the value in page flow scope and get it anywhere you want.
    RequestContext rc = RequestContext.getCurrentInstance();
    rc.getPageFlowScope().put("somevar", somevalue);

  • Multiple iframes on One Page Trigger One from Another

    So I am creating multiple animations on a single page. The page is a PHP page and was built long ago. I am just replacing some images with Edge Animate animations.
    I want to do them in a sequence. So I was wondering if there was a way in the time line of one, to trigger the start of another? Each is going to be in an individual iframe. Which I know compounds the issue.
    I thought of just putting some lead seconds in each of the animations so they sort of pause, but that would assume all of them load at the exact same time to keep the timing.
    Any help would be appreciated.

    Due to browser security, I don't think it would be possible to have one iframe talk to another in the way you want.
    Is there a reason you are using iframes instead of DIVs?
    I created a simple demo of what I think you want to do here, but just using DIVs: http://thetraininggrounds.com/An-test/end-trigger-second-an/combined_an.html
    What I did was start with two compositions. In the second one, at 0ms, I set a trigger of sym.stop(); to ensure this would not play until I told it to.
    In the first one, I set the complete event (i.e. when it's done playing) to start the second composition. I used the code: Edge.getComposition("EDGE-253701960").getStage().play();
    You will, of course, need to substitute the actual composition ID for the one I included in getComposition.
    Then it was simply a matter of including the preload .js file for both and the stage divs for both into the same page.
    There is definitely more you can do, and I suggest checking out the API documentation for more info: http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html
    I hope this helps.

  • Facing problem in JavaStoredProc being called from plsql pass JPublisher

    I'm facing problems in calling java stored procedure from a plsql procedure.
    1) I have a plsql types
    create or replace type wwpro_api_portlet_instance
    as object
    portlet_inst_guid varchar2(60),
    provider_id number(38),
    portlet_id number(38),
    ref_path varchar2(100)
    create or replace type wwpro_api_portlet_instances
    as table of wwpro_api_portlet_instance
    2)I create java classes from JPublisher for these types as attached with this mail.
    3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
    and then pass it to another procedure which is a CallSPec for the java class.
    Call Spec
    procedure export_data_internal
    p_http_url in varchar2,
    p_timeout in number,
    p_service_id in varchar2,
    p_proxy_host in varchar2,
    p_proxy_port in number,
    p_proxy_username in varchar2,
    p_proxy_password in varchar2,
    p_portal_version in varchar2,
    p_encryption_key in varchar2,
    p_message_lang in varchar2,
    p_export_id in varchar2,
    p_provider_id in varchar2,
    p_debug_level in number,
    p_portlet_instances in wwpro_api_portlet_instances
    )as language java
    name 'oracle.webdb.provider.web.ExportImportClient.exportData(
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.Integer,
    oracle.webdb.provider.web.PortletInstanceArray
    Procedure calling Call Spec
    procedure export_data
    p_export_id in varchar2,
    p_provider_id in number,
    p_portlet_instances in wwpro_api_provider.portlet_instance_table
    ) is
    begin
    --calling Call Spec
    export_data_internal
    p_http_url => l_provider.http_url,
    p_timeout => l_provider.timeout,
    p_service_id => l_provider.service_id,
    p_proxy_host => l_provider.dbtier_proxy_hostname,
    p_proxy_port => l_provider.dbtier_proxy_portnumber,
    p_proxy_username => l_proxy_info.username,
    p_proxy_password => l_proxy_info.password,
    p_portal_version => wwctx_api.get_product_version(),
    p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
    p_message_lang => l_provider.language,
    p_export_id => p_export_id,
    p_provider_id => p_provider_id,
    p_debug_level => wwpro_util.get_debug_level,
    p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
    //this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
    eption: Closed Connection'
    end export_data;
    4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
    public static void exportData
    String url,
    int timeout,
    String serviceId,
    String proxyHost,
    int proxyPort,
    String proxyUser,
    String proxyPass,
    String portalVersion,
    String sharedKey,
    String messageLocale,
    String exportId,
    String providerId,
    Integer portalDebugLevel,
    PortletInstanceArray instances
    )throws Exception
    oracle.webdb.provider.v2.adapter.soapV1.SOAPException
    try
    conn = DriverManager.getConnection("jdbc:default:connection:");
    stmt = conn.createStatement();
    stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
    // Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
    //This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
    //This has worked once but did not work after that, I tried this in the 10g as well as 901
    conn.commit();
    }catch(SQLException sqe){
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
    conn.commit();
    throw sqe;
    catch(Exception e)
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
    conn.commit();
    throw e;
    Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
    them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
    What Shold I try to over come this ?
    Also
    thanks
    rahul

    I'm facing problems in calling java stored procedure from a plsql procedure.
    1) I have a plsql types
    create or replace type wwpro_api_portlet_instance
    as object
    portlet_inst_guid varchar2(60),
    provider_id number(38),
    portlet_id number(38),
    ref_path varchar2(100)
    create or replace type wwpro_api_portlet_instances
    as table of wwpro_api_portlet_instance
    2)I create java classes from JPublisher for these types as attached with this mail.
    3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
    and then pass it to another procedure which is a CallSPec for the java class.
    Call Spec
    procedure export_data_internal
    p_http_url in varchar2,
    p_timeout in number,
    p_service_id in varchar2,
    p_proxy_host in varchar2,
    p_proxy_port in number,
    p_proxy_username in varchar2,
    p_proxy_password in varchar2,
    p_portal_version in varchar2,
    p_encryption_key in varchar2,
    p_message_lang in varchar2,
    p_export_id in varchar2,
    p_provider_id in varchar2,
    p_debug_level in number,
    p_portlet_instances in wwpro_api_portlet_instances
    )as language java
    name 'oracle.webdb.provider.web.ExportImportClient.exportData(
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.Integer,
    oracle.webdb.provider.web.PortletInstanceArray
    Procedure calling Call Spec
    procedure export_data
    p_export_id in varchar2,
    p_provider_id in number,
    p_portlet_instances in wwpro_api_provider.portlet_instance_table
    ) is
    begin
    --calling Call Spec
    export_data_internal
    p_http_url => l_provider.http_url,
    p_timeout => l_provider.timeout,
    p_service_id => l_provider.service_id,
    p_proxy_host => l_provider.dbtier_proxy_hostname,
    p_proxy_port => l_provider.dbtier_proxy_portnumber,
    p_proxy_username => l_proxy_info.username,
    p_proxy_password => l_proxy_info.password,
    p_portal_version => wwctx_api.get_product_version(),
    p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
    p_message_lang => l_provider.language,
    p_export_id => p_export_id,
    p_provider_id => p_provider_id,
    p_debug_level => wwpro_util.get_debug_level,
    p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
    //this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
    eption: Closed Connection'
    end export_data;
    4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
    public static void exportData
    String url,
    int timeout,
    String serviceId,
    String proxyHost,
    int proxyPort,
    String proxyUser,
    String proxyPass,
    String portalVersion,
    String sharedKey,
    String messageLocale,
    String exportId,
    String providerId,
    Integer portalDebugLevel,
    PortletInstanceArray instances
    )throws Exception
    oracle.webdb.provider.v2.adapter.soapV1.SOAPException
    try
    conn = DriverManager.getConnection("jdbc:default:connection:");
    stmt = conn.createStatement();
    stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
    // Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
    //This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
    //This has worked once but did not work after that, I tried this in the 10g as well as 901
    conn.commit();
    }catch(SQLException sqe){
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
    conn.commit();
    throw sqe;
    catch(Exception e)
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
    conn.commit();
    throw e;
    Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
    them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
    What Shold I try to over come this ?
    Also
    thanks
    rahul

  • I can not access my iphone(3Gs) after update my software from 4.1 to 6.1.3

    this message appered after update
    your iphone could not be activated.........................

    That's because your phone is jailbroken, right?

  • Loss of Album & other tags after conversion of catalog from PSE6

    I just installed PSE 8 while retaining PSE 6 as permitted by installation instructions.  Converted catalog from PSE 6 which had JPGs, TIFs & RAW files in it.  Everything looked ok for a minute.  I did some editing of Preferences, none of which overtly would affect the album & other tages, but when I returned to the catalog, the images were there without any of the album tags or other tags. The only Album remaining in the list was the "last six months."  Can someone please explain this and more importantly recommend a solution?  Many Thanks.

    There is one known issue where the tags and albums in the Organize pane are missing, while the thumbnails continue to show the tag icons under them.  If you're sure that the thumbnails don't have the tag icons under them, then my only suggestion is to convert the PSE 6 catalog again using File > Catalog > Convert.

Maybe you are looking for

  • Vendor with a WITHHOLDING tax

    Hi, Can you guys tell me how to find a vendor who has a WITHHOLDING tax in table level or any other way. regards, Prabhu

  • Field record type CO-PA document

    Dears, someone knows I can set-up the record type in a document of CO-PA depending on the billing type or the sales order type? Many thanks in advance Vittoria

  • Multiple Waveform Graphs

    Dear group, I have a user panel that contains three waveform graphs in which only one graph is visible to the user. All three graphs plot the contents of the same one dimensional array; although only one graph is being displayed all three graphs cont

  • Uunable to complete upload to ftp host

    Please guys....need to fix this issue asap. This is the worst issue in Muse and it needs to direct to Adobe to fix it right away.

  • ITunes Store in Nigeria?

    Is there an iTunes Store in Nigeria? My friend in Nigeria is trying to post a podcast in the iTunes Store but when iTunes asks for his five digit zip code and his country, Nigeria isn't in the list of countries. If there is no iTunes Store in Nigeria