Why no exception to DownloadService.loadPart Function when network is down?

The function call to loadPart(jarlist, lisenter) hangs ( no exception) when network is down. This is not happening always.
I am using in following manner
DownloadService service = (DownloadService ) ServiceManager.lookup("javax.jnlp.DownloadService);
service. loadPart(jarList, listener);
I have tried reproducing this issue by making the network download but not able to reproduce but it has happened couple of time randomly.
kindly help me and provide the solution if somebody has some information about this issue..
Regards,
Piyush

Calling BasicService.isOffline() could be a good preliminary test. Anyway I guess DownloadService relies on HttpURLConnection, you could try playing with default timeout.
Bye.

Similar Messages

  • Why does SL automattically turn back on when I shut down?

    Why does my mac mini automatically restart when I shut down? I shut down via the normal methods (apple menu, Shut down...) and as the shut down process finishes the computer automatically restarts and goes to the log in screen, If I shut down via the log in screen it turn's off. What gives?
    Shouldn't it just shut down when I ask it to and not return me to the log in interface ?
    Help please.Thanks all.

    michael Kirwan wrote:
    Why does my mac mini automatically restart when I shut down?
    Seems that some process is calling it back.
    If I shut down via the log in screen it turn's off. What gives?
    Probably a process in your account and not systemwide.
    Go to System Preferences >> Accounts >> Login Items, and remove them. BShutdown and test. If not go to ~(yourHome)/Library/Contextual Menu Items and move whatever is there to the desktop. Test.
    EDIT: Also, unmount & disconnect all peripherals except Apple keyboard & mouse.
    -mj
    Message was edited by: macjack

  • Captivate 4 won' start when network is down

    Captivate 4 won't start
    up when a network user logs on and the network is down AND the user's home drive points to a network location.
    i know Captivate must be looking for seom files on the network, but can anybody tell me what files they are and if there is a workaround, rather than log on as a local user?

    Since you WERE working over the nextwork on project files, Captivate is tracking where they were located so that it can populate the splash screen links or the Open Recent links in the File menu.
    When it can no longer reach these files...
    So it's still affected by the choice made to work other than locally.  Captivate 5 just degrades more gracefully.

  • When network is down, it took 15 minutes to report ORA-03113 error

    Now I am using OCCI under redhat to develope application to access oracle database. It works well if the connection with datbase is ok.
    But if the network gone down before executing executeQuery of Statement, it took 15 minutes to throw SQLexception and error code is ORA-03113. Is there any solution to decrease the time to wait?
    I am using OCCI by the mode of: Environment::THREADED_MUTEXED | Environment::OBJECT)
    I only installed 2 rpms in redhat:
    oracle-instantclient-basic-10.1.0.3-1
    oracle-instantclient-devel-10.1.0.3-1

    Yes, it is using TCP/IP. It took a long time to change from TCP state ESTABLISHED to CLOSE_WAIT as to tcp/ip.
    I don't know whether there is timeout mechanism in the procotol used between oracle client and oracle server.
    If there is such timeout mechanism, is it possible to configure it in OCCI? For example, if the network layer
    uses select with timeout option, then the timtout is possible to control. But now it seems that it is not clear to set such configuration. Or is there such nonblocking mode in OCCI?
    Or we can assume that oracle client library just depend on the tcp/ip protocol implementataion to detect that the tcp is broken. And the fact is in windows platform, the OCCI client will throw exception after about 2 minutes.
    Thanks in advance for any suggestion!

  • Why can't use all the function when deployed Duke Bank successfully

    i am use the DukesBankApp.ear in j2eetutorial14 to deployed .When i change the "public Object ejbCreate() throws CreateException" to "public String ejbCreate() throws CreateException",deployed Duke Bank successfully
    But,I open the client,i can not use all the function. for example,when i creat new customer or account .Applecation message watch will say "remote exception"
    why?or send the true DukesBankApp.ear to me .My mailbox is "[email protected]"
    thinks!!!!! i want to receive your help imminence!think you very much!

    the sever log say:
    [#|2005-05-10T22:39:18.609+0800|信息|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=13;|
    javax.ejb.EJBException: createCustomer: Could not create Entity EJB; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalUserException: JDO76604: JNDI lookup for cmp-resource 'jdbc/BankDB' failed.
    NestedException: javax.naming.NameNotFoundException: BankDB not found
         at com.sun.ebank.ejb.customer.CustomerControllerBean.createCustomer(Unknown Source)
         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:324)
         at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:930)
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
         at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:128)
         at $Proxy27.createCustomer(Unknown Source)
         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:324)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:117)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:651)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:190)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1653)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1513)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:895)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:172)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:668)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:375)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:284)
         at com.sun.corba.ee.impl.transport.ReaderThreadImpl.doWork(ReaderThreadImpl.java:73)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)
    |#]

  • Why is exception not thrown in AseCommand when "Truncation error occurred"?

    In the below SQL, data is written to SOURCE and from there to TARGET.
    The DECIMAL columns in TARGET are deliberately smaller than those in SOURCE (eg a DECIMAL (12, 2) column populated from a DECIMAL (19,11) source).
    When I run this in an Query tool (eg, SqlDbx) I get the messages:
    "Truncation error occurred
    Command has been aborted"
    But when I run this using the .net Client (supplied with the Developer Edition of ASE 16.0) no exception is thrown (the INSERT fails though).  The method is AseCommand.ExecuteNonQuery().
    Is this deliberate? 
    Is this believed to be correct?
    How can I tell that a truncation error has been raised?
    Thanks
    IF OBJECT_ID ('dbo.TARGET') IS NOT NULL
      DROP TABLE dbo.TARGET
    GO
    CREATE TABLE dbo.TARGET
      S_Name_NVARCHAR NVARCHAR (50) null,
        S_RedComponent_DEC_15_6 decimal(15, 6) NULL,
        S_BlueComponent_DEC_12_2 decimal(12, 2) NULL, 
        S_GreenComponent_DEC_18_10 decimal(18, 10) NULL
    GO
    IF OBJECT_ID ('dbo.SOURCE') IS NOT NULL
      DROP TABLE dbo.SOURCE
    GO
    CREATE TABLE dbo.SOURCE
      Name_NVARCHAR      NVARCHAR (2000) NULL,
      RedComponent_DEC   DECIMAL (19,11) NULL,
      GreenComponent_DEC DECIMAL (19,11) NULL,
      BlueComponent_DEC  DECIMAL (19,11) NULL
    GO
    INSERT INTO dbo.SOURCE (Name_NVARCHAR, RedComponent_DEC, GreenComponent_DEC, BlueComponent_DEC)
    VALUES ('Beige', 272.195, 272.195, 244.42)
    GO
    INSERT INTO dbo.SOURCE (Name_NVARCHAR, RedComponent_DEC, GreenComponent_DEC, BlueComponent_DEC)
    VALUES ('Bisque', 283.305, 253.308, 217.756)
    GO
    INSERT INTO dbo.SOURCE (Name_NVARCHAR, RedComponent_DEC, GreenComponent_DEC, BlueComponent_DEC)
    VALUES ('Black', 0, 0, 0)
    GO
    INSERT INTO dbo.SOURCE (Name_NVARCHAR, RedComponent_DEC, GreenComponent_DEC, BlueComponent_DEC)
    VALUES ('BlanchedAlmond', 283.305, 261.085, 227.755)
    GO
    --Is there data to migrate?
    SELECT LEFT( S.Name_NVARCHAR,8000),S.GreenComponent_DEC,S.GreenComponent_DEC,S.GreenComponent_DEC
    FROM (
    SELECT * FROM SOURCE
    ) S
    --Yes.migrate away!
    --Next line gives a truncation error occurred in Sybase (gives a truncation error occurred in a query tool
    --but fails silently in AseCommand.ExecuteNonQuery).
    INSERT dbo.TARGET (S_Name_NVARCHAR,S_RedComponent_DEC_15_6,S_BlueComponent_DEC_12_2,S_GreenComponent_DEC_18_10)
    SELECT LEFT( S.Name_NVARCHAR,8000),S.GreenComponent_DEC,S.GreenComponent_DEC,S.GreenComponent_DEC
    FROM (
    SELECT * FROM SOURCE
    ) S
    select * from dbo.TARGET

    Hi Dave,
    I am consulting internally on this. To my understanding, this behavior is based on the ASE severity level, as returned in the TDS_EED token. AseExceptions are thrown when severity level is 11 or higher.
    Our docs are not explanatory in this regard.  Once I get clarification we will provide something in the form of wiki or KBA or doc bug to further explain the detail.  Apologize for the delay and problems this caused. I guess since the command is aborted by ASE, therefore no insertion occurs, even though ASE indicates truncation occurs prior - makes this confusing.
    The message severity, etc is controlled by ASE and the client is just following suit according to the TDS spec. Its just lacking in the client docs. This can be remedied.
    ASE does provide the option to allow truncation and not abort.  It's a set command:
    Enter a query:
    1 > set arithabort numeric_truncation off
    Enter a query:
    1 > INSERT dbo.TARGET (S_Name_NVARCHAR,S_RedComponent_DEC_15_6,S_BlueComponent_DEC_12_2,S_GreenComponent_DEC_18_10) SELECT LEFT( S.Name_NVARCHAR,8000),S.GreenComponent_DEC,S.GreenComponent_DEC,S.GreenComponent_DEC FROM (SELECT * FROM SOURCE
    ) S
    4 rows Affected.
    Notice though ASE does NOT send truncation message. This is when it is well known and accepted to insert and truncate the numeric data.
    Cheers,
    -Paul

  • No sound, except for the bubble sound when volume up/down.

    Hi,
    Some days ago all my apps (youtube, music player, even steam games such as dota 2) have no sound.
    It is very strange because if I increase or decrease the sound voume in gnome3, i do hear the bubble sound it makes.
    Also I can test the sound and hear the lady saying "front left" and "front right".
    Can someone point me where to start looking? I have pulseaudio installed and I am using a laptop. If I log into windows the sound works so hardware problem should be discarded.
    EDIT: Inside 'deadbeef' application (music player), I could see the list of output devices,
    I selected "HDA Intel PCH, ALC282 Analog, Front Speakers" and it worked.
    If i let the default device, "Default Alsa Output (Pulseaudio sound server)" it does not work.
    Unless I can change the device manually, the problem will always come. So I still need a root solution.
    any help is welcome.
    Last edited by labotsirc (2014-11-24 14:05:38)

    Check your notification settings for the items not being notified...
    settings / notifications / messages... and check the items are ON
    - text tone
    - view in lock screen (otherwise you'll only be notified when unlocking your iPhone).
    Also, plug in your earphones and check if you hear the sounds... then unplug them and test your sounds again...

  • How to buffer data when network goes down

    I am not a LabView programmer.  One of the programmers here has written a program which writes data to a network computer.  Unfortunately on occassions where the network has a glitch maybe for a few seconds or even a fraction of a second. the program will lose all of the data which it was writing.
    Is there anyway in which they could write the program so that it would buffer the data and save it else where.

    TCP is designed to handle small network outages automatically. You should not need to worry about loosing data unless the outage is excessive or you are using a stateless protocol such as UDP instead of TCP. Just make sure you are using a single TCP connection for the entire communication.
    If you use UDP, buffering will involve some code to make sure that only lost segments get retransmitted. You could do some out of band communnication (e.g. on a second port) so the two sides can detect network glitches and keep each other informed.
    This will not be easy unless you know some LabVIEW, though.
    LabVIEW Champion . Do more with less code and in less time .

  • Why does the screen turn back on when the brightness is turned down?

    Hi,
    I bought a macbook pro (Mac OS X 10.6.8), and just recently last week when i turn the brightness down to black, after a couple minutes later the screen turns back on. Then when i touch the trackpad then it goes back to black. Is there any way where i can change this setting??? because this didn't happen before and now it just constantly occurs.

    michael Kirwan wrote:
    Why does my mac mini automatically restart when I shut down?
    Seems that some process is calling it back.
    If I shut down via the log in screen it turn's off. What gives?
    Probably a process in your account and not systemwide.
    Go to System Preferences >> Accounts >> Login Items, and remove them. BShutdown and test. If not go to ~(yourHome)/Library/Contextual Menu Items and move whatever is there to the desktop. Test.
    EDIT: Also, unmount & disconnect all peripherals except Apple keyboard & mouse.
    -mj
    Message was edited by: macjack

  • HT1665 There is a bug in the spellchecking functionality when typing in the web view or while using Blogsy App. Why? Why my IPad crashes so often?

    There is a bug in the spellchecking functionality when typing in the web view or while using Blogsy App. Why? Why my IPad crashes so often?

    I have always found spell check to be "buggy" in every version of all of the iOS's that I have run on my original model iPad and my new iPad - especially when replying and typing posts in these forums. It works perfectly in every other application on my iPad but it has never worked perfectly in any web browser that I have used on my iPad - no matter what I have done to try to correct it. That is what MY experience has been with spell check on my iPads.
    As for the crashes on your iPad try these basic troubleshooting steps.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Quit all apps and restart. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • Why have I been prompted to refresh when don't remember any problems except slow to open? Don't think I reported this.

    Why have I been prompted to refresh when don't remember any problems except slow to open? Don't think I reported this, but need to. It is a huge problem, most times takes >3 min for browser to open! I click on task bar icon and wait. Then right click & choose Moz FF. Eventually 2 screens open. I hope I don't have to refresh to clear this up. TY, Gracie

    https://support.mozilla.org/en-US/kb/refresh-firefox-reset-add-ons-and-settings - ''please read what the Refresh does, and what is saved and what is removed''
    When certain parameters are exceeded in Firefox operation, the internal Firefox Health Reporting feature make a "decision" inside your Firefox installation to raise that message recommending a "Refresh". It's your option to do the "Refresh" or not. I you don't "Refresh" whatever is causing your problems isn't going to be corrected or reset.
    https://support.mozilla.org/en-US/kb/firefox-health-report-understand-your-browser-perf
    https://support.mozilla.org/en-US/kb/firefox-health-report-says-your-browser-is-slow

  • Exception error_message in rfc function module

    Hi all,
    I am getting a short dump Raise exception in my R/3 system when calling a RFC function module in R/3 for printing  a label in LOFTWARE. The error analysis shows the that exception condition 'Nlink exception' condition raised . The rfc destination is working fine  and also i have included the predefined exceptions system_failure and communication_failure and also I have used RFC_PING function module before calling teh rfc for printing . Yet it is giving short dump.
    I heard that if we include one more exception error_message with return code 99
    ie exceptions
        system_failure = 1
        communictaion_failure = 2
        error_message = 99. there will be no short dump.
    Can anyone explain me why the return code for exception error_message is not 3 but 99 and also what is the significance of this.
    Need your help.

    from dump no information is available also it last occured 5 days ago so refreshed from our system..
    I want to know what is the importance of the return code 99 here...
    can anyone clarify this concept and aslo genrally in rfc exception handling communication_failure and system_failure can handle all type of exceptions then why error_message exception is added with a return code of 99..

  • Need of exception handler in calling function, isn't that weird???

    Hi,
    I have written a function as follows
    public String fetchName(String query) throws Exception
              stmt = con.createStatement();
              ResultSet rs = stmt.executeQuery(query);
              rs.next();
              return (rs.getString(1));
    I've handled the for exceptions here using "throws Exception". Inspite of that when i call it from other function and in that funtion no exception need to be handled, compiler gives errror.
    Following is the calling funtion
    public String checksubAction(String action)
              String retValue=" ";
    String query="";
              query = "select Title from dbo.Folder where Folder_Id="+folderId;
              retValue = dataBaseObj.fetchName(query);                                        
    but when i write it in try-catch block, no errror is given.
    Why is it that inspite of handling exception(s) in the called function, we need to handle them in calling functions.

    No you have not handled the exception. Your code say "fetchName" does NOT handle exceptions of type "Exception", the calling method should be aware of this, and handle that type of exception.
    The Java Tutorial: Essential Java Classes: Handling Errors Using Exceptions
    (Please when declaring a method can throw exceptions, be specific, i.e. throw SQLException in this case)

  • Need to avoid exception w.r.t database when caching disabled, skip database

    I have a situation here.
    Want to bypass database connection if caching disabled. If caching found enable, only then try to establish a database connection.
    One part of application should work when database is down as it doesn't require connection to database at all.
    While other parts should throw exception when database connection not available.
    the piece of code looks like this:
    public byte[] getStagedSchedule(long begin, int channelID, String stage, String username, String password, Number releaseID, Number planningTypeId ) throws SchedExExportException, SecurityServiceException
    byte[] ret = null;
    try
    Date myDate = new Date(begin);
    this.stageConfig = new StageConfig(stage, new Integer(channelID), myDate);
    if(!this.stageConfig.isCached())
    IService service = null; //database connection not required here (can handle that part)
    StageAccessService myStage = new StageAccessService(service, myDate, new Integer(channelID), stage,username, releaseID, planningTypeId);
    try{
    ret = myStage.getXML();
    catch(SchedExExportException e){
    LogUtils.getExtLogger().error("PSIStopProcessException: " + e.getMessage(), null, null, e);
    throw new SchedExExportException(e);
    else{
    IService service = ServiceFactory.getInstance("TxSchedEx"); //database connection string
    StageAccessService myStage = new StageAccessService(service, myDate, new Integer(channelID), stage,username, releaseID, planningTypeId);
    ret = myStage.getXML();
    if(service != null)
    service.release();
    catch (ServiceException e)
    LogUtils.getExtLogger().error("ServiceException: " + e.getMessage(), null, null, e);
    throw new SchedExExportException(e);
    return ret;
    Now this code is working as per my requirement. for the time being.
    But have two major problems to be solved here.
    1) this piece of code :
    this.stageConfig = new StageConfig(stage, new Integer(channelID), myDate);
    is getting called in other class as well. i.e. inside this:
    StageAccessService myStage = new StageAccessService(service, myDate, new Integer(channelID), stage,username, releaseID, planningTypeId);
    have initialise method. which internally calls this method:
    private boolean initialize(IService service, Date date, Number channel, String stage, Number releaseId, Number planningTypeId) throws PSIStopProcessException
    boolean ret = false;
    if ( ( null != service ) && ( null != date ) && ( null != channel)&& ( null != stage))
    this.service = service;
    this.scheduleDate = date;
    this.scheduleChannel = channel;
    this.stageConfig = new StageConfig(stage, channel, date);
    this.planningTypeId = planningTypeId;
    this.givenReleaseId = releaseId;
    ret = true;
    initRelease(releaseId);
    else if ( ( null == service ) && ( null != date ) && ( null != channel)&& ( null != stage)) // just to handle if database connection not available.
    this.scheduleDate = date;
    this.scheduleChannel = channel;
    this.stageConfig = new StageConfig(stage, channel, date);
    this.planningTypeId = planningTypeId;
    this.givenReleaseId = releaseId;
    ret = true;
    return ret;
    Because StageAccessService is the real entry point for all other classes to access information about stage (staging). (So making StageConfig singleton, won't help me)
    Now is there any way i can avoid :
    this.stageConfig = new StageConfig(stage, channel, date);
    getting called twice in my code.
    why this is required is this method checks for caching real values.
    public byte[] getXML() throws SchedExExportException
    byte[] ret = null;
    if ( !this.stageConfig.isCached() )
    ret = dynamicLoadXML();
    else
    ret = loadReleaseFromStage();
    if (ret == null && this.stageConfig.isLazyLoading())
    ret = dynamicLoadXML();
    saveScheduleInStage(ret);
    and so on.............
    try{
    if (this.stageConfig.isTransformSchedules() && ret != null)
    etc
    2) Other workaround can be like: check if database connection is there or not. log the exception in catch block. but don't throw back.
    So that the part which doesn't require database connection can work. But if request is not calling that part, then better throw exception also.
    I don't know whihc approcah is good in this case.
    Can anyone suggest anything better then this.
    thanks.

    I'm afraid that you need to provide further info about your two databases like versions, whether they have the replication option installed etc.
    Generally speaking you have two methods available:
    1. Use the replication options (needs setup like repadmins, master sites, snapshots etc)
    2. Script it yourself (ie rewrite the replicator :-) trough DBlinks, stored procedures etc.
    I would reccommend option 1 since you do not need to re-invent the wheel.
    null

  • Need help me in usage of below given functions when MOAC set

    Hi,
    Can somebody help me in answering for the below questions?
    In R12, I set MO:Security profile at responsibility level and the profile has three OUs. Please see the below code.
    declare
    v_orgid1 NUMBER;
    v_orgid2 NUMBER;
    v_orgid3 NUMBER;
    v_orgid4 NUMBER;
    v_orgid5 NUMBER;
    l_count NUMBER;
    l_ou_cnt NUMBER;
    v_user_id varchar2(100);
    v_resp_id varchar2(100);
    v_resp_appl_id varchar2(100);
    begin
    l_ou_cnt := mo_global.get_ou_count;
    fnd_profile.get('USER_ID', v_user_id);
    fnd_profile.get('RESP_ID', v_resp_id);
    fnd_profile.get('RESP_APPL_ID', v_resp_appl_id);
    fnd_global.apps_initialize(v_user_id, v_resp_id, v_resp_appl_id);
    MO_GLOBAL.INIT('PO');
    mo_global.set_policy_context('M',NULL);
    v_orgid1 := mo_global.get_current_org_id;
    FND_PROFILE.GET('ORG_ID', v_orgid2);
    v_orgid3 := FND_GLOBAL.ORG_ID;
    v_orgid4 := FND_PROFILE.VALUE('ORG_ID');
    v_orgid5 := po_moac_utils_pvt.get_current_org_id;
    SELECT count(1)
    into l_count
    FROM PO_HEADERS
    WHERE EXISTS (SELECT 1 FROM mo_glob_org_access_tmp oa WHERE oa.organization_id = org_id);
    end;
    Qns:
    1. FND_GLOBAL.ORG_IDFND_PROFILE.GET, FND_PROFILE.VALUE, PO_MOAC_UTILS_PVT, MO_GLOBAL functions are not returning org_id when mo security profile is initialized. the functions are returing -1 or NULL some times. Is there any specific function in R12 to return ORG_ID, if same functions when to use?(the functions are working fine when mo global is intialized for single org)
    2. Irrespctive to where clause, the select statment is returning count of records for all mo security profile enabled orgs. Then why should not I get the records directly from ALL tables by using same where clause? Is there any specific reason in using Synoniams (poheaders, ....like)?
    3. Can somebody explain usage of mo_global.get_current_org_id, po_moac_utils_pvt.get_current_org_id? If getting only for org_id in which case should i use both?
    Appreciate your help !!!
    Thanks

    Do have the answers for the questions? If so can you post those?
    Thank you!

Maybe you are looking for