JAXB not marshalling extensions properly.

Hey folks,
I'm having a problem with marshalling objects that were extensions in the XSD.
The relevant portion of my schema looks like:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="ADEPeerResponse" type="ADEPeerResponseType"/>
<xsd:complexType name="ADEPeerResponseType">
<xsd:sequence>
<xsd:element name="success" type="xsd:boolean"/>
<xsd:element name="errorMessage" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PingResponseType">
<xsd:complexContent>
<xsd:extension base="ADEPeerResponseType"/>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
When I create an ObjectFactory, create a PingResponseType, setSuccess and then try to marshal it, I get back the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<success>true</success>
I would have expected to get back:
<?xml version="1.0" encoding="UTF-8"?>
<ADEPeerResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\dev\ADE\src\com\lmco\ADE\peer\ADEPeer.xsd">
<success>true</success>
</ADEPeerResponse>
Any help you could throw this way would be most appreciated.
Thanks,
Ray

I found that if I added elements for a PingRequest and a PingResponse and created the elements rather then the Types from the ObjectFactory that everything worked ok. I wouldn't have thought that I would have to do that given that PingResponse extended ADEPeerResponse which was an element. Oh well. Hope this helps out someone else.
-Ray
New schema:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="ADEPeerRequest" type="ADEPeerRequestType"/>
<xsd:element name="ADEPeerResponse" type="ADEPeerResponseType"/>
<xsd:element name="PingRequest" type="PingRequestType"/>
<xsd:element name="PingResponse" type="PingResponseType"/>
<xsd:complexType name="ADEPeerRequestType"/>
<xsd:complexType name="ADEPeerResponseType">
<xsd:sequence>
<xsd:element name="success" type="xsd:boolean"/>
<xsd:element name="errorMessage" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PingRequestType">
<xsd:complexContent>
<xsd:extension base="ADEPeerRequestType"/>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="PingResponseType">
<xsd:complexContent>
<xsd:extension base="ADEPeerResponseType"/>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>

