URGENT: FacesContext....getExternalContext().getRemoteUser() bad value

All,
I created an application using JDeveloper 10.1.3.3.0, using ADF-BC/JSF...we are also using SSO in OAS to authenticate this app.
Can anybody tell me why FacesContext.getCurrentInstance().getExternalContext().getRemoteUser() would be returning a different username than the one that is logged into SSO?
The scenario is: user enters the app and is prompted to log in via SSO. After successful login, the main page of the site renders. In this page is an EL reference to a session bean which has an attribute which references FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();
After the first page all pages come back with this value set OK. But sometimes in a particular page we get a different person's username from this same expression/EL to display on the page.
So for example you log on a JDoe. All pages display that you are logged in as JDoe. Then when you hit a particular page, that page displays that you are logged in a JSmith.
Has anybody seen anything like this??
Michael F.

I do not know at the moment. I will inquire. Thanks for trying to answer.
It almost seems like a framework bug. I get the feelling that the framework is getting maxed out with this form, and acting weird in all kinds of ways. But we are not really seeing any errors in all the logs.

Similar Messages

  • Form Bad Value  coz of UDO

    Hi all,
    I have a text Box that i have binded(UDO) to a database data source through xml.
    That text BOx is linked to a choose from list .
    Through coding
    When i try to fill the textbox (which is linked to choose from list)  from the choose from list am getting 'Form Bad Value' Error.
    How can i solve this issue??
    Please very urgent
    Thanks in advance.

    I must say that I'm wrong and William is right!
    The pval.InnerEvent for the LOST FOCUS event does not work.  The event fires exponentially since the pVal.InnerEvent is always true in this event!
    Could this be a bug in the SAP UI API?  Don't understand this behavior why then is the InnerEvent available for this event if it is always to be false.
    What I found out is that you can always use the LOST FOCUS event as long as you don't click or update the contents of another control than the one you are working with.

  • Mkfs: bad value for nbpi: must be at least 1048576 for multi-terabyte, nbpi

    Hi, guys!
    *1. I have a big FS (8 TB) on UFS which contains a lot of small files ~ 64B-1MB.*
    -bash-3.00# df -h /mnt
    Filesystem Size Used Avail Use% Mounted on
    /dev/dsk/c10t600000E00D000000000201A400020000d0s0
    8.0T 4.3T 3,7T 54% /mnt
    *2. But today I noticed in dmesg such errors: "ufs: [ID 682040 kern.notice] NOTICE: /mnt: out of inodes"*
    -bash-3.00# df -i /mnt
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/dsk/c10t600000E00D000000000201A400020000d0s0
    8753024 8753020 4 100% /mnt
    *3. So, I decided to make file system with new parameters:*
    -bash-3.00# mkfs -m /dev/rdsk/c10t600000E00D000000000201A400020000d0s0
    mkfs -F ufs -o nsect=128,ntrack=48,bsize=8192,fragsize=8192,cgsize=143,free=1,rps=1,nbpi=997778,opt=t,apc=0,gap=0,nrpos=1,maxcontig=128,mtb=y /dev/rdsk/c10t600000E00D000000000201A400020000d0s0 17165172656
    -bash-3.00#
    -bash-3.00# mkfs -F ufs -o nsect=128,ntrack=48,bsize=8192,fragsize=1024,cgsize=143,free=1,rps=1,nbpi=512,opt=t,apc=0,gap=0,nrpos=1,maxcontig=128,mtb=f /dev/rdsk/c10t600000E00D000000000201A400020000d0s0 17165172656
    *3. I've got some warnings about inodes threshold:*
    -bash-3.00# mkfs -F ufs -o nsect=128,ntrack=48,bsize=8192,fragsize=1024,cgsize=143,free=1,rps=1,nbpi=512,opt=t,apc=0,gap=0,nrpos=1,maxcontig=128,mtb=n /dev/rdsk/c10t600000E00D000000000201A400020000d0s0 17165172656
    mkfs: bad value for nbpi: must be at least 1048576 for multi-terabyte, nbpi reset to default 1048576
    Warning: 2128 sector(s) in last cylinder unallocated
    /dev/rdsk/c10t600000E00D000000000201A400020000d0s0: 17165172656 sectors in 2793811 cylinders of 48 tracks, 128 sectors
    8381432.0MB in 19538 cyl groups (143 c/g, 429.00MB/g, 448 i/g)
    super-block backups (for fsck -F ufs -o b=#) at:
    32, 878752, 1757472, 2636192, 3514912, 4393632, 5272352, 6151072, 7029792,
    7908512,
    Initializing cylinder groups:
    super-block backups for last 10 cylinder groups at:
    17157145632, 17158024352, 17158903072, 17159781792, 17160660512, 17161539232,
    17162417952, 17163296672, 17164175392, 17165054112
    *4.And my inodes number didn't change:*
    -bash-3.00# df -i /mnt
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/dsk/c10t600000E00D000000000201A400020000d0s0
    8753024 4 8753020 1% /mnt
    I found http://wesunsolve.net/bugid.php/id/6595253 that is a bug of mkfs without workaround. Is ZFS what I need now?

    Well, to fix the bug you referred to you can apply patch 141444-01 or 141445-01.
    However that bug is just regarding an irrelevant error message from mkfs, it will not fix your problem as such.
    It seems to me like the minimum value for nbpi on a multi-terabyte filesystem is 1048576, hence you won't be able to create a filesystem with more inodes.
    The things to try would be to either create two UFS filesystems, or go with ZFS, which is the future anyway ;-)
    .7/M.

  • OPC fieldpoint VT_BOOL gives "Bad Value" in Citect

    We run Citects OPC-client and tries to communicate with the Fieldpoint OPC-server. Analog values AI/AO work all fine but DIO-550 I/O-values do not. The data type is VT_BOOL. The error message is "Bad value". The client can be configured to skip "bad value"-error. That solves DO but not DI.
    Testing Macs OPC-client gives same problem.
    Our Fieldpoint OPC-server works fine with NI Server Explorer and the Citect and Macs clients works fine with other OPC-servers! 
    Please someone give us a hint of what to do.
    /Dan Larsson, Damill AB, Sweden

    We run Citects OPC-client and tries to communicate with the Fieldpoint OPC-server. Analog values AI/AO work all fine but DIO-550 I/O-values do not. The data type is VT_BOOL. The error message is "Bad value". The client can be configured to skip "bad value"-error. That solves DO but not DI.
    Testing Macs OPC-client gives same problem.
    Our Fieldpoint OPC-server works fine with NI Server Explorer and the Citect and Macs clients works fine with other OPC-servers! 
    Please someone give us a hint of what to do.
    /Dan Larsson, Damill AB, Sweden

  • Matrix Bad Value exception in ItemCode column

    hello ,
    i faced an exception with filling itemcode column
    As u know this column is linked object and have CFL (choose from list)
    the problem i faced that on choosing from list i choose an item to add new line in matrix
    this event done and a new line added sucessfully
    but the problem was with CFL , that it didnt able to close , it still opened and you need to press ESC or click on cancel to close it
    when i tracking the exception i found "Bad value" exception, although the itemcode column filled but the
    also i bind all matrix columns with data sources and i can fill matix at first , but when i want to add new line i faced this problem
    best regards and thank you in advance ....
    Ammar

    Thanks Rasmus,
    But that's something I've already tried - it doesn't seem to make any difference.

  • Startup nomont problem- ORA-07446: sdnfy: bad value '' for paramete

    what i am doing wrong?
    SQL> startup nomount pfile=/oracle/product/9.2.0.6/dbs/initncersp.ora;
    ORA-00444: background process "PMON" failed while starting
    ORA-07446: sdnfy: bad value '' for parameter .
    -rw-r--r-- 1 oracle dba 466 Jan 21 11:11 initncersp.ora
    oracle:tulppwradb02:ncersp>pwd
    /oracle/product/9.2.0.6/dbs
    oracle:tulppwradb02:ncersp>vi initncersp.ora
    "initncersp.ora" 127 lines, 3788 characters
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Archive
    log_archive_dest='/archive_nmarket/ncersp'
    log_archive_format='arch.ncersp.%s_%t.log'
    log_archive_start=true
    # Cache and I/O
    db_block_size=8192
    db_cache_size=25165824
    db_file_multiblock_read_count=16
    db_files = 400
    # Cursors and Library Cache
    open_cursors=500
    # Database Identification
    db_domain=""
    db_name=ncersp
    # Global Naming -- enforce that a dblink has same name as the db it connects to
    global_names = TRUE
    # Diagnostics and Statistics
    background_dump_dest=/oracle/admin/ncersp/bdump
    core_dump_dest=/oracle/admin/ncersp/cdump
    user_dump_dest=/oracle/admin/ncersp/udump
    timed_statistics=TRUE
    # File Configuration
    control_files=("/db01/oradata/ncersp/ncerspcontrol01.ctl","/db01/oradata/ncersp/ncerspcontrol02.ctl","/db01/oradata/ncer
    sp/ncerspcontrol03.ctl")
    # Instance Identification
    instance_name=ncersp
    # Job Queues
    job_queue_processes=0 #zero during maintenance
    # Optimizer
    hash_join_enabled=TRUE
    #query_rewrite_enabled=TRUE
    #query_rewrite_integrity='trusted'
    #star_transformation_enabled=FALSE
    # Pools
    java_pool_size=51200
    large_pool_size=8388608
    shared_pool_size=55343360
    # Processes and Sessions
    processes=100
    # Redo Log and Recovery
    fast_start_mttr_target=300
    # Security and Auditing
    remote_login_passwordfile='EXCLUSIVE'
    audit_trail=DB
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=25165824
    sort_area_size=1024000
    # Need Varification for below paramaters by Primary DBA
    # Miscellaneous
    aq_tm_processes=1
    compatible=9.2.0.0.0
    log_buffer=32768
    log_checkpoint_interval = 10000
    log_checkpoints_to_alert=TRUE
    max_dump_file_size='10240'
    os_roles=FALSE
    remote_os_roles=FALSE
    os_authent_prefix=''
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_retention=10800
    undo_tablespace=UNDOTBS1
    #utl_file_dir='*'
    # OLD DB PARAMETERS
    #db_block_buffers=550
    #resource_limit=true
    #parallel_max_servers = 5 # SMALL
    #global_names = TRUE
    #job_queue_interval = 60

    Is this correct:
    os_authent_prefix=''
    I believe if you want to set this to null, you need to use double quotes, (as in os_authent_prefix="")
    Ref: http://www.dba-oracle.com/security/local_os_authentication.htm
    ==============================================
    To disable this feature, place the following lines in the initialization file, or change the lines to the following if they already exist and bounce the database.
    os_authent_prefix = ""
    remote_os_authent = FALSE

  • Form - Bad Value

    hi all
       i create a Form and bind to a UDO
       when i only open the form is not any problem ,the method is following:
             protected override bool AddItems2Form(string strFId, string strTitle)
                Boolean bRet = base.AddItems2Form(strFId, strTitle);
                try
                    if (bRet && ShowForm(strFId, strTitle, BoFormBorderStyle.fbs_Sizable, 110, 550, 74,60, "LicCarry") == 0)   //LicCarry is a UDO's Name ,the table name is @LICCARRYCARDINFO
                       strDocEntry = "14";
                        fsSbo.AddEditText2Form(ref oForm, "Doc", "@LICCARRYCARDINFO", "DocEntry", 1, 1, 20, 14);
                        fsSbo.AddStaticText2Form(ref oForm, "stLicId", "XXXXX", 0xa, 20, 80, 14);
                        .........................   // much more
                        #region funtion button
                        fsSbo.AddItem2Form(ref oForm, "1", BoFormItemTypes.it_BUTTON, 410, 20, 65, 20);
                        fsSbo.AddItem2Form(ref oForm, "2", BoFormItemTypes.it_BUTTON, 410, 90, 65, 20);
                        #endregion
                        #region 
                oForm.PaneLevel = 1;
                        oForm.DataBrowser.BrowseBy = "Doc";
                        if (strDocEntry.Length > 0)
                            oForm.Mode = BoFormMode.fm_FIND_MODE;
                            fsSbo.SetValue2EditText(ref this.oForm, "Doc", strDocEntry);
                            fsSbo.SetFocus(oForm, "1");
                        else
                            oForm.Mode = BoFormMode.fm_ADD_MODE;
                        #endregion
                catch (Exception ex)
                    fsSbo.ShowExceptiontMsg(ex);
                return bRet;
    but when first open a Form x ,and then catch x's  event to open above form
    the exception (form - bad value) is throw on  fsSbo.SetValue2EditText(ref this.oForm, "Doc", strDocEntry); 
    any one can help you ,thanks
    thanks very much

    fsSbo.SetValue2EditText(ref this.oForm, "Doc", strDocEntry) 的意思就是
    EditText et = (EditText)this.oForm.Items.Item("Doc").Special;
    et.Value = strDocEntry

  • Form bad value when opening CFL in system forms

    Hi,
    I have a UDF control on the Stock Transfer Form which opens a CFL. Now at the CFL event, when i try to set the value from the CFL to the Parent Form (Stock Transfer). It opens the CFL again with "Form - Bad Value" error.
    This case i had faced but the problem was solved using
    dbdatasource.setValue = "string value returnd frm CFL datatable"
    but my problem comes with system form where i cannot use Setvalue method of DBDataSource.
    Please Help!
    Manu.

    Hi Trinidad,
    thanx for replying.
    my code is
    Select pVal.BeforeAction
    Case False
           Select Case pVal.EventType
                      Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST:
                                 ''' sCFL_Value1 is a string'''
                                 sCFL_Value1 = oCFLEvent.SelectedObjects.GetValue(1, 0).ToString()
                             If oCFLEvent.ItemUID = "47" Or oCFLEvent.ItemUID = "3" Then
                                     oEditText = oForm.Items.Item("etTest").Specific
                                     <b>oEditText.Value = sCFL_Value1</b>
    '''''' ******This is where i get the error i have tried using oEditText.String as well. I faced the same issue on a user form but when i used oDataSrc_Header.SetValue("U_Price", oDataSrc_Header.Offset, sCFL_Value1), my problem was solved.*********''''''''
                              End If
    i tried a workaround by saving the sCFL_Value into some other textbox which is not bound with a CFL control (e.g. the remarks field in stock transfer), there it does not throw any error but still as soon as i copy that value from remarks field to the actual control it throws "bad value error".
    Any help would be very grateful.
    Manu.

  • Form - Bad value (Goods Issue Form)

    Hello,
    I'm trying to fill Goods Issue form programatically. But when I try to fill some values into the matrix I got two errors-
    Referenced work order does not exist.
    Form - Bad Value
    I can enter the same values by hand, it works without any problem.
    One more thing. Let's say i got master data items with indexes 123, 1024. When I try to enter these values programmatically into Good Issue matrix (into index column) I got above messages. But when I the same with just value 1 it fills row with index 123.
    What is happening?
    Thanks in advance
    Wydrzycki Kamil

    hello freind
    it may be due to refferd linked key mens primary key.pls cheak when yu insert data in database first cheak this entry may be linked with any primary key

  • Column total_retail bad value

    Hi All,
    I have a problem with the values on columns TOTAL_RETAIL and UNITS from table IF_TRAN_DATA.
    When I consult using PL/SQL or SqlDeveloper, this is the results:
    select total_retail, units from rms12.if_tran_data where rownum <= 5;
    -0,0101     10
    -0,0101     10
    -77,34     -1
    -66,6724     -1
    -77,34     -1
    But, when I consult using SQLPlus, this is the results:
    select total_retail, units from analize_if_tran_data;
    TOTAL_RETAIL      UNITS
    *.0000 10*
    *.0000 10*
    -77.34         -1
    -66.6724         -1
    -77.34         -1
    *5 rows selected.*
    The big problem occurs is when I do a calculation with these fields:
    select total_retail, units, total_retail/units from analize_if_tran_data;
    TOTAL_RETAIL      UNITS TOTAL_RETAIL/UNITS
    *.0000 10 .d067195*
    *.0000 10 .d067195*
    -77.34         -1              77.34
    -66.6724         -1            66.6724
    -77.34         -1              77.34
    *5 rows selected.*
    Does anyone know what the problem?
    Did anyone see it any time?
    Thanks in advance,
    Braga

    Hi Erik,
    Sorry about that. I forgot to explain me well.
    Bellow the explain better.
    -- Describe of table
    SQL> desc analize_if_tran_data
    Name Null? Type
    TOTAL_RETAIL NUMBER(20,4)
    UNITS NOT NULL NUMBER(12,4)
    -- Results with bad values
    SQL>
    SQL> select total_retail, units, total_retail/units from analize_if_tran_data;
    TOTAL_RETAIL UNITS TOTAL_RETAIL/UNITS
    *.0000 10 .d067195* +(crazy result)+
    *.0000 10 .d067195* +(crazy result)+
    -77.34 -1 77.34
    -66.6724 -1 66.6724
    -77.34 -1 77.34
    5 rows selected.
    -- Inserting a new row with correct value
    SQL> insert into analize_if_tran_data values (-0.0101,10);
    1 row created.
    SQL> commit;
    Commit complete.
    -- Results with bad and one right value
    SQL> select total_retail, units, total_retail/units from analize_if_tran_data;
    TOTAL_RETAIL UNITS TOTAL_RETAIL/UNITS
    *.0000 10 .d067195* +(crazy result)+
    *.0000 10 .d067195* +(crazy result)+
    -77.34 -1 77.34
    -66.6724 -1 66.6724
    -77.34 -1 77.34
    -.0101         10            -.00101 +(right result)+
    6 rows selected.
    Now, see the results on a graphical tool:
    (Toad/SqlDeveloper)
    select total_retail, units, total_retail/units from analize_if_tran_data;
    -0,0101     10     1,9767195 +(crazy result)+
    -0,0101     10     1,9767195 +(crazy result)+
    -77,34     -1     77,34
    -66,6724     -1     66,6724
    -77,34     -1     77,34
    -0,0101     10     -0,00101 +(correct result)+
    I don't know if stayed clear for you.
    The right value is '-0,0101', but I only see this value when I execute a query on a graphical tool (pl/sql, sqldeveloper or toad).
    If I execute the query the division TOTAL_RETAIL/UNIS is wrong.
    I think that now I explained better.
    If you see it any time, please help me.
    Thank you very much,
    Braga

  • Exception Form Bad Value

    Hi Experts,
    I am trying to assign the value of warehouse column of a sap document by code. Generally we have cfl to choose warehouse.
    So the problem is that it is taking the value by code but throwing the exception .The message is "Form Bad Value".
    The Code is like
                                                            EditText oItemEdit = (EditText)oMatrix.Columns.Item("10").Cells.Item(i).Specific;
                                                            string whse = "07";
                                                            oItemEdit.Value = whse.Trim();
    Thanks
    Amit

    Hi Amit,
    Try This....
    If pVal.FormType = "940" And pVal.ColUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS And pVal.BeforeAction = False Then
                Try
                    oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, "1")
                    Dim omat As SAPbouiCOM.Matrix
                    omat = oform.Items.Item("23").Specific
                    Dim whs As String
                    whs = "07"
                    omat.Columns.Item("5").Cells.Item(pval.row).Specific.value = whs.Trim
                Catch ex As Exception
                    sbo_application.MessageBox(ex.Message)
                End Try
            End If
    Its working fine in my system
    Thanks
    Shafi
    Edited by: shafi_sunshine on Sep 20, 2011 9:39 AM

  • ORA-07446: sdnfy: bad value

    hi All,
    while trying to connect to start up the DB
    alpgadbq02sec:qait2:/qait/oracle/product/10.2.0/qait/dbs $ sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Jun 20 05:06:21 2009
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    ERROR:
    ORA-07446: sdnfy: bad value
    '/qait/oracle/product/10.2.0/qait/admin/qait1_alpgadbq01sec/udump' for
    parameter user_dump_dest.
    ORA-07446: sdnfy: bad value
    '/qait/oracle/product/10.2.0/qait/admin/qait1_alpgadbq01sec/udump' for
    parameter user_dump_dest.
    we are using 2 node RAC.
    thanks,
    Dash

    Hi..
    From Metlink:-
    Error: ORA 7446Text: sdnfy: bad value '%s' for parameter %s.
    Cause: The directory specified as the value for the stated parameter could
    not be used.
    Action: Make sure the directory you have specified is a valid
    directory/file specification.
    >
    Check the user_dump_dest parameter in the pfile init<sid>.ORA file, is it correct???
    Anand

  • Can't build gcc-4.1.2; error: bad value (generic) for -mtune= switch

    I need this specific version of gcc, so I got the old PKDBUILD from svn, see below. However when gcc compiles I run into this compile error:
    TARGET_CPU_DEFAULT="" \
    HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
    /bin/sh ../../gcc-4.1.2/gcc/mkconfig.sh tconfig.h
    ./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/home/chelg/tmp/abs/gcc-4.1/src/gcc-build/gcc/../ld -O2 -O2 -march=i686 -mtune=generic -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
    -c ../../gcc-4.1.2/gcc/crtstuff.c -DCRT_BEGIN \
    -o crtbegin.o
    ../../gcc-4.1.2/gcc/crtstuff.c:1: error: bad value (generic) for -mtune= switch
    make[2]: *** [crtbegin.o] Error 1
    make[2]: Leaving directory `/home/chelg/tmp/abs/gcc-4.1/src/gcc-build/gcc'
    make[1]: *** [stage1_build] Error 2
    make[1]: Leaving directory `/home/chelg/tmp/abs/gcc-4.1/src/gcc-build/gcc'
    make: *** [bootstrap] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    Here is the PKGBUILD I use:
    # $Id: PKGBUILD,v 1.60 2007/02/14 14:53:50 jgc Exp $
    # Maintainer: Jan de Groot <[email protected]>
    pkgname=gcc
    pkgver=4.1.2
    pkgrel=3
    pkgdesc="The GNU Compiler Collection"
    arch=(i686 x86_64)
    url="http://gcc.gnu.org"
    depends=('glibc' 'binutils>=2.17')
    options=('!libtool')
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,objc}-${pkgver}.tar.bz2
    ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man-4.0.0.tar.bz2
    DW_CFA_val.patch
    gcc_pure64.patch)
    md5sums=('2af3fb599635219171c6ae1f3034888a' '75c6d5fa3415d614314caf0f509e8933'
    'abda05c0ab99059e8f9e7a625361fd87' '2be86d2117c8fa7f9ec2845cc0660ab1'
    '078680c207f7cd490044d4a53edf158d' '1ceaa49e3a1d9f984ecc2893c43f7425')
    build() {
    export MAKEFLAGS="-j1"
    cd ${startdir}/src/gcc-${pkgver}
    # Don't install libiberty
    sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
    if [ "${CARCH}" = "x86_64" ]; then
    patch -Np1 -i ../gcc_pure64.patch || return 1
    fi
    patch -Np0 -i ${startdir}/src/DW_CFA_val.patch || return 1
    # Don't run fixincludes
    sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
    mkdir ../gcc-build
    cd ../gcc-build
    ../gcc-${pkgver}/configure --prefix=/usr --enable-shared \
    --enable-languages=c,c++,objc --enable-threads=posix \
    --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib \
    --libexecdir=/usr/lib --enable-clocale=gnu
    make bootstrap || return 1
    make DESTDIR=${startdir}/pkg install || return 1
    mkdir -p ${startdir}/pkg/lib
    (cd ${startdir}/pkg/lib; ln -s ../usr/bin/cpp)
    (cd ${startdir}/pkg/usr/bin; ln -sf gcc cc; ln -sf g++ c++)
    # install the libstdc++ man pages
    mkdir -p ${startdir}/pkg/usr/man/man3
    install -m644 ${startdir}/src/man/man3/* ${startdir}/pkg/usr/man/man3/
    Last edited by Phlogiston (2009-02-27 20:08:37)

    or here you go:
    # $Id: PKGBUILD,v 1.60 2007/02/14 14:53:50 jgc Exp $
    # Maintainer: Jan de Groot <[email protected]>
    pkgname=gcc-4.1
    pkgver=4.1.2
    pkgrel=3
    pkgdesc="The GNU Compiler Collection"
    arch=(i686 x86_64)
    url="http://gcc.gnu.org"
    depends=('glibc' 'binutils>=2.17')
    options=('!libtool')
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,objc}-${pkgver}.tar.bz2
    ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man-4.0.0.tar.bz2
    DW_CFA_val.patch
    gcc_pure64.patch)
    md5sums=('2af3fb599635219171c6ae1f3034888a' '75c6d5fa3415d614314caf0f509e8933'
    'abda05c0ab99059e8f9e7a625361fd87' '2be86d2117c8fa7f9ec2845cc0660ab1'
    '078680c207f7cd490044d4a53edf158d' '1ceaa49e3a1d9f984ecc2893c43f7425')
    build() {
    export MAKEFLAGS="-j1"
    cd ${startdir}/src/gcc-${pkgver}
    # Don't install libiberty
    sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
    if [ "${CARCH}" = "x86_64" ]; then
    patch -Np1 -i ../gcc_pure64.patch || return 1
    fi
    patch -Np0 -i ${startdir}/src/DW_CFA_val.patch || return 1
    # Don't run fixincludes
    sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
    mkdir ../gcc-build
    cd ../gcc-build
    ../gcc-${pkgver}/configure --prefix=/opt/gcc-4.1 --enable-shared \
    --enable-languages=c,c++,objc --enable-threads=posix \
    --enable-__cxa_atexit --disable-multilib \
    --enable-clocale=gnu
    make bootstrap || return 1
    make DESTDIR=${startdir}/pkg install || return 1
    mkdir -p ${startdir}/pkg/lib
    # (cd ${startdir}/pkg/lib; ln -s ../usr/bin/cpp)
    # (cd ${startdir}/pkg/usr/bin; ln -sf gcc cc; ln -sf g++ c++)
    # install the libstdc++ man pages
    mkdir -p ${startdir}/pkg/usr/man/man3
    install -m644 ${startdir}/src/man/man3/* ${startdir}/pkg/usr/man/man3/

  • Error BEA-382510 bad value for type node

    Hi,
    We have a requirement to read the xpath from the resource file placed in project folder in OSB and use that xpath to generate the report. For this I have done the following:
    1) Made the xpath entry to properties file as <xpath>$body/*/*/EMPTYPE/EMPDATA/EMPNO</xpath>
    2) Created a variable to fetch the xpath value from property file, say xpathvar
    3) Created another variable, say reportvar which will have the contents: <report>{$xpathvar/text()}</report>. This should fetch the xpath from the variable and replace it in the calling part to fetch the value of the xpath.
    4) For report generation the in key value it is ./text() from variable reportvar.
    When I test this it throws error:
    <con:errorCode>BEA-382510</con:errorCode>
    <con:reason>
    OSB Assign action failed updating variable "reportxpath": com.bea.wli.common.xquery.XQueryException: Error parsing XML: line 1, column 19: {err}XP0006: "$body/*/*/EMPTYPE/EMPDATA/EMPNO ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    </con:reason>
    Any pointers will be highly appreciated.
    Thanks!

    I think you cant substitute xpath as you have did.
    As shown in the blog which you mentioned in the other post you may need to have a xslt transformation with xalan:evaluate to correctly process the xpath read from the properties file.
    <report>{$xpathvar/text()}</report>. Here $xpathvar having the value '$body/*/*/EMPTYPE/EMPDATA/EMPNO' will be treated as string type (this will be string as you have read from the properties file as string) and not node. And you are trying to apply the text() function on a string instead of node which is resulting in that error.

  • BEA-382513: OSB Replace action failed: bad value for type element anyType

    Hello, in OSB I get this strange error message on my XQUERY TRANSFORMATION.
    *<faultstring>BEA-382513: OSB Replace action failed updating variable "response":*
    com.bea.wli.common.xquery.XQueryException:
    *Error parsing XML: {err}XP0006: "*
    *element {http://xmlns.oracle.com/pcbpel/adapter/db/top/CS2AdapterSelectOffenePosten_v0_5}Cs2DebitorOpVieCollection*
    *{ {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }":*
    bad value for type element
    *{http://xmlns.oracle.com/pcbpel/adapter/db/top/CS2AdapterSelectOffenePosten_v0_5}cs2RechungungenResponse*
    *{ {http://www.w3.org/2001/XMLSchema}anyType }*
    *</faultstring>*
    I'm a pl/sql developer and I have no idea what this error message is telling me.
    In this forum I'v read someting about a wrong namespace declaration. I can't see any wrong value on my xml (ok, I'm not the specialist here...)
    Maybe someone of you xquey cracks might have a look at my code?
    This is what I have:
    _1.) a XQuery variable called cs2RechnungenResponse with this content:_
    <cs2:Cs2DebitorOpVieCollection
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:cs2="http://xmlns.oracle.com/pcbpel/adapter/db/top/CS2AdapterSelectOffenePosten_v0_5">
         <cs2:Cs2DebitorOpVie>
              <cs2:f40Konto>333</cs2:f40Konto>
              <cs2:AMT_BEZEICHNUNG>Amt für Gesundheit</cs2:AMT_BEZEICHNUNG>
              <cs2:f40Belnr>555</cs2:f40Belnr>
              <cs2:f40Sohab>S</cs2:f40Sohab>
              <cs2:f40Dmbet>100</cs2:f40Dmbet>
              <cs2:f40Fadat>2011-05-05T00:00:00.000+02:00</cs2:f40Fadat>
              <cs2:f40Valut>2011-05-05T00:00:00.000+02:00</cs2:f40Valut>
              <cs2:f40Mahns/>
              <cs2:f40F40Sj>0</cs2:f40F40Sj>
         </cs2:Cs2DebitorOpVie>
    </cs2:Cs2DebitorOpVieCollection>
    _2. a xquery with this code:_
    (:: pragma bea:global-element-parameter parameter="$cs2RechnungenResponse" element="ns2:cs2RechnungenResponse" location="../adapters/cs2_adapters/xsd/CS2AdapterSelectOffenePosten_v0_5_table.xsd" ::)
    (:: pragma bea:global-element-return element="ns0:getDebitorRechnungResponse" location="../../interfaces/RechnungServiceTypes_v0_6.xsd" ::)
    declare namespace ns3 = "http://www.llv.li/common/types/v1";
    declare namespace ns2 = "http://xmlns.oracle.com/pcbpel/adapter/db/top/CS2AdapterSelectOffenePosten_v0_5";
    declare namespace ns1 = "http://www.llv.li/fin/types/v1";
    declare namespace ns0 = "http://www.llv.li/fin/services/rechnungService/v1";
    declare namespace xf = "http://tempuri.org/fin_sb/RechnungsService/transformations/CARI_CS_2DBAdpter_to_RechnungsServiceGetOffenePosten_v0_5/";
    declare function xf:CARI_CS_2DBAdpter_to_RechnungsServiceGetOffenePosten_v1_0($cs2RechnungenResponse as element(ns2:cs2RechnungenResponse))
    as element(ns0:getDebitorRechnungenResponse) {
    <ns0:getDebitorRechnungenResponse schemaVersion="0.6">
              if ($cs2RechnungenResponse/ns2:Cs2DebitorOpVie) then
              <ns0:debitorRechnungList>
         for $Cs2DebitorOpVie in $cs2RechnungenResponse/ns2:Cs2DebitorOpVie
         return
         <ns0:debitorRechnung>
              <ns1:peid>0</ns1:peid>
              <ns1:rechnungsnummer>{ data($Cs2DebitorOpVie/ns2:f40Belnr) }</ns1:rechnungsnummer>
              <ns1:rechnungsdatum>{ xs:date(fn-bea:remove-timezone-from-dateTime(data($Cs2DebitorOpVie/ns2:f40Fadat))) }</ns1:rechnungsdatum>
              <ns1:faelligAm>{ xs:date(fn-bea:remove-timezone-from-dateTime(data($Cs2DebitorOpVie/ns2:f40Valut))) }</ns1:faelligAm>
         <ns1:behoerde>{ data($Cs2DebitorOpVie/ns2:AMT_BEZEICHNUNG) }</ns1:behoerde>
         <ns1:positionList>
              <ns1:position>
                   <ns1:positionsnummer>1</ns1:positionsnummer>
                                                 <ns1:betrag>{ data($Cs2DebitorOpVie/ns2:f40Dmbet) }</ns1:betrag>
                                                 <ns1:waehrung>
                                                      <ns1:isoCode>CHF</ns1:isoCode>
                                                      <ns1:bezeichnung>Schweizer Franken</ns1:bezeichnung>
                                                 </ns1:waehrung>
              </ns1:position>
              </ns1:positionList>
         <ns1:status>offen</ns1:status>
              if ($Cs2DebitorOpVie/ns2:f40Mahns/text() > "") then
                   <ns1:mahnstufe>{ xs:int(data($Cs2DebitorOpVie/ns2:f40Mahns)) }</ns1:mahnstufe>
              else ()
         </ns0:debitorRechnung>
         </ns0:debitorRechnungList>
         else ()
    <ns0:resultatStatus>
         <ns3:code>Erfolgreich</ns3:code>
         <ns3:beschreibung>Rechnungen aus MFK fehlen</ns3:beschreibung>
    </ns0:resultatStatus>     
    </ns0:getDebitorRechnungenResponse>
    declare variable $cs2RechnungenResponse as element(ns2:cs2RechnungenResponse) external;
    xf:CARI_CS_2DBAdpter_to_RechnungsServiceGetOffenePosten_v1_0($cs2RechnungenResponse)
    _3. this should result in this response, but it doesn't_
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Body xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <v1:getDebitorRechnungenResponse schemaVersion="0.6" xmlns:v1="http://www.llv.li/fin/services/rechnungService/v1">
    <v1:debitorRechnungList>
    <v1:debitorRechnung>
    <v11:peid xmlns:v11="http://www.llv.li/fin/types/v1">333</v11:peid>
    <v11:rechnungsnummer xmlns:v11="http://www.llv.li/fin/types/v1">555</v11:rechnungsnummer>
    <v11:rechnungsdatum xmlns:v11="http://www.llv.li/fin/types/v1">2011-05-05</v11:rechnungsdatum>
    <v11:faelligAm xmlns:v11="http://www.llv.li/fin/types/v1">2011-05-05</v11:faelligAm>
    <v11:behoerde xmlns:v11="http://www.llv.li/fin/types/v1">Amt für Gesundheit</v11:behoerde>
    <v11:positionList xmlns:v11="http://www.llv.li/fin/types/v1">
    <v11:position>
    <v11:positionsnummer>1</v11:positionsnummer>
    <v11:betrag>100</v11:betrag>
    <v11:waehrung>
    <v11:isoCode>CHF</v11:isoCode>
    <v11:bezeichnung>Schweizer Franken</v11:bezeichnung>
    </v11:waehrung>
    </v11:position>
    </v11:positionList>
    <v11:status xmlns:v11="http://www.llv.li/fin/types/v1">offen</v11:status>
    </v1:debitorRechnung>
    </v1:debitorRechnungList>
    <v1:resultatStatus>
    <v11:code xmlns:v11="http://www.llv.li/common/types/v1">Erfolgreich</v11:code>
    <v11:beschreibung xmlns:v11="http://www.llv.li/common/types/v1">Rechnungen aus MFK fehlen</v11:beschreibung>
    </v1:resultatStatus>
    </v1:getDebitorRechnungenResponse>
    </soap-env:Body>
    </soapenv:Envelope>
    But I do not get this expectet result, all I get is the BEA-382513: OSB Replace action failed: bad value for type element anyType?
    Any help would be appreciated.
    Thanks
    Best regards
    rk

    cs2RechungungenResponse or cs2RechnungenResponse ? the error message says cs2RechungungenResponse, but the actual element is cs2RechnungenResponse (one less "u")

Maybe you are looking for