Facing error as Not in an application scope - start Orion with the -userThr

hi all,
iam facing this error when an jsp which is in Oracle portal(emebedded in iframe code) is updating a flag in database through a datasource configured on portal side.
Naming Service=Not in an application scope - start Orion with the -userThreads switch if using user-created threads
regards,
Ravi

I encounter the same issues when using the TimerTask to access the JNDI tree. I have found success when I move my business logic to an EJB and call my EJB from my TimerTask. It's a bit more work, but not much. The EJB inherits it's identity based on it's configuration and has no trouble accessing the JNDI tree whenever it's called. Try this and see if your problem doesn't go away.
Hope this helps,
Perry Tew

Similar Messages

  • OC4J- NamingException: Not in an application scope

    I have a JMS program(ResourceAdapter) which I am deploying on OC4J 10g (10.0.3.0.0) .
    The program first creates InitialContext object and and then looks for the JMS connection factory and JMS queue in the "start" method of resource adapter. When I deploy this program everything works fine first, but later when I bounce oc4j, I start
    getting "javax.naming.NamingException: Not in an application scope"
    exception. Can someone suggest me what could be causing this?
    I have tried restarting the oc4j with userThreads option but it doesn't help.
    Program code:
    try{
    mContext = new InitialContext();
    System.out.println("**************1**********");
    mQueueCF =
    (QueueConnectionFactory)mContext.lookup("ojmsjra/MyQCF");
    System.out.println("**************2************");
    mQueue= (Queue)mContext.lookup("ojmsjra/QUEUE");
    System.out.println("**************3*********");
    }catch(Exception ex){
    ex.printStackTrace();
    After oc4j is restart only "**1**" gets printed and the following exception(lookup fails)
    04/09/27 15:56:15 javax.naming.NamingException: Not in an application scope - start Orion with the -userThreads switch if using user-created threads
    04/09/27 15:56:15 at com.evermind.server.PreemptiveApplicationContext.getContext(PreemptiveApplicationContext.java:29)
    04/09/27 15:56:15 at
    com.evermind.naming.FilterContext.lookup(FilterContext.java:127)
    04/09/27 15:56:15 at
    com.evermind.server.PreemptiveApplicationContext.lookup(PreemptiveApplicationContext.java:48)
    04/09/27 15:56:15 at
    javax.naming.InitialContext.lookup(InitialContext.java:347)
    04/09/27 15:56:15 at
    oracle.panama.messaging.driver.DriverResourceAdapter.<init>(DriverResourceAdapter.java:40)
    04/09/27 15:56:15 at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    04/09/27 15:56:15 at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    04/09/27 15:56:15 at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    04/09/27 15:56:15 at
    java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    04/09/27 15:56:15 at java.lang.Class.newInstance0(Class.java:306)
    04/09/27 15:56:15 at java.lang.Class.newInstance(Class.java:259)
    04/09/27 15:56:15 at
    com.evermind.server.connector.deployment.ConnectorArchive.createJavaBeanInstance(ConnectorArchive.java:462)
    04/09/27 15:56:15 at
    com.evermind.server.connector.deployment.ConnectorArchive.start(ConnectorArchive.java:360)
    04/09/27 15:56:15 at
    com.evermind.server.Application.initConnectors(Application.java:444)
    04/09/27 15:56:15 at
    com.evermind.server.Application.postInit(Application.java:681)
    04/09/27 15:56:15 at
    com.evermind.server.Application.setConfig(Application.java:201)
    04/09/27 15:56:15 at
    com.evermind.server.Application.setConfig(Application.java:170)
    04/09/27 15:56:15 at
    com.evermind.server.ApplicationServer.initializeApplications(ApplicationServer.java:1708)
    04/09/27 15:56:15 at
    com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1412)
    04/09/27 15:56:15 at
    com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
    04/09/27 15:56:15 at java.lang.Thread.run(Thread.java:536)

    Gedomir,
    Thanks for the reply. But unfortunately it did not work. I was using the default initial context. I tried setting the properties as well. Even then it did not work.
    I am trying this with oc4j_extended.
    Thanks again.

  • Flex in a week: error Could not resolve s:Application to a component implementation

    Hi All, I've seen other posts mentioning this error but seems no fix has come up.
    Was just trying out the example project for Flex in a Week and out of the box am stuck on
    " Could not resolve <s:Application> to a component implementation "
    the namespace and all expected attributes are in the s:Application tag.
    Is there a common fix for using these samples?
    thanks everyone for your consideration.

    Thanks, I am using Flex Builder 3.

  • Will the Application Scope be shared across the cluster in a multi-node OC4

    Hi,
    I have the following requirement:
    Users of the application can only have single (browser) session. When a user who already has a session connects again, he should no longer be allowed to access the older session.
    My proposed implementation is:
    -     After successful login – possibly using a Session Listener - an entry is made in a HashMap UserSessions that lives in the application scope. Key is the username, value is the session id (HttpSession.getId()).
    -     For every request, using a ServletFilter, we check whether the session is still in the UserSessions HashMap for the current user. If a new session has been created for the same user, the session id for that new session is in the UserSessions map and the servletfilter will not find the session. In that case, the filter should invalidate the session and forward to the user to an error page.
    However, the application will run on a multi-node OC4J cluster. I am starting to wonder:
    Will the Application Scope be shared across the cluster in a multi-node OC4J environment?
    I know session state can be shared. But what application state/scope?
    Does anyone know? Do I have to do anything special in the cluster or the application to get this to work?
    Thanks for your help.
    Lucas

    gday Lucas --
    Application scope is not replicated across JVM boundaries with OC4J.
    I'm sure this used to be described in the doc, but I can't find it now from a quick scan.
    If you wanted to use this type of pattern, you could look to use a Coherence cache as distribution mechanism to share objects across multiple JVMs/nodes.
    -steve-

  • Error - Applications File Server connection with the node FNDFS_WIN2000.

    ERROR:
    An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_WIN2000. There may be a network configuration problem, or the TNS listener on node FNDFS_WIN2000 may not be running. Please contact your system administrator.
    When I try to submit concurrent request error occured which I mentioned above.
    Platform:Windows2000 server
    Apps Version:11.5.3 Vision
    Db version:8.1.6.0.0
    Environment:Windows2000 server(Stand aloe).
    I have one listener in database, I am sending you to my tns and listener files.
    DB listener and tns file.
    # LISTENER.ORA Network Configuration File: J:\oracle\visdb\8.1.6\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_VIS =
    (SID_DESC =
    (SID_NAME = VIS)
    #(ORACLE_HOME = J:\oracle\visdb\8.1.6)
    SID_LIST_VIS =
    (SID_LIST =
    ( SID_DESC = ( SID_NAME = FNDFS )
    ( ORACLE_HOME = J:\oracle\visora\8.0.6 )
    ( PROGRAM = J:\oracle\visappl\fnd\11.5.0\bin\fndfs.exe )
    ( envs='EPC_DISABLED=TRUE,NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1' )
    STARTUP_WAIT_TIME_APPS_VIS = 0
    CONNECT_TIMEOUT_APPS_VIS = 10
    TRACE_LEVEL_APPS_VIS = OFF
    LOG_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
    LOG_FILE_APPS_VIS = APPS_VIS
    TRACE_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
    TRACE_FILE_APPS_VIS = APPS_VIS
    VIS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = win2000)(PORT = 1521))
    # TNSNAMES.ORA Network Configuration File: J:\oracle\visdb\8.1.6\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    VIS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = win2000)(PORT = 1521))
    (CONNECT_DATA =
    (SID = vis)
    Client Site tns and listner.
    # TNSNAMES.ORA FOR APPLICATIONS
    # Created by Rapid Install
    # Net8 definition for the database
    VIS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = win2000)(PORT = 1521))
    (CONNECT_DATA =
    (SID = VIS)
    FNDFS_WIN2000 = (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=win2000)(PORT=1523))
    (CONNECT_DATA=(SID=FNDFS))
    Rep60_VIS,Rep60_VIS.world=(ADDRESS=(PROTOCOL=tcp)(HOST=win2000.apps.com)(PORT=7002))
    # LISTENER.ORA FOR APPLICATIONS
    # Created by Rapid Install
    # Net8 definition for FNDFS listener
    SID_LIST_VIS =
    (SID_LIST =
    ( SID_DESC = ( SID_NAME = FNDFS )
    ( ORACLE_HOME = J:\oracle\visora\8.0.6 )
    ( PROGRAM = J:\oracle\visappl\fnd\11.5.0\bin\fndfs.exe )
    ( envs='EPC_DISABLED=TRUE,NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1' )
    STARTUP_WAIT_TIME_APPS_VIS = 0
    CONNECT_TIMEOUT_APPS_VIS = 10
    TRACE_LEVEL_APPS_VIS = OFF
    LOG_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
    LOG_FILE_APPS_VIS = APPS_VIS
    TRACE_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
    TRACE_FILE_APPS_VIS = APPS_VIS
    Any help I appreciate in advance, I have been working on this issue since one week.
    Thanks,
    Kindest Regards
    Zeeshan Siddiqui

    Duplicate post ..
    Error - An error occurred while attempting to establish an Applications Fil

  • Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found  This error is generated when there was no web page with the name you specified at the web site.-is the problem with iweb or with hosting?  T

    I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
    Have published iweb site for five years with no problems and just opened a new site and get -
    404: Page not found 
    This error is generated when there was no web page with the name you specified at the web site.-
    Troubleshooting suggestions:
    Ensure the page you are linking to exists in the correct folder.
    Check your file name for case sensitivity . Index.htm is not the same as index.htm!
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
    is the problem with
    iweb or with hosting?
    One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
    to local folder. NWS has checked sttting a few times-
    Any help would be extremely appreciated as trying to fix this for about five weeks
    Thanks VG
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
    You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
    If that's not the page you are having trouble with, what is that page's URL?

  • The action could not be completed because of a conflict with the original item. The conflict may have occurred when an existing item was updated on another computer or device. Open the item again and try making your changes. If the problem continues, cont

    I have a user on an iMac 10.6 connected to our domain.  She uses Outlook web access for email on our exchange server.  Last week she received the following message which is randomly preventing her from sending emails.  She claims no attachment was involved in the original email when this all started.  I have not been able to look at her account as she is out of the office but maybe someone else dealt with this issue.  I realize this may not be Mac related but thought I'd give it a try.  She did say it occurred once over two days while working on a PC but it continued over the past weekend.
    If an internal user tries to send a message with infected attachment using Outlook Web Access, it may report the following error message: The action could not be completed because of a conflict with the original item. The conflict may have occurred when an existing item was updated on another computer or device. Open the item again and try making your changes. If the problem continues, contact technical support for your organization.
    This is because F-Secure Anti-Virus for Microsoft Exchange has detected a virus in the attachment. If the user tries to send the message again, the message will be sent but without the attachment. At the same time a blank message with an attachment named "Attachment_information.txt" will remain in the user's Drafts folder. The "Attachment_information.txt" will contain information about the virus detected in the message.

    PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
    If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!!

  • The Web Dynpro application was called up with the wrong URL parameters

    Hi all,
    I am using the systems below:
    ERP STACK :16
    EHP : 4
    EHP SP Stack :4
    EA-HR * : 604(SP12)
    SAP-HR * :604(SP12)
    XSS JAVA components : SAP ESS 603 SP05
    SAP MSS 600 SP16
    PCUI_GP 603 SP05
    Business Package : BP ERP05 ESS 1.41 SP04
    BP ERP05 MSS 1.41 SP04
    BP ERP05 COMMON PARTS 1.41 SP04
    I am getting below error after clicking on the appraisal document:
    App. Called Up Incorrectly
    The Web Dynpro application was called up with the wrong URL parameters.
    Note
    Enter the URL parameters and their use.
    You can find more information on the functions that you can perform in the catalog for appraisal templates in the Implementation Guide (IMG) for Objective Setting and Appraisals under Edit Forms.
    I already applied the below notes also:
    1468466 Performance Management Launchpad Configuration
    1463821 Performance Management Portal Configuration
    1416756 OBN Configuration in Performance Management
    1408243 Configuration for object-based navigation
    Plz advise me??
    Thanks,
    Anumit

    can you paste the exact error. also you can take a HTTP trace and see which resourse or UWL is being launched!

  • Applications File Server connection with the node FNDFS_PROR

    I run the report and workflow sent me a link refer to the report output. However, I receive the following link after I click the link.
    What is it?
    An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_PRORSGSDB. There may be a network configuration problem, or the TNS listener on node FNDFS_PRORSGSDB may not be running. Please contact your system administrator.
    Thanks,
    Amy

    Hi Amy,
    I run the report and workflow sent me a link refer to the report output. However, I receive the following link after I click the link.Was it working before? Any recent changes in the system? Whats your APPS and DB version.
    An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_PRORSGSDB. There may be a network configuration problem, or the TNS listener on node FNDFS_PRORSGSDB may not be running. Please contact your system administrator.As preliminary checks do the following,
    1. Check the system profiles RRA: Service Prefix, SITE value should be FNDFS or blank
    2. Run "Report Review Agent Setup Test" and see if it returns any errors.
    [Oracle Application Object Library Report Review Agent Setup Test|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=200358.1]
    3. Let us know the query output
    SQL> select CONCURRENT_QUEUE_NAME
    from FND_CONCURRENT_QUEUES
    where CONCURRENT_QUEUE_NAME like 'FND%';
    Thanks,
    Anchorage :)

  • I'm getting the following error message when ever I try to start cs6 and the program gets close. "Adobe Photoshop CS6 has stopped working. A problem caused the program to stop working correctly."

    Hi,
    I’m getting the following error message when ever I try to start cs6 and the program gets close.
    “Adobe Photoshop CS6 has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available”
    Please advise what is the problem? and How to sort this out?
    OS Name
    Microsoft Windows 8.1 Pro
    Version
    6.3.9600 Build 9600
    Other OS Description
    Not Available
    OS Manufacturer
    Microsoft Corporation
    System Name
    JARVIS
    System Manufacturer
    Dell Inc.
    System Model
    Inspiron N5110
    System Type
    x64-based PC
    System SKU
    To be filled by O.E.M.
    Processor
    Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    BIOS Version/Date
    Dell Inc. A11, 8/3/2012
    SMBIOS Version
    2.6
    Embedded Controller Version
    1.01
    BIOS Mode
    Legacy
    BaseBoard Manufacturer
    Dell Inc.
    BaseBoard Model
    Not Available
    BaseBoard Name
    Base Board
    Platform Role
    Mobile
    Secure Boot State
    Unsupported
    PCR7 Configuration
    Binding Not Possible
    Windows Directory
    C:\Windows
    System Directory
    C:\Windows\system32
    Boot Device
    \Device\HarddiskVolume2
    Locale
    United States
    Hardware Abstraction Layer
    Version = "6.3.9600.17196"
    User Name
    Jarvis\JARVIS\Abhishek
    Time Zone
    India Standard Time
    Installed Physical Memory (RAM)
    4.00 GB
    Total Physical Memory
    3.16 GB
    Available Physical Memory
    1.21 GB
    Total Virtual Memory
    3.72 GB
    Available Virtual Memory
    1.55 GB
    Page File Space
    576 MB
    Page File
    C:\pagefile.sys
    Hyper-V - VM Monitor Mode Extensions
    Yes
    Hyper-V - Second Level Address Translation Extensions
    Yes
    Hyper-V - Virtualization Enabled in Firmware
    Yes
    Hyper-V - Data Execution Protection
    Yes
    Display adapters:
      and NVIDIA GeForce GT 525M.

    Without the actual crash logs nobody can say, but chances are that your graphics hardware is to blame, so update the driver...
    Mylenium

  • Errors Pku2ulog failed to start 0xC--35, Negolog failed to start, IDListenLog failed to start, P2PLog failed to start and HomegroupLog failed to start, all with the same failure code 0xC-- 35.

    Hi There,
    I'm getting the errors below and but I have not got any BSOD.
    The errors I'm getting in eventviewer are Pku2ulog failed to start 0xC--35, Negolog failed to start, IDListenLog failed to start, P2PLog failed to start and HomegroupLog failed to start, all with the same failure code 0xC-- 35.
    This is what the logs files says about each error.
    Pku2ulog:
    Unknown( 10): GUID=c36a26fb-03a9-d591-3984-dc17e4a48527 (No Format Information found).
    p2plog:
    Unknown( 89): GUID=fc9d5ca5-e6c8-627c-be74-e6e0a98bbf57 (No Format Information found).
    negolog:
    Unknown( 37): GUID=2553184f-6f2a-3198-ddb7-93ab1ad2d125 (No Format Information found).
    idlistenlog:
    Unknown( 10): GUID=418a567f-b393-1423-26aa-123149ef8882 (No Format Information found).
    homegrouplog:
    Unknown( 12): GUID=96f7a94a-4343-6ede-ff2b-dd1dafeed500 (No Format Information found).
    However, the 'Unknown(xx)' number changes times to times.
    Could you help me please?
    Thank you very much for your attention.
    Best Regards.

    Hi,
    If you have Home group set up, please go to Control Panel – Network and Sharing Center. Choose homegroup and sharing options and click “Leave the homegroup”.
    Juke Chou
    TechNet Community Support

  • Create SAPUI5 application consuming Gateway service with the help of SAP NW Gateway Plug-in for Eclipse

    Hi,
    I followed the amazing SAPUI5 blog :
    How to create SAPUI5 application consuming Gateway service with the help of SAP NW Gateway Plug-in for Eclipse
    I was able to resolve all errors mentioned in this blog but then i get another error :
    Uncaught TypeError: Cannot read property 'dataServices' of undefined
    Any idea what is the problem.
    Thanks a lot!
    Amina

    Hi,
    I followed the amazing SAPUI5 blog :
    How to create SAPUI5 application consuming Gateway service with the help of SAP NW Gateway Plug-in for Eclipse
    I was able to resolve all errors mentioned in this blog but then i get another error :
    Uncaught TypeError: Cannot read property 'dataServices' of undefined
    Any idea what is the problem.
    Thanks a lot!
    Amina

  • Any suggestions for sources for an internal drive memory for my 13" mid 2010 macbook (not pro)? I'm full up with the 250GB

    any suggestions for sources for an internal drive memory for my 13" mid 2010 macbook (not pro)? I'm full up with the 250GB.

    For a new hard drive try Newegg.com  
    Regular SATA drives http://www.newegg.com/Store/SubCategory.aspx?SubCategory=380&name=Laptop-Hard-Dr ives&Order=PRICE  Use the list at the left for larger and faster drives.
    SSD drives
    http://www.newegg.com/Internal-SSD/SubCategory/ID-636?Order=PRICE  Use the list at the left for larger and faster drives.
    Or OWC for regular hard drives and SSDs  http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
    Here are instructions on replacing the hard drive in a MacBook with a removable battery. http://creativemac.digitalmedianet.com/articles/viewarticle.jsp?id=45088
    Here are video instructions on replacing the hard drive on the Aluminum Unibody
    http://eshop.macsales.com/installvideos/macbook_13_unibody/
    Here are video instructions on replacing the hard drive on the White Unibody http://eshop.macsales.com/installvideos/macbook_13_09_unibody_hd/
    To transfer your current hard drive I like the applications Carbon Copy Cloner or SuperDuper. They make a bootable copy of everything on your hard drive. http://www.bombich.com/index.html or http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html 
    You'll need a cheap SATA external hard drive case. Put the new drive in the case then format and partition the new drive and clone your old drive to the new one. Check that it's set up right by booting up from the external drive. Then replace your old hard drive with the new one and put your old one in the external case.
    Here's a cheap SATA external hard drive case on Amazon http://www.amazon.com/Vantec-NexStar-2-5-Inch-External-Enclosure/dp/B002JQNXZC/r ef=pd_cp_pc_0
    If you don’t have the tools to open up the MacBook OWC has a set for $5
    http://eshop.macsales.com/item/OWC/TOOLKITMHD/

  • Why cant I rotate and save a picture from iphone 4s in windows photo viewer windows 7? the error is cannot save because there is a problem with the photo properties. I can rotate and save screenshots

    why cant i rotate and save a picture from iphone 4s in windows photo viewer windows 7? the error is cannot save because there is a problem with the photo properties. I can rotate and save screenshots

    Windows do not repect the digital EXIF specification. Use a free viewer http://www.irfanview.net/ for Windows.

  • Lightroom crashes at start up with the error message "Lightroom encountered an error when reading from its preview cache and needs to quit".  Please advise on how to fix this error.  Thanks

    Lightroom crashes at start up with the error message "Lightroom encountered an error when reading from its preview cache and needs to quit".  Please advise on how to fix this error.  Thanks

    You probably need to delete your preview cache.  See here  
    Why And How To Clear Your Lightroom Cache - Lightroom Fanatic
    Preference and other file locations in Lightroom 5

Maybe you are looking for