Model generation error when using java.util.List in JavaBeans

hi there,
when I try to generate model classes from JavaBeans classes,
packed into a JAR the generation process always stops with erros when the Bean class uses a property of type
java.util.List. See my example:
class MyJavaBean{
   private java.util.List someMembers;
The error is:
Inspecting relation "MyJavaBean.SomeMembers" for source class "MyJavaBean"
[Warning]:This relation cannot be added as the TargetModelClass is not specified
[Error]: There are one or more relations unresolved. Importing the model without resolvoing the relations might result in erratic output.
Must I use a workaround or does anybody know something about this problem ? Installed: NW SP12
thx,
sabine

Hi Bhavik,
Can you please explain the error which you are getting while importing the model.
Please have a look at this tutorial.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on using ejbs in web dynpro - 20.html
Hope it helps.
Regards,
Naresh

Similar Messages

  • Error when importing java.util.Scanner

    Agh! I'm in an introduction to computer science course, and I am writing a program as an assignment that's due tomorrow.
    I have imported java.util.Scanner before, but I've only run it on the Windows PCs in the lab, whereas I am currently on a Mac. I've updated to the latest version of Java (through the software update), and I'm running Tiger (also fully updated).
    I'm using Dr. Java to write the programs, but I tried using the very same thing in Eclipse and it didn't work. Here's my program:
    import java.util.Random;
    import java.util.Scanner;
    public class Password {
    public static void main(String[] args) {
    //create a Scanner object to read from the keyboard:
    String password;
    Scanner scanner = new Scanner(System.in);
    Random randomizer = new Random();
    System.out.println("Please enter a string containing candidate characters.");
    String input = scanner.next();
    int charLength = length(input);
    System.out.print("Random password: ");
    System.out.print(input.substring(randomizer.nextInt(charLength)));
    System.out.print(input.substring(randomizer.nextInt(charLength)));
    System.out.print(input.substring(randomizer.nextInt(charLength)));
    System.out.println(input.substring(randomizer.nextInt(charLength)));
    And, here's my errors:
    4 errors found:
    File: /Users/brianmoore/Desktop/Password.java [line: 11]
    Error: cannot resolve symbol
    symbol : class Scanner
    location: package util
    File: /Users/brianmoore/Desktop/Password.java [line: 18]
    Error: cannot resolve symbol
    symbol : class Scanner
    location: class Password
    File: /Users/brianmoore/Desktop/Password.java [line: 18]
    Error: cannot resolve symbol
    symbol : class Scanner
    location: class Password
    File: /Users/brianmoore/Desktop/Password.java [line: 22]
    Error: cannot resolve symbol
    symbol : method length (java.lang.String)
    location: class Password
    Any ideas?

    Ok. I figured it out. On the Dr. Java page, this is what helped me:
    Please verify the following:
    - Open "/Applications/Utilities/Java/J2SE 5.0/Java
    Preferences";
    make sure "J2SE 5.0" is at the top of the list under
    "Java
    Application Runtime"
    - Open DrJava; go to Edit->Preferences; make sure
    "Tools.jar
    Location", "JSR-14 Location", and "JSR-14
    Collections Path"
    are all blank
    - Open the Help->About dialog box; make sure the "DrJava
    Version" listed is 20050601-0007 or later (that is, later
    than
    June 1, 2005)
    - Go to the "System Properties" tab in the
    "About" box; make
    sure "java.version" is 1.4.2.
    Let us know what you find out if you're still having
    trouble.
    Thanks for your help!

  • Strange class error when using java

    I've been attempting to use java.awt.robot to simulate a key press when a button is clicked however I'm getting a couple of errors that I can't figure out but I'm not so good when it comes to scripts. When the button "LetterButton" is pressed it should simulate a keypress, ideally to the desktop/operating sytem but the errors I'm getting are:-
    1071: Syntax error: expected a definition keyword (such as function) after attribute public, not static.
    1084: Syntax error: expecting rightbrace before leftbrace.
    1131: Class must not be nested.
    Here's the code:-
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplicationxmlns:mx="
    http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
    import java.awt.Robot; 
    import java.awt.event.KeyEvent; 
    public class Main { 
    public static void main(String[] argv) throws Exception { 
    Robot robot =
    new Robot(); 
    robot.keyPress(KeyEvent.VK_A);
    robot.keyRelease(KeyEvent.VK_A);
    ]]>
    </mx:Script>
    <mx:VBox x="359" y="262" horizontalCenter="0" verticalCenter="0">
    <mx:Button id="LetterButton" label="Button" click=""/>
    <mx:TextInput id="txt"/>
    </mx:VBox></mx:WindowedApplication>

