Is the -userThreads switch required when using internal connection?

Hi,
Maybe someone can help me with this.
I have an ADF application module (JDeveloper 10.1.3.4) that uses something similar to dynamic credentials. It's configured so that it uses the jbo.server.internal_connection configuration parameter.
Everything works fine, but from time to time I'm receiving the following error:
oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context java:comp/env/jdbc/internalDS
at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1452)
     at oracle.jbo.server.DBTransactionImpl.getInternalConnection(DBTransactionImpl.java:1402)
     at oracle.jbo.server.DBTransactionImpl.getPersistManagerConnection(DBTransactionImpl.java:1304)
     at oracle.jbo.pcoll.PCollManager.ensureConnection(PCollManager.java:489)
     at oracle.jbo.pcoll.OraclePersistManager.getConnection(OraclePersistManager.java:148)
     at oracle.jbo.pcoll.OraclePersistManager.persistentObjectsExist(OraclePersistManager.java:683)
     at oracle.jbo.pcoll.OraclePersistManager.createTable(OraclePersistManager.java:765)
     at oracle.jbo.pcoll.OraclePersistManager.queryNextCollectionId(OraclePersistManager.java:1388)
     at oracle.jbo.pcoll.PCollManager.register(PCollManager.java:566)
     at oracle.jbo.pcoll.PCollection.<init>(PCollection.java:103)
     at oracle.jbo.pcoll.PCollManager.createCollection(PCollManager.java:464)
     at oracle.jbo.server.DBSerializer.setup(DBSerializer.java:153)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:286)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
     at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5305)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5192)
     at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:332)
     at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7777)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4074)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.manageReferencingState(ApplicationPoolImpl.java:1239)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.finalizeResource(ApplicationPoolImpl.java:1156)
     at oracle.jbo.pool.ResourcePool.removeResourceInternal(ResourcePool.java:749)
     at oracle.jbo.pool.ResourcePool.setState(ResourcePool.java:1004)
     at oracle.jbo.pool.ResourcePool.gc(ResourcePool.java:1423)
     at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:774)
     at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:779)
     at oracle.jbo.pool.ResourcePoolMonitor.run(ResourcePoolMonitor.java:98)
     at java.util.TimerThread.mainLoop(Timer.java:512)
     at java.util.TimerThread.run(Timer.java:462)
## Detail 0 ##
javax.naming.NamingException: Not in an application scope - start OC4J with the -userThreads switch if using user-created threads
     at com.evermind.server.PreemptiveApplicationContext.getContext(PreemptiveApplicationContext.java:30)
     at com.evermind.naming.FilterContext.lookup(FilterContext.java:126)
     at com.evermind.server.PreemptiveApplicationContext.lookup(PreemptiveApplicationContext.java:42)
     at javax.naming.InitialContext.lookup(InitialContext.java:351)
     at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1438)
     at oracle.jbo.server.DBTransactionImpl.getInternalConnection(DBTransactionImpl.java:1402)
     at oracle.jbo.server.DBTransactionImpl.getPersistManagerConnection(DBTransactionImpl.java:1304)
     at oracle.jbo.pcoll.PCollManager.ensureConnection(PCollManager.java:489)
     at oracle.jbo.pcoll.OraclePersistManager.getConnection(OraclePersistManager.java:148)
     at oracle.jbo.pcoll.OraclePersistManager.persistentObjectsExist(OraclePersistManager.java:683)
     at oracle.jbo.pcoll.OraclePersistManager.createTable(OraclePersistManager.java:765)
     at oracle.jbo.pcoll.OraclePersistManager.queryNextCollectionId(OraclePersistManager.java:1388)
     at oracle.jbo.pcoll.PCollManager.register(PCollManager.java:566)
     at oracle.jbo.pcoll.PCollection.<init>(PCollection.java:103)
     at oracle.jbo.pcoll.PCollManager.createCollection(PCollManager.java:464)
     at oracle.jbo.server.DBSerializer.setup(DBSerializer.java:153)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:286)
     at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
     at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5305)
     at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5192)
     at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:332)
     at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7777)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4074)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.manageReferencingState(ApplicationPoolImpl.java:1239)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.finalizeResource(ApplicationPoolImpl.java:1156)
     at oracle.jbo.pool.ResourcePool.removeResourceInternal(ResourcePool.java:749)
     at oracle.jbo.pool.ResourcePool.setState(ResourcePool.java:1004)
     at oracle.jbo.pool.ResourcePool.gc(ResourcePool.java:1423)
     at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:774)
     at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:779)
     at oracle.jbo.pool.ResourcePoolMonitor.run(ResourcePoolMonitor.java:98)
     at java.util.TimerThread.mainLoop(Timer.java:512)
     at java.util.TimerThread.run(Timer.java:462)
