Element is not initialized properly

Hi.
Does somebody know some solution to the situation when unexpected element being before one with minOccurs="0" causes the last to be not initialized properly.
For example taking xsd:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="test" type="TestType"/>
<xsd:complexType name="TestType">
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
, xml:
<?xml version="1.0"?>
<test param1="xxxx">
<wrong_element>xxx</wrong_element>
<name>Some Name</name>
</test>
and having
public class Main {
public static void main( String[] args ) {
try {
JAXBContext jc = JAXBContext.newInstance( "test" );
Unmarshaller u = jc.createUnmarshaller();
UnmarshallerHandler uh = u.getUnmarshallerHandler();
u.setValidating(true);
TestType testObj = (TestType)u.unmarshal( new FileInputStream( args[0] ) );
System.out.println("name="+testObj.getName());
} catch( JAXBException je ) {
je.printStackTrace();
} catch( IOException ioe ) {
ioe.printStackTrace();
results in outputing name=null, while compiled all that with <xsd:element name="name" type="xsd:string" minOccurs="1"> gives us correct behavior (error is handled but further processing goes as expected).
Any suggestions?
wbr, eugen.

Thats all was about JAXB.

Similar Messages

  • EPM system security is not initialized properly

    Hi,
    We are in the process of installing 11.1.2.2 on Windows 2008 server.
    Step 1. we installed Foundation Service, Reporting and FM
    Step2. 1st did configuration of foundation service and Performance Management Architect
    Result - Successful. Was able to login to workspace ans shared service
    Step 3. 2nd we Configured Financial Management.
    Configuration was successful.
    All services are running but we are not able to login into workspace.
    We are geting following error in log file of HyS9EPMServer
    "EPM system security is not initialized properly"
    Any help will be appreciated.
    Edited by: user8638468 on Aug 15, 2012 9:42 AM

    Yes Vivek.
    We did run Foundation Service --> Configure Web Server after configuring HFM module. It was susccessful.
    After that we run "Start EPM System". Then everything stopped.
    While installing HFM in 2nd leg on "Configure Database" screen we selected "Perform first-time configuration of database".
    Entered username HFM.
    We noticed that after installation EPMSystemRegistry-jdbc got changed.
    Path is C:\Oracle\Middleware\user_projects\domains\EPMSystem\config\jdbc\EPMSystemRegistry-jdbc.xml
    <value>HSS</value> got changed to <value>HFM</value>
    I are not sure but I think we should have selected "Connect to a previously configured database".
    I am going to install it again and will update the forum.
    -Devidas

  • When I try to open google body I get a message saying that WebGL is not initializing properly. Can you help?

    I am trying to use Google Body but I get an error message that WebGL is not initializing properly. Can you help?

    It says: WebGL Renderer (WebGL unavailable)
    What is the value of the WebGL prefs (webgl.disabled and others) on the <b>about:config</b> page?
    Are any webgl.* prefs bold (user set)?
    You can try to force webgl (webgl.force-enabled -> true) to see if that has any effect.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • WBS element output not coming properly .

    Hi ,
    I have a customized report with , project(proj-pspid) ,wbs element( prps-posid) as selection parameters . The output is coming preperly when project is given as output but is not coming properly when wbs element is given as input. I am using PSJ logical database . Not sure why in debugging while giving only wbs element it is going to 'Conversion_exit_abpsn_input' instead of teh conversion exit 'Conversion_exit_abpsp_input' . Any idea on how it can be resolved?

    Hi,
         Please refer the WBS element to PSPNR (PRPS-PSPNR) instead of prps-posid ,
         prps-posid refers to exit 'Conversion_exit_abpsn_input' and not 'Conversion_exit_abpsp_input'.
    Regards,
    Srini.

  • Element substitution not working properly during unmarshal

    Hi everybody,
    I've following situation. I have a project (call it project A) which contains a schema (lets call it the abstract schema). In the abstract schema there is an element which was declared as abstract. Furthermore there is another element (call it container) which shall be able to contain as much "abstract" elements as the user wants to. It obvious that an element could not be abstract, so I've created another project (call it project b) which has a schema (call it concrete schema) whichs imports the abstract schema. In the concrete schema I will have some elements which substitute the abstract element from the abstract schema.
    Now I've an xml document whichs root element is the container (from the abstract schema), and it should contain the non-abstract elements from the concrete schema. So far so good, everything will be validated, there are no errors. But unfortunately the unmarshal progress will not return the expected result. Validation during unmarshal progress is ok as I said but after unmarshalling the xml file, there is no concrete element in the returned result.
    I don't know what could be wrong. Did somebody already worked with element substituion in that way and is able to help me?
    Because its very complicated to describe I've created a minimal testcase (http://www.mailing-list-disaster.com/generic-jobengine.tar.gz) . Just compile both projects and run the using-abstract-engine application.
    Thx for suggestions and with best regards
    Johannes Homuth

    Hi Ram
    Thanks for the reply.
    No it does not take from any other LOV and there is no existing LOV mapping for this item.
    Its in the iExpense>Create expense report>General Information screen> Approver LOV
    The APPROVER LOV needs to be mapped with the field "Cost Center" which is not there in the standard functionality.
    Regards,
    AD

  • File Upload UI element is not working properly inside Table Popin container

    Hi Expert,
    I created a table with popin, i placed file-upload UI element inside table popin contatiner.
    The file upload UI element is displaying properly but, when i click the browse button to select  the file, the file open dialog box is not popping out.
    will table popin support file-upload UI element inside it?
    it not is there any other way to call a file_open dialog box from inside the table popin.
    Thanks,
    James

    If you are on NetWeaver 7.01, you can try both the ACFUpDownload UI element or try creating your own FileUpload in Adobe Flex with Flash Islands.  ACFUpDownload requires the KPRO by default (which is why the same application isn't working for you), but you can write your own handler class to act as the KPRO receiver.  Here is an eLearning on the topic:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
    and source code:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70645070-bb00-2c10-f086-f126721acdb4
    If you want an eLearning on the FlashIslands approach, you can find it here as well:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d42644-91ef-2b10-228c-9e0ae75b274e
    and Source Code:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f044b62c-90ef-2b10-64a6-9ec25294d133
    However in both of these approaches you still have to be careful with how you handle large files.  The problem is that they are processed often a single binary string.  This makes the processing easy, but requires total amount of session memory at least as large as the file being uploaded.  In NetWeaver 7.02 ABAP adds the concept of Streams and Locators to help with the partial processing of large files.  This feature doesn't come until later this year, but if you are interested you can learn about it here:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f983df-213e-2c10-ba89-b5a12ef178e8

  • Help! Slideshow feature in Elements 13 not working properly: Won't sync photos to music

    Hi. I'm a photographer who recently updated my Photoshop Elements 11 to the new and "improved" 13. I upgraded specifically for the new advertised slideshow feature. I make these as a fun way to share Wedding Sneak Peeks with my Brides. But when I add photos to the slideshow and add a custom song, then click "Sync photos to music" a box pops up telling me it's working but then nothing ever happens. I can't even click back or cancel the operation. It freezes the entire program and forces me to shut down my computer. Please help! Am I doing something wrong here or is this a bug within the program?

    I've also tried the following:
    - rebuilding iPhoto's Library
    - deleting the "iPod Photo Cache"
    - resetting the sync history
    ... and this all didn't help at all.

  • Objects not initialized properly when using JSF dependency injection

    I get NullPointerException at line :
    this.getLogger.displayMessage();
    Can anyone tell me how to correctly inject a property into the base class so that it is also available to its child classes?
    Is my syntex in faces-config.xml correct?
    public class Logger
         public void displayMessage() {System.out.println("Some message.....");}
    public class BaseBackingBean
         private Logger logger;
         public Logger getLogger()
              return logger;
         public void setLogger(Logger logger)
              this.logger = logger;
    public class BackingBean
         public void log()
              this.getLogger.displayMessage();
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <managed-bean>
         <managed-bean-name>BaseBackingBean</managed-bean-name>
         <managed-bean-class>com.test.BaseBackingBean</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>
         <managed-property>
                   <property-name>logger</property-name>
                   <property-class>com.arch.Logger</property-class>
                   <value>#{logger}</value>
         </managed-property>      
    </managed-bean>
    <managed-bean>
         <managed-bean-name>BackingBean</managed-bean-name>
         <managed-bean-class>com.test.BackingBean</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>      
    </managed-bean>
    </faces-config>

    You are confusing classes with instances. When you define a bean in the faces-config.xml, you create an instance of that class. I'm sure you understand that if you create an instance of the base class and change its properties, that has no effect on other instances of that class or of the derived class. (For some reason however, it is easy to forget this when dealing with containers.) So the property configuration for the bean BaseBackingBean has no effect on the bean BackingBean in your example above.
    A better pattern to use in this situation is aggregation rather than extension. In other words, define the base bean as a utility bean and inject it into the old derived beans as a property. Now all the old derived beans have access to the same instance of the utility bean with the same configuration. If you want to use the same configuration without re-using the same instance, take a look at the "none" managed bean scope.

  • Webdynpro apps not loading properly with Citrix

    Hi All,
             We are trying to access a Webdynpro application through Citrix.
    The problem is the Java Webdynpro screen elements are not loading properly. For example, UI elements like table, drop-downs, buttons etc., don't show up or get rendered properly at all.
    I ran an HTTPTrace which captured multiple Http 405 errors. eg.,:
    Method  Result Type  URL
    POST    200   text/html; charset=UTF-8 http://server.domain.com:51581/webdynpro/dispatcher/...../GoodsIssue/GoodsReceipt?sap-wd-cltwndid=WID1206471028655&sap-ext-sid=4hv3xC6_mdzX1aSHtBcKmw_fW1zK6V1zBJY25ukbe0eg&sap-wd-norefresh=X&sap-ep-version=7.00.200708120253
    GET   405   text/html; charset=utf-8     http://server.domain.com:50500/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/...../common/emptyhover.html
    GET   405   text/html; charset=utf-8     http://server.domain.com:50500/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/..../common/emptyhover.html
    GET   405   text/html; charset=utf-8     http://server.domain.com:50500/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/...../ur/ur_ie6.css
    Any idea what causes this HTTP error: 405.
    Warm Regards,
    Roopesh

    Hi
    see the below link,it will be helpful for u.
    [|http://help.sap.com/bp_epv260/EP_EN/documentation/How-to_Guides/31_HowToIntegrate_WDApp_EP6.pdf|http://help.sap.com/bp_epv260/EP_EN/documentation/How-to_Guides/31_HowToIntegrate_WDApp_EP6.pdf]
    Edited by: Hazrath on Apr 1, 2008 6:56 AM

  • Why is my adobe photoshop elements 12 not working. it says initializing and then it says there is an error and closes itself

    why is my adobe photoshop elements 12 not working. it says initializing then error and shuts itself down.

    Three things you can try:
    1. Clean the superdrive with a proprietory CD/DVD lens cleaner that uses tiny brushes.
    2. Perform an SMC reset:
    Resetting the SMC (System Management Controller) on Intel-based Macs:
    http://support.apple.com/kb/ht3964  and
    http://support.apple.com/kb/HT1237?viewlocale=en_US
    Resetting your Mac's PRAM and NVRAM:
    http://support.apple.com/kb/ht1379
    If you are using a Wireless Keyboard:
    http://support.apple.com/kb/TS3273
    3. Try the free DVD player VLC:
    http://www.videolan.org/vlc/
    which performs better than the built-in DVD Player.

  • BPM error:Container element in step transformation is not initialized

    Hello Experts,
    I am new to the concept of BPM.
    I'm trying to create an integration process in which I'm taking an Idoc and processing it in many ways. The process contains many transformation steps. There two such transformation steps which have been placed in block step in a fork. And i get this error: Container element XXX in step transformation is not initialized
    What could be the problem?
    Regards,
    Akhil

    Hi
    if u are getting the messaga with red sigh then it means it will craete the error while running the scenario.
    but if it is in blue then i think it will not create any error.
    the meaning of that statement is that the container u have defind is not used anywhere. it is just giving u a warning message.
    Thanks
    Rinku

  • Adobe Photoshop Elements 12: dropdown boxes for tools not working properly in Win 8.1

    Elements 12 system requirements are indicated up to Windows 8.  Does that mean it should also work on any Windows 8 upgrades, more specifically 8.1?  The drop-down boxes for the tools are not working properly in the program.  I've installed it, uninstalled it, and installed it again with the same results.  It worked fine on my old computer with Vista.

    Yes PSE12 will work on 8.1
    If problems persist try re-setting the prefs.
    Go to: Edit >> Preferences >> General (Photoshop Elements menu on Mac)
    Click the button Reset Preferences on next Launch

  • Elements Organizer 8 - some WMV are not displayed properly in the Play Video but are in Play Vide

    Hello:
    Elements Organizer - some WMV are not displayed properly in the Play Video but are in Play Vide on Full screen. What's the problem? Wrong codec?

    Because WMV's can contain a lot of flags, like DRM, they can exhibit odd behavior, indeed.
    Usually, AV files will display in their native resolution, i.e. in their set Frame Size/Aspect Ratio and with their set PAR (Pixel Aspect Ratio), but sometimes those flags are missed, or are altered by other programs.
    Remember, WMV's are designed to be streaming delivery-only, and are not intended, or designed to be edited. Most NLE's (Non Linear Editors) will allow them to be edited, but will require extra processing to do so. As is mentioned, WMM is designed around editing that delivery-only format, but most others are not.
    There are many other formats/CODEC's, that ARE designed to be edited by the vast majority of NLE's, such as DV-AVI Type II's.
    The best workflow is to NOT bring WMV's into the mix, unless one is using WMM exclusively. Converting those to an easily editable format/CODEC will always be the best course of action.
    Good luck,
    Hunt

  • I have downloaded and installed Photoshop Elements 12 on Windows7. It does not work properly. Help?

    I downloaded Photoshop Elements 12 to work on my new platform Windows 7. It does not work properly. Specifically my problem is that I can only load one picture at a time onto the work area even if I have chosen two separate pictures. In other words I can not cut and paste not can I join pictures together.
    If I load the program on my older computer with WindowsXP it works fine.
    Any suggestions would be appreciated.

    You have probably forgotten. In recent versions of PSE you must go to the edit>preferences>general and turn on Allow Floating Documents.

  • I had photoshop elements 8 installed on my previous computer and it did not work properly when it came to sizing  photos for a website I was adding to.  I now have a new computer which runs windows 7.  Is it worth installing it again on my new computer?

    I had photoshop elements 8 installed on my previous computer and it did not work properly when it came to sizing  photos for a website I was adding to.  I now have a new computer which runs windows 7.  Is it worth installing photoshop elements 8 again on my new computer or will it be a waste of time?

    I have PSEv.8 on my computer running WINDOWS 7. It works perfectly..
    Perhaps you need help with saving files for web use.. Will be pleased to assist you when you get everything set up.

Maybe you are looking for

  • How can you create a flying through space effect?

    What would be the best way to create an effect, similar to what you see on Star Trek, where there are stars streaking past the camera? Would it work to create a small circle using a vector mask on a solid, make it 3D and put a motion blur on it whizz

  • User settings migrated from Office 2007 to 2013 using OCT

    Does anyone know what user settings are retained after upgrading Office 2007 to 2013 using the OCT? I have set the checkbox to migrate user settings in the OCT but all of the user's pinned documents are not longer there after the upgrade. Is this nor

  • Itunes plus wont work with giftcard

    I bought a $100 gift card for the apple store a few months ago. Every time, starting yesterday, I want to buy a song, it tells me that I cannot make an Itunes plus purchase with this gift card and I am not authorized to do so. I am authorized, this i

  • Slideshow Image Crop Problem

    Problem creating a slideshow in iDVD 6.0. I added a white border to each of the image files that I wish to use in my slideshow. However, when I try to preview the slideshow, some of the images do not show the full border, very often cropping the bott

  • How can use removal rate to show level of liquid in a tank?

    I'm trying to use a use a flow meter to measure the usage of oil in a home heating system. I've set up a VI to measure the frequency of the flow meter and convert it into l/hr. The problem I have is how can I use this data to show the liquid level in