Frustrated with JAXB...

So I'm getting a strange internal error in JAXB, when I try to get a new instance from the JAXBContext
context ="asb.msgLogReport";
JAXBContext.newInstance(context);
I've double checked the jar file that I included, and yes the package & subpackage match exactly to what I'm passing the JAXB context.
Here's the error:
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
asb.msgLogReport.impl.runtime.DefaultJAXBContextImpl does not have a no-arg default constructor
     this problem is related to the following location:
          at asb.msgLogReport.impl.runtime.DefaultJAXBContextImpl
          at asb.msgLogReport.ObjectFactory
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:309)
     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:179)
     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:70)
     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:50)
     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:118)
     Any clue what could be causing the problem?
Thanks, I appreciate any help.

Interesting bug - apparently, after comparing the way I jarred up my files with the way a coworker did it, there are 2 props files generated by jaxb
bgm.ser and jaxb.properties
When I jarred up the files, I noticed all the classes were there but NOT the 2 properties files. Once I added them, jaxb context's newinstance method worked just fine.
So I guess the lesson is be careful what you jar up.

Similar Messages

  • If Apple is so full of geniuses, why can't they come up with a usb cable to connect the iPad to a printer? This would seem like the most intelligent first choice for those of us who are absolutely frustrated with iPad printing functionality.

    My sister has an iPad and an HP printer. She cant' print from her iPad even though a genius at the Apple Store sold the combination to her with the idea that it would be easy to do. Instead, I have to go to her place with my MacBook, she sends me an email, and I hook up my laptop to her printer to print what she needs. Why can't the Apple geniuses come up with a USB cable and an OS update to make it easy and NOT SO FRUSTRATING to print from the iPad?
    I've been a Mac user for fifteen years but I could not, in good conscience, recommend an iPad to anyone until Apple considers that ease of use does not include regularly getting frustrated with the easiest of tasks.

    all printers speak a diffrent "computer language" for a device to understand this language
    a driver is required
    some devices such a computers come with drivers for a long line of printers and other devices
    apple decided that it was better not to include that huge list of drivers as users would then not have
    much storage left for media and apps
    then apple let printer makers make apps for printing in app store and make printers support airprint

  • The newest version of iTunes is awful when it comes to Cloud syncing-file management. I'm constantly frustrated with what iTunes 'chooses to eliminate from my mobile device and settings aren't fine-grained enough to allow for real user control.

    I'm endlessly frustrated with iTunes Cloud syncing, something that was supposed to make lenjoying my music easier. I routinely find that, though itunes and podcasts have been split, iTunes arbitrairily removes music files or in progress podcast in favor of 'new' podcasts. The settings are just not fine-grained enough to allow true user control and so we are instead subjected to 'Apple knows best' protocols. I understand and appreciate the level of exacting control Apple excercises over their ecosystem, however, more and more often I see them tightening control over things that should be user control while dropping the ball on aesthetic desisions made in producing their own software (see the hideous pull down tab for iTunes to access Podcast, TV shows, Music, etc.
    I would like to see features like those in Mail and the Podcasting apps implemented in iTunes afor the management of content on mobile devices, for instance it would be great to swipe to delete files that you know longer want on your device, at both the album and song level. Another issues is the new pushiness of iRadio and iTunes Store, the app now seems to default to the iRadio page (versus the last page Albums, songs, etc. that the user was navigating, or in the instance of the iTunes Store push, if I doon't have all the tracks of an album i own on my mobile device 'complete my album' takes you to iTunes store rather than showing the 'cloud' download icon next to missing tracks. These are the tactics I expect from Google, not Apple (pushing commerce over quality user experience).
    Fix these things Apple, please.

  • Not rally a question, just wanted to share my absolute frustration with the update of iTunes...this is, without a shadow of a doubt THE WORST application i have EVER used, Mac or PC! And that's saying something with the amount of PC dross that's out there

    Not rally a question, just wanted to share my absolute frustration with the update of iTunes...this is, without a shadow of a doubt THE WORST application i have EVER used, Mac or PC! And that's saying something with the amount of PC dross that's out there...Apple...PLEASE update and give us back the old version of iTunes...

    Pull down View > Show Sidebar. This will give you back the same functionality of iTunes 10.x.x.

  • I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the

    I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the least very disappointed with such horrible service

    Which service did you subscribe to?  Adobe PDF Pack?
    Once I know the service that you subscribed to, I can move this post to the right forum so that you can get in touch with the folks who can assist you.

  • I'm frustrated with the bookmarks. I so long to be able to right click on any bookmark and choose to have them in alphabet order. Would also like for the little icons to go away. Never been able to figure out how to do this the MAC way. Help.

    I am frustrated with the Bookmarks. I want so much to be able to right click and alphabetize the list. It's been a year and I can get my mind around the process that's there. Also I'd love for those pesky little icons to disappear. Help me please.

    After the release of Firefox 29, several people noticed that after using the Customize feature, most items on the right-click menu for the Bookmarks menu on the menu bar became ''grayed out'' and unusable until you closed and started Firefox back up again. That seems to still be a problem for me in Firefox 36.0.4, so if you used Customize, that could be the explanation.
    You still should be able to click and drag bookmarks around the menu even with the broken right-click context menu.
    And if it's easier than restarting, the context menu still works in the Bookmarks Sidebar (Ctrl+b to open/close) and Library dialog (Ctrl+Shift+b or "Show All Bookmarks").

  • Frustrated with lack of help!

    I up graded my phone to an iphone 5c.  I received it yesterday and call the 800# to activate my phone.  During the phone call I was transferred to customer service because my phone was unable to activated.  I was on hold for 30 mins and the customer service rep told me there was nothing she could do manually I would have to call the 800#.  I did this 3 times, each time told the same thing!   Finally the 4th time I told the rep I needed to speak to a manager and he informed me the manager wasn't available and to call tech support.  So my 5th phone call to Verizon I spoke to a girl in tech support who was able to tell why my phone wasn't unable to be activated.  the SIM card that was preinstalled was never registered and I would have to go to a Verizon store to get one.  Here's my problem again, I leave in a rural western pa.  I called my local store and they told me I would have to buy a SIM card because they are not a corporate store!  The closets corporate store is 1 hour away.  I am so frustrated with verizons lack of system checks that I just want to send the phone back!!  I have never had this many problems with Verizon and I have been a customer for 15 years.

    Verizon can mail you a Sim for free. No travel time to a corporate store.
    http://www.apple.com
    In their community help forum the not being able to activate is listed there as well as the fix.
    Good Luck

  • HT4972 the apps weve downloaded are not working.  please help,  extremely frustrated with our ipod 4

    the apps we have downloaded are not working,  please help,  extremely frustrated with our ipod 4

    See my previous reply for for the apps closing.
    For the wifi problem:
    Does the iOS device connect to other networks?
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect OK before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network       
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Very frustrated with the battery exchange program

    I'm very frustrated with the battery exchange program. I signed up online, double checked all my information, and submitted. No where on the page did it say that a signature would be required upon delivery. I work during the day, so I'm not home to receive shipments (any package I do receive is just left in the lobby, and it's always been fine--I live in a secure building).
    DHL is refusing to leave the package at the door. Apple refuses to tell DHL that it's ok to redirect the package to my place of employment. My only option, it seems, is to spend almost two hours of my time driving to the DHL location and back (the pickup location isn't even in the same county I live in).
    If anyone has any better ideas, I would love to hear it.
    Thanks,
    Andrea

    If your battery was stolen after it was delivered, I'd bet you'd really get upset. If DHL is anything like UPS, you can sign the receipt telling them to leave the package. Pretty simple.

  • Web services with JAXB

    Hi All,
    I am new to Web services with JAXB in ECLIPS.
    When I tried to unmarshal the XML file, I am getting the following exception.
    javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"order"). Expected elements are <{http://webservices/}read>,<{http://webservices/}readResponse>
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent
    xml , schema and java class are in follow.
    Please help me to solve this issue.
    Mohseni Rad.
    ----------------------------------po.xsd-----------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="order" type="OrderType"/>
    <xsd:complexType name="OrderType">
    <xsd:sequence>
    <xsd:element name="shipTo" type="xsd:string"/>
    <xsd:element name="billTo" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    ------------------------------------po.xml----------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <order>
    <shipTo>shipto</shipTo>
    <billTo>billto</billTo>
    </order>
    ------------------TestWS.java---------------------
    import java.io.FileInputStream;
    import java.io.IOException;
    import javax.xml.bind.JAXBContext;
    import javax.xml.bind.JAXBElement;
    import javax.xml.bind.JAXBException;
    import javax.xml.bind.Unmarshaller;
    import wsclient.*;
    public class TestWs {
         public static void main(String[] args) {
              try{
                   SecondWebServices webService = new SecondWebServicesService
    .getSecondWebServicesPort();
                   JAXBContext jctx = JAXBContext.newInstance("wsclient");
                   Unmarshaller unmarshaller = jctx.createUnmarshaller();
                   FileInputStream fl = new FileInputStream( "etc//po.xml" );
         JAXBElement<?> order = (JAXBElement<?>)unmarshaller.unmarshal( fl );
                   OrderType orderType = (OrderType)order.getValue();
                   webService.read( orderType);
              }catch (JAXBException je) {
                   je.printStackTrace();
              catch (IOException ioe) {
                   ioe.printStackTrace();
    }

    Hi,
    When you are using JAX-WS, there is a tool wsimport, with which you are going to generate the artifacts required to implement the web service.
    When you pass the WSDL as a parameter to the wsimport tool, it will be create the required beans also(JAXB Objects).
    So need of any other external implementation of JAXB when you are working with JAXWS
    Thanks,

  • Frustration with Safari

    Is anyone else totally frustrated with an inability to save or print PDFs using Safari 6.0.3?  I'm tired of opening a PDF in Safari to see if it's something I want to print, and then having to reopen the same PDF in Firefox or another browser to print it and to save it.  It's been like this now for several months.

    I think I finally solved my own problem.

  • Frustrated with iCal 3--please fix the obvious bugs!

    I read that Apple actually looks at these posts, otherwise I would suffer in silence. So here goes...
    After adopting iCal for all of my calendar needs and being able to rely on version 2 to work, I upgraded to Leopard and iCal 3. Now, I am frustrated with obvious bugs and very worried about the integrity of my calendar data (which is EXTREMELY important).
    Some things that do not work or seem to work sporadically in iCal 3:
    1. Delete events/to-do's after n days. Nothing. And why is this option applied globally rather than to specific calendars?
    2. Publish calendars upon modification. Usually works; sometimes quits for no apparent reason.
    3. Reliable syncing (OK, maybe this is an iSync problem).
    Other frustrations:
    1. Very slow operation. Slow to create event, slow to edit event, slow to even change from month to month.
    2. Very slow or even crashes when I double-click on an event.
    3. I seem to need to double-click after I enter an event to fill in all the info I want.
    4. No easy way to archive (and restore) old events.
    Please, Apple, do not lose your focus on software excellence, as you pursue lucrative new markets! Your recent software releases (like iCal, iSync, AirDisk, TimeMachine, etc.) are beginning to remind me of, gasp, Microsoft. They almost work.
    Excuse me for venting on this forum.

    I have all of the same issues Jeff. What gives?? This needs immediate fix.

  • Marshalling HashMap with JAXB 2.0 - empty tags & ill schema

    Hi all,
    I expected JAXB 2.0 to be capable to handle basic classes like HashMap, but it does not look so. I have two classes: SimpleNegotiationManager which has a property HashMap in which are stored the instances of SimpleInitiatedConversation:
    package xml;
    import javax.xml.bind.annotation.*;
    import java.util.HashMap;
    @XmlAccessorType(AccessType.FIELD)
    @XmlRootElement
    public class SimpleNegotiationManager {
        @XmlElement
        protected HashMap<String, SimpleInitiatedConversation> initiatedConversations;
        public SimpleNegotiationManager() {
        public HashMap<String, SimpleInitiatedConversation> getInitiatedConversations() {
            if (initiatedConversations == null) {
                initiatedConversations = new HashMap();
            return initiatedConversations;
        public void setInitiatedConversations(HashMap<String, SimpleInitiatedConversation> initiatedConversations) {
            this.initiatedConversations = initiatedConversations;
    }and
    package xml;
    import javax.xml.bind.annotation.*;
    import java.util.ArrayList;
    import java.util.List;
    @XmlAccessorType(AccessType.FIELD)
    @XmlType
    public class SimpleInitiatedConversation {
        @XmlElement
        protected List<String> messages;
        protected String conversationID;
        protected int protocolState;
        public SimpleInitiatedConversation() {
        public List<String> getMessages() {
            if (messages == null) {
                messages = new ArrayList();
            return messages;
        public void setMessages(List<String> messages) {
            this.messages = messages;
        public int getProtocolState() {
            return protocolState;
        public void setProtocolState(int protocolState) {
            this.protocolState = protocolState;
        public String getConversationID() {
            return conversationID;
        public void setConversationID(String conversationID) {
            this.conversationID = conversationID;
    }When I marshalled SimpleNegotiationManager while the HashMap was filled with several <String,SimpleInitiatedConversation> entries, in the output were empty tags initiatedConversations:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <simpleNegotiationManager>
      <initiatedConversations>
      </initiatedConversations>
    </simpleNegotiationManager>When I used schemagen to generate a schema, it produced:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:complexType name="simpleInitiatedConversation">
        <xs:sequence>
          <xs:element name="messages" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
          <xs:element name="conversationID" type="xs:string" minOccurs="0"/>
          <xs:element name="protocolState" type="xs:int"/>
        </xs:sequence>
      </xs:complexType>
      <xs:element name="simpleNegotiationManager" type="simpleNegotiationManager"/>
      <xs:complexType name="simpleNegotiationManager">
        <xs:sequence>
          <xs:element name="initiatedConversations" type="hashMap" minOccurs="0"/>
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="hashMap">
        <xs:complexContent>
          <xs:extension base="abstractMap">
            <xs:sequence/>
          </xs:extension>
        </xs:complexContent>
      </xs:complexType>
      <xs:complexType name="abstractMap" abstract="true"/>
    </xs:schema>Particularly the description of HashMap seems ill - there is not specified that the HashMap has keys String and values SimpleInitiatedConversation.
    Unfortunatelly, the j2s-xmlAdapter-field example available with JAXB 2.0 is more complicated than I need. I just need to store/load HashMap into/from XML and I do not care what it looks like. Is it possible to avoid extending XmlJavaTypeAdaptor for a simple storing a HashMap into XML? Perhaps I use improper annotations in the source code, but I cannot get it working. Any clue?

    Ok i figured out one way of doing this by using some classes from JAXP...
    SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema s = null;
    try{
        s = sf.newSchema(new File("Sources/schema/test.xsd"));                    
    }catch(Exception e){
        System.err.println("Exception e: " + e.getMessage());
    marshaller.setSchema(s);
    //MyValidationHandler class implements the ValidationEventHandler interface
    MyValidationHandler gv = new MyValidationHandler();
    marshaller.setEventHandler(gv);If anyone has something to add let me know!!

  • Can't generate setters for array or collection classes with JAXB

    I am trying to use JAXB to generate the required setters for Spring beans. Although according to the book Java & XML Data Binding
    Chapter 3 page 42 by Brett McLaughlin it was possible with DTD's using
    <?xml version="1.0"?>
    <xml-java-binding-schema version="1.0-ea">
    <options package="javajaxb.generated.movies" default-reference-collection-type="array" />
    <element name="movies" type="class" root="true"/>
    </xml-java-binding-schema>
    to generate an array as in
    public Movie[] getMovie( ) {
    // implementation
    public void setMovie(Movie[] _Movie) {
    it doesn't look like that capability exists with JAXB 2.0 and XML Schemas. In their wisdom they just generate getters on Lists and tell you:
    <p>
    * This accessor method returns a reference to the live list,
    * not a snapshot. Therefore any modification you make to the
    * returned list will be present inside the JAXB object.
    * This is why there is not a <CODE>set</CODE> method for the filingForm property.
    * <p>
    * For example, to add a new item, do as follows:
    * <pre>
    * getFilingForm().add(newItem);
    * </pre>
    Of course this doesn't work for Spring injection where setters are needed.
    Does anyone know different or is there a way of getting around this ?
    I've tried constructor injection in Spring but it's not as convenient and involves extensive coding of generated code (not nice).
    Edited by: user3806112 on Mar 15, 2011 11:13 AM

    Oh I found it on this post
    http://cxf.547215.n5.nabble.com/NPE-in-generated-setter-method-when-collectionType-quot-indexed-quot-and-a-null-array-is-used-td3323012.html
    collectionType="indexed" in the globalBindings-tag
    it works in schema internal global bindings as well
    <jaxb:globalBindings collectionType="indexed" >

  • Frustrated with layers

    I know this is so simple but I can't get it to work. what I want is to have a plain background color with either a picture over that is faint or a pattern that is lighter these are not the focal points then i want to add a few photos but would like to feather or rough up the edges so they don;t ;look like i just dropped them in and maybe a some other graphic like an animal or flames etc. and some text. please any help would be great. thank you in advance. Susan

    Since you mention being frustrated with layers, I assume you are having problems getting several images into the same document.
    Start by reading through this tutorial which shows how to open and get more than one image into a document.
    http://www.alibony.com/pse/070308copy.html
    You might also find some useful info on this page...top part anyway.
    http://www.alibony.com/pse/022108collage.html
    jazzyroses13 wrote:
    I know this is so simple but I can't get it to work. what I want is to have a plain background color with either a picture over that is faint or a pattern that is lighter these are not the focal points
    Use opacity in the layer's palette to reduce this image or pattern's transparency.
    jazzyroses13 wrote:
    add a few photos but would like to feather or rough up the edges so they don;t ;look like i just dropped them in
    One way would be to use this layer in a clipping mask...also known as a clipping group. See this tutorial on clipping masks/groups that includes several ways types of bases.
    http://www.photokaboom.com/photography/learn/Photoshop_Elements/layers/layer_groups_clippi ng_masks/1_layer_groups_clipping_masks.htm
    jazzyroses13 wrote:
    I know this is so simple but I can't get it to work. what I want is to have a plain background color with either a picture over that is faint or a pattern that is lighter these are not the focal points then i want to add a few photos but would like to feather or rough up the edges so they don;t ;look like i just dropped them in and maybe a some other graphic like an animal or flames etc. and some text. please any help would be great. thank you in advance. Susan
    Personally, I prefer using a solid color fill adjustment layer as the base in the clipping mask. (You'll find this option in the layer's palette under the black and white icon. It'll be one of the options in the menu list.) Drag out the rectangular marquee in the mask of the solid color fill adjustment layer.  With the mask layer selected in the layers palette, fill it with black paint. Invert the mask (ctrl + I on PC; cmd + I if on a mac). You can use the free transform command (Ctrl + T on PC; Cmd + I on Mac) to resize the masked area.
    Some edge techniques...
    If you desire to soften the edge, apply the gaussian blur filter. If you want a spattered edge, apply the spatter or sprayed edges filter to the mask...can also try using other filters that work in grayscale which will be the only ones not grayed out. (Note: You could apply the filter(s) to the rectangle first then invert the mask if you prefer). Another method is to use the brush tool and paint in the mask...thick heavy brush set is a good choice. (Note: Use black paint to hide (the image); white paint to reveal (the image); and gray will be semi-transparent (think feathering).
    Edit: You don't have to use the rectangular marquee...can use circular or any selection for that matter.
    Info on the type tool can be found here.
    http://www.photokaboom.com/photography/learn/Photoshop_Elements/type_tool/1_type_tool.htm
    You'll most likely want to have your type in the topmost layer(s) of the stack in the layers palette so you don't cover them up with your images. Use move tool to move graphics and type into desired location. You'll find using the grids and/or guides useful in planning out your image.
    There's a video on using a scrabook kit (Quick Page) here that might be useful as it shows how things are stacked when building a page:
    http://www.alibony.com/video/video-lesson34.htm
    For the transform command (resize and rotate), she's using Ctrl + T on PC (cmd + T if on mac) instead of using the menu Edit<Free Transform. I thought I'd add that so you don't get lost with how she's doing that.
    Another tutorial on using quick pages:
    http://graphicssoft.about.com/od/digitalscrapbooking/ss/howtoquickpage_10.htm
    I think there might be some of these included with Elements. I don't have a recent version of Elements so I'm not 100% sure where they are located but I'm thinking it's in the Organizer.

Maybe you are looking for

  • Album Art on iTunes does not show up on iPod

    I've put my CD's onto my iPod nano, and I put the Album Art so when I click "Get Info" on iTunes, it shows the Album Art. However, when I play the songs on my iPod, it doesn't show up. What's wrong?

  • Spool file error - Buffer Overflow

    I've a sql script that is running from a.sql file. The script fetches almost 9 million data as a result of the query. Main problem is related to spool file generation. It is saying buffer overflow. But, when i write that query from sql prompts it is

  • Can't get a blank entry in Choice List of Values (LOV)

    Using Jdev 11.1.1.3 but will be upgrading to 11.1.1.5 in few weeks. Need to display a Choice List that is bound a view object with static data. The List should show a blank item since users don’t need to select any. I am able to display the LOV in th

  • Is it possible to set up a network with airport extreme that is not on the internet

    Is it possible to set up a home network using airport extreme that will be a non-internet option?  Not connected to the internet wifi. 

  • Autoplay disabled, now nothing happens...

    My 30gb video iPod's been working great for about a month. No problem hooking it up or updating. Something happened recently (I think an iTunes update) that caused this to change. I started getting the autoplay error. So after going through everythin