Similar Messages

  • Hangouts causes Chromium/Chrome to not shut down properly

    Every time I run Chromium or Chrome after logging in, I get an error saying that the program did not shut down properly, and it asks if I would like to restore the windows that were loaded when it did not shut down properly (even though I shut the app down like normal every time). I have narrowed this down to an extension issue, and the problem only being with Hangouts. If I disable the official Hangouts plugin, the problem stops, but enabling it again will cause the problem to start again. I only get this error if I log out of my user account and log back in, or if I reboot my computer. It actually doesn't seem to cause any functional problem, it's just a bit annoying.

    @gnunn thanks a lot, that is actually what I was looking for. Temp fix anyway.
    Pse wrote:
    bulletmark wrote:
    This is a bug that has existed with Chrome and Arch for about the last 3 months. Not sure if the bug is within Chrome or GNOME. I just press that Restore button every time but it is damn ugly.
    PS Edit: I just remembered somebody, possibly on this forum, suggesting the problem was within systemd or gdm not waiting long enough for Chrome to shut down.
    I don't think that's the case here. The OP said he has the problem even when closing Chromium manually.
    FWIW, I'm on Gnome 3 and I can confirm that closing the browser using Ctrl+Shift+Q works (i.e. no "restore" option afterwards, all tabs automatically restored) but shutting down Gnome without closing Chromium first causes the "restore" option to appear next time.
    Still, Gnome does not close it properly, although disabling the Chrome/ium background operations will fix the problem, it won't address the problem on its own.
    I wonder if this is stuff that Gnome devels need to be aware of.

  • The html select box option is not getting displayed properly in IE11

    The html select box option is not getting displayed properly in IE11
    I have developed a website that has a select box drop down. The select box drop down is getting displayed properly in IE9. But in IE11, if I am selecting any option apart from the first one, the whole select box option is getting moved up in the page.
    In IE11, if option 2 is selected, then the select options is getting moved up. But in IE9, if option 2 is selected, then the select options is getting displayed properly.
    Please let me know the fix so that the select options are displayed in the same manner as in IE9.
    Sorry but I am unable to upload images as this site is throwing some error

    Hi Kevin Shen,
    Thanks for post.
    I tried above code in ie 11(version 11.0.9600.17633).
    But it is not working. If you select option 2, and open select box then it open on the select box.
    It should open below the select box.
    Code for above:-
    <select>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    </select>
    Sorry I could not attach screen shot. We have normal select box with three options. If we select option 2, it is showing option list on the select box. It is coming below the select box in ie 10 and other browse like chrome. 
    So what we should do, so that all options will come below the select box?
    Thanks,
    Yogesh Toke

  • Catalog id is not getting displayed properly in Foreign Language (French)

    Hi All,
    I have created a web service id for the external catalog and I have assigned the same to one of the user. The name of the web service id is getting displayed properly in the shopping cart creation screen when the language is English. But when we are changing the user language to Foreign language (French), the name is not getting displayed properly.
    Could you please advise me if there any settings needs to be done in the parameters of the specific web service id. Thanks in advance for your help.

    Hi,
    Go to External Web Services and the select the web service ID. Then click on GOTO >Translation and select the language and enter the description of the web service as to be disaplyed while users log in French against the language.
    Thanks,
    Anshu

  • Photoshop CS4 Brushes not Anti Aliasing properly

    I've just set up CS4 and my brushes are not anti aliasing properly. There are no soft edges on any of them. I'm able to get a pressure sensitive opacity change on the stroke but the edges are all pixelated.
    Here is an image (this is a soft brush. notice none of the feathering/anti aliasing is there):
    http://craji.com/images/adobeproblem.jpg
    I've updated the newest gpu drivers for my Nvidia 8800 GTS.
    I'm running XP SP3 with dual monitors. An Apple 30" and a Cintiq 21"
    I've tried placing the main photoshop window on both monitors (one at a time) to test if that was causing it and i've had no luck.
    All of the options in my GPU Enabled are currently unchecked (since they were giving me lag issues on my brush stroke when they were checked).
    Any help (even linking me to something similar in this forum) is greatly appreciated.
    Cheers-

    Definitely not file dependent. I'll open a photo in sRGB 8bit, or create a new document with any settings from cmyk/rgb/bw 8/16 etc.
    I'm wondering if it has something to do with my Nvidia Display Property utility. I use it to gamma up my secondary monitor (cintiq). Although disabling that utility didn't resolve it..
    I'll try uninstalling and reinstalling tonight if no one is having similar problems. Maybe that will fix it.

  • When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the test and change the font, it does not change it properly?

    When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the text and change the font, it does not change it properly? This is making it impossible to amend.

    Hi Janedance1,
    If the PDF that you converted already has searchable text, please try disabling OCR as described in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel. (If the PDF was created from a scanned document and doesn't already have searchable text, disabling OCR isn't a great option, as the text won't be searchable/editable in the converted Word doc.)
    Please let us know how it goes.
    Best,
    Sara

  • Task activities not getting generated properly in BPEL

    I am using the Jdev 11g TP3 (from OTN). Installation went through fine. However I observed a interesting issue with HumanTask/BPEL and I was wondering if someone faced similar such problems before, if so, how to rectify the issue. Here is the description of the issue:
    1. Created a Empty SOA composite project
    2. Dragged and dropped BPEL Process in the component palette. Designed a Asynchronous process.
    3. Dragged and dropped a HumanTask. Did not expose as an composite. Designed a single approver workflow. In the project schema, choose the schema from BPEL input.
    4. Wired BPEL to HumanTAsk
    5. In the BPEL flow, I dragged the HumanTask to the flow. Everything appears to be correct. I clicked on "Ok" after associating with BPEL variable.
    Now when I examine the BPEL flow, a scope before the BPEL switch is empty. There are no BPEL activities generated. This is a very simple case of BPEL and HumanTask and I am not sure as to why the tasks not getting generated properly in BPEL flow.
    Has anyone experienced this issue or any ideas as to why this could happen?

    After going through the exercise several times, I finally found out the reason as to why the BPEL activities are not getting generated. In the Human task form for the title, since it is a fixed string in my case I put something like the one given below:
    Title : "APPROVE ORDER"
    When you have fixed string within double quotes it does not generate BPEL activities correctly. You can try and u will see the problem.
    My real question is should not throw proper error message when you try to drag and drop the HumanTask to BPEL flow.

  • View in edit window not getting updatet properly

    Hello
    I have some problems with the view in the edit window not getting updatet correctly. I noticed this in spectral view. For example, when I zoom in very much, so I only see about 3 seconds of audio and then select one second of audio and do a time stretch, so it will be two seconds of length, the windows does not update properly.
    Normally the audio behind the strechted selection should move backwards, but often the strechted portion just sort of overlaps it and it doesn't move. When I zoom out and then back in, it seems to be ok.
    I also have had very weird behavior when trying to remove clicks, with the view also getting pretty messed up.
    Does anyone have similar problems with the view not getting updated properly?
    I am running german windows xp, audition is installed in english. I first thought that installing it in english instead of german solves the problems, but unfortunately it didn't.
    Greetings

    Hello again
    I made a movie of this behavior:
    https://share.ols.inode.at/4NNYXR4HT2CJI5IHY273R9NRHRW9OLGR95Q7VTOP
    It shouldn't look like that, right?
    Greetings

  • Not working, Extension in Photoshop CC

    Hello  Do Not working, Extension in Photoshop CC ... not active why?. OSX 10.9
    Chris Zatycki

    Please provide more details,  including the version of Extension Manager and Photoshop. Also it's better to attach a screenshot.

  • Upgraded to 11.1.4.62.  Now iTunes is saying "An iPod has been detected, but could not be identified properly.  Disconnect then reconnect ..."  I removed iTunes and reinstalled.  I stopped and started the service.  I reset the iPod.  When I put it in disk

    I upgraded to 11.1.14.62 this morning.  Not iTunes is saying "An iPod had been detected but could not be identified properly".  I unlugged/replugged in.  I reset the iPod, I removed iTunes and reinstalled.  I'ver tried three different cables.
    When I put the iPod in disk mode it shows up briefly as a disk then goes away.
    Any ideas?

    Hi there  - I've spoken with Apple and here is their response (worked for me). You need to uninstall not only iTunes, but also (in this order):
    1) iTunes
    2) Apple Software Update
    3) Apple Mobile Device Support
    4) Bonjour
    5) Apple Application Support
    Then you restart your computer.
    Then you install the latest version of iTunes (which will reinstall all those things you uninstalled).
    Then you restart your computer again.
    Mine is working perfectly again now.
    I hope it works for you,
    Carmen.

  • My fourth generation ipod touch is not turning on properly. It is plugged into the computer but when i unplug it it just shows that it needs to be plugged in. Please help!

    I recently downloaded something for my ipod. Now it will not turn on properly. Can someone please tell me how to turn it back on please.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Itunes states "ipod detected but could not be identified properly" when I plug in my new nano. tried uninstalling/reinstalling itunes 6 times - get pop-up "itunes helper error" with abort, retry, ignore options. retry doesn't work

    I am trying to connect my new nano to my iTunes account. I keep getting msg "ipod detected but not identified properly. disconnect and reconnect. if problem persists uninstall/reinstall iTunes". I've uninstalled/ reinstalled iTunes 6 times but keep getting the same msg.
    when installing iTunes I get a pop-up "iTunes helper error" check access. with options to abort, retry, ignore. retry doesn't work. ignore installs iTunes but it doesn't recognize my nano. abort shuts down the download.
    how do I fix these problems??

    Hello, KenaiK9.  
    Thank you for visiting Apple Support Communites.  
    I see you are receiving an error and have processed some troubleshooting steps with the issue persisting.  There are just a couple more in the article below that covers this specific error.  
    iPod nano: Error message saying that iPod could not be identified properly
    Cheers, 
    Jason H.  

  • In Windows 7, iTunes  gives error message "An iPhone has been detected, but it could not be identified properly. Please disconnect and reconnect the phonon then try again.

    In Windows 7, iTunes  gives error message "An iPhone has been detected, but it could not be identified properly. Please disconnect and reconnect the phonon then try again."
    I have a iphone 4S. It has been activated on Win 7 computer and synced. But overnight this meassage reappears.

    I have same error except that i get it even when my phone is not connected.

  • TS1363 "An iPod has been detected but it could not be identified properly"  iPod Nano 7g and 3g won't work with Windows 8 PC. worked fine up until a month or so ago and now they are not recognized.

    "An iPod has been detected but it could not be identified properly"  iPod Nano 7g and 3g won't work with Windows 8 PC. worked fine up until a month or so ago and now they are not recognized.

    Hi cueball819,
    Thanks for using Apple Support Communities.  This article has steps to try if your iPods aren't recognized by iTunes or Windows:
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/TS1369
    Cheers,
    - Ari

  • ITunes message: an ipod has been detected but could not be identified properly.

    For some reason my ipod nano 7th generation will not connect to iTunes anymore. It comes up on my computer but iTunes will not "identify" it. I have tried resetting my ipod and unistalling iTunes then reinstalling and following the help intructions online. Anyone know how to fix this? Cheers.

    I recently began receiving this message when i try to sync my ipod to itunes:  " an ipod has been detected but it could not be identified properly."   Never had this problem before.  Have tried all troubleshooting suggestions.
    Doublechecking. Have you also tried a complete uninstall of both iTunes and all the other related software components and then a reinstall? If not, try the instructions from the following document:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8

Maybe you are looking for