Compiling Error when using Default Parameters

Hi
I tried to compile some sources within a Development Environment of a CAD-System (CATIA V5). The compiler Version 4.2 is required. But only 5.3 (Forte C++ WS6U2) is available. So I compiled with option -compat (or -compat=4).
The compiler stops at this line
typedef CATBoolean (CATCommand::*ActionMethod)(void * iData = NULL) ;
with the following Error
"/usr/lpp/cat500/B07/./DialogEngine/ProtectedInterfaces/CATDiaAction.h", line 30:
Error: Default parameters are not allowed for unsigned char(void*)
When I modify the line to
typedef CATBoolean (CATCommand::*ActionMethod)(void * iData) ;
everything works fine. But the Problem is, that the modified Header File is part of the delivered Development Environment. Normally I should not modify such a file
Compiler Call + Options:
CC -c -DUNIX -DSunOS \
-compat=4 library=rwtools7,iostream \
-noex -xO2 -w -mt -xarch=v8 -xchip=ultra -KPIC \
-D_LANGUAGE_CPLUSPLUS \
-D_SUNOS_SOURCE -D_ENDIAN_BIG -DOS_SunOS \
-D_MK_CONTNAME_=PSOLUserIntegrationPartApi \
-D_MK_MODNAME_=PSOLUserIntegrationPartApi -D_MK_FWNAME_=External \
-I/home/src/LocalInterfaces \
-I/home/src/LocalGenerated/solaris_a \
-I/home/src/ProtectedInterfaces \
-I/home/src/ImportedInterfaces/solaris_a \
-I/usr/dt/include \
-I/usr/openwin/include \
/home/src/PSOLUserIntegrationGeometryCmd.cpp ) \
Any idea which compiler option I could use to avoid the Error I explained before ?
Here some more Infos:
Solaris7
CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15
Thanks in Advance

Hi
I tried to compile some sources within a Development Environment of a CAD-System (CATIA V5). The compiler Version 4.2 is required. But only 5.3 (Forte C++ WS6U2) is available. So I compiled with option -compat (or -compat=4).
The compiler stops at this line
typedef CATBoolean (CATCommand::*ActionMethod)(void * iData = NULL) ;
with the following Error
"/usr/lpp/cat500/B07/./DialogEngine/ProtectedInterfaces/CATDiaAction.h", line 30:
Error: Default parameters are not allowed for unsigned char(void*)
When I modify the line to
typedef CATBoolean (CATCommand::*ActionMethod)(void * iData) ;
everything works fine. But the Problem is, that the modified Header File is part of the delivered Development Environment. Normally I should not modify such a file
Compiler Call + Options:
CC -c -DUNIX -DSunOS \
-compat=4 library=rwtools7,iostream \
-noex -xO2 -w -mt -xarch=v8 -xchip=ultra -KPIC \
-D_LANGUAGE_CPLUSPLUS \
-D_SUNOS_SOURCE -D_ENDIAN_BIG -DOS_SunOS \
-D_MK_CONTNAME_=PSOLUserIntegrationPartApi \
-D_MK_MODNAME_=PSOLUserIntegrationPartApi -D_MK_FWNAME_=External \
-I/home/src/LocalInterfaces \
-I/home/src/LocalGenerated/solaris_a \
-I/home/src/ProtectedInterfaces \
-I/home/src/ImportedInterfaces/solaris_a \
-I/usr/dt/include \
-I/usr/openwin/include \
/home/src/PSOLUserIntegrationGeometryCmd.cpp ) \
Any idea which compiler option I could use to avoid the Error I explained before ?
Here some more Infos:
Solaris7
CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15
Thanks in Advance