This datasource exists and works properly with the persistence table (PS_TXN has records). The detail indicates that I have to start OC4J with the -userThreads switch, but I didn't find in the documentation if this is really necessary and why.
I hope someone can help me with this question.
Thanks in advance,
Tatiana.

Do you get this error while running the AM ?
Can you check in the AM ->Concfigurations (for the AM you are running) as to whats the connection type you are using.
AFAIK , for OC4J it should be JDBC URL and not JDBC datasource which you seem to be using.

Similar Messages

  • Can we set the dynamic data source when using getReportParameters() ?

    Hello!
    I have a report where one of its parameters refers to a list of values (LOVs). This list of values is an SQL Query type. When the data source used in the report is defined in the BI Publisher server, I'm able to get the report parameters using the getReportParameters() function in my application. However, if the data source is not defined the function throws an exception, which is understandable.
    I decided to dynamically set the data source so that even if the data source used by the report is not defined in the BI Publisher server, it still will be able to get the LOVs for the parameter. I tried setting the JDBCDataSource of the dynamicDataSource for the ReportRequest object that I passed to the getReportParameters() function. Please see the sample code below:
    reportRequest.dynamicDataSource = new BIP10.BIPDataSource();
    reportRequest.dynamicDataSource.JDBCDataSource = new BIP10.JDBCDataSource();
    setReportDataSource(reportRequest.dynamicDataSource.JDBCDataSource, connectstr, jdbc, dc); //function to set the values for JDBCDataSource object
    reportParams = webrs.getReportParameters(reportRequest, uid, pwd); //call the getReportParameters
    I was expecting this to work as this is what I did to dynamically set the data source before calling the runReport function. So, my question is -- can we set the dynamic data source when using getReportParameters() ? I tried this both in versions 10g and 11g. It does not seem to work on both versions.
    Regards,
    Stephanie

    report_id column of apex_application_page_ir_rpt can help us uniquely identify each saved report.
    We can assign this report_id value to a page item and this page item can be put in the Report ID Item text box of the Advanced section of the Report Attributes page of the IR.
    This should load the saved report identified by report_id and you can get rid of javascript
    Regards,
    Vishal
    http://obiee-oracledb.blogspot.com
    http://www.packtpub.com/oracle-apex-4-2-reporting/book
    Kindly mark the reply as helpful/correct if it solves your problem

  • Photoshop CS6 crashes all the time and especially when using the type tool... please help!

    Photoshop CS6 crashes all the time and especially when using the type tool... please help!

    Since I did not have this problem with CS5 or CS4, I can only assume something is not right with Photoshop CS6... below is my video card info:
    ATI Radeon HD 4850:
      Chipset Model:          ATI Radeon HD 4850
      Type:          GPU
      Bus:          PCIe
      PCIe Lane Width:          x16
      VRAM (Total):          512 MB
      Vendor:          ATI (0x1002)
      Device ID:          0x944a
      Revision ID:          0x0000
      ROM Revision:          113-B9110C-425
      EFI Driver Version:          01.00.383
      Displays:
    iMac:
      Resolution:          2560 x 1440
      Pixel Depth:          32-Bit Color (ARGB8888)
      Main Display:          Yes
      Mirror:          Off
      Online:          Yes
      Built-In:          Yes
      Connection Type:          DisplayPort
    Cinema HD:
      Resolution:          1920 x 1200
      Pixel Depth:          32-Bit Color (ARGB8888)
      Display Serial Number:          2A80273WXMN
      Mirror:          Off
      Online:          Yes
      Rotation:          Supported

  • CDPOS for the moving avenge price when using MIRO, MIGO & VL31N etc.

    Hi
    Is there a way of tracking all changes with CDPOS for the moving avenge price when using MIRO, MIGO & VL31N etc.
    We can show changes for MR21 in CDPOS but we need to reflect all changes made to the moving avenge price for MIRO, MIGO & VL31N etc. We need to run a report that will show all these changes.
    We run a report to look at all the change records for Moving Avenge Price, We use tables CDPOS & CDHDR, then Change the document Object for both tables to material, so when the report is run you can identify the material by the object value field
    u201CIf you look at CDPOS the fields where reading the data from in the u201CNew Value fieldu201D is CDFLDVALN when I do an F1u201D
    u201CIf you now check MBEW on the u201CMoving Avenge Price fieldu201D, the data reads from VERPR which is the field we need to reflect the changes. If we can change this then the report will worku201D
    Can you help please?
    Edited by: Derrick smith on Nov 28, 2008 1:51 PM

    Hello Jürgen,
    Thank you for your quick reply. I read the note -- it describes the symptom perfectly, and gives example cases which match our situation. However, no solution or recommendation is given. Does it mean that this way of valuating cancellations is not seen as a malfunction, and cannot be changed?
    Thanks in advance.
    Regards,
    Sergei

  • Newsstand suppresses the home screen from the app switcher view when the home button is pressed?

    Newsstand suppresses the home screen from the app switcher view when the home button is pressed.
    Has anyone else seen this before, I needed to lock and unlock iPad to get back to the home screen.

    Aloha Ethan. Fortunately it's working as designed, but you'd never believe how many people wanted to argue with me smply because it worked differently. Can't please everybody I guess.  Bob. 

  • What does the RHD symbol mean when using the multiple speakers?

    i have two 1st gen apple TVs and when i pull up the multiple speakers prompt, i see an acronym "RHD" after each device.
    what does the RHD symbol mean when using the multiple speakers?
    typically i was used to seeing the Apple TV-1  vs. Apple TV-1-RHD??
    What is the difference?

    It's been modified to run Remote HD.
    http://remotehd.com/

  • Will the indexes be ignored when using IMPDP...TABLE_EXISTS_ACTION=SKIP?

    Hi guys,
    11gr2
    suppose that i have a .dmp file which has tables, indexes, and data,
    and i also have a schema A which already contains tables and data, without indexes
    is it possible to use IMPDP to import(or say create) all indexes from .dmp to schema A?
    the relevant question is, when using IMPDP...TABLE_EXISTS_ACTION=SKIP, if the table already exists, will IMPDP ignores the relevant indexes creation?
    thank you!!!

    thanks for the reply.
    actually, i have imported over 100G data to the new server, but after look into the new server, most of the indexes are missing somehow, i don't want to drop the schemas and re-import, it will cost me a whole day to finish, any suggestions?
    many thanks.

  • Do i need to remove the micro sim card when using home wi fi on ipad2

    do i need to remove the micro sim card from the i pad 2 when using wi fi sat home?

    thank you Ralph may i just ask you if your home wifi network is not working do you then have to actively seek the data connection?i suppose i am asking do you need to choose from a menu ?

  • HT4623 I updated my iPod touch to 6.0 iOS and the bejeweled app but when trying to connect to Facebook, I get a message stating that cannot be use on mobile to go to web or something like that

    I updated my iPod touch to 6.0 iOS and the bejeweled app but when trying to connect to Facebook, I get a message stating that cannot be use on mobile to go to web or something like that.....what can I do?

    See:
    iOS: Troubleshooting applications purchased from the App Store
    Contact the developer/go to their support site
    Restore from backup. See:
    iOS: How to back up
    Restore to factory settings/new iPod

  • TS1550 What about when using the "Time Capsule" HD as the external disk, especially when it is connected by ethernet cable? I'm having trouble getting it to work at all. Don't need it to work as anything else, other than a ethernet connected Time Machine

    What about when using the "Time Capsule" HD as the external disk, especially when it is connected by ethernet cable? I'm having trouble getting it to work at all. Don't need it to work as anything else, other than a ethernet connected Time Machine backup. Already have a wireless network that works fine so no need to mess with it. We get the internet via cable company and their modem is upstairs and the Time Capsule is downstairs in the basement. The latest error message was about it could not backup as it was already in use (should have written it down before clicking OK and moving on.

    See if this helps...
    http://pondini.org/TM/C12.html

  • Can you replace existing images in Captivate 7 the way you can when using InDesign?

    Can you replace existing images in Captivate 7 the way you can when using InDesign? I need to replace some images but wondering if I'll need to reformat, resize, rename for the Advanced Action, etc.

    The work flow is a bit more complicated than in InDesign (keeps only a link to the image as you know in the frame). I understand the problem with the advanced/shared action references. This is my work flow, maybe someone else has an easier, shorter one:
    Right-click on the image and use 'Find in Library' or use CTRL-ALT-F if it works on your keyboard (doesn't on my AZERTY one)
    In the Library use the right-click menu to open the Properties or double-click the name of the image
    In that dialog box, choose 'Import' and choose your new image; for some reason you cannot choose from the Library however, which I find really sad because I'm used to import all assets to the Library.
    Drawback: if the new image has not the same width/height ratio, it will adapt to the original size of the image, you can use Edit image to repair. You'll keep the name of the image, you don't have to change advanced/shared actions.

  • IFCORE-1565: The Dgraph could fail when using a relevance ranking strategy.

    Hi,
    I just saw the release notes for Endeca 6.2.2 and read this bug:
    IFCORE-1565: The Dgraph could fail when using a relevance ranking strategy.
    Is there someone who could provide some more information on this bug? What is it and when does it occur? Reading the word 'could' would suggest a kind of unpredictability?
    Thanks,
    Maarten

    The known trigger for the bug was doing relrank on a query that contained multiple text searches.

  • The guides all say when using the iCloud photos are shared across all devices. Why can't I see my photos from my iPhone on my iPad when it settings on both devices the iCloud for photos is on?

    The guides all say when using the iCloud photos are shared across all devices. Why can't I see my photos from my iPhone on my iPad when it settings on both devices the iCloud for photos is on?

    When you enable Photo Stream on your devices, only new photos you take or import to those devices will be automatically added to your Photo Stream. Existing photos won't.

  • HT4759 according to the tech specs' required to use iClode it seems that Apple is ignoring it's promisses to the their valued costumers since 2001..I have to go to an Apple store and buy a new MacBook and iPhone..mm yeah right we are all swimming in cash

    according to the tech specs' required to use iClode it seems that Apple is ignoring it's promisses to their valued costumers since 2001..I have to go to an Apple store and buy a new MacBook and iPhone..mm yeah right we are all swimming in cash. On June Apple had promissed it's old valued costumers that they can continue to access their Mac mail accounts via a browser. But hey ! why keep promisses. Now you need to purchase all the latest gadgets to use y'r Mac mail-iCloud. MOVING TO GMAIL !

    If you had a MobileMe account, and provided you migrated it to iCloud before 1 August, you can access your email at http://icloud.com on any modern browser. 10.7.2 minimum and iOS5 or 6 are required for the devices to use iCloud syncing and other facilities.
    If you have Tiger, Leopard or Snow Leopard you can set Mail up manually to access the email on an existing iCloud account:
    Entering iCloud email settings manually in Snow Leopard or Leopard
    Entering iCloud email settings manually in Tiger

  • Have a 3 yr old iMac the screen goes black when using it it will come back on when you move the mouse  thanks for your help Dave

    Have a 3 yr old iMac the screen goes black when using it it will come back on when you move the mouse  thanks for your help Dave

    It's possible you've got a 'hot corner' set up. If you have and move the mouse to a certain corner of the screen it'll do as you describe. Have a look in System Preferences>Mission Control, bottom left of the window click on the 'Hot Corners' button and see if there is anything in there.

Maybe you are looking for

  • Held on accessing values in a JSP

    Hi, I have JSP with some input fields embedded in it. Consider the input fields as follows. Call the JSP as index.jsp <input type = "text" name = "userid"> <input type = "text" name = "email"> I also have a submit button which passes control to anoth

  • How Can I get a Page on my Aldus Pagemaker 3.0

    I want to install Aldus Pagemaker 3.0 on my Apple Powerbook 1400, so I can use some files that I created in the 1990's on Aldus Pagemaker 3.0. I have Pagemaker 4.2 on another computer, but it distorts the diagrams from the 3.0 files. So I purchased P

  • Syncing iPad and Picasa

    How do I move photos into ipad from Picasa in the order they are in in the Picasa programme.  When I move them they shuffle about.

  • Zooming on a MBP?

    Hello, is there any way to zoom via the keyboard while using Photoshop for instance? the shortcut is command-+ but I don't have direct access to the + since I'm on a European keyboard and need to press shift-1 to get a +. any help would be really app

  • Zen V

    Yesterday I bought a brand new Zen V. I connected it via USB, until it had its battery loaded 00%, then installed the CD and managed to upload 00~ songs until it froze. Then had to reset the player and the songs are still there and play ok. The thing