Error #: 409 : constant expression required at line 342

hi all,
switch( nodeClicked.hashCode() ) {
case "Devices".hashCode(): showPanel_Devices();
break;
case "Clusters".hashCode(): showPanel_Clusters();
break;
case "General".hashCode(): showPanel_General();
scan.nas.executeNTP(scan.getIPFromHash(parentNUSNode));
scan.nas.executeSystemInfo(scan.getIPFromHash(parentNUSNode));
scan.setValuesInNTP();
scan.setValuesInSystemInfo();
break; default: showPanel_LHNScreen();
break;
i am getting error at
"Devices".hashCode()
its saying that "constant expression required" at that place.......
can anyone help me plz.....its urgent..............
Thanks,
Kalpana

Case statements need integer literals or constant integer expressions. No runtime expressions are allowed.
Do this instead:
if(nodeClicked.equals("Devices")) ...;
else if(nodeClicked.equals("Clusters")) ...;
else if(nodeClikcked.equals("General")) ...;
else ...;It's not a good idea to use hash codes like this, because two objects with different values can have the same hash code.

Similar Messages

  • BUG: constant expression required

    Hello,
    the attached code fragment compiles with javac but produces a "constant expression required" with internal compiler (Version 10.1.3.0.4 (SU2))
    Regards
    Michael
    package bug.repro;
    public class Class1 {
    protected final int TYPE_LH = 1;
    package bug.repro;
    public class Class2 extends Class1 {
    protected void checkRule(int iStatus)
    switch (iStatus) {
    case TYPE_LH:
    break;
    -------

    Hi,
    thanks, i filed a bug.
    Frank

  • Constant expression required

    (Original thread http://forum.java.sun.com/thread.jsp?forum=31&thread=428634)
    Hello all,
    in the following class, if the comment is removed, the compiler complains that a constant expression is required.
    class Test {
    final static int A;
    final static int B=5;
    static {
    A=5;
    public static void main(String args[]) {
    switch(1) {
    //case A:
    case B:
    Is this a bug? Is this a feature? How could A not be a constant expression?
    Is it good coding style to initialize constant variables at declaration time and not in the static block?
    7Kami

    (Original thread
    http://forum.java.sun.com/thread.jsp?forum=31&thread=42
    634)
    Hello all,
    in the following class, if the comment is removed, the
    compiler complains that a constant expression is
    required.
    class Test {
    final static int A;
    final static int B=5;
    static {
    A=5;
    public static void main(String args[]) {
    switch(1) {
    //case A:
    case B:
    Is this a bug? Is this a feature? How could A not be a
    constant expression?JLS goes to a lot of detail explaining why this is a language feature. It is required to support Java's requirement to never have unreachable code. In order to do that, the compiler need to have compile-time const expressions in case labels (otherwise it can never detect at static compilation time whether a case branch is reachable or not [e.g., because it clashes with another case label]). Those expressions could be either literals or static finals etc.
    This, BTW, explains why inlining of static finals is not just an optimization but an essential language requirement.
    The relevant JLS sections to read are 14.20 and 13.4.8.

  • Switch: constant expression required

    Hi,
    i initialize some integer constants with the hash code of some strings. However, i cannot use these constants in "case"s of "switch". How can i deal with this?
    Here's the code:
        public void parseHeader()
            char[] headerChars=header_.toCharArray(); //the array representation of the XML header tag
            StringBuffer sBuffer=new StringBuffer();  //the String
            char c=' ';
            int fieldCode=0;
            for (int i=0; i<headerChars.length; i++)
                c=(char)headerChars;
    if (c=='\n')
    switch(fieldCode)
    case ACCEPT:
    sAccept_=new String(sBuffer);
    break;
    case ACCEPT_CHARSET:
    sAcceptCharset_=new String(sBuffer);
    break;
    case ACCEPT_ENCODING:
    sAcceptEncoding_=new String(sBuffer);
    break;
    case ACCEPT_LANGUAGE:
    sAcceptLanguage_=new String(sBuffer);
    break;
    case AUTHORIZATION:
    sAuthorization_=new String(sBuffer);
    break;
    case CACHE_CONTROL:
    sCacheControl_=new String(sBuffer);
    break;
    case CLIENT_IP:
    sClientIp_=new String(sBuffer);
    break;
    case INT_CONNECTION:
    sConnection_=new String(sBuffer);
    break;
    case CONTENT_LANGUAGE:
    sContentLanguage_=new String(sBuffer);
    break;
    case CONTENT_LOCATION:
    sContentLocation_=new String(sBuffer);
    break;
    case CONTENT_MD5:
    sContentMD5_=new String(sBuffer);
    break;
    case WARNING:
    sWarning_=new String(sBuffer);
    break;
    case X_FORWARDED_FOR:
    sXForwardedFor_=new String(sBuffer);
    break;
    case X_SERIAL_NUMBER:
    sXSerialNumber_=new String(sBuffer);
    break;
    default:
    System.err.println("Header field with hash code: "+fieldCode+" detected");
    else if (c==':')
    fieldCode=new String(sBuffer).hashCode();
    sBuffer=new StringBuffer();
    else
    sBuffer.append(c);
    private static final int ACCEPT= "Accept".hashCode();
    private static final int ACCEPT_CHARSET="Accept-Charset".hashCode();
    private static final int ACCEPT_ENCODING="Accept-Encoding".hashCode();
    private static final int ACCEPT_LANGUAGE="Accept-Language".hashCode();
    private static final int AUTHORIZATION="Authorization".hashCode();
    private static final int CACHE_CONTROL="Cache-Control".hashCode();
    private static final int CLIENT_IP="Client-ip".hashCode();
    private static final int CONNECTION="connection".hashCode();
    private static final int CONTENT_LANGUAGE="Content-Language".hashCode();
    private static final int CONTENT_LOCATION="Content-Location".hashCode();
    private static final int CONTENT_MD5="Content-MD5".hashCode();
    private static final int WARNING="Warning".hashCode();
    private static final int X_FORWARDED_FOR="X-Forwarded-For".hashCode();
    private static final int X_SERIAL_NUMBER="X-Serial-Number".hashCode();
    Message was edited by:
    uig

    the labels in a switch-case statement have to be compile-time constant. Anything that involves calling a method is not.
    you could make an enumerated type
    http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html

  • Error: An integer constant expression is required within the array subscrip

    hello all,
    here is a small piece of code which compile well with g++:
    #include <iostream>
    using namespace std;
    int main () {
    int i= 0, j=4 ;
    cout <<" i=" ; cin >> i ;
    cout  << "i="<<i<< endl;
    if ( i > 1) {
       double xx [i+5];
       int n= i+5;
       for (int k =0 ; k < n ; k++) xx[k] =k;
      cout << "xx[2]=" << xx[2] << " xx[4]=" << xx[4] <<" xx["<<i<<"]="<< xx[i] <<en
    dl;
      cout << "xx[1]=" << xx[3] << " xx[5]=" << xx[4] <<" xx["<<n-1<<"]="<< xx[n-1]
    <<endl;
    }with Sun Studio 12 CC, the error is:
    "x.C", line 12: Error: An integer constant expression is required within the array subscript operator.
    1 Error(s) detected.Is there an option to force CC to accept it? i read that CC has some gnu extensions (http://docs.sun.com/source/820-4155/c++.html)
    Thanks in advance for help,
    gerard

    This works:
    #include <iostream>
    #include <alloca.h>
    using namespace std;
    int main () {
    int i= 0, j=4 ;
    cout <<" i=" ; cin >> i ;
    cout  << "i="<<i<< endl;
    if ( i > 1) {
       double *xx = ( double * ) alloca( sizeof( *xx ) * ( i + 5 ) );
       int n= i+5;
       for (int k =0 ; k < n ; k++) xx[k] =k;
      cout << "xx[2]=" << xx[2] << " xx[4]=" << xx[4] <<" xx["<<i<<"]="<< xx[i] <<en
    dl;
      cout << "xx[1]=" << xx[3] << " xx[5]=" << xx[4] <<" xx["<<n-1<<"]="<< xx[n-1]
    <<endl;
    }

  • Error Message File:  \  \src\rmsdk_api_readr.cpp   Line:  1405   Expression:  loc!=NULL

    Error Message File:  \  \src\rmsdk_api_readr.cpp   Line:  1405   Expression:  loc!=NULL

    Please try on latest ADE version: 4.0.3

  • NI USB 6008: expected constant expression

    I am using NI USB 6008 device. Looking at NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Acq-Int Clk\
    So I want to modify the line that has
    DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,1000,10.0,DAQmx_Val_GroupByChannel,data,1000,&read,NULL));
    as
        DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,numsamps,TimeouT,DAQmx_Val_GroupByChannel,data,numsamps,&read,NULL));
    where the corresponding variables have been defined before like:
      Int_t xx=2;
      const Int_t numsamps = const_cast<Int_t&>(xx);
        int32       error=0;
        TaskHandle  taskHandle=0;
        int32       read;
        float64     data[numsamps];
        float64 RatE = float64(raTE);
        float64 TimeouT = float64(numsamps)/RatE;
    But when I try to compile I get this error message:
    $ nmake -f makefile.mak
    Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
    Copyright (C) Microsoft Corporation.  All rights reserved.
            cl  -D_MT -D_DLL -MDd -EHsc  -nologo -G5 -GR -MD -DWIN32  -DVISUAL_CPLUS
    PLUS -D_WINDOWS -IC:\ROOT/include -O2 -c SNatInDAQ.cpp
    cl : Command line warning D9025 : overriding '/MDd' with '/MD'
    cl : Command line warning D9002 : ignoring unknown option '-G5'
    SNatInDAQ.cpp
    SNatInDAQ.cpp(261) : error C2057: expected constant expression
    SNatInDAQ.cpp(261) : error C2466: cannot allocate an array of constant size 0
    SNatInDAQ.cpp(261) : error C2133: 'data' : unknown size
    NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
    l.EXE"' : return code '0x2'
    Stop.
    What does it mean 'expected constant expression'? How can I get around this?
    What I want to do is pass the size of that data array from another function.

    Hi novaiscool,
    I think the issue is that you are declaring numsamps as a constant and the DAQmxReadAnalogF64 function wnats a non constant parameter.  Have you tried calling the function with a regular int or a value?  Give that a try and see if you get the same error. 
    You will also need to initialize numsamps to something since you are allocating an array using that variable. 
    Give those things a try and let me know how it works.
    Thank You,
    Nick F.
    Applications Engineer

  • ORA-56901: non-constant expression is not allowed for pivot|unpivot values

    Getting following errors
    ORA-56901: non-constant expression is not allowed for pivot|unpivot values
    ORA-06512: at "APPS.PIVOT_AWARD", line 16
    ORA-06512: at line 5
    when i run the following function it is giving error as above.
    can you please help me
    create or replace
    Function Pivot_award return sys_refcursor
    IS
       v_dept    VARCHAR2 (20000);
       v_query   VARCHAR2 (1000);
       op_rs sys_refcursor;
    BEGIN
      SELECT LISTAGG(award_number,',') WITHIN GROUP (ORDER BY award_id)
      INTO V_DEPT FROM xxdl.XXDL_CD_SCHEDULE_K_GTT ;
       v_query :=
          'SELECT *
            FROM (
            select award_name, award_id,award_number from xxdl.XXDL_CD_SCHEDULE_K_GTT)
            PIVOT(max(VAL) for award_number in  ('||v_dept||'))';
       OPEN op_rs FOR v_query;
       return op_rs;
    END;
    SELECT LISTAGG(award_number,',') WITHIN GROUP (ORDER BY award_id)
      INTO V_DEPT FROM xxdl.XXDL_CD_SCHEDULE_K_GTT ;
    Result of 1st query is PPE_T_CAPITAL,XIBNG,XIABP,XIABQ,XIABR,XIABS,XIABT,XIABU,XIABV,XIABW,XIAAE,XIAAF,XIAAG,XIAAH,XIAAI,XIAAJ,XIAAK,XIAAL,XIAAM,XIAAN,XIAAO,XIAAP,XIAAQ,XIAAR,XIAAS,XIAAU,XIAAU,XIAAV,XIAAZ,XIABD,XIABE,XIABF,XIABG,XIABH,XIABI,XIABJ,XIABK,XIABL,XIABM,XIABN,XIAAA,XIAAB,XIAAC,XIAAD,XIABY,XIABZ,XIACA,XIACB,XIACC,XIACD,XIACE,XIACF,XIACG,XIACH,XIACI,XIABA,XIAAW,XIAAX,XIAAY,XIACN,XIACT,XIACU,XIACP,AAAEX,XIACW,XIADC

    Hi Frank,
    Here is the create table and insert script. This is needed for me to show in report rows to columns.
    create table award_test(
      AWARD_NUMBER                            VARCHAR2 (15) ,                                                                                                                                                                                
    AWARD_NAME                              VARCHAR2(30)  ,                                                                                                                                                                               
    TOTAL_PROCEEDS                          NUMBER    ,                                                                                                                                                                                   
    EARNING_PROCS                           NUMBER    ,                                                                                                                                                                                   
    TOT_PROCS_EARNINGS                      NUMBER   ,                                                                                                                                                                                    
    GROSS_PROCS                             NUMBER   ,                                                                                                                                                                                    
    PROC_REF_DEF_ESCR                       NUMBER   ,                                                                                                                                                                                    
    OTH_UNSP_PROCS                          NUMBER  ,                                                                                                                                                                                     
    ISSUANCE_COST                           NUMBER   ,                                                                                                                                                                                    
    WORK_CAP_EXP                            NUMBER 
    --insert script
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAE','CEFA CP',300000000,200,300000200,300,500,600,0,700);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABG','CEFA K',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAS','Escondido Village #3',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('AAAEX','SU2009A',801806000,null,801806000,null,null,null,1806000,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABI','CEFA L-6',17815000,null,17815000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAP','CEFA R',115050508.15,null,115050508.15,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACG','CEFA D',53150000,null,53150000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAB','Stu Union-1962',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAA','Notes Payable-Commercial Paper',350000000,null,350000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABZ','CEFA L-3',9840000,null,9840000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAV','CEFA B',18106540,null,18106540,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAI','Medium Term Notes - Tranche 3',50000000,null,50000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAZ','Recycling Pool',473379904.44,null,473379904.44,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAY','CEFA T2',187550000,null,187550000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAM','GMAC',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAU','CEFA A/K',16922982,null,16922982,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAC','SU TB 2002A - PARS',50000000,null,50000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABL','CEFA L-9',15490000,null,15490000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABY','CEFA L-2',8775000,null,8775000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAJ','Frat 1&2',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAW','CEFA S',180727500,null,180727500,null,null,null,-472500,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAQ','Escondido Village #1',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACW','CEFA U',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACF','CEFA E',19753227.34,null,19753227.34,null,null,null,-106772.66,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACN','CEFA T3',27562758.96,null,27562758.96,null,null,null,-47941.04,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAG','Medium Term Notes - Tranche 1',50000000,null,50000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('PPE_T_CAPITAL','PPE_T_CAPITAL',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAK','Frat 3',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAF','Tresidder',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABH','CEFA L',5055000,null,5055000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAU','CEFA A/K',6605655,null,6605655,null,null,null,-74345,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAD','SU 2024 Bonds',150000000,null,150000000,null,null,null,0,null);Expected output rows to columns (i took first two insert statements)
    'XIAAE','CEFA CP',300000000,200,300000200,300,500,600,0,700
    'XIABG','CEFA K',0,null,0,null,null,null,0,null
    I need to have awardnumber and corresponding details below
    'XIAAE'       'XIABG'
    'CEFA CP'    'CEFA K'
    300000000   0
    200             null
    300000200   0
    This way i need to get all the information vertically with awardnumber. I have written following code but it is not working.
    create or replace
    Function Pivot_award return sys_refcursor
    IS
       v_dept    VARCHAR2 (20000);
       v_query   VARCHAR2 (1000);
       op_rs sys_refcursor;
    BEGIN
      SELECT LISTAGG('''' || award_number || '''',',') WITHIN GROUP (ORDER BY award_number)
      INTO V_DEPT FROM award_test ;
       v_query :=
          'SELECT *  from award_test
            UNPIVOT(VAL for operator in(                                                                                                                                                                                                       
    AWARD_NAME,                                                                                                                                                                                                              
    TOTAL_PROCEEDS,                                                                                                                                                                                                             
    EARNING_PROCS ,                                                                                                                                                                                                              
    TOT_PROCS_EARNINGS ,                                                                                                                                                                                                           
    GROSS_PROCS    ,                                                                                                                                                                                                               
    PROC_REF_DEF_ESCR ,                                                                                                                                                                                                        
    OTH_UNSP_PROCS ,                                                                                                                                                                                                              
    ISSUANCE_COST ,                                                                                                                                                                                                            
    WORK_CAP_EXP ))
            PIVOT(max(VAL) for award_number in  ('||v_dept||'))';
       OPEN op_rs FOR v_query;
       return op_rs;
    END;throwing an error ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.PIVOT_AWARD", line 11
    ORA-06512: at line 5
    also when i run simple query
    SELECT *  from award_test
            UNPIVOT(VAL for operator in(                                                                                                                                                                                                       
    AWARD_NAME,                                                                                                                                                                                                              
    TOTAL_PROCEEDS,                                                                                                                                                                                                             
    EARNING_PROCS ,                                                                                                                                                                                                              
    TOT_PROCS_EARNINGS ,                                                                                                                                                                                                           
    GROSS_PROCS    ,                                                                                                                                                                                                               
    PROC_REF_DEF_ESCR ,                                                                                                                                                                                                        
    OTH_UNSP_PROCS ,                                                                                                                                                                                                              
    ISSUANCE_COST ,                                                                                                                                                                                                            
    WORK_CAP_EXP ))
            PIVOT(max(VAL) for award_number in  ('PPE_T_CAPITAL','XIBNG','XIABP')) Throwing an error
    ora-01790 Expression must have same datatype as correspoding expression
    Edited by: 893185 on Nov 10, 2011 2:00 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Sorry, a serious error has occurred that requires Adobe Premier Elements to shut down.

    I have Adobe Premier Elements 7. When I launch the application then try to begin using it an error is presented which advises Sorry, a serious error has occurred that requires Adobe Premier Elements to shut down. We will attempt to save your current project.  When I click OK the program shuts down. I have tried fixes I have found on the Forum. I have also uninstalled and reinstalled the program.

    From the Premiere Elements Information FAQ http://forums.adobe.com/thread/1042180
    •You MUST use an account with Administrator Privileges to run Premiere Elements
    •(Doing Run as Administrator http://forums.adobe.com/thread/969395 [says Encore and also for "All" versions of Premiere] will sometimes fix "odd" errors)
    •What version of Premiere Elements? Include the minor version number (e.g., Premiere Elements 12 with the 12.0.1 update).
    •What operating system? This should include specific minor version numbers, like "Mac OSX v10.9.4"---not just "Mac"
    •Has this ever worked before?  If so, do you recall any changes you made to Premiere Elements, such as adding Plug-ins, brushes, etc.?  Did you make any changes to your system, such as updating hardware, printers or drivers; or installing/uninstalling any programs?
    •Have you installed any recent program or OS updates? (If not, you should. They fix a lot of problems.)
    •What kind(s) of image file(s)? When talking about camera raw files, include the model of camera.
    •If you are getting error message(s), what is the full text of the error message(s)?
    •What were you doing when the problem occurred?
    •What other software are you running?
    •Tell us about your computer hardware. How much RAM is installed?  How much free space is on your system (C:) drive?
    •How many and what speed are your hard drive(s)... ie 5400rpm or 7200rpm or?
    And some other questions...
    •What are you editing, and does your video have a red line over it BEFORE you do any work?
    •Which version of Quicktime do you have installed?
    •What is your exact brand/model graphics adapter (ATI or nVidia or ???)
    •What is your exact graphics adapter driver version?
    •Have you gone to the vendor web site to check for a newer driver?
    •For Windows, do NOT rely on Windows Update to have current driver information
    •-you need to go direct to the vendor web site and check updates for yourself
    •ATI Driver Autodetect http://support.amd.com/en-us/download/auto-detect-tool
    •nVidia Driver Downloads http://www.nvidia.com/Download/index.aspx?lang=en-us

  • Another "Sorry, a serious error has occurred that requires Adobe Premiere Elements to shut down. We will attempt to save your current project."

    When I try an open the original project or a copy of it I get this message.
    "Sorry, a serious error has occurred that requires Adobe Premiere Elements to shut down. We will attempt to save your current project."
    I have tried to create a new project and get the same message.
    I have tried uninstalling and reinstalling the program a few times.
    The last time I worked on the project I had no issues.
    Any suggestions?

    Hi
    a. Open Premiere Elements 9.0/9.0.1 - Yes, I get the welcome screen (v9.0).  I can choose open project, and choose my project.  The program will open and show that it is loading the project with the scroll line will show all the way to 100% and will stay there.  Sometimes I get the "Sorry" message and sometimes the loading project window just goes away and nothing is loaded and the program stays on the clock until I close it.
    b. You can find the Adobe Premiere Elements Prefs file and deletion of it makes no difference to your issue. - Made no difference
    c. Have you deleted the whole 9.0 Folder in which the Adobe Premiere Elements Prefs file exists? If not, please do so. - Done, made no difference
    1. Does the problem exist with and without the antivirus and firewall(s) disabled? - Running McAfee Total Access Protection.  Turned off firewall and anti virus. It works.  As a test I left the anti virus off and tried loading project with and with out the firewall turned on.  The project loaded each time.  I then tested the firewall on, with and with out antivirus.  Antivirus off - project loads each time.  Antivirus on - doesn't load and program stays on clock.
    I will continue to experiment with it and see what happens.  The last time I used it I was running a different McAfee product than no.  So it seems to work with the Firewall on and the Antivirus off.

  • JDeveloper Error: White spaces are required between publicId and systemId.

    I'm using JDeveloper 10.1.3.1.0.
    This error is occurring in a BPEL process project.
    With one particular web service I have, adding a Partner Link to the BPEL generates the following compile error:
    Error: White spaces are required between publicId and systemId.
    I can add Partner links from other web services and the BPEL will compile fine. The main difference I can see is that this web service supports WS-Addressing.
    I have found one other reference to a similar (but not exactly the same) problem elsewhere in these forums but the fix is not really applicable. All of the wsdl files pass the "Validate WSDL" operation, and I don't see anything wrong with them.
    When the error occurs and I select "Go To Source" it points back to the first line of the bpel file.
    Can anyone help me out on this?
    This is the wsdl for the web service, wsademo.wsdl:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="wsademo"
    targetNamespace="http://localhost:11001/wsademo.wsdl"
    xmlns:tns="http://localhost:11001/wsademo.wsdl"
    xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
    xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
    xmlns:ns="http://localhost:11001/wsademo.wsdl"
    xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
    xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <schema targetNamespace="http://localhost:11001/wsademo.wsdl"
    xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
    xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
    xmlns:ns="http://localhost:11001/wsademo.wsdl"
    xmlns="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="unqualified"
    attributeFormDefault="unqualified">
    <import namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    <import namespace="http://www.w3.org/2003/05/soap-encoding"/>
    <!-- operation request element -->
    <element name="wsademoResult">
    <complexType>
    <sequence>
    <element name="out" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <!-- operation request element -->
    <element name="wsademo">
    <complexType>
    <sequence>
    <element name="in" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <!-- operation response element -->
    <element name="wsademoResult">
    <complexType>
    <sequence>
    <element name="out" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="wsademoResult">
    <part name="parameters" element="ns:wsademoResult"/>
    </message>
    <message name="wsademo">
    <part name="parameters" element="ns:wsademo"/>
    </message>
    <message name="wsademoResult">
    <part name="parameters" element="ns:wsademoResult"/>
    </message>
    <message name="wsademoHeader">
    <part name="MessageID" element="wsa:MessageID"/>
    <part name="RelatesTo" element="wsa:RelatesTo"/>
    <part name="From" element="wsa:From"/>
    <part name="ReplyTo" element="wsa:ReplyTo"/>
    <part name="FaultTo" element="wsa:FaultTo"/>
    <part name="To" element="wsa:To"/>
    <part name="Action" element="wsa:Action"/>
    </message>
    <portType name="wsademoPort">
    <operation name="wsademoResult">
    <documentation>accepts a string value from a relayed response</documentation>
    <input message="tns:wsademoResult"/>
    </operation>
    <operation name="wsademo">
    <documentation>echos a string value and relays the response to the wsa replyTo address (if present)</documentation>
    <input message="tns:wsademo"/>
    <output message="tns:wsademoResult"/>
    </operation>
    </portType>
    <binding name="wsademo" type="tns:wsademoPort">
    <SOAP:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="wsademoResult">
    <SOAP:operation soapAction="urn:wsademo/wsademoPort/wsademoResult"/>
    <input>
    <SOAP:body parts="parameters" use="literal"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="Action"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="To"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="FaultTo"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="ReplyTo"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="From"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="RelatesTo"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="MessageID"/>
    </input>
    </operation>
    <operation name="wsademo">
    <SOAP:operation soapAction="urn:wsademo/wsademoPort/wsademo"/>
    <input>
    <SOAP:body parts="parameters" use="literal"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="Action"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="To"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="FaultTo"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="ReplyTo"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="From"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="RelatesTo"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="MessageID"/>
    </input>
    <output>
    <SOAP:body parts="parameters" use="literal"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="Action"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="To"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="FaultTo"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="ReplyTo"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="From"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="RelatesTo"/>
    <SOAP:header use="literal" message="tns:wsademoHeader" part="MessageID"/>
    </output>
    </operation>
    </binding>
    <service name="wsademo">
    <documentation>demonstrates WS-Addressing capabilities</documentation>
    <port name="wsademo" binding="tns:wsademo">
    <SOAP:address location="http://localhost:11001"/>
    </port>
    </service>
    </definitions>
    This is the wsdl that is generated by JDeveloper that contains the PartnerLinks and refernce back to the original wsdl file, wsademoRef.wsdl:
    <definitions
    name="wsademo"
    targetNamespace="http://localhost:11001/wsademo.wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://localhost:11001/wsademo.wsdl"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    >
    <import namespace="http://localhost:11001/wsademo.wsdl" location="wsademo.wsdl"/>
    <plnk:partnerLinkType name="wsademoPort_PL">
    <plnk:role name="wsademoPort_Role">
    <plnk:portType name="tns:wsademoPort"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    And finally the is the BPEL, WSAtest3.bpel:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Thu Oct 05 15:27:12 GMT-08:00 2006
    Author: wstielau
    Purpose: Synchronous BPEL Process
    -->
    <process name="WsaTest3" targetNamespace="http://xmlns.oracle.com/WsaTest3"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns1="http://localhost:11001/wsademo.wsdl"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ns2="http://localhost:80/Service.wsdl"
    xmlns:client="http://xmlns.oracle.com/WsaTest3"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension/"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:WsaTest3"
    myRole="WsaTest3Provider"/>
    <partnerLink name="wsademo" partnerLinkType="ns1:wsademoPort_PL"
    myRole="wsademoPort_Role" partnerRole="wsademoPort_Role"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:WsaTest3RequestMessage"/>
    <!-- Reference to the message that will be returned to the requester-->
    <variable name="outputVariable"
    messageType="client:WsaTest3ResponseMessage"/>
    <variable name="Invoke_1_wsademo_InputVariable" messageType="ns1:wsademo"/>
    <variable name="Invoke_1_wsademo_OutputVariable"
    messageType="ns1:wsademoResult"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in WsaTest3.wsdl) -->
    <receive name="receiveInput" partnerLink="client" portType="client:WsaTest3"
    operation="process" variable="inputVariable" createInstance="yes"/>
    <!-- Generate reply to synchronous request -->
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:WsaTest3ProcessRequest/client:input"/>
    <to variable="Invoke_1_wsademo_InputVariable" part="parameters"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" partnerLink="wsademo" portType="ns1:wsademoPort"
    operation="wsademo" inputVariable="Invoke_1_wsademo_InputVariable"
    outputVariable="Invoke_1_wsademo_OutputVariable"/>
    <assign name="Assign_2">
    <copy>
    <from variable="Invoke_1_wsademo_OutputVariable" part="parameters"/>
    <to variable="outputVariable" part="payload"
    query="/client:WsaTest3ProcessResponse/client:result"/>
    </copy>
    </assign>
    <reply name="replyOutput" partnerLink="client" portType="client:WsaTest3"
    operation="process" variable="outputVariable"/>
    </sequence>
    </process>
    -Wayne Stielau
    Open Text Corporation
    Irvine, CA

    I have discovered two issues.
    1. JDeveloper does not seem to like the SOAP 1.2 envelope and encoding namespaces. Is this a known limitation? Changed them to 1.1.
    2. JDeveloper does not like the double definition of wsaDemoResult.
    When these two items are changed, the bpel compiles clean. Now I've got to get the message header to populate correctly. There are no values assigned, only namespace definitions. This is the SOAP packet that is received at the web service.
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Header>
    <MessageID xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    <From xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    <RelatesTo xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    <Action xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    <ReplyTo xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    <To xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    <FaultTo xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    </env:Header>
    <env:Body>
    <wsademo xmlns="http://localhost:11001/wsademo.wsdl">
    <in xmlns="">hello</in>
    </wsademo>
    </env:Body>
    </env:Envelope>

  • Class format error: Invalid constant pool tag found

    I am simply attempting to create an instance of an object and I get Class format error: Invalid constant pool tag found. Does anyone know what this means and how to fix it?
    Thanks.

    If you're compiling with J2SDK 1.4 or higher, you need to use "-target 1.1" on the javac command line.
    Also make sure you're not using any float constants such as 1.0 in your code.

  • Error in assign expression

    Trying to copy values between two variables, we have the error message that follows.
    Please could you help us?
    Thanks a lot,
    Giovanni
    Error in <assign> expression: <to> value is empty at line 184 The Xpath expression: "/tns:rispostaVisuraFamiglia/tns:esito/tns:indirizzo" return zero node, when applied to document shown below:
    <rispostaVisuraFamiglia xmlns="http://samples.otn.com"><esito><persona><cognome>xxx</cognome><nome>xxx</nome><codiceFiscale>xxx</codiceFiscale><dataNascita>01111964</dataNascita><comuneNascita>Bari</comuneNascita><statoNascita>Italia</statoNascita></persona><comune>Bari</comune><provincia>BA</provincia><indirizzo>Via fsgsf</indirizzo></esito></rispostaVisuraFamiglia>
    <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <part name="summary">empty variable/expression result. xpath variable/expression expression "/tns:rispostaVisuraFamiglia/tns:esito/tns:indirizzo" is empty at line 184, when attempting reading/copying it. Please make sure the variable/expression result "/tns:rispostaVisuraFamiglia/tns:esito/tns:indirizzo" is not empty.</part>
    </selectionFailure>

    Hi Giovanni,
    do you have xmlns:tns="http://samples.otn.com" at the process level? like:
    <process xmlns:tns="http://samples.otn.com" ...
    </process>
    the document and xpath looks correct, only thing is if tns prefix might be refering to wrong namespace instead of http://samples.otn.com

  • C++ STL library error: Non-const function ... called for const object

    Hello,
    I'm using the Forte Developer 6 Update 2 C++ compiler and standard library on Solaris 9 SPARC. I've installed the recommended patch set for C++ (both the workshop and platform patches).
    In my code, I have a STL set with some elements that I want to modify, say:
    typedef set<SomeClass> MySet;
    typedef MySet::iterator MySetIter;
    I'm trying to look for an element, then update some of its fields:
    MySet theSet;
    SomeClass sci;
    MySetIter it = theSet.find(sci);
    if (it != theSet.end()) {
    it->update_some_fields();
    The above code fails with the following error (some details scrapped):
    Error: Non-const function SomeClass::update_some_fields() called for const object
    Which is weird, since set::find() seems to return a set<...>::iterator, not a set<...>::const_iterator!
    If I try a workaround, like this:
    if (it != theSet.end()) {
    SomeClass &tmp = *it;
    tmp->update_some_fields();
    I get this other error:
    Initializing SomeClass& requires an lvalue.
    Is there some way to convince the Forte compiler to work around this situation (most likely a compiler / library bug)?

    This was fixed, too, by replacing the set with a map. It seems that the issue was related to the fact that any change made to a set member is supposed to not modify the elements that make up the key (the elements that are used in the comparison function to determine the ordering). The Windows (dinkumware) implementation of the STL allows set modifications, though I don't know how they check that the key fields are not modified. The Solaris implementation (and the GNU implementation, too) disallows any modifications made to set members. At least that's what a person more knowledgeable of C++ in our office found out. So I don't think the issue was related to template constructors or any unimplemented features after all.

  • Error : Array constants can only be used in initializers

    Hello All,
    I am using tableview model and declared two-dimensional array.
    Getting error Array constants can only be used in initializers in the line retVal<i>[j] =  {  {  createBy,desc,dispName }  };
    String[][] retVal;
    retVal = new String[20][20]
    //Fetching IResorce propeties here
    int resourceCounter = 0;
    for (int i = 0; i < list.size(); i++) {
       for (int j = 0; j < i; j++) {
          IResource ir = list.get(i);
          createBy = ir.getCreatedBy();
          desc = ir.getDescription();
            dispName = ir.getDisplayName();
         retVal<i>[j] =  {  {  createBy,desc,dispName }  };
         resourceCounter++;
    return retVal;
    Please help me out.
    Thanks
    Risha                              }

    I created ArrayList 
    static public String[] colnames =
                   "News Title",
                   "Short Description",
                   "Published",
                   "Valid To",
                   "Read Count",
                   "Users Details",
                   "Reply" };
         public ArrayList createData() {
               ArrayList rowArrList = new ArrayList();
              ArrayList tableArrList = new ArrayList();
              String createBy = null;
              String desc = null;
              String dispName = null;
              String lastMod = null;
              String name = null;
              String resType = null;
              try {
                   com.sapportals.portal.security.usermanagement.IUser user = null;
                   user = WPUMFactory.getUserFactory().getEP5User(request.getUser());
                   IResourceContext resourceContext = new ResourceContext(user);
                   String path = "/documents/Australia/News";
                   RID rid = RID.getRID(path);
                   com.sapportals.wcm.repository.IResource res =
                        ResourceFactory.getInstance().getResource(rid, resourceContext);
                   IProperty prop = null;
                   String propValue = null;
                   PropertyName propName = null;
                   if (res != null) {
                        if (res.isCollection()) {
                             ICollection collection = (ICollection) res;
                             IResourceList list = collection.getChildren();
                             int resourceCounter = 0;
                             for (int i = 0; i < list.size(); i++) {                              
    //                              for (int j = 0; j < i; j++) {
                                       IResource ir = list.get(i);
                                       createBy = ir.getCreatedBy();
                                       desc = ir.getDescription();
                                       dispName = ir.getDisplayName();
                                       lastMod = ir.getLastModifiedBy();
                                       name = ir.getName();
                                       resType = ir.getResourceType();
                                       rowArrList.add(createBy);
                                       rowArrList.add(desc);
                                       rowArrList.add(dispName);
                                       rowArrList.add(lastMod);
                                       rowArrList.add(name);
                                       rowArrList.add(resType);
                                       tableArrList.add(i,rowArrList);
                                  //}//Inside for loop
                             }//First for loop
                        }//Inside If
              } catch (ResourceException e) {
                   // TODO Auto-generated catch block
                   response.write("Error " + e.getMessage());
              } catch (UserManagementException ex) {
                   ex.printStackTrace();
                   response.write("Error " + ex.getMessage());
              return tableArrList;
          * Constructor.
         public TableViewBean() {
              ArrayList tabArr = createData();
              String[][] data = (String[][])tabArr.toArray();          
              model = new DefaultTableViewModel(data, colnames);
    Edited by: Risha on May 26, 2011 8:52 AM

Maybe you are looking for