Similar Messages

  • Getting Compilation error when used SET or MULTISET operator on nested tabl

    Dear All,
    I am getting Compilation error when used SET or MULTISET operator on nested tables inside a procedure.
    This is working fine in other DB installations of 10g but does not work in another 10g DB.
    it says "wrong number of parameter or datatype used in SET"
    Can any one suggest what went wrong here?
    Thanks in advance.

    Can any one suggest what went wrong here?Only if you would post the query and Oracle versions on both databases.
    Besides, this forum deals with issues in Oracle product installation. So post this query in SQL PL/SQL forum for better response.

  • Compilation error when used SET or MULTISET operator on nested tables

    Dear All,
    I am getting Compilation error when used SET or MULTISET operator on nested tables inside a procedure.
    This is working fine in other DB installations of 10g but does not work in another 10g DB.
    it says "wrong number of parameter or datatype used in SET"
    Can any one suggest what went wrong here?
    Thanks in advance.

    Hi,
    Thanks for ur reply...
    Since MULTISET and SET operators are the new additions in base 10g release for manipulation of nested tables data, I am surprised that same is working in similar 5 DBs installations with 10.2.0.1.0 version, but does not work in the sixth.
    SET and MULTISET operators are used inside the PL/SQL procedure which is getting compiled in the above mentioned 5 DBs but not in sixth DB.
    it gives
    On line: 3112
    PLS-00306: wrong number or types of arguments in call to 'SET'
    Hope this clarifies the issue...

  • Compiler error when useing switch statements in an inner class

    I have defined several constants in a class and want to use this constans also in an inner class.
    All the constants are defined as private static final int.
    All works fine except when useing the switch statement in the inner class. I get the compiler error ""constant expression required". If I change the definition from private static final to protected static final it works, but why?
    What's the difference?
    Look at an example:
    public class Switchtest
       private static final int AA = 0;     
       protected static final int BB = 1;     
       private static int i = 0;
       public Switchtest()
          i = 0; // <- OK
          switch(i)
             case AA: break; //<- OK, funny no problem
             case BB: break; //<- OK
             default: break;
      private class InnerClass
          public InnerClass()
             i = 0; // <- OK: is accessible
             if (AA == i) // <- OK: AA is seen by the inner class; i  is also accessible
                i = AA + 1;
             switch(i)
                case AA: break; // <- STRANGE?! Fail: Constant expression required
                case BB: break; // <- OK
                default: break;
    }Thank's a lot for an explanation.

    Just a though:
    Maybe some subclass of Switchtest could decalare its own variable AA that is not final, but it can not declare its own BB because it is visible from the superclass. Therefore the compiler can not know for sure that AA is final.

  • Compiler errors when using dynamic text in a class

    I have created a MovieClip with a custom class that has a dynamic text field (called "textArea"), which I want to modify by the Component Inspector, as well as via a custom method using:
    textArea.text = newText;
    It works fine in all cases and there are no problems, but the compiler still wants to give me the error:
    1120: Access of undefined property textArea.
    The error doesn't appear when I remove the component parameters (so that it's just a normal MovieClip). It still works, even with the error, so I'm not sure why it wants to complain. Am I doing something wrong or is it just being bitchy?

    By defining them in the class and using the class name under component definition:
    [Inspectable(name="Text", type=String, defaultValue="")]
    public function set text(setText:String)
         textArea.text = setText;
    public function get text():String
         return textArea.text;
    A problem I run into is that the compiler errors prevent the parameters from being defined so I comment out every line that has to do with textArea, define the component, then uncomment them so that it'll work when it runs.

  • Error when using Date Parameters...

    Hi everybody,
    I have a little issue.
    Ever since I upgraded my CRXI R2 to SP4 I've had a little problem using date parameters.
    The little calendar icon next to the parameter field no longer works.
    When I click it I get the following error message:
    An error has occurred in the script on this page.
    Line:       79
    Char:      1
    Error:      Object Expected
    Code:      0
    URL:       file://C:\Documents and Settings\jlong\Local Settings\Temp\prompting1.html
    I'm thinking this is probable a quick registry fix, but I have no idea where to start looking.
    Hopefully one of you CR guru's knows the answer.
    Thanks in advance,
    Jason

    It seems you are having a scripting issue.
    Go onto the Internet explorer settings (internet options under control panel)
    click on security and then click on Internet and then Custom tab.
    Scroll right down where it says Scripting and enable it.
    That should resolve the issue.
    Here is the full list of browsers with scripting options:
    Windows Internet Explorer
    (all versions except Pocket Internet Explorer)
    Note To allow scripting on this Web site only, and to leave scripting disabled in the Internet zone, add this Web site to the Trusted sites zone.
    1. On the Tools menu, click Internet Options, and then click the Security tab
    2. Click the Internet zone.
    3. If you do not have to customize your Internet security settings, click Default Level. Then do step 4
    If you have to customize your Internet security settings, follow these steps:
    a. Click Custom Level
    b. In the Security Settings u2013 Internet Zone dialog box, click Enable for Active Scripting in the Scripting section.
    4. Click the Back button to return to the previous page, and then click the Refresh button to run scripts.
    ===========
    Mozilla Corporationu2019s Firefox version 2
    1. On the Tools menu, click Options.
    2. On the Content tab, click to select the Enable JavaScript check box.
    3. Click the Go back one page button to return to the previous page, and then click the Reload current page button to run scripts.
    ===========
    Opera Softwareu2019s Opera version 9
    1. On the Tools menu, click Preferences.
    2. On the Advanced tab, click Content.
    3. Click to select the Enable JavaScript check box, and then click OK.
    4. Click the Back button to return to the previous page, and then click the Reload button to run scripts.
    ===========
    Netscape browsers
    1. Select Edit, Preferences,Advanced
    2. Click to select Enable JavaScript option
    Hope this helps.
    Regards
    Jehanzeb
    Edited by: Jehanzeb Navid on Jul 28, 2008 4:38 PM
    Ok I think I got this totally wrong. this isn't what you are looking for.
    Sorry!!! can't delete this reply arggghh!!!
    Edited by: Jehanzeb Navid on Jul 28, 2008 4:40 PM
    Maybe this might help?
    Remove Web Customization
    If multiple folders are causing the script error, remove Web customization from any folder that generates the error message.
    To remove customization from a folder, use the following steps:
    1. Open the appropriate folder.
    2. On the View menu, click Customize This Folder, click Remove Customization, click Next, and then click Finish.
    3. Close the folder.

  • Compile errors when using stlport4

    Hi,
    I have a large code that I am compiling using SunStudio12 and stlport4 (that comes with the compiler).
    It has other libraries (ACE, boost, in-house libs) that we link it with. All of these libs were built using the SunStudio12 and stlport4. When I am linking with my program, I get the following errors. Can you pls explain why?
    Linking CXX executable AgoraConnectionTest
    cd /home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/hermes/Tests/AgoraConnectionTest && /home/sherugu1/cmake-2.6.2-SunOS-sparc/bin/cmake -E cmake_link_script CMakeFiles/AgoraConnectionTest.dir/link.txt --verbose=1
    /home/cdev/SunStudio12/SUNWspro/prod/bin/CC -g -KPIC -m32 CMakeFiles/AgoraConnectionTest.dir/AgoraConnectionTest.cpp.o CMakeFiles/AgoraConnectionTest.dir/TISTest.cpp.o CMakeFiles/AgoraConnectionTest.dir/TSSTest.cpp.o CMakeFiles/AgoraConnectionTest.dir/process_response.cpp.o -o AgoraConnectionTest -L/home/cdev/pkgs/boost_1_36_0_other/Sol10_Sparc_SS12_STLPort4_32bit/lib -L/home/cdev/csfb/gmr/10.0.1/gmr/solaris10_32bit_SS12/lib -L/home/cdev/pkgs/ace/ACE-5.6-Solaris10_SS12/ACE_Wrappers/lib -L/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/hermes/api/ems/solaris10_32bit_SS12/lib -L/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/hermes/api/solaris10_32bit_SS12/lib -L/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/Cadre/solaris10_32bit_SS12/lib -L/home/cdev/pkgs/ems/solaris/4.4.1/clients/c/lib -L/home/cdev/SunStudio12/SUNWspro/prod/lib/stlport4 -Bstatic -lapiD -lNOTIFg -Bdynamic -lACE -Bstatic -lcadreD -ltibems -Bdynamic -lboost_unit_test_framework-sw-mt-1_36 -lboost_date_time-sw-mt-1_36 -lboost_thread-sw-mt-1_36 -lstlport -R/home/cdev/pkgs/boost_1_36_0_other/Sol10_Sparc_SS12_STLPort4_32bit/lib:/home/cdev/csfb/gmr/10.0.1/gmr/solaris10_32bit_SS12/lib:/home/cdev/pkgs/ace/ACE-5.6-Solaris10_SS12/ACE_Wrappers/lib:/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/hermes/api/ems/solaris10_32bit_SS12/lib:/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/hermes/api/solaris10_32bit_SS12/lib:/home/sherugu1/ndev/HermesAPI/trunk/HermesCpp/Cadre/solaris10_32bit_SS12/lib:/home/cdev/pkgs/ems/solaris/4.4.1/clients/c/lib:/home/cdev/SunStudio12/SUNWspro/prod/lib/stlport4
    ld: warning: symbol `std::locale::facet::__vtbl' has differing sizes:
    (file /home/cdev/pkgs/boost_1_36_0_other/Sol10_Sparc_SS12_STLPort4_32bit/lib/libboost_date_time-sw-mt-1_36.so value=0x14; file /home/cdev/SunStudio12/SUNWspro/prod/lib/stlport4/libstlport.so value=0xc);
    /home/cdev/pkgs/boost_1_36_0_other/Sol10_Sparc_SS12_STLPort4_32bit/lib/libboost_date_time-sw-mt-1_36.so definition taken
    ld: fatal: symbol `void std::vector<bool>::resize(unsigned,bool)' is multiply-defined:
    (file CMakeFiles/AgoraConnectionTest.dir/process_response.cpp.o type=FUNC; file /home/cdev/SunStudio12/SUNWspro/prod/lib/sparc/libCstd.a(vecbool.o) type=FUNC);
    ld: warning: symbol `std::cout' has differing sizes:
    (file /home/cdev/SunStudio12/SUNWspro/prod/lib/stlport4/libstlport.so value=0x68; file /home/cdev/SunStudio12/SUNWspro/prod/lib/sparc/libCstd.a(ios.o) value=0x60);
    The list of errors goes on like this in multiple places.
    To me, it looks like I am using both stlport and standard STL. How do I tell the linker to use only stlport? Am I missing something?
    CC_FLAGS are: -DSOLARIS -DPOSIX_PTHREAD_SEMANTICS -D_VMT -DT_SUN4_SOLARIS -DUNIX -KPIC -DACE_NDEBUG -D_ACE_56_ -D_REENTR
    ANT -DACE_NDEBUG -D_PTHREADS -mt -library=stlport4
    Pls help!
    Rgds,
    Sreeni

    The links are there, but not pointing to /usr/lib. Yes, I installed the tarball into /home/cdev/SunStudio12 directory. I dont have root privileges to install any other way. To avoid the delay and the paper work it takes to get the SA install the compiler, I just used to tarball since the Sun website said it was OK to do that. Pls advise.
    This is what I have in the directory you mentioned.
    vpns36x-0001:/home/cdev/SunStudio12/SUNWspro/lib>ls -altr *so
    lrwxrwxrwx 1 sherugu1 cdev 14 Dec 4 11:31 libCrun.so -> ./libCrun.so.1
    lrwxrwxrwx 1 sherugu1 cdev 28 Dec 4 11:31 libCstd.so -> ../prod/usr/lib/libCstd.so.1
    lrwxrwxrwx 1 sherugu1 cdev 18 Dec 4 11:31 libiostream.so -> ./libiostream.so.1
    lrwxrwxrwx 1 sherugu1 cdev 24 Dec 4 11:31 debugging.so -> ../prod/lib/debugging.so
    lrwxrwxrwx 1 sherugu1 cdev 34 Dec 4 11:31 rtcaudit.so -> ../prod/lib/dbxruntime/rtcaudit.so
    lrwxrwxrwx 1 sherugu1 cdev 38 Dec 4 11:31 libdbx_agent.so -> ../prod/lib/dbxruntime/libdbx_agent.so
    lrwxrwxrwx 1 sherugu1 cdev 13 Dec 4 11:31 libV77.so -> ./libV77.so.3
    lrwxrwxrwx 1 sherugu1 cdev 19 Dec 4 11:31 libf77compat.so -> ./libf77compat.so.1
    lrwxrwxrwx 1 sherugu1 cdev 13 Dec 4 11:31 libfai.so -> ./libfai.so.3
    lrwxrwxrwx 1 sherugu1 cdev 14 Dec 4 11:31 libfai2.so -> ./libfai2.so.3
    lrwxrwxrwx 1 sherugu1 cdev 17 Dec 4 11:31 libfmaxlai.so -> ./libfmaxlai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 17 Dec 4 11:31 libfmaxvai.so -> ./libfmaxvai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 17 Dec 4 11:31 libfminlai.so -> ./libfminlai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 17 Dec 4 11:31 libfminvai.so -> ./libfminvai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 17 Dec 4 11:31 libfprodai.so -> ./libfprodai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 13 Dec 4 11:31 libfsu.so -> ./libfsu.so.1
    lrwxrwxrwx 1 sherugu1 cdev 16 Dec 4 11:31 libfsumai.so -> ./libfsumai.so.1
    lrwxrwxrwx 1 sherugu1 cdev 13 Dec 4 11:31 libfui.so -> ./libfui.so.2
    lrwxrwxrwx 1 sherugu1 cdev 12 Dec 4 11:31 libgc.so -> ./libgc.so.1
    lrwxrwxrwx 1 sherugu1 cdev 11 Dec 4 11:31 libm9x.so -> libm9x.so.0
    lrwxrwxrwx 1 sherugu1 cdev 20 Dec 4 11:31 libcollectorAPI.so -> libcollectorAPI.so.1
    lrwxrwxrwx 1 sherugu1 cdev 18 Dec 4 11:31 libfcollector.so -> libcollectorAPI.so
    lrwxrwxrwx 1 sherugu1 cdev 11 Dec 4 11:31 libtha.so -> libtha.so.1
    lrwxrwxrwx 1 sherugu1 cdev 15 Dec 4 11:31 libsunmath.so -> libsunmath.so.1
    lrwxrwxrwx 1 sherugu1 cdev 18 Dec 4 11:31 libdemangle.so -> ./libdemangle.so.1
    Also, the file sizes are different b/n this dir and /usr/lib. Maybe the versions are different?
    vpns36x-0001:/home/cdev/SunStudio12/SUNWspro/lib>ls -altr ../prod/usr/lib/libCstd.so.1
    -rw-r--r-- 1 sherugu1 cdev 1796972 May 3 2007 ../prod/usr/lib/libCstd.so.1
    vpns36x-0001:/home/cdev/SunStudio12/SUNWspro/lib>ls -altr /usr/lib/libCstd.so.1
    -rwxr-xr-x 1 root bin 1907940 Oct 12 2006 /usr/lib/libCstd.so.1

  • JSP Compilation Error when using OC4J out of the box

    Hello.
    After installing Java jdk 1.5.0_05, setting ORACLE_HOME, setting JAVA_HOME, rebooting, and installing OC4J standalone straight out of the box, I have deployed a simple web project that consists of just one JSP. I receive the following error message:
    NOTIFICATION J2EE JSP-0008 Unable to dispatch jsp Page: oracle.jsp.provider.JspCompilationException: Errors compiling: C:\LocalApps\OC4J\j2ee\home\application-deployments\oc4j_jsp\persistence\_pages\\_Test.java<pre></pre>
    I have deployed a number of Flex2 applications without incident. What am I missing here? Another odd thing is that my organization has OAS running and it can render JSPs fine.
    Any help is appreciated thanks,
    Mike
    P.S. I have gone back and set the JSP debug switches, but they do not yeild much more info. Here is the stacktrace:
    NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP Page : oracle.jsp.provider.JspCompileException: <H3>Errors compiling:C:\LocalApps\OC4J\j2ee\home\application-deployments\oc4j_jsp\oc4j_jsp\persistence\_pages\\_Test.java</H3><pre></pre>
         at oracle.jsp.app.JspJavacCompiler.compile(JspJavacCompiler.java:304)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:731)
         at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:456)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:413)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:705)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:694)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Unknown Source)

    I had the very same Problem, and I spent a lot of time on it.
    When installing Oc4j as a service using Javaservice opnesource, I had no problem, even using J.D.K 1.6:
    %JSEXE% -install %JSNAME% %JVMDIR%\jvm.dll -XX:PermSize=128m -XX:MaxPermSize=256m -Xmx1024M -Xms1024M -Djava.class.path=%OC4J_HOME%\oc4j.jar -start oracle.oc4j.loader.boot.BootStrap -params -config %OC4J_HOME%\config\server.xml -out %OC4J_HOME%\log\OC4J_service_stdout.log -err %OC4J_HOME%\log\OC4J_service_stderr.log -current %JSBINDIR% -auto -description OC4JService
    Then I wanted to install it using "ServiceMill" or "Javaservice Wrapper", becuase it has a better control on the process and I had that awfull compilation error.
    I guess it is because ServiceMills uses java.exe and javaservice the .dll to launch the oc4j, no idea.
    Anyway, thank you very much!!!!!
    Antonio

  • Compile error when using Collections.sort for Vector, why?

    The compiler is giving an error when trying to do this (I'm using JDK 1.5.0_09):
    Vector <String> test = new Vector <String>();
    test.add("test1");
    test.add("test2");
    test.add("test3");
    Collections.sort(test);The error being:
    The method sort(Vector<String>) is undefined for the type Collections
    Collections.sort takes List, but Vector is of type List, so this should work, correct?

    ChuckBing wrote:
    No. Vector is not a subclass of List. Use List.um.. Vector implements List

  • JSP Compile Error when using dynamic ID in logic:iterate and bean:size

    Hello,
    I try to create a dynamic table with logic:iterate and bean:size tag. Dynamic means the attributes are written by scriptlet. Eg.:
    <logic:iterate id="customerBean" name="<%= formName %>"  property="<%= propertyName%>" length="<%= sRowSize%>">When I replace the id Attribute with propertyName I get compile errors, such as
    the compiler doesn't know the value at runtime:
    Unable to compile class for JSP An error occurred at line: 179 in the jsp file: /pages/formContent.jsp Generated servlet error: _newCustomer.java:1046: Missing term. java.lang.Object <%= propertyName %> = null; ^
    Whats wrong ?
    Thanks for your help

    Solution: don't use a runtime expression for the id attribute.
    The id attribute is used to declare
    - an attribute in scope
    - a scriptlet variable on the page
    These are only available for the duration of the <logic:iterate> tag
    The "id" is only used in your programming. You don't need to make it dynamic.

  • Compilation error when using @DisableWarnings

    Hi,
    I have a stateless EJB 3.0 session bean, and I am trying to add the following lines of code in it:
    @DisableWarnings { WarningCode[] value(); }
    enum WarningCode { BEA_010001, BEA_010200, BEA_010202, BEA_010054 }
    Iam getting a compilation error like this:
    - The annotation @DisableWarnings must define the attribute value
    - Syntax error on token "@", interface expected after this token
    I am also tring to add this:
    @TransactionTimeoutSeconds { int value() default 30; }     
    I am again getting compilation errors.
    I am using Eclipse ganymede.
    Can any body please help me regarding this.
    Thank you,
    Sowmya

    Hi,
    It looks like you are specifying the annotations incorrectly in your bean class. Try the following:
    @DisableWarnings({WarningCode.BEA_010001, WarningCode.BEA_010200, WarningCode.BEA_010202, WarningCode.BEA_010054 })
    @TransactionTimeoutSeconds(30)
    - Matt

  • Compile error when using a class by fully-qualified name

    Hi... Is it an AS3 "feature" or a FB compiler bug that I cannot use a class without importing it?
    I have a statement such as
    if (de.codebank.util.StringUtilities.startsWith(status.name, phase.name+"_"))
    which does not compile until I import the StringUtilities class, which is pointless, of course.
    The compile error mentions an unknown property "util"

    I believe this is how AS3 works. Fully qualified class types require import statement.
    You use fully qualified name whenever you want to avoid ambiguity.
    However, when the code is like,
    import mx.collections.XMLListCollection;
    var arr:mx.collections.ArrayCollection;
    It works since compiler now understands that "mx.collections" is a package.

  • Compilation errors when using Client program

    Hi all,
    I face a problem when compiling the client.
    Compilation errors:
    "Not able to resolve symbols HelloHome, Hello"
    At this line: HelloHome home = (HelloHome)ctx.lookup("HelloHome")
    I have cut and paste the client program below:
    Please look into it.
    Thanks
    Ranjan
    //Client for HelloBean
    import java.rmi.*;
    import javax.naming.*;
    import java.util.*;
    public class HelloClient {
    public static void main(String args[]) {
    try
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,"t3://localhost:7001");
    InitialContext ctx = null;
    ctx = new InitialContext(ht);
    HelloHome home = (HelloHome)ctx.lookup("HelloHome");
    Hello hel = home.create();
    String retval = hel.sayHello("Ranjan");
    System.out.println("Returned: " + retval);
    hel.remove();
    catch (RemoteException e)
    System.out.println("RemoteException occured: " + e);
    catch (javax.ejb.CreateException e)
    System.out.println("Create Exception occured: " + e);
    catch (javax.ejb.RemoveException e)
    System.out.println("Remove Exception occured: " + e);
    catch(javax.naming.NamingException e)
    System.out.println("Naming Exception occured: " + e);
    **************************

    Hi,
    Yes the Hello and HelloHome classes are present in the same directory as the HelloClient.class
    Regards
    Ranjan

  • Compile error when using Web Services Proxy

    I used the wizard and kept all default settings then I edited the <Port>.java class to make the actual invocation.
    When I tried to compile the generated code I got 2 errors in the FaultMessage class about 2 missing Constructors:
    Error(17,5): cannot find constructor Exception(java.lang.String)
    Error(25,5): cannot find constructor Exception(java.lang.String,java.lang.Throwable)
    Looking at the class hierarchy I noticed that FaultMessage extends from a Exception class which was generated by the Wizard so I decided to add the constructors there.
    Once the .ctors are created it works as expected.
    I'm posting this message anyway so it helps others if facing the same issue and to raise the question about why is this happening? Perhaps some wrong jars in my system? Aren't Jdeveloper generated classes supposed to work 'out of the box'?
    Thanks,
    MV

    Are you sure that you have posted your question to the correct forum? This forum is only for Oracle Enterprise Manager related issues.

  • Compilation errors when using java 5.0 features

    Hi,
    I modified the make script in my project to use JDK 1.5.0_11 compiler. instead of 1.4.2 compiler. But when I run the make script, it is throwing errors for all the JDK 1.5.0 features like for-each construct, auto-boxing etc..
    Please let me know if I am issing anything.
    It compiles successfully in my IDE.
    Thanks,
    Ravikumar

    May be. I am not expert in Make. I can see that it is using the programatic interface sun.tools.javac.Main to compile. Also -bootclasspath option is being used. But I dont see any -target option. So I am confused.

Maybe you are looking for