    Sounds tricky. I may ask them to look for an alternative way of doing it as Java really isn't my thing, I'm merely just a flex beginner at the moment.
    The reason I've been looking for this is that my app will be installed on a digital tv that also has a system connected to it using a Linux operating system so the user can switch between watching digital tv and the application seamlessly and at the moment a Linux professional who I'm working with has the Digital TV bound to the F12 key which is bound to a handheld remote control (being a tv there is no keyboard, just an 'air mouse' and the remote control).
    So my client and my Linux guy have asked me to come up with a way of getting the app to communicate with the desktop/operating system. I have seen flex apps in the past where a user can drag and drop videos on their desktop into an air application from which they will be played so I thought it would be possible to interact with the exteral OS/Desktop from within an AIR app by using just flex but it doesn't seem so easy through my research.
    Thanks for your help though.

  • Partitioning error when using Disk Utility

    To better facilitate backups, I have decided to create a dedicated partition on my external hard drive for Time Machine to use. This is a 300GB disk (don't laugh) with 116 GB of music on it (mostly in the iTunes library) plus some other original AIFF files. Disk Utility reports that there is 163 GB of free space on it. When I try to create a partition of about 100GB (or even 75) it gives me the "Partition failed with the error: No space left on device". I get this even if I just try to resize the original partition. I tried rebuilding the directory with Disk Warrior and it didn't help. If I give it a small enough partition to try- say 25 GB or so- it will work. Much above that though, and it always gives me the "No space" error.
    I should mention that this disc, without any partition, was used for a while as the Time Machine backup disc. I don't remember why we stopped backing up, but I think it had something to do with running out of space.
    I told Time Machine to use the (unpartitioned) disc once again as the backup disc, and it started backing up to it. I stopped it before it got too far.
    Could there be files on there that I can't see that are taking up space? I did the "Erase free space" thing in Disk Utility but that didn't seem to clear out any more space. Like I said, it reports that there is 163 GB of available space.
    I need to be able to Time Machine the startup drive so that I can install Snow Leopard and also re-do the Boot Camp thing so I can re-install Windows XP, as my wife will have a need to use the dark side for work starting next week. I'm trying not to spend any money, so getting another drive isn't really an option and neither is getting another partitioning utility, as they seem to run about $40-$50 dollars or so, and I can't be sure that they will work either.
    Any ideas on this?
    Thanks-
    Val

    Most likely issue is fragmentation. Clone it to another and then restore it after erasing. That will defrag the disk. BTW, TM usually needs about three or four times the size of what it's backing up. I suggest popping for another ext HD; they're relatively cheap: <$100 USD. for 500-1,000 GB.

  • Error when using java class in php

    dear all
    when i am using my java class in php page
    i am getting below error
    Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:e24PaymentPipe]]->performPaymentInitialization. Cause: java.lang.NullPointerException Responsible VM: 1.6.0_01@http://java.sun.com/" at: #-9 e24PaymentPipe.performPaymentInitialization(e24PaymentPipe.java:341) #-8 sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) #-7 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) #0 [internal function]: Java->__call('performPaymentI...', Array) #1 /home/comhtdocs/hdfcpay/HostedPaymentBuy.php(31): Java->performPaymentInitialization() #2 {main}] thrown in /home/comhtdocs/hdfcpay/HostedPaymentBuy.php on line 31
    Edited by: arun240 on Jul 25, 2008 8:47 AM

