PRAGMA forcing integral number

The following line of code won't compile,
          PRAGMA EXCEPTION_INIT(XCPT_invalid_param, ERR_invalid_fax_code);however, this will:
          PRAGMA EXCEPTION_INIT(XCPT_invalid_param, -20001);ERR_invalid_fax_code is declared as
          ERR_invalid_fax_code           CONSTANT INTEGER := -20001;What to I do to make it accept a constant var, instead of an integral number?

The second argument to EXCEPTION_INIT must be a literal.
I don't know why, that's just the way it is.
See:
http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96525/pcmus.htm#1001616

Similar Messages

  • Force Integration Builder (Design and Configuration) language to be English

    Hi Experts!
    Does anyone know how to force the Integration Builder (Design and Configuration) language to be English? Since SSO is configured the logon screen do not appear and users can not choose the language they want. The problem is that the default language is German instead of English.
    Thanks in advance.
    Roger Allué i Vall

    Hi,
    I've changed these parameters in the ExchangeProfile:
    com.sap.aii.directory.serviceuser.language
    com.sap.aii.integrationserver.serviceuser.language
    com.sap.aii.ib.client.login.languages
    com.sap.aii.ib.client.content.languages
    com.sap.aii.adapterframework.serviceuser.language
    com.sap.aii.rwb.serviceuser.language
    com.sap.aii.applicationsystem.serviceuser.language
    com.sap.aii.docu.languages
    com.sap.aii.repository.serviceuser.language
    Now all they have the value EN. I also restarted the applications (Server --> Services --> Deploy) :
    sap.com/com.sap.aii.af.app
    sap.com/com.sap.aii.af.cpa.app
    However, nothing changed. Maybe I have to restart all the J2EE Engine?
    Thanks in advance.
    Roger Allué i Vall

  • HP Officejet 8600 scan - How to force scan number sequence starting with a number of my choice

    Using HP Officejet 86XX on WIn7 - with ADF. 
    I scan a lot of docs via the ADF and all docs scanned has a number in sequence noted at the documents.
    Is there any way to decide which number the HP scan software shall start its numbered sequence? Eg. prefix "Document-" and then force the sequence-number to start at 00200, on order for the next file sequence number to be 00201 and then 00202 and so on??

    Hi , I may be able to help you with your scan settings, but I want to make sure I understand what you are trying to accomplish - so let me know if this isn't what you are looking for. Click on the HP Printer Assistant icon on your desktop (It will look like your printer, and be labeled to match)In the HP Printer Assistant click on Scan a Document or PhotoChoose the shortcut you are selecting on the front panel of the printer (ie Save as PDF)Click on Advanced Settings You can modify your scanner settings, I believe you want to change the settings on the Destination tab.Base File Name: First part of the file name, so in your example "Document-", the scanner will automatically number it after each scan.. eg. Document-0001 will be your first scan, Document-0002, will be the second.Save Location: You can even setup a new folder for the scans  After you change the settings, try the scan from the front panel of your printer. Please let me know if these steps resolved your issue, or if there is anything else I can do to help.  I look forward to hearing from you!  Thanks, 

  • Sales force integration using advantco adapters

    Hi,
    We are implementing Sales force.
    To integrate sales force with SAP PI, we are evaluating Advantco  SFDC &REST adapter.
    Please let me know is there any  issues/challenges ,we will face if we use these adapters.
    Also is there  any other adapter we can use to integrate with sales force.
    Thanks
    Surya

    Hi Surya,
    As per my knowledge, REST adapter needs session management for salesforce integration which is quite challenging compared to SFDC adapter. Additionally SFDC will support BULK and streaming API's (push notification) also. You can use REST adapter for other systems as well, it support json protocol (light weight). Please refer below links.
    Salesforce.com Adapter for SAP PI/PO
    SAP PI SALESFORCE BULK API
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50a76cfa-4966-2d10-aba7-da496d9b5bcf?QuickLink=index&…
    Regards,
    Praveen

  • Forcing a number to display without decimals or rounding

    I am performing a mathimatical calculation, and I want to use
    the result in another calculation. For exampl, my result may be
    10.678. I want to use the number 10 in my next calculation, not 11
    or 10.678. Is there a mask or function that will allow me to cut my
    number off at the decimal place without rounding?

    int() is always popular.

  • Forcing a number only format on a cell

    I have set the format on particular cells to numbers but the spreadsheet user can still type in any character (letter A for instance). This causes errors in subsequent formula.
    Is there any way to prevent this - that is allow the entry of numeric values only ?

    You cannot prevent a user from entering whatever characters they want. One way to prevent downstream errors is to not use the data entry cell in downstream formulas. For example, if the user enters data in B2, use C2 for data validation and use C2 in downstream formulas. For numerical entry you can use
    C2=IFERROR(B2*1,0) which sets the default to 0 for downstream numeric formulas if the entry contains any non-numeric characters.
    To flag the error for the user, you can put a conditional format in B2 so that if B2 is not equal to C2 then fill red.
    When you are done designing your table, hide column C.
    I'll have to think about how I'd do something similar if the text entry had to contain alphabet characters only. Luckily that was not your question.
    Another method is to use a slider or a popup then you don't need to do data validation. Popups are good for a limited number of choices of whatever entries you want to allow (numbers, words, letters, etc) . Sliders are good for numerical entry but not overa really wide range of numbers if you want the user to pick an exact number. If you are looking for entry of the digits 0-9, I'd go with a popup.

  • INTEGRATION NUMBER FILE TO EXCEL

    HI
    i from paris so my english could be not perfect, i have to send a number file but i have to send it in excel "format Excel (formats acceptés : txt, csv, xml)."
    Is it possible to convert number files in txt or csv or xml.It seems to be easy but it's not.
    If you know how to do thanks to answers.
    Thnak you

    Hello
    It seems that it's difficult to read the *_Numbers User Guide_* ( *_Guide de l’utilisateur de Number_* )
    The menu *_Share > Export… > CSV_* ( *_Partage > Exporter… > CSV_* )
    is dedicated to this task.
    There is also *_Share > Export… > Excel_* ( *_Partage > Exporter… > Excel_* )
    Yvan KOENIG (VALLAURIS, France) dimanche 7 novembre 2010 11:36:21

  • Re:Reading Integration Number from TOOL

    Here is the code that we have in our splash screen init that gets the cl number
    and concats it with a Version Number of our application.
    -- Set the Version Number from the Constant.
    <VersionNumber>.Text.SetValue(VersionID);
    -- Put a dash between Version and the CL Number.
    <VersionNumber>.Text.ConCat(' - ');
    -- Temp Object for obtaining CL number.
    txTemp : TextData = new;
    -- Get the Application Name From the App, will look like "Forte_cl0".
    txTemp.SetValue(Task.Part.AppName);
    -- Cut the CL Number from the Application Name.
    txTemp.MoveToString('_cl');
    <VersionNumber>.Text.ConCat(txTemp.CopyRange(txTemp.Offset+1,txTemp.ActualSize))
    -- We're done this TextData Object. So Clean Up Memory Usage.
    txTemp.SetAllocatedSize(n = 0);
    txTemp = NIL;

    Follow-up: after having changed the EXIF dates I restart Aperture and it goes off like mad regenerating the thumbnails for the images with changed EXIF date. So it notices the files have changed, but alas it does not update the "Image Date" information in the Aperture data base. So how to sync the Aperture db?
    Cheers, Fons

  • Integrating number of records into a single record

    Hi
    I have a table where we store trainees with certifications, it stores trainees address, id, pass/fail flag, course codes, competetion date and certificate expiration date. WHat I need is to display a single record for each trainee in my query. In this case, what we have currently in the table is we might have 11 certificates for a trainee or 1 or maybe 5 etc. All I need is to display all his information, address, trainee id, courrse code..course code11 in a signle record. Is it possible and how? Please help

    Try this one - it points to the same page and looks like it works:
    Re: How to show the SELECT result in a certain form?

  • How to Force mac Thunderbolt External Display with Integrated GPU for Macbook Pro 2012?

    I have been getting GPU Panic whenever I use external Thunderbolt Display.
    Not sure whether this is software after(Mavericks) or hardware, if anybody could shed some light I would appreciate it.
    The Current Discrete GPU will only work for few seconds 10 sec max before it became blank and require you to force shutdown. This also happened even without external display Blank and GPU Panic upon restart. So I suspected either the discrete GPU failure or software in Mavericks.
    But at the moment I'm looking for workaround so I can use the intel intergrated GPU to use my Mac Thunderbolt External Display.
    Thank you in advance for any input.
      Anonymous UUID:       08E3F48E-64B8-B380-1B7A-A676656BE0A6
    Fri Nov  1 21:55:27 2013
    panic(cpu 0 caller 0xffffff7f8876bfac): "GPU Panic: [<None>] 4 0 a0 d9 9 8 0 3 : NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0x102c00000 0xffffff80fe1b8000 0x0e7150a2, D0, P2/4\n"@/SourceCache/AppleGraphicsControl/AppleGraphicsControl-3.4.12/src/Apple MuxControl/kext/GPUPanic.cpp:127
    Backtrace (CPU 0), Frame : Return Address
    0xffffff80fd8b3540 : 0xffffff8006422f69
    0xffffff80fd8b35c0 : 0xffffff7f8876bfac
    0xffffff80fd8b3690 : 0xffffff7f87020cf8
    0xffffff80fd8b3750 : 0xffffff7f870ede26
    0xffffff80fd8b3790 : 0xffffff7f870ede84
    0xffffff80fd8b3800 : 0xffffff7f87318f31
    0xffffff80fd8b3870 : 0xffffff7f87111011
    0xffffff80fd8b3890 : 0xffffff7f87027841
    0xffffff80fd8b3940 : 0xffffff7f87025362
    0xffffff80fd8b3b40 : 0xffffff7f870263cd
    0xffffff80fd8b3c20 : 0xffffff7f86fd365a
    0xffffff80fd8b3db0 : 0xffffff7f86fd23e4
    0xffffff80fd8b3dd0 : 0xffffff7f8873e812
    0xffffff80fd8b3eb0 : 0xffffff7f8873e6ee
    0xffffff80fd8b3f00 : 0xffffff7f8873d55e
    0xffffff80fd8b3f20 : 0xffffff800644a15a
    0xffffff80fd8b3fb0 : 0xffffff80064d6aa7
          Kernel Extensions in backtrace:
             com.apple.driver.AppleMuxControl(3.4.12)[A4934A66-0E30-36E9-984A-650481102449]@ 0xffffff7f8875e000->0xffffff7f88770fff
                dependency: com.apple.driver.AppleGraphicsControl(3.4.12)[661E3C87-5B97-3272-88FF-B9BA9B6E2 4ED]@0xffffff7f88756000
                dependency: com.apple.iokit.IOACPIFamily(1.4)[045D5D6F-AD1E-36DB-A249-A346E2B48E54]@0xfffff f7f8772a000
                dependency: com.apple.iokit.IOPCIFamily(2.8)[447B4896-16FF-3616-95A2-1C516B2A1498]@0xffffff 7f86aba000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.6)[38E388A5-92D6-3388-B799-F2498E582287]@0 xffffff7f86f7d000
                dependency: com.apple.driver.AppleBacklightExpert(1.0.4)[E04639C5-D734-3AB3-A682-FE66694C66 53]@0xffffff7f88759000
             com.apple.nvidia.driver.NVDAResman(8.1.8)[3A2A3C2D-E129-3190-A682-E831B38F0FBF] @0xffffff7f86fd0000->0xffffff7f8723afff
                dependency: com.apple.iokit.IOPCIFamily(2.8)[447B4896-16FF-3616-95A2-1C516B2A1498]@0xffffff 7f86aba000
                dependency: com.apple.iokit.IONDRVSupport(2.3.6)[86BA68C6-18DD-30A1-ABF6-54597AD6C277]@0xff ffff7f86fc0000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.6)[38E388A5-92D6-3388-B799-F2498E582287]@0 xffffff7f86f7d000
             com.apple.nvidia.driver.NVDAGK100Hal(8.1.8)[3CF8C2FA-83E6-39E3-A5B7-C7CC839B8C7 5]@0xffffff7f87245000->0xffffff7f873f4fff
                dependency: com.apple.nvidia.driver.NVDAResman(8.1.8)[3A2A3C2D-E129-3190-A682-E831B38F0FBF] @0xffffff7f86fd0000
                dependency: com.apple.iokit.IOPCIFamily(2.8)[447B4896-16FF-3616-95A2-1C516B2A1498]@0xffffff 7f86aba000
             com.apple.driver.AGPM(100.14.11)[087FCB18-55FA-300E-9D22-DDE636C74BE1]@0xffffff 7f8873c000->0xffffff7f8874dfff
                dependency: com.apple.iokit.IOPCIFamily(2.8)[447B4896-16FF-3616-95A2-1C516B2A1498]@0xffffff 7f86aba000
                dependency: com.apple.driver.IOPlatformPluginFamily(5.5.1d27)[C86803C1-60BC-386D-9C54-2E6D7 4CCEA74]@0xffffff7f87733000
                dependency: com.apple.iokit.IONDRVSupport(2.3.6)[86BA68C6-18DD-30A1-ABF6-54597AD6C277]@0xff ffff7f86fc0000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.6)[38E388A5-92D6-3388-B799-F2498E582287]@0 xffffff7f86f7d000
                dependency: com.apple.AppleGraphicsDeviceControl(3.4.12)[C171C5AF-1BB6-385A-A4DB-3ED5626711 1E]@0xffffff7f8841c000
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    13A603
    Kernel version:
    Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
    Kernel UUID: 1D9369E3-D0A5-31B6-8D16-BFFBBB390393
    Kernel slide:     0x0000000006200000
    Kernel text base: 0xffffff8006400000
    System model name: MacBookPro10,1 (Mac-C3EC7CD22292981F)
    System uptime in nanoseconds: 88932950458
    last loaded kext at 12260883008: com.intego.Family-Protector.extension     1770 (addr 0xffffff7f8888a000, size 53248)
    loaded kexts:
    com.intego.Family-Protector.extension     1770
    com.intego.virusbarrier.kext.realtime     775
    com.intego.netbarrier.kext.network     653
    com.intego.netbarrier.kext.process     653
    com.intego.netbarrier.kext.monitor     653
    com.rim.driver.BlackBerryVirtualPrivateNetwork     1.0.15
    com.parallels.virtualsound     1.0 22731.929773
    com.Cycling74.driver.Soundflower     1.6.6
    com.veldom.driver.EM_Usb     1.0.48
    com.cyberic.SmoothMouse     7
    com.intego.Family-Protector.safe-boot     1770
    com.rim.driver.BlackBerryUSBDriverInt     0.0.97
    com.apple.filesystems.autofs     3.0
    com.apple.driver.AppleHWSensor     1.9.5d0
    com.apple.iokit.IOBluetoothSerialManager     4.2.0f6
    com.apple.driver.AGPM     100.14.11
    com.apple.driver.ApplePlatformEnabler     2.0.9d1
    com.apple.driver.X86PlatformShim     1.0.0
    com.apple.driver.AppleMikeyHIDDriver     124
    com.apple.driver.AudioAUUC     1.60
    com.apple.iokit.IOUserEthernet     1.0.0d1
    com.apple.driver.AppleHDAHardwareConfigDriver     2.5.2fc2
    com.apple.driver.AppleUpstreamUserClient     3.5.13
    com.apple.Dont_Steal_Mac_OS_X     7.0.0
    com.apple.driver.AppleHDA     2.5.2fc2
    com.apple.driver.AppleHWAccess     1
    com.apple.iokit.IOBluetoothUSBDFU     4.2.0f6
    com.apple.driver.AppleIntelHD4000Graphics     8.1.8
    com.apple.driver.AppleMikeyDriver     2.5.2fc2
    com.apple.GeForce     8.1.8
    com.apple.driver.ACPI_SMC_PlatformPlugin     1.0.0
    com.apple.driver.AppleLPC     1.7.0
    com.apple.driver.AppleSMCLMU     2.0.4d1
    com.apple.driver.AppleMuxControl     3.4.12
    com.apple.driver.AppleBacklight     170.3.5
    com.apple.driver.AppleMCCSControl     1.1.12
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport     4.2.0f6
    com.apple.driver.AppleSMCPDRC     1.0.0
    com.apple.driver.AppleIntelFramebufferCapri     8.1.8
    com.apple.nvidia.NVDAStartup     8.1.8
    com.apple.driver.AppleThunderboltIP     1.0.10
    com.apple.driver.AppleUSBTCButtons     240.2
    com.apple.driver.AppleUSBTCKeyEventDriver     240.2
    com.apple.driver.AppleUSBTCKeyboard     240.2
    com.apple.driver.AppleFileSystemDriver     3.0.1
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless     1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib     1.0.0d1
    com.apple.BootCache     35
    com.apple.driver.XsanFilter     404
    com.apple.iokit.IOAHCIBlockStorage     2.4.0
    com.apple.driver.AppleUSBHub     650.4.4
    com.apple.driver.AppleSDXC     1.4.0
    com.apple.iokit.AppleBCM5701Ethernet     3.6.9b9
    com.apple.driver.AirPort.Brcm4331     700.20.22
    com.apple.driver.AppleAHCIPort     2.9.5
    com.apple.driver.AppleUSBEHCI     650.4.1
    com.apple.driver.AppleUSBXHCI     650.4.3
    com.apple.driver.AppleSmartBatteryManager     161.0.0
    com.apple.driver.AppleRTC     2.0
    com.apple.driver.AppleACPIButtons     2.0
    com.apple.driver.AppleHPET     1.8
    com.apple.driver.AppleSMBIOS     2.0
    com.apple.driver.AppleACPIEC     2.0
    com.apple.driver.AppleAPIC     1.7
    com.apple.driver.AppleIntelCPUPowerManagementClient     216.0.0
    com.apple.driver.AppleIntelCPUPowerManagement     216.0.0
    com.apple.nke.applicationfirewall     153
    com.apple.security.quarantine     3
    com.apple.kext.triggers     1.0
    com.apple.iokit.IOSerialFamily     10.0.7
    com.apple.iokit.IOBluetoothFamily     4.2.0f6
    com.apple.driver.DspFuncLib     2.5.2fc2
    com.apple.vecLib.kext     1.0.0
    com.apple.iokit.IOAudioFamily     1.9.4fc11
    com.apple.kext.OSvKernDSPLib     1.14
    com.apple.iokit.IOSurface     91
    com.apple.iokit.IOAcceleratorFamily     98.7.1
    com.apple.nvidia.driver.NVDAGK100Hal     8.1.8
    com.apple.nvidia.driver.NVDAResman     8.1.8
    com.apple.driver.IOPlatformPluginLegacy     1.0.0
    com.apple.driver.X86PlatformPlugin     1.0.0
    com.apple.driver.AppleGraphicsControl     3.4.12
    com.apple.driver.AppleBacklightExpert     1.0.4
    com.apple.driver.AppleSMBusController     1.0.11d1
    com.apple.iokit.IOBluetoothHostControllerUSBTransport     4.2.0f6
    com.apple.driver.AppleSMBusPCI     1.0.12d1
    com.apple.driver.IOPlatformPluginFamily     5.5.1d27
    com.apple.iokit.IOAcceleratorFamily2     98.7.1
    com.apple.AppleGraphicsDeviceControl     3.4.12
    com.apple.driver.AppleSMC     3.1.6d1
    com.apple.iokit.IONDRVSupport     2.3.6
    com.apple.driver.AppleHDAController     2.5.2fc2
    com.apple.iokit.IOGraphicsFamily     2.3.6
    com.apple.iokit.IOHDAFamily     2.5.2fc2
    com.apple.driver.AppleThunderboltEDMSink     1.2.1
    com.apple.driver.AppleThunderboltDPOutAdapter     2.5.0
    com.apple.driver.AppleUSBMultitouch     240.6
    com.apple.iokit.IOUSBHIDDriver     650.4.4
    com.apple.driver.AppleThunderboltDPInAdapter     2.5.0
    com.apple.driver.AppleThunderboltDPAdapterFamily     2.5.0
    com.apple.driver.AppleThunderboltPCIDownAdapter     1.4.0
    com.apple.driver.AppleUSBMergeNub     650.4.0
    com.apple.driver.AppleThunderboltNHI     1.9.2
    com.apple.iokit.IOThunderboltFamily     2.8.5
    com.apple.iokit.IOEthernetAVBController     1.0.3b3
    com.apple.driver.mDNSOffloadUserClient     1.0.1b4
    com.apple.iokit.IO80211Family     600.34
    com.apple.iokit.IONetworkingFamily     3.2
    com.apple.iokit.IOUSBUserClient     650.4.4
    com.apple.iokit.IOAHCIFamily     2.6.0
    com.apple.driver.AppleEFINVRAM     2.0
    com.apple.driver.AppleEFIRuntime     2.0
    com.apple.iokit.IOHIDFamily     2.0.0
    com.apple.iokit.IOSMBusFamily     1.1
    com.apple.driver.AppleKeyStore     2
    com.apple.driver.DiskImages     371.1
    com.apple.iokit.IOReportFamily     21
    com.apple.iokit.IOUSBMassStorageClass     3.6.0
    com.apple.driver.AppleUSBComposite     650.4.0
    com.apple.iokit.IOSCSIBlockCommandsDevice     3.6.0
    com.apple.iokit.IOStorageFamily     1.9
    com.apple.iokit.IOSCSIArchitectureModelFamily     3.6.0
    com.apple.iokit.IOUSBFamily     650.4.4
    com.apple.driver.AppleFDEKeyStore     28.30
    com.apple.security.sandbox     278.10
    com.apple.kext.AppleMatch     1.0.0d1
    com.apple.security.TMSafetyNet     7
    com.apple.driver.AppleACPIPlatform     2.0
    com.apple.iokit.IOPCIFamily     2.8
    com.apple.iokit.IOACPIFamily     1.4
    com.apple.kec.pthread     1
    com.apple.kec.corecrypto     1.0
    Model: MacBookPro10,1, BootROM MBP101.00EE.B02, 4 processors, Intel Core i7, 2.6 GHz, 8 GB, SMC 2.3f36
    Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In, 1024 MB
    Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533642465238432D50422020
    Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533642465238432D50422020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xEF), Broadcom BCM43xx 1.0 (5.106.98.100.22)
    Bluetooth: Version 4.2.0f6 12982, 3 services, 23 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en0
    Serial ATA Device: APPLE SSD SM512E, 500.28 GB
    USB Device: Hub
    USB Device: FaceTime HD Camera (Built-in)
    USB Device: Hub
    USB Device: Hub
    USB Device: Apple Internal Keyboard / Trackpad
    USB Device: BRCM20702 Hub
    USB Device: Bluetooth USB Host Controller
    Thunderbolt Bus: MacBook Pro, Apple Inc., 23.4

    I have the same problem with an early 2013 macbook pro. gfxCardStatus ( http://gfx.io/ ) will allow you to force integrated and not do dynamic switching, however the external display still doesn't work.

  • Integration of APEX in OBIEE 11g fails after upgrade to APEX 4.2.1

    I used a document from the german APEX forum to integrate Oracle Business Intelligence 11g (OBIEE) with APEX.
    After login in OBIEE a APEX page will be called without login in APEX.
    The Document is called "APEX in Oracle Business Intelligence (Oracle BI) integrieren"
    http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/biee-apex/index.html
    In APEX 4.0 this worked great. After login in OBIEE I could call a APEX page without new login.
    But after upgrading to APEX 4.2.1 now the APEX login mask is displayed.
    OBIEE uses this function to create a APEX session and store the APEX session-id and username in the table apex_biee_session:
    -- Function GET_APEX_SESSION_ID
    -- sets up an APEX session for a BIEE user
    FUNCTION get_apex_session_id (p_username IN VARCHAR2,p_days_valid IN NUMBER DEFAULT 1) RETURN VARCHAR2
    IS
    pragma autonomous_transaction;
    l_session_id NUMBER;
    l_valid_to DATE;
    l_count NUMBER;
    l_password VARCHAR2(4000);
    BEGIN
    l_valid_to := SYSDATE + NVL(p_days_valid,1);
    -- Let us delete expired records:
    BEGIN
    DELETE FROM apex_biee_session
    WHERE valid_to < TRUNC(SYSDATE,'DD');
    COMMIT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    END;
    -- get next APEX session id:
    l_session_id := apex_custom_auth.get_next_session_id;
    -- Insert the BIEE user and the APEX session id in table APEX_BIEE_SESSION
    INSERT INTO apex_biee_session (username, sessioN_id, valid_to)
    VALUES (UPPER(p_username),l_session_id,l_valid_to);
    COMMIT;
    -- define an APEX user session:
    apex_custom_auth.define_user_session(
    p_user => UPPER(p_username),
    p_session_id => l_session_id);
    htmldb_application.g_unrecoverable_error := TRUE; -- tell apex engine to quit
    RETURN l_session_id;
    EXCEPTION
    WHEN OTHERS THEN RETURN '-99';
    END get_apex_session_id;
    CREATE TABLE "APEX_BIEE_SESSION"
    (     "USERNAME"     VARCHAR2(60),
         "SESSION_ID"     NUMBER,
         "VALID_TO"     DATE,
         CONSTRAINT "APEX_BIEE_SESSION_PK" PRIMARY KEY ("USERNAME","SESSION_ID")
    In APEX this page sentry function is called:
    -- Function PAGE_SENTRY
    -- used as page sentry function in APEX applications
    FUNCTION page_sentry RETURN BOOLEAN
    IS
    l_current_sid NUMBER;
    l_biee_userid VARCHAR2(255);
    l_cookie owa_cookie.cookie;
    l_c_value VARCHAR2(255) := NULL;
    l_cookie_tom owa_cookie.cookie;
    l_c_value_tom VARCHAR2(255) := NULL;
    l_session_id NUMBER;
    l_biee_auth     VARCHAR2(1) := 'N';
    BEGIN
    BEGIN
    -- If normal APEX user authentication is used, cookie LOGIN_USERNAME_COOKIE will be used
    l_cookie_tom := owa_cookie.get('LOGIN_USERNAME_COOKIE');
    l_c_value_tom := l_cookie_tom.vals(1);
    l_biee_userid := UPPER(l_cookie_tom.vals(1));
    EXCEPTION
    WHEN OTHERS THEN NULL;
    END;
    l_session_id := apex_custom_auth.get_session_id; -- in APEX 4.2.1 this returns NULL
    -- Do we have a record in table APEX_BIEE_SESSION with the current session id
    BEGIN
    SELECT UPPER(username) INTO l_biee_userid
    FROM apex_biee_session
    WHERE session_id = l_session_id AND valid_to > SYSDATE;
    l_biee_auth := 'Y';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN l_biee_userid := 'Failed';
    END;
    IF l_biee_userid = 'Failed' THEN
    IF l_c_value_tom IS NULL THEN
    l_biee_userid := NULL;
    ELSE
    l_biee_userid := UPPER(l_c_value_tom);
    END IF;
    END IF;
    -- If l_biee_userid is NULL we need to call the APEX login page (done by RETURN FALSE)
    IF l_biee_userid IS NULL THEN
    RETURN FALSE;
    END IF;
    IF l_biee_auth = 'N' THEN
    l_current_sid := apex_custom_auth.get_session_id_from_cookie;
    ELSE
    l_current_sid := l_session_id;
    END IF;
    -- This is the built-in part of the session verification
    IF apex_custom_auth.is_session_valid THEN
    wwv_flow.g_instance := l_current_sid;
    IF apex_custom_auth.get_username IS NULL THEN
    apex_custom_auth.define_user_session(
    p_user => UPPER(l_biee_userid),
    p_session_id => l_current_sid);
    RETURN TRUE;
    ELSE
    IF UPPER(l_biee_userid) = UPPER(apex_custom_auth.get_username) THEN
    apex_custom_auth.define_user_session(
    p_user =>UPPER(l_biee_userid),
    p_session_id =>l_current_sid);
    RETURN TRUE;
    ELSE -- username mismatch. Unset the session cookie and redirect back here to take other branch
    apex_custom_auth.logout(
    p_this_app=>v('APP_ID'),
    p_next_app_page_sess=>v('APP_ID')||':'||nvl(v('APP_PAGE_ID'),0)||':'||l_current_sid);
    wwv_flow.g_unrecoverable_error := true; -- tell htmldb engine to quit
    RETURN FALSE;
    END IF;
    END IF;
    ELSE -- application session cookie not valid; we need a new apex session
    IF l_biee_auth <> 'Y' THEN
    l_session_id := apex_custom_auth.get_next_session_id;
    END IF;
    apex_custom_auth.define_user_session(
    p_user => l_biee_userid,
    p_session_id => l_session_id);
    wwv_flow.g_unrecoverable_error := true; -- tell htmldb engine to quit
    IF owa_util.get_cgi_env('REQUEST_METHOD') = 'GET' THEN
    wwv_flow_custom_auth.remember_deep_link(
    p_url=>'f?'||wwv_flow_utilities.url_decode2(owa_util.get_cgi_env('QUERY_STRING')));
    ELSE
    wwv_flow_custom_auth.remember_deep_link(
    p_url=>'f?p='||
    TO_CHAR(wwv_flow.g_flow_id)||':'||
    TO_CHAR(nvl(wwv_flow.g_flow_step_id,0))||':'||
    TO_CHAR(wwv_flow.g_instance));
    END IF;
    apex_custom_auth.post_login( -- register session in htmldb sessions table, set cookie, redirect back
    p_uname => l_biee_userid,
    p_app_page => wwv_flow.g_flow_id||':'||nvl(wwv_flow.g_flow_step_id,0));
    RETURN FALSE;
    END IF;
    END page_sentry;
    The problem seems to be that in line "l_session_id := apex_custom_auth.get_session_id;" the call of apex_custom_auth.get_session_id is returning NULL in APEX 4.2.1.
    In APEX 4.0 the call of apex_custom_auth.get_session_id returned the APEX session id.
    What can I do to get this working again ?
    Kind Regards,
    Markus
    Edited by: asmodius1 on Jan 10, 2013 2:06 PM

    Hi,
    this integration relies on session fixation, that's an insecure practice which is not allowed anymore since 4.1:
    http://en.wikipedia.org/wiki/Session_fixation
    Since the cookie value for the session id is missing, Apex rejects the session id and sets it to null, before calling the sentry function.
    If you absolutely want to use this kind of integration, you will have to parse the value of owa_util.get_cgi_env('QUERY_STRING') in the sentry function to get the session id. To make it a bit more secure, the row in APEX_BIEE_SESSION should only be valid for a very short time (e.g. 1 sec). A person from Oracle Support contacted me about possible improvements to this authentication a few weeks ago. I replied with the following suggestions:
    I would at least add a Y/N flag (e.g. SESSION_JOINED_BY_APEX) to the
    APEX_BIEE_SESSION table. The page sentry should only accept the session
    without an accompanying cookie if the flag is still N. It has to set it
    to Y afterwards. This way, you ensure that the session joining without
    cookie can only be done once. Maybe there should also be an alternative
    way to log in to APEX, e.g. via page 101. Currently, this authentication
    only accepts session IDs that were generated via OBIEE.
    Users could log out of APEX or the APEX session could expire. Therefore,
    the APEX app should have a post logout procedure that deletes the row in
    the OBIEE session table. On the OBIEE side, APEX_SESSION_ID should
    therefore be initialized on each request. The initialization code should
    also check APEX_WORKSPACE_SESSIONS to make sure the session still
    exists.
    Regards,
    Christian

  • Re: IllegalArgumentException: Illegal request to write non-integral

    Description:
                   Java sound library has been bundled with java1.4. There was a
                   separate sound libraray in java1.3 (sound.jar). In java1.4
                   com.sun.media.sound.* contains an inbuilt sound device configuration
                   library.
                   A JMF class (com.sun.media.protocol.javasound.JavaSoundSourceStream.class)
                   uses javax.sound.sampled.TargetDataLine Interface for reading data from
                   media device and defines a buffer size to read data for the method
                   javax.sound.sampled.TargetDataLine.read(byte[] b, int off, int len)
                   for the variable "len"
                   The source for read method of the class
                   javax.sound.sampled.TargetDataLine.read resembles like this:
                   public int read(byte[] b, int off, int len) {
                   if (len % getFormat().getFrameSize() != 0) {
                        throw new IllegalArgumentException("Illegal request to write non-integral number of frames (" + len + " bytes )");
                   Clearly, this requires that the number of bytes to be read must
                   be an integral number of sample frames, such that:
                   [ bytes read ] % [frame size in bytes ] == 0
    Solution:
                   Buffer size defined in JavaSoundSourceStream should be proper
                   and adjustable for device capability.
                   Before defining buffer size, the getFrameSize() method of
                   javax.sound.sampled.AudioFormat should be called to verify
                   the frame size of the media device.
                   The following code should be inserted in the file
                   com/sun/media/protocol/javasound/JavaSoundSourceStream.java
                   in the method openDev():
                   int adjust_FrameBuffer_size = afmt.getFrameSize();
                   bufSize = bufSize - (bufSize % adjust_FrameBuffer_size);
                   before defining DataLine.Info buffersize.
    */

    hello fellows!
    In my case i am plugging in the JSPEEX into java sound API. I am getting this same exception when I have samplesizebits as 16 Bits (Depth sample) . But when I make it as 8 Bit(Depth sample) its executing without any exception. wat is the reason?
    java.lang.IllegalArgumentException: illegal request to write non-integral number of frames (607 bytes, frameSize = 2 bytes)
    My Input parameters:
    float sampleRate = 44100.F;
    int sampleSizeInBits = 16; //8,16
    int channels = 1;//1,2
    boolean signed = true;//true,false
    boolean bigEndian = false;
    OS: Windows NT server.

  • Biztalk 2013 Salesforce Integration error

    Hi,
       I am implementing sales force Integration to BizTalk2013 WCFwebhttp Adapter. Here is the below code of MSDN I followed.
    http://msdn.microsoft.com/en-us/library/dn198272(v=bts.80).aspx
    Here is the Code sample
    http://code.msdn.microsoft.com/Integrating-BizTalk-Server-f31e4286
      Code will be working fine outside of corporate network. After connecting to corporate network i am facing the below error. 
    Please help me to resolve.
    System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at https://na15.salesforce.com/services/data/v24.0/query?q=SELECT+Amount%%2c+Id%%2c+Name%%2c(SELECT+Quantity%%2c+ListPrice%%2cPricebookEntry.UnitPrice%%2c+PricebookEntry.Name+FROM+OpportunityLineItems)+FROM+Opportunity+Where+Name+%%3d+'Opportunity3+with+Customer+1'
    that could accept the message. 
    This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException:
    Unable to connect to the remote server ---> 
    System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after
    a period of time, or established connection failed because connected host has failed to respond 96.43.146.88:443 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket
    s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at
     System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult
    result) --- End of inner exception stack trace --- Server stack trace: at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.EndCall(String
    action, Object[] outs, IAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
    msgData, Int32 type) at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result) at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result) 

    HI,
      can you help me to get the data from saleforce to Biztalk with out using Windows Azure. I got the code snippet from MSDN to fetch the data when workflow action is triggered in Salesforce oubound message is sent to Biztalk, but using windows azure account
    I need the same but with out windows azure.
    My requirement is same but I dont want to use the WindowsAzure account
    Here is the MSDN code
    http://code.msdn.microsoft.com/Integrating-BizTalk-Server-f31e4286

  • How to number Figure Titles continously across book files

    Currently in our book files, the Figure Titles restart at 1 in each book file. We would like them to number continously throughout the whole book, so that if there are 3 figures in chapter 1, the first figure in chapter 2 automatically starts at 4 (and if figures are added or deleted, the numbers update automatically when you generate the book).
    Is this possible to do or are we forced to number our figures with a chapter preface (first chapter figures are 1.1, 1.2, etc., second chapter figures are 2.1, 2.2, etc.)

    It's very possible and easy.
    1. Assign a "series label" to the paragraph format that holds the autonumber
    for your figures. I use "F:" for figures. For example, "F:Fig. <n+>.\sn" is
    the autonumber format I use.  It gives a result such as "Fig. 3. " (I also
    assign a bold character format to the autonumber format, to separate it from
    the caption text.)
    2. In the book file, select the files you want to be affected, right click
    and choose "Numbering." On the Paragraph tab, set "Continue Numbering from
    Previous Paragraph in Book."
    3. Edit> Update Book to see the result.
    4. Done!
    Series labels come in really handy. Some use separate series labels for
    tables, photos, charts, etc., but that can become confusing to readers very
    quickly. (Table 1 follows Plate 6?). It's easier and clearer to use a single
    series label for all illustrative elements.
    Mike Wickham

  • How to force Windows Mobile Professional device to use only Wi-fi network provisioned through Afaria 7 SP4

    Hi
    We are deploying Windows Mobile Professional devices on our environments. All the devices connects only to internal network through Wi-fi.  Our security policy do not allow these devices to be connected to any other network (Other Wi-fi, Cellular etc).  Is there any way to force the devices to use only the Wi-fi network provisioned through Afaria.
    Tags edited by: Michael Appleby

    I have the same problem with an early 2013 macbook pro. gfxCardStatus ( http://gfx.io/ ) will allow you to force integrated and not do dynamic switching, however the external display still doesn't work.

Maybe you are looking for

  • Cost of the project

    Hi, My client has delivered 100 bags of material to the customer and Client receive some (for e.g 70 bags)against delivery of material to a particular clientu2019s site as payment against deliver of goods to that project. In this case when Client cal

  • I have a question about Macbook Pro system preferences...

    When I first got my Macbook Pro, I thought it was cool to have my computer "talk" to me when I had notifications. For example, when I have an update available, it will say, "Stephen, updates are available." Or when my battery is low, it will say, "St

  • Oracle Function in JDBC Adapter

    Dear All Can we execute an oracle fucntion using receiver jdbc adapter? if yes then what should be the structure I have gone through following links but the soluiotn is not clear Using PI - Calling a Function in Oracle Regards Sourabh

  • Portal Search Not Working - Only Returns Portal Content, Not TREX Indexes

    I have configured two indexes using the portal.  One is for documents that reside on the portal, and the other one is for a website that we have configured in TREX using Cruiser.  The TREX Admin console shows that the website information has been ind

  • This version of OS X 10.10 cannot be installed on this computer?

         I currently have OS X Snow Leopard 10.6.8. All my software is up to date. I went to upgrade to OS X 10.10 and I received an error telling me that, "This version of  OS X 10.10 cannot be installed on this computer".      Here are some specs: Proc