JAXB and compilation warnings

Hi all,
I am trying to compile JAXB .java files generated from XML schema but I am getting warnings like ....
The type DefaultJAXBContextImpl is deprecated ObjectFactory.java
any suggesstions gurus.???
Thanks
JoyBoy

Hi ,
This approach is just for that perticular Vivado session.
If you want make this permanent, please refer to the approach given in the following answer record.
http://www.xilinx.com/support/answers/53090.html

Similar Messages

  • Generics, factory methods and compiler warnings

    Hi all,
    I have a parametrized class where new objects are created via a factory. The problem is that I'm getting some compiler warnings. Am I missing something or there's no way to avoid them?
    public interface Schedulable {
    // methods here
    public class Scheduler<T extends Schedulable> {
       // should this be parameterized? If yes, how?
       // (it's not possible to use T while <? extends Schedulable> gives problems)
       private static Scheduler scheduler;
       private NodeManager nodes;
       private DefaultServiceManager<T> services;
       private Timer timer;
       private LifecycleManager lifecycle;
       public static synchronized <E extends Schedulable> QueueScheduler<E> newInstance() {
              if (scheduler == null) {
                 scheduler = new Scheduler();
                scheduler.nodes = DefaultNodeManager.newInstance(scheduler);
                scheduler.services = new DefaultServiceManager<E>(scheduler.nodes);
                scheduler.timer = new Timer(scheduler);
                scheduler.lifecycle = new LifecycleManager(scheduler,
                       scheduler.timer);
                // these fields are initialized here and not into the constructor in order to avoid
               // the 'this' reference to escape (see   //http://www-128.ibm.com/developerworks/java/library/j-jtp07265/index.html
               // for example)
             // all the fields initialized above generate a warning
              return scheduler;
         protected Scheduler() {
              // initialization of some fields here
       // methods here
    // methods here
    }Thanks,
    Michele

    Oops, sorry, didn't see the variable actually is a static, raw one. Here you will have a problem, as for once you cannot use the E for the static variable and second you could not guarantee that a previously created Scheduler would have the same type parameter as the one you are going to create:FirstSchedulable a = Scheduler.newInstance();
    SecondSchedulable b = Scheduler.newInstance(); // would fail!The second call would fail, as the first would have created an instance of Scheduler<FirstSchedulable>, which is stored in the static variable scheduler and not compatible to a Scheduler<SecondSchedulable>.
    You should rethink you design.

  • Generating and compiling jaxb 1.0 source with jaxb 2.0 binaries

    Hi
    Does anyone know if v 2.13 is backwards compatible in terms of generating the source files for version 1 and also compiling and deploying the code?
    I am developing a project that needs to use jaxb 1.0 and jaxb 2.0 for legacy reasons. I have downloaded 2.1.3 an managed to use xjc to generate the new code (2.1) but when I try and generate the 1.0 classes I get this error
    Couldn't load Resource 1.0/com/sun/xml/bind/JAXBAssertionError.class
    java.lang.NoClassDefFoundError: com/sun/xml/bind/JAXBAssertionError
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultEx
    cutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.lang.NoClassDefFoundError: com/sun/xml/bind/JAXBAssertionError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.sun.tools.xjc.Options.class$(Options.java:154)
    at com.sun.tools.xjc.Options.findServices(Options.java:482)
    at com.sun.tools.xjc.Options.<clinit>(Options.java:154)
    at com.sun.tools.xjc.XJCTask.<init>(XJCTask.java:49)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruc
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegating
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:49)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    And this is the ant build file
    <?xml version="1.0" encoding="windows-1252"?>
    <project name="jaxb" default="compile" basedir=".">
    <path id="classpath">
    <pathelement location="activation.jar"/>
    <pathelement location="jaxb-api.jar"/>
    <pathelement location="jaxb-impl.jar"/>
    <pathelement location="jaxb1-impl.jar"/>
    <pathelement location="jaxb-xjc.jar"/>
    <pathelement location="jsr173_1.0_api.jar"/>
    </path>
    <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
    <classpath refid="classpath"/>
    </taskdef>
    <target name="compile">
    <xjc schema="import.xsd" destdir="generated"
    package=".jaxb.importxsd" source="1.0" target="1.0" />
    </target>
    </project>
    I have checked the classpath and there is nothing untoward there and
    all the jars are in the same folder as the ant file. I thought jaxb
    2.1 is meant to be backwards compatible?
    Many thanks for your help.
    With the version of the JAXB binaries installed with the web services pack I get this error message instead
    Class com.sun.tools.xjc.XJCTask$AntElement loaded from ant loader (parentFirst)
    ResourceStream for 1.0/com/sun/tools/xjc/XJCTask$AngProgressCodeWriter.class loaded from ant loader
    BUILD FAILED
    java.lang.IncompatibleClassChangeError: Implementing class
    It seems to want to load the 1.0/com...version of xjc but has loaded the 2.0 version already.

    Hi,
    Can you please check your classpath incase there are still jaxb-ea jars in it.
    We have had such problems reported to us because of this reason.
    If the problem still persists can you pls provide more information like the stack trace the schema files etc.
    Thanks,
    Bhakti Mehta
    Sun Microsystems Inc.

  • SQL developer not showing compiler warnings

    I'm just testing out the new compiler warning contained in 11g related to the "when others" exception handler when it does not have a subsequent raise or raise_application_error.
    in SQL plus, this works fine:
    SQL> alter session set plsql_warnings='enable:all';
    Session altered.
    SQL>
    SQL> create or replace function do_stuff
      2  return number
      3  as
      4     v_return number;
      5  begin
      6
      7     v_return := 3;
      8     return v_return;
      9
    10  exception
    11  when others then
    12     return null;
    13  end;
    14  /
    SP2-0806: Function created with compilation warnings
    SQL> show errors;
    Errors for FUNCTION DO_STUFF:
    LINE/COL ERROR
    1/1      PLW-05018: unit DO_STUFF omitted optional AUTHID clause; default
             value DEFINER used
    11/6     PLW-06009: procedure "DO_STUFF" OTHERS handler does not end in
             RAISE or RAISE_APPLICATION_ERRORbut in SQL developer the output is:
    BANNER                                                                          
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production    
    PL/SQL Release 11.2.0.3.0 - Production                                          
    CORE     11.2.0.3.0     Production                                                        
    TNS for Linux: Version 11.2.0.3.0 - Production                                  
    NLSRTL Version 11.2.0.3.0 - Production                                          
    session SET altered.
    FUNCTION do_stuff compiled
    No Errors.Anyone experience this issue? is there some setting that makes SQL developer behave differently?

    it must be something I'm doing wrong, above, I was running under windows 7 pointing at the version above.
    I just tried it under an Enterprise Linux pointing at
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production          
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE     11.2.0.2.0     Production                                                        
    TNS for Linux: Version 11.2.0.2.0 - Production                                  
    NLSRTL Version 11.2.0.2.0 - Production                                           and I get exactly the same script output and no compiler window....
    actually...... if I go into a procedure window from the schema browser and compile it there, then I get the correct warning messages..... the problem is I mostly develop from .sql files extracted from source control rather than directly from the schema browser, I just want the sql worksheet to be able to show me the same compiler log window.....

  • JSP compile warnings

    Folks !
    I have been getting this nuisance warning for ages and I though it was time to get rid of them. Compiling any JSP in JDeveloper I get:
    Warning: package name _jsp.xxxx does not match source file name xxxx
    What is it ?
    Also, anyway to suppress Java compiler warnings so I can look at errors only ?
    thanks a lot,
    -Sanjay

    I have the same problem (many warnings....), but it hasn't cause any problem while running.
    I thing this is becasuse I use uppercase letters inside names of directories.
    Example:
    - my page: public_html/BP/Aplikace.jsp
    - compiled to .java: classes\.jsps\_BP\_Aplikace.java
    - third line of Aplikace.java: package bp;
    So there is the problem: "_BP" (name of directory) versus "_bp" (name of package)!!!
    I thing this is a bug.
    If I am right, I have question for JDevTeam - will it be fixed?

  • SDK CVI compiler Warnings 64-bit

    It seems I am finding CVI Compiler warnings when compiling 64 Bit applications with SDK. I don't get these warning errors when I compile the same applications for 32 Bit.
    For example the CVI Compiler warning that I just found was found when I used SDK header file: "SetupAPI.h" with the typedef struct: SP_DEVINFO_DATA and SP_DEVICE_INTERFACE_DATA.
    The warning message I got was when I compiled the statements with the SetupAPI.h file included:
    SP_DEVINFO_DATA DeviceInfoData;
    /* warning message */
    DeviceInfoData.cbSize = sizeof(SP_DEVINFO_DATA);
    // Warning: Conversion from 'unsigned __int64' to 'DWORD' might lose data.
    /*warning message*/
    SP_DEVICE_INTERFACE_DATA did = {sizeof(did)};
    // Warning: Conversion from 'unsigned __int64' to 'DWORD' might lose data.
    When I compile these statements in 32-Bit I don't get these errors.
    Of course I can change the "SetupAPI.H" SDK Header supplied by NI but that defeats the whole purpose of why NI would distribute the header file in the first place.

    OK - Milan -
    I think you misunderstood what I was writing about.
    If you look at the SetupAPI.h file that is supplied by NI SDK with CVI 2010 at line 700 with the following typedef  struct:
    // Device information structure (references a device instance
    // that is a member of a device information set)
    typedef struct _SP_DEVINFO_DATA {
        DWORD cbSize;
        GUID  ClassGuid;
        DWORD DevInst;    // DEVINST handle
        ULONG_PTR Reserved;
    } SP_DEVINFO_DATA, *PSP_DEVINFO_DATA;
    The DWORD is defined as
    "typedef unsigned long"
     in cvidef.h (CVI 2010) header file.
    Yes I could change the SetupAPI.h inside the header file to change the type to be __int64 instead so that it works with 64 Bit. However, if other applications that are written for 32 bit will now be impacted if the SetupAPI.h is used with the __int64 data type DWORD.
    So what NI should so everywhere where they define "DWORD" that is used in the SDK they should have a conditional compile to set the type to "typedef __int64" in CVI 64-bit applications and
    "typedef unsigned long" in 32 Bit Applications.

  • Flex SDK compiler warnings localization

    Hi, guys.
    Wonder if i can disable localization of compiler warnings, so that sdk compiler won't take system locale (windows) and use english instead?
    Thanx in advance,
    Tim Tekaev

    use in compiler option : -locale en_US

  • Impdp with created with compilation warnings

    expdp without any error but impdp.
    ORA-39082: Object type TRIGGER:"myuser_name"."AA_CUR_TRIGGER" created with compilation warnings.
    I pick one of compilation errors as above. There are many other errors such as view.
    Did I miss anything? Please help.

    The problem could just be ordering or information missing. expdp exports object in the best order it can think of. By this I mean, if you are exporting a table, it will export the table before the index, and the index before the index_statistics, etc. Sometimes there are objects that are dependent on other objects that are not yet imported. Let's say that you have a procedure that uses a view and a view that uses a procedure. The way expdp/impdp works (and I'm not sure of the order of these 2 objects) is that it will create all procedures and then later on, create all views. (or the other way around, all views, then all procedures). In the case I described above, if views are created before procedures, then the view that calls a procedure will get a compilation warning because the procedure has not been imported yet. If it is the other way around, then the procedure will get the compilation warning because the view is not there.
    The objects will be created and they will recompile the next time you use them. You could also go in after the impdp job is complete and just issue the
    alter object_type schema.name compile;
    and they should compile.
    The other problem you could be running into is if the object you are creating uses another object that is not in the database or if the grant is not there. Let's say that you create a procedure proc_a and it is in the user1 schema. If you try to create a view in user2 that calls proc_a, and if proc_a does not exist, you can get the compilation warning.
    So, I don't think you missed anything.
    Hope this helps.
    Dean

  • PACKAGE_BODY:"FLOWS_030100". compile warnings after import

    When using the datapump import utility most of the FLOWS_030100 packages have compile warnings. The error is
    PLS-00201: identifier 'SYS.WWV_DBMS_SQL' must be declared. The 'SYS.WWV_DBMS_SQL' doesn't exist in the SYS schema, yet it was there on the database that was exported from. Does the apexins.sql script have to be run on the new database ? Database is 10.2.0.3 and apex is 3.1.2.

    I forgot all about that thread, there I was moving from a windows to unix environment. Now i'm cloning my production instance by doing an export\import. Since we just put APEX on unix i never had this problem before, and i don't normally clone by doing an export\import. I thought it was odd that apex is the only app that doesn't seem to come over cleanly using the export/import. In any case i guess i'll remove the apex schema's and reinstall.

  • ++ increment of float inacurate with no compiles warnings???

    Hi,
    I have a simple class that uses the ++ opperator to increment a floting point variable. However the result is not correct and there are no compiler warnings about loss of precision. The class is....
    class Test
        public static void main(String[] args)
            float x = 1.123f;
            x++;
            System.out.println(x);
    }However the result of X is 2.1230001. X will now fail any if statements such as
    if (x = 2.123)
            // Do Something
    }So my question is
    1) Why does this happen
    2) Is it possible to use the ++ operator on a floating point variable with accuracy?
    I'm studying for the SCJP and attention to details like this is everything!!
    Thanks!
    Alan K.

    It has nothing to do with ++.
    SOME THINGS YOU SHOULD KNOW ABOUT FLOATING-POINT ARITHMETIC
    What Every Computer Scientist Should Know About Floating-Point Arithmetic
    Another good (slightly simpler) FP explanation:
    http://mindprod.com/jgloss/floatingpoint.html

  • FORMS 6i and referenced forms in the database and compilation

    Hello everybody,
    I must work on an existing FORMS 6i APPLICATION.
    I'm using FORMS 6i patch 18 on an ORACLE DATABASE 10g.
    When I open a form I've got the message 'to retrieve reference objects, you must connect to the database' ( I think subclassed objects ), I do it and I got the error 'Failed to load objects ....'
    In fact, I realize that the form I have to modify contains some objects referenced in some ( 3 in fact ) fmb source files, after searching on the web I have to 'insert' these 3 forms in the database : I have done it.
    Everything is OK now : no more error when opening the form, I modify it and compile it on my testing environnment.
    My question is : Do I have to "insert" these 3 source fmb forms into production in order to make my compiled fmx executable ??
    Indeed, the only way to insert a form into database is to have the developper 6i database tables in the database, but in production I think it does not matter, do you ?
    thanks a lot.
    Romeo Georgievski.

    You only need the referenced objects when
    - changing the form in the Builder
    - generating/compiling the form
    When generating/compiling Forms Builder or Forms Compiler are resolving the references against the objects stored in the database.
    They are now part of the runtime form (fmx file).
    Note:
    Storing objects into the database is desupported/depricated after Forms 6i (6.0.8).

  • Installing CS5.5 Trial Gives 4 Errors and 2 Warnings

    I've tried installing the CS5.5 Trial on 2 different computers and 3 different installations of Windows 7 Ultimate 64-bit, all with identical results:  The installation completes, and the software seems to work fine, but the installer gives the following 4 errors and 2 warnings:
    Exit Code: 6
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 4 error(s), 2 warning(s)
    ----------- Payload: {CFA46C39-C539-4BE9-9364-495003C714AD} Adobe SwitchBoard 2.0 2.0.0.0 -----------
    WARNING: DF029: ARKServiceControl::StartService: Service not started/stopped SwitchBoard. Current State: 0 Exit Code: 0 Service Specific Exit Code: 0(Seq 1)
    ----------- Payload: {2EE4F060-CEE6-4002-AA8B-91B791541767} Pixel Bender Toolkit 2.6.0.0 -----------
    WARNING: DF035: CreateAlias:Icon file does not exist at C:\Program Files (x86)\Adobe\Adobe Utilities - CS5.5\Pixel Bender Toolkit 2.6\windows\pb_app.icofile:\\\C:\PIXELB~1\source\winwood\Staging    0X1.6E778DP-1018rea\windows\pb_app.ico42178f80493091e8e552c84a2897e9da68fce32_32_f8049309 1e8e552c84a2897e9da68fce for icon C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Adobe Production Premium CS5.5\Adobe Pixel Bender Toolkit 2.6.lnk with target C:\Program Files (x86)\Adobe\Adobe Utilities - CS5.5\Pixel Bender Toolkit 2.6\Pixel Bender Toolkit.exe(Seq 89)
    ----------- Payload: {7202D4A7-F7E6-4e7a-B77D-7B1C4E8B5CA6} Adobe Flash Player 10 ActiveX 10.0.0.0 -----------
    ERROR: Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action NewCustomAction1, location: C:\Users\Editor\AppData\Local\Temp\InstallAX.exe, command: -install activex -msi
    ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation.
    MSI Error message: Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action NewCustomAction1, location: C:\Users\Editor\AppData\Local\Temp\InstallAX.exe, command: -install activex -msi
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Adobe Flash Player 10 ActiveX: Install failed
    I've run the installer as Administrator, I've run it with my anti-virus software turned off, and I've installed it on a completely fresh Windows installation... but I always get the same 4 errors and 2 warnings!
    What's going on?

    Based on the following kb article it seems you may ignore these errors if your applications are running fine -
    http://kb2.adobe.com/cps/902/cpsid_90243.html

  • Install JAXB and JAXP only

    Hi,
    We want to use the funtion of JAXB and JAXP
    but do not want to use the whole java web service
    Can the JAXB and JAXP work separately on JDK1.2/JDK1.3.1
    Jacinle

    The Jaxb directory in jwsdp-1.2 dir has the JAXB implementation.
    The Jaxp directory in jwsdp-1.2 dir has the JAXP implementation.

  • AppleTV and compilations that aren't really compilations

    In my iTunes library on the Mac, I have a number of greatest-hits-type albums that used to be marked as compilations. I unmarked them quite some time ago, and cleaned up my library in other ways, and I now have that working just the way I want it. Problem is, on the AppleTV which is sync-ed to that library, quite a few of these still appear under Compilations.
    I have read through other forum posts that have a problem with compilations not being treated exactly the same way between the AppleTV and iTunes. That's not quite my concern here. I wonder how I can get the AppleTV to recognize that these albums are not compilations at all.

    I have songs that are part of compilations. I don't care and I don't see the point of removing the compilations check mark because the songs show up under Artist and Albums.
    I select one song in a compilation to see what happens with removing the compilation check mark.
    1. I open the compilation on the AppleTV and see the song there with others.
    2. I selected the song on my iMac itunes and removed the compilation check mark.
    3. Looked on the AppleTV and it was still in the compilation.
    4. Went out to the menu and back to My Songs and Compilations and it was still there.
    5. Back at my iMac selected sync
    6. Looked on the AppleTV and it was still in the compilation.
    7. Went out to the menu and back to My Songs and Compilations and it was no longer there.
    The song is not listed in the compilations but still shows up in Artists and Albums.
    In my iMac iTunes I use custom sync for the AppleTV, and in the Music tab I have selected Sync Music and Selected Playlists, Artists, and Genres.
    Hope this helps. ..Bob

  • How to modify a class in .jar and compile it back

    Hi,
    I have questions reg .jar, I need to test my application and I need to modify certain files in that .jar and compile it back. How do I do that? I have extract all the classes and decompile it to .java, and I just want to edit just 1 file, but I always have problems compiling it. Am i doing it the wrong way?Please help...
    Thanks.

    Did you make a jar and now need to make changes? Help me to understand why you decomplied the class files? Can you not just make a new jar?

Maybe you are looking for