    arun240 wrote:
    dear all
    when i am using my java class in php page
    i am getting below error
    Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:e24PaymentPipe]]->performPaymentInitialization. Cause: java.lang.NullPointerException Responsible VM: 1.6.0_01@http://java.sun.com/" at: #-9 e24PaymentPipe.performPaymentInitialization(e24PaymentPipe.java:341) #-8 sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) #-7 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) #0 [internal function]: Java->__call('performPaymentI...', Array) #1 /home/comhtdocs/hdfcpay/HostedPaymentBuy.php(31): Java->performPaymentInitialization() #2 {main}] thrown in /home/comhtdocs/hdfcpay/HostedPaymentBuy.php on line 31
    Edited by: arun240 on Jul 25, 2008 8:47 AMWell, it seems there's an object (perhaps a PaymentPipe?) pointing to null which you're trying to invoke a method (performPaymentInitialization()?) on. Needles to say: you can do that.
    SomeObject so = null;
    // ... some more code ...
    so.someMethod(); // No can do! A NPE will be thrown!

  • Compilation errors when using java 5.0 features

    Hi,
    I modified the make script in my project to use JDK 1.5.0_11 compiler. instead of 1.4.2 compiler. But when I run the make script, it is throwing errors for all the JDK 1.5.0 features like for-each construct, auto-boxing etc..
    Please let me know if I am issing anything.
    It compiles successfully in my IDE.
    Thanks,
    Ravikumar

    May be. I am not expert in Make. I can see that it is using the programatic interface sun.tools.javac.Main to compile. Also -bootclasspath option is being used. But I dont see any -target option. So I am confused.

  • Error when using Components.utils.import

    Hi ,
    I have a web application(CRM) and my clients use it also for the cash register.What I need to do is to create a local file as the cash register's software need's to read from that file in order to print.
    Until now i was using this code:
    <br />
    <pre><nowiki>netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
    var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
    file.initWithPath(filePath);
    </nowiki></pre>
    Unfortunately with the latest version of firefox this isn't working anymore.
    What I'm trying now starts like this :
    <br />
    <pre><nowiki>try{
    Components.utils.import("resource://gre/modules/FileUtils.jsm");
    }catch(e){
    alert(e);
    }</nowiki></pre>
    Anyhow, from the beginning I get this error "Component.utils is undefined" .Any suggestions please?
    Thank you.

    This was also posted on the MozillaZine forum site.
    *http://forums.mozillazine.org/viewtopic.php?f=25&t=2627105

  • Error when using java

    I write your example which create class ExampleProgram from tutorial
    Sun "Java Programming Language Basics1"
    compile it and got ExampleProgram.class
    but when I run it with java I got message
    Exception in thread "main" java.lang.NoClassDefFoundError:
    ExampleProgram/class
    Please explain me where error
    I do all exactly how write in your tutorial

    Check if u r running this commanline from the right directory .
    u will have to go upto the folder where the .class files lies and run the command
    .....\thefolder>java ExampleProgram

  • Error When Using List

    Hi, I've had an '<identifier> expected' error when compiling the class below. Can anyone tell me why? Thx~
    import java.util.*;
    import java.awt.*;
    public class Deck
    private java.util.List<Card> cards; //Error occurs in this line!!!
    private static java.util.Random generator = null;
    public Deck(long seed)
    cards = new ArrayList<Card>();
    for (int suit = Card.SPADES; suit <= Card.CLUBS; suit++) {
    for (int pips = 1; pips <= Card.CARDS_IN_SUIT; pips++) {
    cards.add(new Card(suit, pips));
    java.util.Random generator = new java.util.Random(seed);
    java.util.Collections.shuffle(cards, generator);
    ......... //Methods omitted
    Card is another class in the package, which has been proved working correctly.

    I'm using J2SE 1.4.2 SDK.
    Is this old???No, but that version does not support "generics" (the List<Card> syntax). Generics were introduced in 1.5

  • Java Heap Error when using Stateless Session Timer Bean deployed in Oracle

    Hi,
    Am getting following Java Heap Error when using Stateless Session Timer Bean deployed in Oracle 10g AS R3 (Oracle Containers for J2EE 10g (10.1.3.0.0) (build 060119.1546.05277) ):
    06/08/02 14:58:43 javax.ejb.EJBException: java.lang.OutOfMemoryError: Java heap space
    06/08/02 14:58:43 at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:304)
    06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:67)
    06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:45)
    06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
    06/08/02 14:58:43 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
    06/08/02 14:58:43 at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:71)
    06/08/02 14:58:43 at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1624)
    06/08/02 14:58:43 at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:92)
    06/08/02 14:58:43 at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:184)
    06/08/02 14:58:43 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
    06/08/02 14:58:43 at java.lang.Thread.run(Thread.java:595)
    06/08/02 14:58:43 Caused by: java.lang.OutOfMemoryError: Java heap space
    I had tried using -Xms / -Xmx options (upto 1 GB).
    The trace of exception gets delayed (from being displayed on the console) as the memory size is increased; but after sometime it starts getting displayed on the console.
    Even though this exception is displayed on the console, the Timer Bean continues to execute upto sometime before it finally crashes!
    If anyone has encountered such problem; would appreciate if you could share the solution.
    Regards, Vidyadhar

    Hi guys, I have the same problem. I have an application EAR file with two modules (EJB and WAR starting in this order). The application can schedule a process via EJB timer. In this case restarting the server I receive the error above. If I change the modules start order --> WAR - EJB the server start correctly, but the application scheduler fails (the persistency is not working) with this error:
    07/10/09 10:30:54 FINISSIMO: TimerTask.runBeanTimer java.lang.NullPointerException; nested exception is: java.lang.NullPointerExceptionjavax.ejb.TransactionRolledbackLocalException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
    java.lang.NullPointerException
         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:107)
         at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
         at java.util.ResourceBundle.getString(ResourceBundle.java:285)
         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
         at oracle.j2ee.util.TraceLogFormatter.format(TraceLogger.java:124)
         at oracle.j2ee.util.TraceLogger$TraceLoggerHandler.publish(TraceLogger.java:105)
         at java.util.logging.Logger.log(Logger.java:428)
         at java.util.logging.Logger.doLog(Logger.java:450)
         at java.util.logging.Logger.log(Logger.java:539)
         at oracle.ias.container.timer.TimerEntry.readObjFromBytes(TimerEntry.java:308)
         at oracle.ias.container.timer.TimerEntry.getInfo(TimerEntry.java:107)
         at oracle.ias.container.timer.Timer.getInfo(Timer.java:367)
         at oracle.ias.container.timer.EJBTimerImpl.getInfo(EJBTimerImpl.java:89)
         at com.finantix.foundation.integration.ejbtimer.EJBTimerServiceExecutorBean.ejbTimeout(EJBTimerServiceExecutorBean.java:42)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBTimeoutJoinPoint.invoke(EJBTimeoutJoinPoint.java:20)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:38)
         at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1714)
         at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:106)
         at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    javax.ejb.TransactionRolledbackLocalException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
         at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:309)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:73)
         at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:55)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:38)
         at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1714)
         at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:106)
         at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:107)
         at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
         at java.util.ResourceBundle.getString(ResourceBundle.java:285)
         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
         at oracle.j2ee.util.TraceLogFormatter.format(TraceLogger.java:124)
         at oracle.j2ee.util.TraceLogger$TraceLoggerHandler.publish(TraceLogger.java:105)
         at java.util.logging.Logger.log(Logger.java:428)
         at java.util.logging.Logger.doLog(Logger.java:450)
         at java.util.logging.Logger.log(Logger.java:539)
         at oracle.ias.container.timer.TimerEntry.readObjFromBytes(TimerEntry.java:308)
         at oracle.ias.container.timer.TimerEntry.getInfo(TimerEntry.java:107)
         at oracle.ias.container.timer.Timer.getInfo(Timer.java:367)
         at oracle.ias.container.timer.EJBTimerImpl.getInfo(EJBTimerImpl.java:89)
         at com.finantix.foundation.integration.ejbtimer.EJBTimerServiceExecutorBean.ejbTimeout(EJBTimerServiceExecutorBean.java:42)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBTimeoutJoinPoint.invoke(EJBTimeoutJoinPoint.java:20)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
         ... 9 more
    Any idea?
    Thx Auro

  • UDESEncrypt Errors when using the JAVA engine (NW IDM 7.0)

    Folks,
    I'm seeing an error when I use the uDESEncrypt function with the Java Engine in NW IDM SP2 Patch 3.
    The error I am getting is:
    runFunctionsInString($FUNCTION.encrPWD()$$) got exception
    org.mozilla.javascript.EvaluatorException: uDESEncrypt: Key should be exactly 24 bytes long.
    The code calling it is:
    // Main function: encrPWD
    function encrPWD(Par){
         //Example calling DSE internal function
         //UserFunc.uStop("Terminated by user");
         key = "C:\Program Files\SAP\IdM\Workflow\configs\KEY\keys.ini";
         OutString = UserFunc.uDESEncrypt(key, Par);
         return OutString;
    I have also seen this error when using Patch 4.
    Interestingly enough, the error does not occur when using the Windows Engine.  Anyone else seeing this?
    Thanks,
    Matt

    Hi Matthew,
    Try to replace the '\' with '
    key = "C:
    Program Files
    SAP
    IdM
    Workflow
    configs
    KEY
    keys.ini";
    Alternative approaches,
    1) setting key empty and it will look into %DSE_HOME%\KEY\key.ini
      which should be C:\Program Files\SAP\IdM\Identity Center\Key\key.ini on default installation path.
    2) or setting the key to something like = 6D5A2AF59B1CDD7F9592484F178331C891537A3F9B91D362
       a 24 byte key...
    Also when using DES you should ensure that in Identity Center underneath Options/General
    you have encryption algorithm set to 3DES.
    Normally if you intend to use this for password provisioning in IC you would also
    on the identity store (for instance 'Enterprise people') underneath 'password policy' check
    of for 'enable password provisioning.'
    By doing so the MX_ENCRYPTED_PASSWORD with be set when operating through
    workflow (3DES encryption version of the MX_PASSWORD) which allows you to obtain password
    when provisioning to other target systems...

  • Validation error when using a cutsomer converter

    Hey i'm trying to use a customer converter to convert between an object and a string, i can get it to display but when i submit my form i get the error Validation Error: Value is not valid.
    Here is my jsp code
    <h:selectManyCheckbox value="#{AddModuleBean.selectedSchemes}" converter="schemeConverter" id="scheme" >
    <f:selectItems value="#{AddModuleBean.schemeList}" id="schemeList" />
    </h:selectManyCheckbox>

    Maybe you just did something incredibly wrong. If I copy my "Objects in selectOneMenu" example and make small changes to your needs accordingly (Foo --> Scheme, selectOneMenu --> selectManyCheckbox and Foo selectedItem --> List<Scheme> selectedItems), then it just works flawlessly.
    Here it is:
    JSF<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <f:view>
        <html>
            <head><title>Test</title></head>
            <body>
            <h:form>
                <h:selectManyCheckbox value="#{myBean.selectedItems}">
                    <f:selectItems value="#{myBean.selectItems}" />
                    <f:converter converterId="schemeConverter" />
                </h:selectManyCheckbox>
                <h:commandButton value="Submit" action="#{myBean.action}" />
                <h:messages />
            </h:form>
        </body>
        </html>
    </f:view>MyBeanpackage mypackage;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    public class MyBean {
        // Init ---------------------------------------------------------------------------------------
        private static SchemeDAO schemeDAO = new SchemeDAO();
        private List<SelectItem> selectItems;
        private List<Scheme> selectedItems;
            fillSelectItems();
        // Actions ------------------------------------------------------------------------------------
        public void action() {
            System.out.println("Selected Scheme items: " + selectedItems);
        // Getters ------------------------------------------------------------------------------------
        public List<SelectItem> getSelectItems() {
            return selectItems;
        public List<Scheme> getSelectedItems() {
            return selectedItems;
        // Setters ------------------------------------------------------------------------------------
        public void setSelectedItems(List<Scheme> selectedItems) {
            this.selectedItems = selectedItems;
        // Helpers ------------------------------------------------------------------------------------
        private void fillSelectItems() {
            selectItems = new ArrayList<SelectItem>();
            for (Scheme scheme : schemeDAO.list()) {
                selectItems.add(new SelectItem(scheme, scheme.getName()));
    }Schemepackage mypackage;
    public class Scheme {
        // Init ---------------------------------------------------------------------------------------
        private String name;
        // Constructors -------------------------------------------------------------------------------
        public Scheme() {
            // Default constructor, keep alive.
        public Scheme(String name) {
            this.name = name;
        // Getters ------------------------------------------------------------------------------------
        public String getName() {
            return name;
        // Setters ------------------------------------------------------------------------------------
        public void setName(String name) {
            this.name = name;
        // Helpers ------------------------------------------------------------------------------------
        public String toString() {
            // Override Object#toString() so that it returns a human readable String representation.
            // It is not required by the Converter or so, it just pleases the reading in the logs.
            return "Scheme[" + name + "]";
    }SchemeDAOpackage mypackage;
    import java.util.ArrayList;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    public class SchemeDAO {
        // Init ---------------------------------------------------------------------------------------
        private static Map<String, Scheme> schemeMap;
        static {
            loadSchemeMap(); // Preload the fake database.
        // Actions ------------------------------------------------------------------------------------
        public Scheme load(String name) {
            return schemeMap.get(name);
        public List<Scheme> list() {
            return new ArrayList<Scheme>(schemeMap.values());
        public Map<String, Scheme> map() {
            return schemeMap;
        // Helpers ------------------------------------------------------------------------------------
        private static void loadSchemeMap() {
            // This is just a fake database. We're using LinkedHashMap as it maintains the ordering.
            schemeMap = new LinkedHashMap<String, Scheme>();
            schemeMap.put("schemeName1", new Scheme("schemeName1"));
            schemeMap.put("schemeName2", new Scheme("schemeName2"));
            schemeMap.put("schemeName3", new Scheme("schemeName3"));
    }SchemeConverterpackage mypackage;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    public class SchemeConverter implements Converter {
        // Init ---------------------------------------------------------------------------------------
        private static SchemeDAO schemeDAO = new SchemeDAO();
        // Actions ------------------------------------------------------------------------------------
        public Object getAsObject(FacesContext context, UIComponent component, String value) {
            // Convert the unique String representation of Scheme to the actual Scheme object.
            return schemeDAO.load(value);
        public String getAsString(FacesContext context, UIComponent component, Object value) {
            // Convert the Scheme object to its unique String representation.
            return ((Scheme) value).getName();
    }faces-config.xml<?xml version="1.0" encoding="UTF-8"?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
        version="1.2">
        <converter>
            <converter-id>schemeConverter</converter-id>
            <converter-class>mypackage.SchemeConverter</converter-class>
        </converter>
        <managed-bean>
            <managed-bean-name>myBean</managed-bean-name>
            <managed-bean-class>mypackage.MyBean</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
    </faces-config>

  • Authentication error when using JMS service

    I'm currently trying to send String messages from LiveCycle to Websphere MQ (Both running on the same server), but I'm having some problems...
    I''m quite sure that my WAS setup is correct (or at least close to correct) because I've build some test Java classes that are able to put and get messages from MQ using JMS. However, when I'm usng the LiveCycle JMS service I get the following exception thrown:
    [5/26/10 17:46:44:705 CAT] 00000027 QueueMessageS A com.adobe.livecycle.jms.QueueMessageSender sendMessageToQueueWithProperties Error occurred when creating queue connection. Reason: MQJMS2013: invalid security authentication supplied for MQQueueManager.
    Since I'm not a Websphere fundi I trawled through Google and was able to figure out that the problem probably lies with the configuration of my queue connection factory. Changing the transport type from "Bindings" to "Client" didn't resolve the problem and I'm rapidly running out of good ideas. Hopefully somebody here would be able to help.
    The following info might be useful:
    OS = Windows Server 2003
    I'm using WAS 6.1.0.29
    Websphere MQ is running on the same machine (v6.0)
    I've used the Websphere MQ JMS Provider that comes with WAS
    I've configured a Queue Connection Factory and a Queue in the server scope
    No SSL or anything like that is set up yet
    I did notice that when configuring the Queue there is a section titled "WebSphere MQ Queue Connection Properties" where I am able to specify a user Id and password. However, nothing seemed to work. I tried my WAS administration user name, as well as a windows user who is indeed a member of the mqm group. Also tried it without any value, but no luck
    On the MQ side I couldn't really find any settings under either the Queue Manager or the Channel that would make much of a difference. Since I was able to access the queues using a servlet deployed on the same WAS instance I'm thinking it has something to do with the way that LC call the JMS provider. But to be honest, I don't really have a clue.
    Any help would be much appreciated.
    Greg

    Haven't solved the problem yet, but here's an update:
    I created an "ExecureScript" operation that contains simple Java code to write a message to MQ using the same JMS connection factory and JMS queue. It does work correctly, so clearly my setup it correct enough to send messages from LiveCycle to MQ via JMS.
    Here's the code for the ExecuteScript:
    //import the classes that the script references
    import java.util.List;
    import java.lang.String;
    import java.util.Map;
    import java.util.HashMap;
    import javax.jms.*;
    import javax.naming.*;
    //get a list of file names that are stored in the process variable named files
    String strMessage = patExecContext.getProcessDataStringValue("/process_data/@strMessage");
    //get connection factory
    String strQcf = patExecContext.getProcessDataStringValue("/process_data/@strQcf");
    //get queue
    String strQ = patExecContext.getProcessDataStringValue("/process_data/@strQ");
    try
        // Look up administered objects
        System.out.println("Looking up administered objects...");
        InitialContext initContext;
        initContext = new InitialContext();
        QueueConnectionFactory factory = (QueueConnectionFactory) initContext.lookup(strQcf);
        Queue queue = (Queue) initContext.lookup(strQ);           
        initContext.close();
          // Create JMS objects
          System.out.println("Creating JMS objects...");
          QueueConnection connection = factory.createQueueConnection();
          QueueSession session =    connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
        QueueSender sender = session.createSender(queue);
          //Send messages
          TextMessage message = session.createTextMessage(strMessage);
          sender.send(message);
           //Exit
           System.out.println("Exiting...");
           connection.close();
           System.out.println("Goodbye!");   
    } catch (Exception e)
            e.printStackTrace();
    Interestingly I don't provide any authentication information and yet LC is able to connect to MQ
    Cheers

  • Suppressing Applet alerts when using java mail api

    Hi,
    Im using the following code to send email from my application. Im using JSF (tomahawk), Spring and hibernate in my application. I'm using spring email API classes to send email. This code works perfectly fine in the sense its parsing template and sending emails to the configured email id.
    I have defined this class as a managed bean and i have a commanButton is UI which is bound to this sendEmail() method
    <t:commandButton value="Send email" action= #{email.sendEmail}/>
    import java.io.StringWriter;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Properties;
    import javax.mail.MessagingException;
    import javax.mail.internet.MimeMessage;
    import org.apache.velocity.Template;
    import org.apache.velocity.VelocityContext;
    import org.apache.velocity.app.VelocityEngine;
    import org.apache.velocity.exception.ParseErrorException;
    import org.apache.velocity.runtime.resource.loader.StringResourceLoader;
    import org.apache.velocity.runtime.resource.util.StringResourceRepository;
    import org.springframework.mail.MailException;
    import org.springframework.mail.SimpleMailMessage;
    import org.springframework.mail.javamail.JavaMailSenderImpl;
    import org.springframework.mail.javamail.MimeMessageHelper;
    import au.gov.nsw.railcorp.onlineticketing.external.model.request.ServiceFees;
    public class EmailService {
         JavaMailSenderImpl sender;
         VelocityEngine engine;
         public EmailService(){
         sender = new JavaMailSenderImpl();
             sender.setHost("<smtp ip>");
             sender.setPort(25);
             sender.setUsername("<user id>");
             sender.setPassword("<password>");
             engine = new VelocityEngine();
             Properties p = new Properties();
             p.setProperty("resource.loader", "string");
             p.setProperty("string.resource.loader.class",
                  "org.apache.velocity.runtime.resource.loader.StringResourceLoader");
             try {
                   engine.init(p);
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public VelocityEngine getEngine() {
              return engine;
         public void setEngine(VelocityEngine engine) {
              this.engine = engine;
         public JavaMailSenderImpl getSender() {
              return sender;
         public void setSender(JavaMailSenderImpl sender) {
              this.sender = sender;
         public static void main(String args[]){
              EmailService emailService=new EmailService();
              emailService.sendEmail();
         public boolean sendEmail(){
         try{
                 MimeMessage message = sender.createMimeMessage();
                 MimeMessageHelper helper = new MimeMessageHelper(message);
                 helper.setTo("<to email id>");
                 helper.setFrom("<from email id>");
                 helper.setSubject("Teting velocity");
                 VelocityContext context = new VelocityContext();
                 StringWriter writer =  new StringWriter();
                 Template template =new Template();
                    StringResourceRepository repository =StringResourceLoader.getRepository();
                    String tempText="<html><body>Hi, ${username}...<p> this is a some template!</p></body></html>";
                 repository.putStringResource("myTemplate",tempText );
                 context.put("username", "Marc");
                 template = engine.getTemplate("myTemplate");
                  template.merge(context, writer);
                  System.out.println("VM Template:\n" + tempText);
                  System.out.println("Output:\n" + writer);
                  String body=writer.toString();
                  helper.setText(body,true);
                  sender.send(message);
            catch (MessagingException ex) {
                // simply log it and go on...
                System.err.println(ex.getMessage());           
            catch (MailException ex) {
                // simply log it and go on...
                System.err.println(ex.getMessage());           
            } catch (ParseErrorException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         return true;
    }The problem i have is when i try to invoke the function sendEmail() from my UI it is throwing a series of applet alerts (some 10 of them) . The following are the alerts that i get
    1. The applet is attempting to invoke the java/lang/System.getProperty() operation on java.home
    2. The applet is attempting to perform a read operation on the file C:\Program Files\java\jre1.5.0_14\javamail.providers
    3. The applet is attempting to perform a read operation on the file C:\Program Files\java\jre1.5.0_14\javamail.address.map etc....
    For ever applet alert i had to click on 'allow' for it to proceed. But there is no problem in sending mail after that. One more interesting this is i DONT get this alert when i try to execute this java class directly instead of calling the method from another class or from UI.
    Can someone please let me know the reason for this applet alert and the way to suppress it?
    Its really urgent .. please help
    Thank you..

    Hi Subhadip,
    Thanks for the quick response :)
    Please help me understand this.. Im not explicitly using applet anywhere .I guess it should be used internally by one or many of the API classes i have used . In this scenario how can self sign the applet and which one?
    I have included some jars like activation.jar,mail-1.4.2.jar,velocity-1.6.2.jar in my webapp lib . Is there a means to sign these jars and use? Is this what you are suggesting me to do?
    One more doubt i have is how come the same method runs without any problem when executed as a standalone java class (with main() method)
    Will be really helpful if you could help me understand this...
    Thanks,
    Swami

  • Non-built-in type contained in a java.util.List creates a SoapFaultException

    I have created a web service that utilizes non-built-in types which uses other
    non-built-in types...(simplified example follows)
    public class MyService {
    public
    Foo getFoo( String id ) {
    Foo foo = ...; // get persisted foo
    return foo;
    package mypackage;
    public class Foo {
    java.util.List barList;
    public java.util.List getBars() { return barList; }
    public void setBars( java.util.List barList ) { this.barList = barList; }
    public class Bar {
    // some attributes
    I autotyped Bar explicitly and had servicegen/service autotype non-built-in data
    types for MyService (aka..Foo)
    When I execute the test web page...I get the following soap fault exception (Note:
    only if the barList contains some Bar objects)
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Exception during processing: Error at line:1 col:9159 '1' expected
    [?! -- [CDATA[ ] (see Fault Detail for stacktrace)</faultstring>
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">Error
    at line:1 col:9159 '1' expected [?! -- [CDATA[ ]
         at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:280)
         at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:176)
         at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
         at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:487)
         at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
         at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:444)
         at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:317)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:116)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:73)
         at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:46)
         at weblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:147)
         at weblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:174)
         at weblogic.webservice.core.handler.CheckSoapFaultHandler.handleResponse(CheckSoapFaultHandler.java:21)
         at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:231)
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:243)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:423)
         at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:349)
         at weblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebServiceServlet.java:354)
         at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:300)
         at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:344)
         at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:266)
         at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
         at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:255)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    </bea_fault:stacktrace>
    </detail>
    </env:Fault>
    When barList is empty...the webservice executes without any problems.
    I noticed in the generated types.xml...there is a "List" entry and a "java.util.List"
    entry. The bars has "List" associated with it...
    <?xml version="1.0" encoding="UTF-8"?>
    <XMLSchemaAndTypeMapping>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:mypackage"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:mypackage">
    <xsd:complexType name="Foo">
    <xsd:complexContent>
    <xsd:element xmlns:tp="java:language_builtins.util"
    name="bars"
    type="tp:List"
    nillable="true"
    minOccurs="1"
    maxOccurs="1">
    </xsd:element>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:language_builtins.util"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:language_builtins.util">
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
    </xsd:import>
    <xsd:complexType name="List">
    <xsd:complexContent>
    <xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    base="soapenc:Array">
    <xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    ref="soapenc:arrayType"
    wsdl:arrayType="xsd:anyType[]">
    </xsd:attribute>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Bar"
    type="lcl0:Bar"
    serializer="mypackage.BarCodec"
    deserializer="mypackage.BarCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:language_builtins.util"
    class-name="java.util.List"
    type="lcl0:List"
    serializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
    deserializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
    >
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Foo"
    type="lcl0:Foo"
    serializer="mypackage.FooCodec"
    deserializer="mypackage.FooCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>
    </XMLSchemaAndTypeMapping>
    Any ideas what is causing the problem?
    Using WLS 8.1 sp2 on WinXP, JDK 1.4
    Thanks in advance.
    - Doug

    Certain generic types like java.lang.Object, List etc
    may not work properly with the test page, because it
    is not possible to figure out how the XML data should
    look like.
    Can you please try it out using a clientgen generated
    stub?
    Regards,
    -manoj
    http://manojc.com
    "Doug Leeper" <[email protected]> wrote in message
    news:40e32790$1@mktnews1...
    >
    I have created a web service that utilizes non-built-in types which usesother
    non-built-in types...(simplified example follows)
    public class MyService {
    public
    Foo getFoo( String id ) {
    Foo foo = ...; // get persisted foo
    return foo;
    package mypackage;
    public class Foo {
    java.util.List barList;
    public java.util.List getBars() { return barList; }
    public void setBars( java.util.List barList ) { this.barList =barList; }
    public class Bar {
    // some attributes
    I autotyped Bar explicitly and had servicegen/service autotypenon-built-in data
    types for MyService (aka..Foo)
    When I execute the test web page...I get the following soap faultexception (Note:
    only if the barList contains some Bar objects)
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Exception during processing: Error at line:1 col:9159 '1'expected
    [?! -- [CDATA[ ] (see Fault Detail for stacktrace)</faultstring>
    <detail>
    <bea_fault:stacktracexmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">Er
    ror
    at line:1 col:9159 '1' expected [?! -- [CDATA[ ]
    at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:280)
    at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:176)
    at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
    at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:487)
    at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
    atweblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:444)
    at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:317)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:116)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:73)
    at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:46)
    atweblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:
    147)
    atweblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:174
    atweblogic.webservice.core.handler.CheckSoapFaultHandler.handleResponse(CheckS
    oapFaultHandler.java:21)
    atweblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.ja
    va:231)
    atweblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:243)
    atweblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:423)
    atweblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase
    .java:349)
    atweblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebSe
    rviceServlet.java:354)
    atweblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.j
    ava:300)
    atweblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServ
    iceServlet.java:344)
    atweblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:26
    6)
    atweblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
    atweblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet
    .java:255)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:971)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :402)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:
    313)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:6356)
    atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
    t.java:317)
    atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3635)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    </bea_fault:stacktrace>
    </detail>
    </env:Fault>
    When barList is empty...the webservice executes without any problems.
    I noticed in the generated types.xml...there is a "List" entry and a"java.util.List"
    entry. The bars has "List" associated with it...
    <?xml version="1.0" encoding="UTF-8"?>
    <XMLSchemaAndTypeMapping>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:mypackage"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:mypackage">
    <xsd:complexType name="Foo">
    <xsd:complexContent>
    <xsd:element xmlns:tp="java:language_builtins.util"
    name="bars"
    type="tp:List"
    nillable="true"
    minOccurs="1"
    maxOccurs="1">
    </xsd:element>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:language_builtins.util"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:language_builtins.util">
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
    </xsd:import>
    <xsd:complexType name="List">
    <xsd:complexContent>
    <xsd:restrictionxmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    base="soapenc:Array">
    <xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    ref="soapenc:arrayType"
    wsdl:arrayType="xsd:anyType[]">
    </xsd:attribute>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Bar"
    type="lcl0:Bar"
    serializer="mypackage.BarCodec"
    deserializer="mypackage.BarCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:language_builtins.util"
    class-name="java.util.List"
    type="lcl0:List"
    serializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
    >
    deserializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec
    >>
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Foo"
    type="lcl0:Foo"
    serializer="mypackage.FooCodec"
    deserializer="mypackage.FooCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>
    </XMLSchemaAndTypeMapping>
    Any ideas what is causing the problem?
    Using WLS 8.1 sp2 on WinXP, JDK 1.4
    Thanks in advance.
    - Doug

