Problem with object lists in BPEL and not in WS (ElementNSImpl)

Hi all, I've the next:
class Category{
   private List<Group> groups;
   private String name;
   public List<Group> getGroups(){
      return grops;
   public String getName(){
      return name;
}I've created a webservice that returns a Category in NetBeans:
@WebMethod
    public Category getMyCategory  throws Exception{  
        try {
            return new MyThing().getCategory();     
        } catch (Exception ex) {
            ex.printStackTrace();
            throw new Exception(ex);
    }Ok, If I call this WS in my jsp page or an app, I can access to the attribute "groups" (of the type "Category") as a List of "Group".
I've created a BPEL that does the same: return a Category. The same category. getName() works fine
But the list "groups" is a list of com.sun.org.apache.xerces.internal.dom.ElementNSImpl !
Using NetBeans 5.5 to do all.

You are perpetrating mistake #1 here. Don't try to send C structs over the wire. The format is dependent on the hardware, the operating system, the compiler, the compiler version, compiler bugs, the #pragmas, and the compiler options in effect. Too many variables. What you should be doing is writing the primitive types to the network, in network byte order, and reading them inJava with the appropriate methods of DataInputStream.

Similar Messages

  • Problem with Object returning previously set values, not current vlaues

    Please help if you can. I can send the full code directly to people if they wish.
    My problem is I enter title details for a book via an AWT GUI. When the user clicks the OK button it should display a new screen with the values just entered by the user. I added debug lines and found that the newInstance method has the values I set and the setObject created an object that was not null.
    However the first time you submit the details when it tries to get the object to display them back to the user it is null. However when you try and enter the details for a second time it will display the details entered on your first entry. Likewise if you went to enter a third title and put blank details in it would display the second set of details back to the user when they click OK.
    I'm very confused as to how it when I fetch an object I've just set it is out of step and points to previous values or null when used for the first time.
    Right onto the code.
    ----Shop.class - contains
    public static Object
    getObject()
    if ( save_ == null)
    System.out.println("Return save_ but it is null");
    return save_;
    public static void
    setObject( Object save )
    save_ = save;
    if ( save == null)
    System.out.println("Just taken save but it is null");
    if ( save_ == null)
    System.out.println("Just set save_ but it is null");
    ----AddTitlePanel.class contains
    private void okButtonActionPerformed(ActionEvent evt)
    ConfirmAddTitlePanel confirmAddTitlePanel =
    new ConfirmAddTitlePanel();
    // Gets the textField values here
    model.Title mss = model.Title.newInstance( fullISBN,
    ISBN,
    title,
    author,
    copiesInStock,
    price );
    model.Shop.setObject( mss );
    // Fetch reference to Graphical so buttons can use it to
    // display panels
    graph = model.Shop.getGraphical();
    graph.display( confirmAddTitlePanel );
    This creates a newInstance of Title and creates a copy using setObject when the user clicks on "OK" button. It also calls the ConfirmAddTitlePanel.class to display the details back to the user.
    ----ConfirmAddTitlePanel.class contains:
    private void
    setValues() throws NullPointerException
    model.Title mss = (model.Title) model.Shop.getObject();
    if ( mss != null )
    model.Field[] titleDetails = mss.getFullDetails();
    //model.Field[] titleDetails = model.Title.getFullDetails();
    fullISBNTextField.setText( titleDetails[0].asString() );
    //ISBNTextField.setText( titleDetails[1].asString() );
    titleTextField.setText( titleDetails[2].asString() );
    authorTextField.setText( titleDetails[3].asString() );
    copiesInStockTextField.setText( titleDetails[4].asString() );
    priceTextField.setText( titleDetails[5].asString() );
    else
    System.out.println( "\nMSS = null" );
    This is getting the Object back that we just set and fetching its details to display to the user by populating the TextFields.
    As I say first time you enter the details and click OK it displays the above panel and outputs "MSS = null" and cannot populate the fields. When you enter the next set of title details and click "OK" getObject is no longer setting mss to null but the values fetched to set the TextFields is the data entered for the first title and not the details just entered.
    ----Title.class contains:
    public static Title
    newInstance( String fullISBN,
    String ISBN,
    String title,
    String author,
    int copiesInStock,
    int price )
    Title atitle = new Title( fullISBN,
    ISBN,
    title,
    author,
    copiesInStock,
    price );
    System.out.println("Created new object instance Title\n");
    System.out.println( "FullISBN = " + getFullISBN() );
    System.out.println( "ISBN = " + getISBN() );
    System.out.println( "Title = " + getTitle() );
    System.out.println( "Author = " + getAuthor() );
    System.out.println( "Copies = " + getCopiesInStock() );
    System.out.println( "Price = " + getPrice() );
    return atitle;
    I'm really stuck and if I solve this I should hopefully be able to make progress again. I've spent a day and a half on it and I really need some help. Thanks in advance.
    Mark.

    Hi Mark:
    Have a look of the method okButtonActionPerformed:
            private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
             // if you create the confirmAddTitlePanel here, the value of
             // Shop.save_ is null at this moment (first time), becaouse you
             // call the methode setValues() in the constructor, bevore you've
             // called the method Shop.setObject(..), which has to initialize
             // the variable Shop.save_!!!
             // I think, you have to create confirmAddTitlePanel after call of
             // method Shop.setObject(...)!
             // ConfirmAddTitlePanel confirmAddTitlePanel = new ConfirmAddTitlePanel();
            ConfirmAddTitlePanel confirmAddTitlePanel = null;
            String fullISBN            = fullISBNTextField.getText();
            String ISBN                = "Test String";
            String title               = titleTextField.getText();
            String author              = authorTextField.getText();
            String copiesInStockString = copiesInStockTextField.getText();
            String priceString         = priceTextField.getText();
            int copiesInStock          = 0;
            int price                  = 0;
            try
                copiesInStock = Integer.parseInt( copiesInStockString );
            catch ( NumberFormatException e )
                // replace with error output, place in status bar or pop-up dialog
                // move focus to copies field
            try
               price = Integer.parseInt( priceString );
            catch ( NumberFormatException e )
                // replace with error output, place in status bar or pop-up dialog
                // move focus to price field
            model.Title mss = model.Title.newInstance( fullISBN,
                                     ISBN,
                                     title,
                                     author,
                                     copiesInStock,
                                     price );
            model.Shop.setObject( mss );
            // ---------- now, the Shop.save_ has the value != null ----------        
            confirmAddTitlePanel = new ConfirmAddTitlePanel();     
            // Fetch reference to Graphical so buttons can use it to
            // display panels
            graph = model.Shop.getGraphical();
            graph.display( confirmAddTitlePanel );
        }//GEN-LAST:event_okButtonActionPerformedI hope, I have understund your program-logic corectly and it will help you.
    Best Regards.

  • HT4113 anyone else have a problem with the iphone 4s locking and not able to unlock even though you keep entering the only code that you have used?

    Anyone else having a problem with the iphone4s locking and not letting you in even though you keep using the only code you have entered from the begginning?

    No. You are the first person out of 900 million users to have this problem.

  • ITunes / iPod having problems with lyrics in MP3 files and not with M4A ?

    Over the last two month (without this forum) I believed sometimes to be the only one having a weird problems with iTunes lyric format structure.
    Now after more than 50h of investigations interesting results appear.
    The field of trouble:
    a) People are not able to delete lyrics in iTunes
    b) People discover that iTunes and their iPod/iPhone do not show the same lyrics
    c) it seems that the lyrics of certain songs can't synchronised with the iPod
    d) it seems that the problem in iTunes can appear more than one times that itunes corrupts the contents of lyrics in a way that:
    e) the text structure is damaged, no more line breaks, no empty lines between text sections.
    After all my suspicion is: All of this trouble can be caused by one problem:
    iTunes (at least latest version 9.0.3 (15) has a -unkonwn- problem with the lyric-text structure in MP3-files. It seems that iTunes does not have the same problems if the file is in M4A-file format, created by apple-store files being downloaded, or CDs being converten in iTunes using the build in AAC-converter!
    Converting "infected" files (via AAC) to M4A are clean again (on iTunes and iPod) showing no more one of the trouble ahead. The ghost is eliminated. Everything synchronizes as it should be.
    And I for myself have to convert more than 3000 songs now... to ged rid of this nightmare.
    Now I'm very curious of You experiences. Can You confirm my suspicion? Or have You had similar problems with Your M4A-files too?
    - Best Regards ThomasK_DJ, south Germany

    Try this -> http://mp3val.sourceforge.net/ to verify and fix MP3 files.
    Also, it could be the version of the ID3 tags.
    Select a song in iTunes then go to iTunes menu Advanced -> Convert ID3 tags and select a different version and see what happens.

  • Problems with CC logging me out and not syncing

    Every morning now when I come into work I find I've been logged out of CC
    This has two affects:
    No. 1 it didn't sync my files last night so I couldn't do the work I wanted to and
    No. 2 I have to agree with the licence agreement for each app in turn every morning.
    I've seen sync problems almost every day but drop box just works. Quietly in the background gets it right every time.
    Adobe CC file syncing, one word "unreliable" why when drop box works more than perfectly on the exact same computer.
    Any ideas what's going on here?
    I understand it can't sync if it's logged me out but the point was I didn't even know it had logged me out, just shut the computer down
    after about an hour of inactivity in the evening, went home to do the work I'd put in the CC folder and No, it wasn't there.
    Do I really have to go back to thumb drives. 20gig of space if no good if it isn't reliable.

    Thank you. That was it. The settings must have reverted back be the iOS 7 update. I NEVER would have found that. Thank you.

  • I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    Cannot see what files ? Music (synced music should appear in the iPod app), films/TV shows (Videos app), documents ... ?

  • There is a problem with my apple watch.it is not working well .There is a problem in its charging .The repairers says that contact to your company and ask them to provide you its software. Please help me.

    There is a problem with my apple watch.it is not working well .There is a problem in its charging .The repairers says that contact to your company and ask them to provide you its software.
    Please help me.

    Please be aware that you are not communicating with Apple when you post in these forums. These are user-to-user support forums, so in almost all cases the only people who will reply to your posts are, like me, your fellow users.
    As to your issue, Apple does not and never has made a wristwatch as such. The only thing close to a watch that they have made was the 6th-generation iPod nano:
    http://support.apple.com/kb/ht1353#iPod_Nano_6G
    which has a clock feature and which some people have worn as a wristwatch. Is that what you mean?
    Message was edited by: varjak paw

  • I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I c

    I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I can do to repair it

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • Updated Illustrator CC to CC 2014, having problems with CC performance. Slow and does not quit

    Updated Illustrator CC to CC 2014, having problems with CC performance. Slow and does not quit. What can be causing the issue?

    Hello, please checkout my post concerning lagging issues.
    I've also provided a link to a video I've recorded showing the Illustrator behavior on my iMac 27"
    Adobe Illustrator Cs6 Lagging Extremely Slow on Yosemite 27" iMac i7 late 2013

  • I have a MacBook Pro that I bought almost a year ago, next day problems with the hard disc that could not be diagnosed by the service, after 3 months they realized it and changed it with a new one, after 3-4 months heated and shut down and dont work anymo

    I have a MacBook Pro that I bought almost a year ago, next day problems with the hard disc that could not be diagnosed by the service, after 3 months they realized it and changed it with a new one, after 3-4 months heated and shut down by itself and dont work anymore. From apple say even a year has not passed it is not under garancy and I should pay to fix it without ans issue.

    I have a MacBook Pro that I bought almost a year ago, next day problems with the hard disc that could not be diagnosed by the service, after 3 months they realized it and changed it with a new one, after 3-4 months heated and shut down by itself and dont work anymore. From apple say even a year has not passed it is not under garancy and I should pay to fix it without ans issue.

  • Help solve the problem, with the lifting of purchasing and payment card is locked, and now I can not pay for her purchases in the app store

    help solve the problem, with the lifting of purchasing and payment card is locked, and now I can not pay for her purchases in the app store

    Contact the App store for Apple ID help. Their support link is on the right of the App store window
    LN

  • Hi, I have a problem with my ipod touch: I can not activate my ipod with my Apple ID, it tells me that my account can not activate this device, but my ID apple is OK and the ipod is mine, I have my ballot, HELP PLEASE

    Hi ...
    I have a problem with my ipod touch:
    I can not activate my ipod with my Apple ID, it tells me that my account can not activate this device, but my apple ID is OK.
    The proposed me as ipod help entering previous credentials, but the ipod is mine from the beginning, in fact I have my ballot, not bought down to another user.
    Actually I do not know how to activate it in Chile were unable Store MacOnline solve my problem, it is for this reason that I am writing to see if someone can help me.
    PLEAAASEEE
    Thank you.
    Sebastian

    Thanks for your answer.
    actually, my ipod will not let me activate it with apple id, this happened when the new iOS acutalizó understand that has more security, but do not know what to do.

  • Problem with installing Photoshop elements 9 and adobe support advisor

    Hi, I've received a graphic tablet with 2 programs: the first has been downloaded and works perfectly while the second, PSE9, has been giving me problems for at least a week!
    I downloaded it and now I have a winzip file full of strange things (one of this is set up exe which tells me that I have to install adobe support advisor) and two files which said 3DF.tmp and PSEP9(1).zip.download and if I try to click them they tell me that I have to find on the Net the program to open them because I can't. And I don't know which program is required.
    I tried a lot of times to download the adobe support advisor, I have enough space on my disc and my farewall is deactivated, but when the program begins I saw this annoyant message
    cpsid_82829s5 Missing installation file bootstrapper error occured
    with this code for a support from adobe 00-67325-032018052012
    I unistalled it and retried, but nothing.
    Please, I just want to use my tablet with the programs which are comprised in the package, why it's so difficult to download this damn photoshop elements 9????????????
    Thank you

    In the error message it doesn't tell me
    "Installer has detected that a machine restart is pending. It is recommended that you quit the installer, restart try again,"
    neither "Installer failed to initialize. File not found. Please download Adobe Support Advisor to detect the problem."
    and I have enough space and I have Windows xp then I should be able to install it. I tried to unistall and install again the support advisor but nothing. I'm desperate.
    Messaggio originale----
    Da: [email protected]
    Data: 18/05/2012 22.20
    A: "Questionlady"<[email protected]>
    Ogg: Problem with installing Photoshop elements 9 and adobe support advisor
    Re: Problem with installing Photoshop elements 9 and adobe support advisor created by Jeff A Wright in Trial Download &amp; Install FAQ - View the full discussion
    Did you try the steps listed in http://helpx.adobe.com/creative-suite/kb/troubleshoot-error-messages-b ootstrapper-cs5.html which was identified by the Adobe Support Advisor?  If so can you please list each step and the result of those steps.  This will allow us to best advise you on your next steps.
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4420419#4420419
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4420419#4420419. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Trial Download &amp; Install FAQ by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    This is a major problem with Lollipop, but yo said it started 2 months ago.   Several people have fixed problem by removing FaceBook And Face book messenger and then re loading the apps again.   You might want to clear your cache before reloading.  Not sure this is your problem, but worth a try.  Good Luck

  • Problems with creation of catalogue XPGrpwise and temporary

    Problems with creation of catalogue XPGrpwise and temporary files.
    I use GroupWise 8.01 and WinXP (SP2), OpenOffice 3.1.
    Why at opening files in Library, temporary files are not created in catalogue C:\Documents and Settings\Jon Smith\Local Settings\Temp\XPGrpwise, and created in catalogue C:\Documents and Settings\Jon Smith\My Documents. That causes problems. How to change a situation that worked as it is necessary.
    Catalogue XPGrpWise is created and leaves duly in catalogue C:\Documents and Settings\Jon Smith\Local Settings\Temp\.

    Cvetaev,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

Maybe you are looking for