SDSessionServlet would be invoked

I installed Servlet-based Surveys from http://technet.oracle.com/sample_code/tech/java/servlets/sample_code_index.htm to my Tomcat 3.1 web server. After modifying the ConnectionParas.java and recompile. I place SDSession and SRSession classes into two jar files and placed under ..wabapps\surveys\WEB-INF\classes. Then I called from http://localhost:8080/surveys/servlet/SDSessionServlet I got "No page found" error from the borswer. I'm sure I configured the tomcat/conf/server.xml and web.xml under my new context sureveys.
I do not know what to do from here. Anybody has run this sample successfully on Tomcat3.1?
Appreciate your help and sharing.

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Bill Dong ([email protected]):
... Then I called from http://localhost:8080/surveys/servlet/SDSessionServlet I got "No page found" error from the browser...<HR></BLOCKQUOTE>
This is just a guess, because i haven't worked much with Tomcat, but are you sure that 8080 is the correct port? If you're not sure, you might try port 80, or just omit the port number completely.
Regards,
-rh
null

Similar Messages

  • How can I load movie on (onPress) and then check if the invoked has not been called by any other members before? Thx

    Hello Everyone,
    I would highly appreciate your wisdom and advice on this
    functionality. Lets say I have two
    movieclips on the stage(ClipA, ClipB). I would like user to
    be able to click on any of them and, this click
    will invode a createclip function which pretty much creates a
    dynamic movieclip and loads
    whatever I assign to it such other existing clips within the
    library. The only problem I have
    makeing the functionality work is that I would like to limit
    the function call to one at a time.
    So if the user clicks on ClipA, function createclip would get
    invoke and will attach the assigned
    movie clip. And when user clicks on ClipB, I would like to
    end the function call that was invoked
    by the ClipA and then then allow ClipB to invoke the
    function.
    Pretty much it would a logic like:
    if(createClip = true)
    end it;
    else
    createClip();
    When a movie is attached, can it be unloaded or unattached?
    I don't know how to write a function that would check if
    function createClip() has
    already been invoked. I would highly appreciate any direction
    in this.

    If the objective is just to get a unique list of authors based on your key, you could use the REPLACE statement in MySQL which functions as an "insert on duplicate key update" type of construct.
    [http://dev.mysql.com/doc/refman/5.0/en/replace.html|http://dev.mysql.com/doc/refman/5.0/en/replace.html]
    Catching an exception to detect dupes is functional but not very elegant. If you use REPLACE then you know your statements will always work. The drawback is that the statement is not portable across databases.

  • Command Link : Backing bean setters/getters always invoked

    I am trying to understand how to the setters and getters of a request scope managed backing bean are invoked through the navigation flow when using a command link.
    It seems that no matter where the navigation rules redirects the page as a result of the action, both the setters and getters of any field bound in the originating page are called.
    For example if the originating page has a field name referred by "#{UserBean.name}" to input a username. setName() and getName() are always called as a result of a click on a command link
    This behavior is easily seen in a simple JSF example such as http://www.netbeans.org/kb/articles/jAstrologer-intro.html.
    If the jsp pointed by "to-view-id" is changed to have no reference to the backing bean or is changed to a jsp with just text, both setters and getters are still invoked.
    I could understand why the setters would be invoked (doesn't know ahead of time if the bean will be used?) but at least why the getters?
    Last, how to prevent this behavior? The problem is that the backing bean might have complex logic where it will fetch data if a getter is called.
    Thanks.

    I guess this article might be interesting to get some insights http://balusc.xs4all.nl/srv/dev-jep-djl.html
    The setters are invoked to set values and the getters are invoked to get the eventually presetted default values or the previously submitted values.

  • Flattening a PDF using Assembler's Invoke DDX

    I have an XDP that needs to be converted to a flat PDF without using output(The solution can only use forms services).
    Since its being called from within the process orchestration by using the invoke DDX service, I'm totally lost as to how its done.
    1. How do we select the input from within the properties tab without using the literal value ?
    2. How do we set the required "<NoForms/> and "<NoXFA/>" parameters from within the workbench without using a literal value for the input parameter in properties ?
    3. Would the invoke DDX service allow output to a OutputResult variable ?
    Thanks,
    Holy

    I was able to do this successfully. The issue that I am facing now that while merging 4 forms together.. if the 2nd or 3rd form happens to be in Landscape orientation, all rest of the forms also convert to the Landscape orientation. Also, when I try printing it, the Printer says the Printer Size did not match Paper type or something of that sort. Following was my DDX:
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
      <XDP result="MyXDPResult">
        <XDP source="sourceXDP1"/>
        <XDP source="sourceXDP2"/>
        <XDP source="sourceXDP3"/>
        <XDP source="sourceXDP4"/>
      </XDP>
      <?ddx-source-hint name="sourceXDP1"?>
      <?ddx-source-hint name="sourceXDP2"?>
      <?ddx-source-hint name="sourceXDP3"?>
    </DDX>

  • How to keep track of the sequence of the BSP Pages being invoked.

    Hi,
    How to keep track of the sequence of the BSP Pages being invoked.
    I have a BSP Page A.htm. There are two other pages B.HTM and C.HTM in the same BSP Application.
    The page B.HTM has a link A.HTM. The page C.HTM also has a link A.HTM. On clicking  these links the Page A.HTM would be invoked. Is there any way to keep track which BSP Page  (i.e B.HTM or C.HTM) invoked the page A.HTM.
    Any input on this Regard would be of great help.
    Thanks and Regards,
    Pavithra

    Hi Pavithra,
    Declare in page attributes:
    appl_url type string
    In the onClick event of the link that calls the A.htm page , use:
    call method runtime->get_url
    receiving
    URL = appl_url.
    Now appl_url contains the url (also name) of the page that invoked A.htm .
    Hope it helps.
    Anubhav.

  • Error while invoking another presentation

    Hi
    While calling invoking another presenation from the parent presentation using the Presentable.show(instance : null, presentationName : "");
    I get the follwing error
    The task could not be successfully executed.
    Reason: 'java.lang.AssertionError'.
    Caused by: java.lang.AssertionError
    fuego.lang.ComponentExecutionException: The task could not be successfully executed.
    Reason: 'java.lang.AssertionError'.
    Can you please let me how can i resolev the error

    You might want to consider instead using a Screenflow for this. Screenflows manage the flow from one presentation to another presentation better that the show method does.
    1. They let you see visually (vs. hidden inside a method) what presentation is flowing to another presentation and
    2. Unlike the show method, once you flow to a presentation inside a screenflow you can always go back to earlier presentations in the screenflow. You lose the context once you flow using a show method.
    Here's the logic I think you're looking for. It's fairly common to use a show method for BAM Dashboard presentations. Here I have a BPM Object called "Order" in the module "Dashboards". To invoke a presentation called "OrderList" inside this BPM Object from another BPM Object's method, you could use logic like this:
    order as Dashboards.Order = Dashboards.Order()
    // this passes in the value of the customer's type into the other BPM Object's presentation
    order.customerType = this.customerType
    show this
        using instance = order,
              presentationName = "OrderList"Normally, logic like this would be invoked from a push button or an on click event (the "On Click" property) on a BPM Object dashboard widget (e.g. bar chart, pie chart or gauge).
    Hope this helps,
    Dan

  • Invoke constructor of a static class

    Hi,
    I have this constant class and a constructor.
    public final class dddd {
    public static final String YES="Y";
    private dddd(){...}
    My question is, when would the constructor be invoked, if the constant class would never be instantiated?
    Would this
    x = dddd.YES
    invoke the dddd constructor?
    Thanks.
    JL

    Not sure what a "constant" class is - if you mean final, that simply means you cannot extend the class. The static String varibale YES is simply a class variable. The constructor is private, so, I assume that the only way the constructor would be invoked is if somewhere in one of the static method of this class you have a line that says "new dddd()".
    Lee

  • ADF: defaultCommand doesn't invoke command button onClick

    Given the following:
    <af:form id="findForm" defaultCommand="findButton">
       <af:inputText ... />
       <af:commandButton id="findButton" onclick="doFind(); return false;" />
    </af:form>Is it a known issue that when enter is pressed in the text field, the findButton's onclick is not invoked? The defaultCommand javascript just submits the form w/o actually simulating the click of the commandButton.
    Other than capturing the enter key press myself, anyone know of a workaround?

    This is the correct behavior. The defaultCommand on af:form is "The id attribute of the command button whose action would be invoked by default for form submit on hitting enter on any of the input fields of the form."; it only invokes the action assigned to that command button. Any other client-side behaviors assigned to that command button are not supposed to be processed.
    I believe the only way to do what you want is through one of the key event handlers on inputText.

  • Running a task locally or invoking it once

    Hi,
    I want to run a quartz job on the entries of my cache deleting them if they apply to some constraint. I guess I can do that in 2 ways:
    1. run the quartz job on only 1 node which will call cache.invokeAll(filter, myProcessor). This node will send the entryProcessor to the other nodes that contain the relevant data.
    Question: How can I make sure a quartz job is run on only one node as all nodes are running the same code and use the same configuration? I don't want to specify the same quartz job an all nodes because then the job would be invoked once for each node. Do I need to define some sort of election policy for that? Or are there better ways to handle a similar situation where only one node of a cluster needs to trigger some action?
    2. run the quartz job on all nodes of the cluster. Each job will call cache.invokeAll(new KeyAssociatedFilter(filter), myProcessor) on every node. This will make sure the entryProcessor will only be executed on the own node's data. Will this work?
    Best regards
    Jan

    Jan,
    could you please describe your eviction criteria? If you want to remove the entries, then removing it by cache.removeAll() is the fastest approach, and for local only keys it automatically knows not to send to remote nodes, so you don't need the partition filter there.
    On the other hand, as you described your eviction criteria in an earlier post to require decision on the content of the entire cache, in which case the prefiltering should not have a partitioned filter.
    If your eviction criteria is the following: evict the number of keys from each category as the number of the surplus entries in the category, then PartitionFilter is not something you would want to use.
    Instead, you can first do an aggregation on the count of keys in each category to find out the number of keys to be removed. This can easily be done by a GroupAggregator and a Count:
    categorySizesByDiscriminator = cache.aggregate(GroupAggregator.createInstance("getCategoryDiscriminator", new Count()));where getCategoryDiscriminator is the name of the method (parentheses intentionally missing) which returns a different value for each category (was it getColor? ).
    After this you know how many entries the surplus is.
    You can now send a custom parallel aggregation which returns as many keys as the surplus from the category is from each node and throws away the unnecessary from the result (this is necessary because of the arbitrary distribution of the entries), something like this:
    import java.io.DataInput;
    import java.io.DataOutput;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import com.tangosol.io.ExternalizableLite;
    import com.tangosol.io.pof.PofReader;
    import com.tangosol.io.pof.PofWriter;
    import com.tangosol.io.pof.PortableObject;
    import com.tangosol.util.ExternalizableHelper;
    import com.tangosol.util.InvocableMap;
    import com.tangosol.util.InvocableMap.EntryAggregator;
    import com.tangosol.util.InvocableMap.ParallelAwareAggregator;
    import com.tangosol.util.extractor.ReflectionExtractor;
    public class ByCategoryToBeEvictedKeyHarvester implements
              ParallelAwareAggregator, PortableObject, ExternalizableLite {
         public static class PerNodeResultElement implements PortableObject, ExternalizableLite {
              private String categoryDiscriminator;
              private int currentCountPerCategory;
              private List<Object> keys;
              private transient int toBeEvictedFromCategory;
              public PerNodeResultElement() {
                   super();
              private PerNodeResultElement(String categoryDiscriminator, int toBeEvictedFromCategory) {
                   super();
                   this.categoryDiscriminator = categoryDiscriminator;
                   this.currentCountPerCategory = 0;
                   this.keys = new ArrayList<Object>(toBeEvictedFromCategory);
                   this.toBeEvictedFromCategory = toBeEvictedFromCategory;
              private void addEntry(InvocableMap.Entry entry) {
                   if (toBeEvictedFromCategory < keys.size()) {
                        keys.add(entry.getKey());
                   ++currentCountPerCategory;
              @Override
              public void readExternal(PofReader reader) throws IOException {
                   categoryDiscriminator = reader.readString(0);
                   currentCountPerCategory = reader.readInt(1);
                   keys = (List<Object>) reader.readCollection(2, new ArrayList<Object>());
              @Override
              public void writeExternal(PofWriter writer) throws IOException {
                   writer.writeString(0, categoryDiscriminator);
                   writer.writeInt(1, currentCountPerCategory);
                   writer.writeCollection(2, keys);
              @Override
              public void readExternal(DataInput input) throws IOException {
                   categoryDiscriminator = ExternalizableHelper.readSafeUTF(input);
                   currentCountPerCategory = ExternalizableHelper.readInt(input);
                   int numKeys = ExternalizableHelper.readInt(input);
                   keys = numKeys > 0 ? new ArrayList<Object>(numKeys) : Collections.EMPTY_LIST;
                   while (numKeys > 0) {
                        keys.add(ExternalizableHelper.readObject(input));
                        --numKeys;
              @Override
              public void writeExternal(DataOutput output) throws IOException {
                   ExternalizableHelper.writeSafeUTF(output, categoryDiscriminator);
                   ExternalizableHelper.writeInt(output, currentCountPerCategory);
                   ExternalizableHelper.writeInt(output, keys.size());
                   for (Object key : keys) {
                        ExternalizableHelper.writeObject(output, key);
         private Map<String,Integer> toEvictByCategories;
         private String categoryDiscriminatorGetMethodName;
         private transient int toEvictAbove;
         public ByCategoryToBeEvictedKeyHarvester(
                   String categoryDiscriminatorGetMethodName, Map<String, Integer> toEvictByCategories, int toEvictAbove) {
              super();
              this.toEvictByCategories = toEvictByCategories;
              this.categoryDiscriminatorGetMethodName = categoryDiscriminatorGetMethodName;
              this.toEvictAbove = toEvictAbove;
         private static class PerCategoryCounter {
              private int elementsPerCategory = 0;
              private LinkedList<Collection<Object>> keys = new LinkedList<Collection<Object>>();
              void addPerNodeResultElement(PerNodeResultElement element) {
                   elementsPerCategory += element.currentCountPerCategory;
                   keys.add(element.keys);
         @Override
         public Object aggregateResults(Collection results) {
              Map<String, PerCategoryCounter> temp = new HashMap<String, PerCategoryCounter>();
              int numKeysToRemove = 0;
              for (Object result : results) {
                   Collection<PerNodeResultElement> perNodeResults = (Collection<PerNodeResultElement>) result;
                   for (PerNodeResultElement perNodeResultElement : perNodeResults) {
                        String categoryDiscriminator = perNodeResultElement.categoryDiscriminator;
                        PerCategoryCounter counter = temp.get(categoryDiscriminator);
                        if (counter == null) {
                             counter = new PerCategoryCounter();
                             temp.put(categoryDiscriminator, counter);
                        int oldCount = counter.elementsPerCategory;
                        counter.addPerNodeResultElement(perNodeResultElement);
                        int newCount = counter.elementsPerCategory;
                        if (newCount > toEvictAbove) {
                             numKeysToRemove += newCount - (oldCount < toEvictAbove ? toEvictAbove : oldCount);
              // we now have a current view of how many elements there are (sort of)
              // and hopefully enough keys to evict (if there were not really too many entries added since then)
              ArrayList keysToRemove = new ArrayList(numKeysToRemove);
              for (PerCategoryCounter perCategoryCounter : temp.values()) {
                   int elementsPerCategory = perCategoryCounter.elementsPerCategory;
                   Iterator<Collection<Object>> iter = perCategoryCounter.keys.iterator();
                   while (elementsPerCategory > toEvictAbove && iter.hasNext()) {
                        Collection<Object> keys = iter.next();
                        Iterator<Object> keyIter = keys.iterator();
                        while (elementsPerCategory > toEvictAbove && keyIter.hasNext()) {
                             keysToRemove.add(keyIter.next());
                             --elementsPerCategory;
              return keysToRemove;
         @Override
         public EntryAggregator getParallelAggregator() {
              return this;
         @Override
         public Object aggregate(Set entries) {
              final ReflectionExtractor extractor = new ReflectionExtractor(categoryDiscriminatorGetMethodName);
              Map<String,PerNodeResultElement> temp = new HashMap<String, PerNodeResultElement>();
              for (Object object : entries) {
                   InvocableMap.Entry entry = (InvocableMap.Entry) object;
                   String categoryDiscriminator = (String) entry.extract(extractor);
                   Integer toBeEvictedFromCategory = toEvictByCategories.get(categoryDiscriminator);
                   if (toBeEvictedFromCategory != null && toBeEvictedFromCategory > 0) {
                        PerNodeResultElement element = temp.get(categoryDiscriminator);
                        if (element == null) {
                             element = new PerNodeResultElement(categoryDiscriminator, toBeEvictedFromCategory);
                             temp.put(categoryDiscriminator, element);
                        element.addEntry(entry);
              return temp.values();
         @SuppressWarnings("unchecked")
         public void readExternal(PofReader reader) throws IOException {
              categoryDiscriminatorGetMethodName = reader.readString(0);
              toEvictByCategories = (Map<String, Integer>) reader.readMap(1, new HashMap<String, Integer>());
         @Override
         public void writeExternal(PofWriter writer) throws IOException {
              writer.writeString(0, categoryDiscriminatorGetMethodName);
              writer.writeMap(1, toEvictByCategories, String.class, Integer.class);
         @Override
         public void readExternal(DataInput input) throws IOException {
              categoryDiscriminatorGetMethodName = ExternalizableHelper.readSafeUTF(input);
              int numEntries = ExternalizableHelper.readInt(input);
              toEvictByCategories = new HashMap<String, Integer>();
              while (numEntries > 0) {
                   String key = ExternalizableHelper.readSafeUTF(input);
                   Integer value = ExternalizableHelper.readInt(input);
                   toEvictByCategories.put(key, value);
                   --numEntries;
         @Override
         public void writeExternal(DataOutput output) throws IOException {
              ExternalizableHelper.writeSafeUTF(output, categoryDiscriminatorGetMethodName);
              ExternalizableHelper.writeInt(output, toEvictByCategories.size());
              for (Map.Entry<String, Integer> entry : toEvictByCategories.entrySet()) {
                   ExternalizableHelper.writeSafeUTF(output, entry.getKey());
                   ExternalizableHelper.writeInt(output, entry.getValue());
    }You can send this aggregator and remove the entries afterwards with:
    String categoryDiscriminatorGetMethodName = "getColor"; // do I remember well?
    // this is the map which you populate based on the result of the first aggregation,
    // keys should be colors,
    // values should be the number of entries in the category in the entire cache minus the eviction limit (the number of entries you want to evict from the category)
    Map<String,Integer> toEvictByCategories = ...;
    Collection<Object> keysToRemove = cache.aggregate(AlwaysFilter.INSTANCE, new ByCategoryToBeEvictedKeyHarvester(categoryDiscriminatorGetMethodName, toEvictByCategories, toEvictAbove));
    cache.removeAll(keysToRemove);Best regards,
    Robert

  • Invoking OS commands from JSP

    Hi!
    I am trying to invoke underlying Operating System's commands such as cd, or calling a batch file from my JSP.
    I achieve this by doing as below:
    String command = "cd temp";
    Process process = Runtime.getRuntim().exec(command);
    I need to know the current directory where this command would be invoked.
    How can I get the path? It's very urgent!
    Look forward to your response...
    Thanks in advance.....
    Sandesh

    actually, nevermind. that won't be the current directory. It will be this:
    String dir = System.getProperty("user.dir");

  • Invoke search against AD, returning DSML

    Hi.
    I am trying to send a simple search to Active Directory which would return result of the search in DSML format. I am using the following code:
    Properties props = new Properties();
    props.setProperty("java.naming.ldap.version", "3");
    props.setProperty(Context.SECURITY_PRINCIPAL, "[email protected]");
    props.setProperty(Context.SECURITY_CREDENTIALS, "*********");
    props.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dsmlv2.soap.DsmlSoapCtxFactory");
    props.setProperty(Context.PROVIDER_URL, "ldap://ad-server:389/");
    DirContext ctx = null;
    NamingEnumeration results = null;
    try {
        ctx = new InitialDirContext(props);
        SearchControls constraints = new SearchControls();
        constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
        results = ctx.search("DC=podjetje,DC=local", "(objectclass=*)", constraints);
        while (results.hasMore()) {
            System.out.println(results.next());
    } catch (NamingException e) {
        e.printStackTrace();
    finally {
        try {
            if (results != null)
                results.close();
            if (ctx != null)
                ctx.close();
        } catch (NamingException e) {
            e.printStackTrace();
    }This example code works while using "com.sun.jndi.ldap.LdapCtxFactory" provider as INITIAL_CONTEXT_FACTORY.
    But in case of "com.sun.jndi.dsmlv2.soap.DsmlSoapCtxFactory" provider I am getting exception 23:36:39,640 ERROR [STDERR] 8.3.2007 23:36:39 com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection call
    SEVERE: SAAJ0006: Bad URL (endPoint instance of String)
    java.net.MalformedURLException: unknown protocol: ldap in line results = ctx.search("DC=podjetje,DC=local", "(objectclass=*)", constraints);How would I invoke searching against Active Directory and get back results in DSML?

    I haven't played around with DSML, so I can't say for certain exactly what's wrong. After a quick perusal of the DSMLv2 stuff it appears there may be two "things" you may be trying to do.
    The first would be just displaying the results using DSML. The sample named AuthSearch in the dsmlv2 zip file seems to be close what you are trying to achieve, and will return the results something like:<?xml version="1.0" encoding="UTF-8"?>
    <dsml:batchResponse>
    <dsml:searchResponse>
    <dsml:searchResultEntry.....dn="cn=AlbertEinstein,ou=research,dc=Antipodes,dc=com">
    <dsml:attr name="displayName">
    <dsml:value>Albert Einstein</dsml:value>
    </dsml:attr>
    </dsml:searchResultEntry>
    <dsml:searchResponse>
    </dsml:batchResponse>Your code snippet differs somewhat from the AuthSearch sample.
    The second thing you could be trying to do is submit a DSML request using SOAP over HTTP.
    In this case you will need to install a DSML server, such as Microsoft's DSML Services for Windows (DSFW) which can be dowloaded from http://www.microsoft.com/downloads/details.aspx?FamilyID=37df79b8-6f2b-4c04-9744-49816baee8ae&DisplayLang=en
    In that case your code will be substantially different, more like the UseWithSoap sample. If you were using Microsoft's DsFW then the URI that you would use would be something like:http://myDsFWServer:80/dsml/adssoap.dsmlxHowever I've just had a quick play with this, and I can't get it to work. Seems like DSFW doesn't like the DSML syntax that the Sun DSMLv2 provider spits out.
    (DSFW barfs when parsing the request and complains that the derefAliases definition is not in the DTD). There are certainly some diffeences between the DSML included in the Microsoft samples and what the Sun DSML provider produces. If someone understands the nuances of the different DSML providers, then perhaps they can help our poor friend out.
    Good luck.

  • Invoking programs

    hi,
    could anyone tell me or give me a hint, how would you invoke cmd.exe (MSDos exe) using java and then enter command line to execute another program.
    i would be highly grateful. thanks

    Usa o Runtime.getRuntime.exec(<String command>).Digo: Runtime.getRuntime( ). exec( <String comando>)

  • Re: Follow up on an old thread about memoryutilization

    At 04:21 PM 12/5/96 -0800, you wrote:
    This thread was active a few months ago, unfortunately its taken me until now
    for me to have enough spare time to craft a response.
    Derek,
    Thank you for finally giving me a more in-depth explanation of some of the
    complexities of automatic memory management. I am certain that when you get
    these and other problems ironed out, that it will be a very powerful
    feature. In the meantime, however, all we have is this list of things that
    we can do to "help" the memory manager. I don't mean to be difficult or
    stubborn here, but I am having a hard time seeing how this is any
    improvement handling the memory myself. If I must still be concerned about
    freeing the object references, then what has the memory manager gained for
    me?
    In fact, it is actually more difficult, because I do not have the
    destructor methods available to me. When I have a class that contains
    other objects, I usually instantiate those objects or arrays in the Init()
    method for that class. The cleanest and most natural place to "nil" those
    same objects or clear() the arrays would usually be in the destructor
    method for the same class. I can understand that you would not want to
    allow the destructor to be invoked manually, but I do not understand why we
    cannot provide cleanup code to be executed whenever an object is being
    destroyed.
    In short, I am standing by my original statement, which is simply that it
    is a weakness in the tool, if it claims to automatically handle memory
    management for you, but fails to do so completely or consistently. I can
    see that you are attempting to address that weakness, and I trust you will
    be successful. At that point, I will join you in singing the praises of
    automatic memory management.
    By the way, I also do not understand why we must explicitly instantiate
    each object. It seems to me that if you are truly handling memory
    automatically, then the "new" would be invoked automatically as soon as it
    is needed. I know that is the way it works in other tools that attempt to
    handle memory for you. This is no big deal, just a philosophical question.
    Are you doing automatic memory management, or just automatic memory freeing?
    --Jeanne
    =====================================================================
    Jeanne Hesler [email protected]
    =====================================================================

    I beleive he means to reformat it like a floppy disk.
    Go into My Computer, Locate the drive letter associated with your iPod(normally says iPod in it, and shows under removable storage).
    Right click on it and choose format - make sure to not have the "quick format" option checked. Then let it format.
    If that doesnt work, There are steps somewhere in the 5th gen forum( dont have the link off hand) to try to use the usbstor.sys to update the USB drivers for the Nano/5th gen.

  • Installing several JRE versions on one computer

    Is it possible to have more than one version of JRE installed on a computer? I have a program which seems to run better in 1.4.1 than 1.4.2, but since 1.4.2 is the more recent version I'd rather have that. Can I install both, and can I 'switch' them on and off, or specify in the command to run the program which version it uses?
    I notice that Open Office's installation seemed to be able to detect and choose betwee different versions, so I hope this is possible.

    You can have as many JRE's on a single computer as you want and you can pick and choose which one you want by pointing to the right directory containing the java executable in your startup script/binary. You can also make use of PATH environment variable set the "default" JRE that would be invoked if java binary invoked without the absolute path.

  • How can I access the namedCache

    Hi,
    As you know we can access the Oracle Coherence cache within CEP by using setMap procedure. This procedure only gives us a Map object. And we can load the coherence cache with this map object.
    But we should get the memberId and memberName of the coherence server for each node. How can I get the coherence member information(memberid, membername) that currently I am using?
    I am using below piece of code to get member Id but we got an error at the bottom of the page. The piece of code is :
        public void setMap(Map map)
             galataCache = map;
             NamedCache cache = CacheFactory.getCache("galataCustomerCache");
             cache = (NamedCache) map;
             CacheService service = cache.getCacheService();
             Cluster cluster = service.getCluster();
             Member memberThis = cluster.getLocalMember();
             Global.LOG.info("My Member id is:"+memberThis.getId());
             Global.LOG.info("My Member machine id is:"+memberThis.getMachineId());
             Global.LOG.info("My Member name is:"+memberThis.getMemberName());
        }And Oracle CEP server gives this error :
    ####<Jan 11, 2011 10:17:59 PM EET> <Info> <org.springframework.beans.factory.support.DefaultListableBeanFactory> <> <myServer> <[ACTIVE] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1294777079117> <BEA-000000> <Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@21a6abab: defining beans [CacheBeanFactoryPostProcessor,ServiceDependencyBeanFactoryPostProcessor,ContextLifecycleControlBean,com.bea.wlevs.spring.BeanPostProcessorServiceProcessor,com.bea.wlevs.spring.EventTypeRepositoryFactoryBean#0,com.bea.wlevs.spring.CachingSystemFactoryBean#coherence_provider#0,galataCache,customerCacheLoader,wlevs_stage_proxy_forgalataCustomerCache,wlevs_stage_proxy_forgalataCustomerCachedefaultcachestage,galataCustomerCache,com.bea.wlevs.spring.support.ServiceInjectionBeanPostProcessor,org.springframework.osgi.extensions.annotation.ServiceReferenceInjectionBeanPostProcessor,com.bea.wlevs.spring.ApplicationIdentityAwareProcessor,com.bea.wlevs.spring.MBeanRegistrationBeanPostProcessor,com.bea.wlevs.spring.WorkManagerPostProcessor,com.bea.wlevs.spring.CacheBeanPostProcessor,com.bea.wlevs.spring.ActivationBeanPostProcessor,com.bea.wlevs.spring.BlockingSenderBeanPostProcessor,com.bea.wlevs.spring.RunnableBeanPostProcessor,com.bea.wlevs.spring.DisposableBeanPostProcessor,com.bea.wlevs.spring.ResourceInjectionBeanPostProcessor]; root of factory hierarchy>
    ####<Jan 11, 2011 10:17:59 PM EET> <Info> <OSGiLogReaderAdapter> <> <myServer> <Log Event Dispatcher> <> <> <> <1294777079119> <BEA-000000> <Bundle[214] GalataCoherence4, Message (ServiceEvent UNREGISTERING null), Exception (null), Time (1294777079118)>
    ####<Jan 11, 2011 10:17:59 PM EET> <Error> <Deployment> <> <myServer> <[ACTIVE] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1294777079121> <BEA-2045010> <The application context "GalataCoherence4" could not be started: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerCacheLoader' defined in URL [bundleentry://214.fwk539854707/META-INF/spring/CoherenceCustomer.context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'map' threw exception; nested exception is (Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerCacheLoader' defined in URL [bundleentry://214.fwk539854707/META-INF/spring/CoherenceCustomer.context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'map' threw exception; nested exception is (Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
         at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:139)
         at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)
         at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'map' threw exception; nested exception is (Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
         at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
         at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1011)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
         at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:139)
         at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)
         at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    ####<Jan 11, 2011 10:17:59 PM EET> <Info> <OSGiLogReaderAdapter> <> <myServer> <Log Event Dispatcher> <> <> <> <1294777079123> <BEA-000000> <Bundle[214] GalataCoherence4, Message (BundleEvent STOPPED), Exception (null), Time (1294777079123)>
    ####<Jan 11, 2011 10:17:59 PM EET> <Info> <OSGiLogReaderAdapter> <> <myServer> <Log Event Dispatcher> <> <> <> <1294777079124> <BEA-000000> <Bundle[214] GalataCoherence4, Message (BundleEvent UNRESOLVED), Exception (null), Time (1294777079124)>
    ####<Jan 11, 2011 10:17:59 PM EET> <Info> <OSGiLogReaderAdapter> <> <myServer> <Log Event Dispatcher> <> <> <> <1294777079124> <BEA-000000> <Bundle[214] GalataCoherence4, Message (BundleEvent UNINSTALLED), Exception (null), Time (1294777079125)>
    ####<Jan 11, 2011 10:17:59 PM EET> <Notice> <Deployment> <> <myServer> <[ACTIVE] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1294777079124> <BEA-2045001> <The application bundle "GalataCoherence4" was undeployed successfully>
    ####<Jan 11, 2011 10:17:59 PM EET> <Warning> <com.bea.wlevs.cluster.gbcast.support.AbstractBroadcastGroup> <> <myServer> <Invocation:com.bea.wlevs.cluster.coherence.BroadcastTxInvocationService> <> <> <> <1294777079124> <BEA-000000> <AtomicGroupBroadcastListener.onCommit [[email protected]54] threw an exception
    java.lang.IllegalStateException: Deployment transaction could not be completed, the local deployment failed
         at com.bea.wlevs.deployment.cluster.ClusterDeploymentListener.onPrepare(ClusterDeploymentListener.java:63)
         at com.bea.wlevs.cluster.gbcast.support.AbstractBroadcastGroup.prepareTxInternal(AbstractBroadcastGroup.java:302)
         at com.bea.wlevs.cluster.coherence.BroadcastGroupImpl$BroadcastTransactionImpl.run(BroadcastGroupImpl.java:407)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService.onInvocationRequest(InvocationService.CDB:10)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.onReceived(InvocationService.CDB:40)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    >

    The easiest way (in my opinion) would be to implement the com.bea.wlevs.ede.api.cluster.GroupMembershipListener Interface. Anytime there is a membership change (which includes initial startup of a CEP application on a clustered server) the onMembershipChange() method is invoked. Example:
    @Override
    public void onMembershipChange(Server localIdentity, Configuration groupConfiguration) {
    int serverID = localIdentity.getIdentity();
    int coordID = groupConfiguration.getCoordinator().getIdentity;
    In this example, "serverID" is the local server's ID, and the "coordID" is the ID of the primary server for the cache cluster. This would be invoked at startup, and each time there is a cluster membership change.
    You would need to import the following:
    com.bea.wlevs.ede.api.cluster.GroupMembershipListener
    com.bea.wlevs.ede.api.cluster.Configuration
    com.bea.wlevs.ede.api.cluster.Server
    Hope this helps. See http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e14303/com/bea/wlevs/ede/api/cluster/GroupMembershipListener.html
    --Jim Leary
    Edited by: Jim Leary on Jan 11, 2011 12:51 PM
    Edited by: Jim Leary on Jan 11, 2011 12:57 PM

Maybe you are looking for

  • Automatically ordering articles, is there a solution?

    I regulary produce  documents with several hundred articles each consisting of a header image, details and 3 columns of text. they should all take 1/4 of a page so I group the elements and snap them to a grid. The trouble is they all have to be in al

  • How to parse a XML ?

    I'm developping a webservice on WEBAS based on BSP.. From an HTTP POST envelop I receive and XML message... I would like to parse it to extract datas and to use them. Thanks for your help... Jérôme

  • Not able to use password with characters for RFC User.

    hi All, I have installed SAP SCM 5.0 with MaxDB 7.6and liveCache 7.6. I created RFC user and RFC destination to administer liveCache globally as per SAP notes 305634 and 452745. I changed the initial passwords and tested Remote login for RFC User. Bu

  • Wireless Keyboard Recognized but not working.

    I have a wireless keyboard that is recognized but for some reason will not work at all. No typing possible. Replaced the batteries etc.... nothing. Any suggestions? Thanks IMac G5   Mac OS X (10.4)  

  • InDesign Character & Page Layout views

    I am having an issue where there is nothing showing up on one of our designers character palette & page layout palate. Therefore if we add a new page to the document we just get a blank box in the page layout palette. Similarly nothing at all shows u