Maybe you are looking for

  • VPN Client can't reach router or hosts, but can reach other connected sites.

    We have a VPN client configuration on a 2901 router. The client passes authentication and connects fine. When connected, cannot reach the 2901 or any devices directly behind it, BUT can reach routers and hosts that are connected to the same 2901 thro

  • Fcp wont capture

    on my g5 fcp aborts capture and i get a dialogue box saying that there is a problem with the tape. i have the same problem with multiple tapes from different sources and 2 cameras. fortunately, i have a macbook pro and am not having any problems capt

  • Having trouble saving emails as .txt documents

    Hi all, I'm working on dissertation research, and I have a ton (400+) emails that I need to be able to save as .txt documents outside of mail.app (I'm highlighting the emails and then selecting file-->save as). Ideally, I'd like to save chunks of the

  • Alert commandline ConsoleTask Criteria syntax

    Hi, I have alerts generated by rules and monitors. This alerts may or may not contain additional data in its CustomField1: URL to a web page with some details. I have created an alert command line console task (and category) in my Management Pack. Th

  • Aperture loosing track of referenced masters

    I'm having a problem with Aperture loosing track of referenced masters. I have more than 10,000 images in Aperture most of them are stored as referenced masters. I have several projects where "some" of the files have (according to Aperture) gone miss