Unreferenced() never called when implementing Unreferenced.

I have a remote object called DataFacade which implements the Unreferenced interface.
public class DataFacade extends UnicastRemoteObject implements DataInterface, Unreferenced {
// some methods
public void unreferenced() {
System.out.println("dummy");
unreferenced() never get called, even though I know there are no more client references to the remote object. Any suggestions?

unreferenced method only gets called when an exported objects client count has fallen to zero. If you want the object to be unexported and garbage collected all u have to do is to arrange for all local references to be cleared when unreferenced is called.
So the answer to your question is that your objects are not being unexported successfully.

Similar Messages

  • With prompts.tab_modal == true, WebProgressListener.OnStateChange is never called with flag WebProgressListener when window.alert is called

    For Firefox 10:
    I set prompts.tab_modal == true.
    And I register the WebProgressListener in my extension.
    When I call window.alert, nsIWebProgressListener.nsIWebProgressListener is never called with flag nsIWebProgressListener::STATE_IS_DOCUMENT.
    I need to register event handlers for all the element in the prompt dialog, how could I get notified when the tab-modal dialog popup?
    Thanks

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • [svn] 3937: FxContainer fix to make sure partRemoved/ partAdded are never called with a null instance.

    Revision: 3937
    Author: [email protected]
    Date: 2008-10-28 17:37:25 -0700 (Tue, 28 Oct 2008)
    Log Message:
    FxContainer fix to make sure partRemoved/partAdded are never called with a null instance. In this case, in clearSkinParts(), we would call partRemoved() on all parts, whether they were there or not. This was causing a Thermo bug.
    ASDoc fixes for Group, FxContainer, and FxDataContainer. Removing content property from ASDocs...this is not the recommended way to add items/remove items to Group/FxContainer. You should use the addItem/removeItem APIs. This is consistent with Flash Player and Halo. Under the hood someone can still set the content array, but it's discouraged because you could set two Groups to the same content array, which is hard to detect. Also, made currentContentGroup in FxContainer mx_internal...this is an implementation detail for us and something we may change later on. I also added some other ASDoc cleanups and fixes.
    QE Notes: Ran checkintests and Mustella tests for gumbo/core/ and gumbo/components/FxDataContainer. Joann is updatating the one test that failed. WHen verifying SDK-17750, please also verify Thermo bug SDK-17800.
    Doc Notes: This change includes ASDoc changes
    Bugs: SDK-17750, SDK-17741, SDK-17756
    Reviewer: Glenn
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17750
    http://bugs.adobe.com/jira/browse/SDK-17800
    http://bugs.adobe.com/jira/browse/SDK-17750
    http://bugs.adobe.com/jira/browse/SDK-17741
    http://bugs.adobe.com/jira/browse/SDK-17756
    Modified Paths:
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxContainer.as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxDataContainer .as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/Group.as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/baseClasses/FxC omponent.as

    Revision: 3937
    Author: [email protected]
    Date: 2008-10-28 17:37:25 -0700 (Tue, 28 Oct 2008)
    Log Message:
    FxContainer fix to make sure partRemoved/partAdded are never called with a null instance. In this case, in clearSkinParts(), we would call partRemoved() on all parts, whether they were there or not. This was causing a Thermo bug.
    ASDoc fixes for Group, FxContainer, and FxDataContainer. Removing content property from ASDocs...this is not the recommended way to add items/remove items to Group/FxContainer. You should use the addItem/removeItem APIs. This is consistent with Flash Player and Halo. Under the hood someone can still set the content array, but it's discouraged because you could set two Groups to the same content array, which is hard to detect. Also, made currentContentGroup in FxContainer mx_internal...this is an implementation detail for us and something we may change later on. I also added some other ASDoc cleanups and fixes.
    QE Notes: Ran checkintests and Mustella tests for gumbo/core/ and gumbo/components/FxDataContainer. Joann is updatating the one test that failed. WHen verifying SDK-17750, please also verify Thermo bug SDK-17800.
    Doc Notes: This change includes ASDoc changes
    Bugs: SDK-17750, SDK-17741, SDK-17756
    Reviewer: Glenn
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17750
    http://bugs.adobe.com/jira/browse/SDK-17800
    http://bugs.adobe.com/jira/browse/SDK-17750
    http://bugs.adobe.com/jira/browse/SDK-17741
    http://bugs.adobe.com/jira/browse/SDK-17756
    Modified Paths:
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxContainer.as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxDataContainer .as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/Group.as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/baseClasses/FxC omponent.as

  • ReadObject() and writeObjectO never called

    I have classes to transfer images through RMI. ImageDescriptor interface provides basic method to override:
    public interface ImageDescriptor extends Serializable
      public void paint(java.awt.Graphics g, int x, int y, int width, int height);
    }BinaryImageDescriptor is used for transferring binary data. It worked but byte[]->Image transform took some time (done once in the paint method, which caused a delay while painting for the first time) so I decided to move this routine to a method and call it when object is deserialized:
    import java.awt.*;
    import javax.imageio.*;
    import java.nio.*;
    import java.nio.channels.*;
    import java.io.*;
    import java.awt.image.*;
    public class BinaryImageDescriptor
        implements ImageDescriptor, Serializable {
      private byte[] imageData = null;
      private transient Image image = null;
      private transient boolean updated = false;
      private transient ImageObserver observer = null;
      public BinaryImageDescriptor(byte[] imageData) {
        this.imageData = imageData;
        updated = false;
      public BinaryImageDescriptor(String fileLocation) {
        try {
          File file = new File(fileLocation);
          FileInputStream fis = new FileInputStream(file);
          FileChannel fc = fis.getChannel();
          int filelength = (int) file.length();
          MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0,
                                        filelength);
          this.imageData = new byte[filelength];
          mbb.get(this.imageData);
          System.out.println("Binary Image Success: " + fileLocation);
        catch (IOException ex) {
          System.out.println("Binary Image error: " + fileLocation);
          this.imageData = null;
      public void updateBinaryImage() {
        System.out.println("Update Binary");
        try {
          image = javax.imageio.ImageIO.read(new ByteArrayInputStream(imageData));
        catch (Exception ex) {
          image = null;
          ex.printStackTrace();
      public void paint(Graphics g, int x, int y, int width, int height) {
        // Previously I used to read Image here by calling updateBinaryImage() once
        if (image != null) {
          g.drawImage(image, x, y, width, height, null);
      public void setObserver(ImageObserver observer) {
        this.observer = observer;
      private void writeObject(java.io.ObjectOutputStream oos) throws IOException {
        //This method is never called
        System.out.println("Inside write Object");
        oos.defaultWriteObject();
      private void readObject(java.io.ObjectInputStream ois) throws
          ClassNotFoundException, IOException {
        //This method is never called too
        System.out.println("Inside readObject");
        ois.defaultReadObject();
        updateBinaryImage();
      public byte[] getImageData() {
        return imageData;
    }But the problem is, the readObject() and writeObject() (on the server side) are never called. So the Image remains null and nothing is painted.
    Could you help?
    ps: I do not obsfucate the code. Some package definitions are removed (due to propriarity) but the code compiles fine.

    silly mistake of me, fixed. error outside the code.
    ---CLOSED---

  • JMX NotificationListener is never called (Weblogic 10.3)

    Hi folks
    I'm trying to register a NotificationListener which gets called when the 'HeapSizeCurrent' attribute of the JVMRuntimeMBean has changed.
    I tried the following code, but the listener is never called. Any ideas?
    public class Test implements NotificationListener {
       * @param args
      public static void main(String[] args) throws Exception {
        NotificationListener listener = new Test();
        AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter();
        filter.enableAttribute("HeapSizeCurrent");
        JMXServiceURL serviceURL = new JMXServiceURL("t3", "localhost", 7011, "/jndi/weblogic.management.mbeanservers.domainruntime");
        Map<String, Object> env = new HashMap<String, Object>();
        env.put(Context.SECURITY_PRINCIPAL, "weblogic");
        env.put(Context.SECURITY_CREDENTIALS, "weblogic");
        env.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
        env.put("jmx.remote.x.request.waiting.timeout", new Long(10000));
        JMXConnector connector = JMXConnectorFactory.connect(serviceURL, env);
        MBeanServerConnection connection = connector.getMBeanServerConnection();
        ObjectName domainRuntimeServiceMBean = new ObjectName("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
        ObjectName[] serverRuntimes = (ObjectName[]) connection.getAttribute(domainRuntimeServiceMBean, "ServerRuntimes");
        for (ObjectName serverRuntime : serverRuntimes) {
          ObjectName jvmRuntime = (ObjectName) connection.getAttribute(serverRuntime, "JVMRuntime");
          connection.addNotificationListener(jvmRuntime, listener, filter, null);
          System.out.println("added listener");
        System.in.read();
        connector.close();
      @Override
      public void handleNotification(Notification notification, Object handback) {
        if(notification instanceof AttributeChangeNotification) {
          AttributeChangeNotification attributeChange = (AttributeChangeNotification) notification;
          System.out.println("This notification is an AttributeChangeNotification");
          System.out.println("Observed Attribute: " + attributeChange.getAttributeName() );
          System.out.println("Old Value: " + attributeChange.getOldValue() );
          System.out.println("New Value: " + attributeChange.getNewValue() );
    }Thanks
    Edited by: 816587 on 29-Nov-2010 13:10

    Hi thanks for your reply. Very strangely without making any changes I left it alone for an hour or so and it seems to be ok after that!

  • ViewObjectImpl never called? NavigationListener HowTo?

    Hi,
    I try to implement add a navigation listener to a ViewObjectImpl but I noticed that the class is never called?
    JDev 10.1.2 + JClient
    I have a panel bound to the ViewObject.
    3 rows are retrieved
    I traced my program and when 3 rows are retrieved, the underlying EntityImpl and ViewRowImpl classes are called 3 times but the ViewObjectImpl class is never called?
    Is this normal?
    I checked the content of the Model.jpr file and all those classes are defined.
    Where get I activate my Navigation Listener if not in the ViewObjectImpl file?
    Here is my code:
    public class MyVOImpl extends ViewObjectImpl
    MyNavigationListener myNavigationListener = null; //new MyNavigationListener();
    * This is the default constructor (do not remove)
    public MyVOImpl()
    System.out.println(getClass().getName()+" MyVOImpl()");
    myNavigationListener = new MyNavigationListener();
    addListener(myNavigationListener);
    System.out.println(getClass().getName()+" LISTENER ADDED");
    protected class MyNavigationListener implements RowNavigationListener
    public void navigated(NavigationEvent event)
    System.out.println(getClass().getName()+".navigated() begin *************");
    Your help will be appreciated
    Frederic

    I didn't succeed to add a RowNavigationListener but adding a RowSetListener works.
    RowSetListener implementation:
    public class PhotolabVOImpl extends ViewObjectImpl
    PhotolabNavigationListener photolabNavigationListener = null; //new PhotolabNavigationListener();
    private Number previousPhotolabOtherLangId = null;
    * This is the default constructor (do not remove)
    public PhotolabVOImpl()
    System.out.println(getClass().getName()+" PhotolabVOImpl()");
    public void executeQuery()
    if (this.photolabNavigationListener == null)
    try
    photolabNavigationListener = new PhotolabNavigationListener();
    this.getRowSetIterator().addListener(photolabNavigationListener);
    System.out.println(getClass().getName()+" LISTENER ADDED");
    catch (Exception ex)
    ex.printStackTrace();
    this.photolabNavigationListener = null;
    super.executeQuery();
    public class PhotolabNavigationListener implements RowSetListener
    public void navigated(NavigationEvent event)
    System.out.println(getClass().getName()+".navigated() begin *************");
    public void rangeRefreshed(RangeRefreshEvent event)
    public void rangeScrolled(ScrollEvent event)
    public void rowInserted(InsertEvent event)
    public void rowDeleted(DeleteEvent event)
    public void rowUpdated(UpdateEvent event)
    RowNavigationListener that doesn't work:
    public class PhotolabVOImpl extends ViewObjectImpl
    PhotolabNavigationListener photolabNavigationListener = null; //new PhotolabNavigationListener();
    private Number previousPhotolabOtherLangId = null;
    * This is the default constructor (do not remove)
    public PhotolabVOImpl()
    System.out.println(getClass().getName()+" PhotolabVOImpl()");
    public void executeQuery()
    if (this.photolabNavigationListener == null)
    try
    photolabNavigationListener = new PhotolabNavigationListener();
    this.getRowSetIterator().addListener(photolabNavigationListener);
    System.out.println(getClass().getName()+" LISTENER ADDED");
    catch (Exception ex)
    ex.printStackTrace();
    this.photolabNavigationListener = null;
    super.executeQuery();
    public class PhotolabNavigationListener implements RowNavigationListener
    public void navigated(NavigationEvent event)
    System.out.println(getClass().getName()+".navigated() begin *************");
    Following Exception is caught:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=com.photoswing.model.lab.PhotolabVOImpl$PhotolabNavigationListener
         at oracle.jbo.JboException.<init>(JboException.java:343)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1439)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2682)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:5361)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:638)
         at oracle.adf.model.binding.DCIteratorBinding.rangeRefreshed(DCIteratorBinding.java:724)
         at oracle.jbo.common.RowSetHelper.fireRangeRefreshed(RowSetHelper.java:168)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRangeRefreshed(ViewRowSetIteratorImpl.java:3362)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2631)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2850)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1941)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:689)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:769)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:706)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3361)
         at com.photoswing.model.lab.PhotolabVOImpl.executeQuery(PhotolabVOImpl.java:52)
         at oracle.adf.model.bc4j.DCJboDataControl.executeIteratorBindingIfNeeded(DCJboDataControl.java:803)
         at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:1587)
         at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:1544)
         at com.photoswing.view.lab.PanelPhotolabVO1.setBindingContext(PanelPhotolabVO1.java:184)
         at com.photoswing.view.start.PhotoWebshopDesktop.createPanelPhotolabToolBar(PhotoWebshopDesktop.java:589)
         at com.photoswing.view.start.PhotoWebshopDesktop.main(PhotoWebshopDesktop.java:276)
    ## Detail 0 ##
    java.lang.ClassCastException: com.photoswing.model.lab.PhotolabVOImpl$PhotolabNavigationListener
         at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:255)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3408)
         at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3192)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1431)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2682)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:5361)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:638)
         at oracle.adf.model.binding.DCIteratorBinding.rangeRefreshed(DCIteratorBinding.java:724)
         at oracle.jbo.common.RowSetHelper.fireRangeRefreshed(RowSetHelper.java:168)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRangeRefreshed(ViewRowSetIteratorImpl.java:3362)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2631)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2850)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1941)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:689)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:769)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:706)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3361)
         at com.photoswing.model.lab.PhotolabVOImpl.executeQuery(PhotolabVOImpl.java:52)
         at oracle.adf.model.bc4j.DCJboDataControl.executeIteratorBindingIfNeeded(DCJboDataControl.java:803)
         at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:1587)
         at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:1544)
         at com.photoswing.view.lab.PanelPhotolabVO1.setBindingContext(PanelPhotolabVO1.java:184)
         at com.photoswing.view.start.PhotoWebshopDesktop.createPanelPhotolabToolBar(PhotoWebshopDesktop.java:589)
         at com.photoswing.view.start.PhotoWebshopDesktop.main(PhotoWebshopDesktop.java:276)
    I found a solution but I would appreciate if somebody could explain why my RowNavigationListener implementation was wrong?
    Thanks
    Frederic

  • PL/SQL Call Back function is never called

    Hi, I have a AQ set to run a PL/SQL Call Back procedure, but the procedure is never called.
    Oracle version is 11.2.0.2 Standard Edition
    When I query aq$<queue>, the MSG_STATE column is always "ready".
    This is the queue creation script
    begin
      DBMS_AQADM.CREATE_QUEUE_TABLE ( queue_table => 'POLERMESSAGE',
                                      queue_payload_type => 'POLER_MESSAGE',
                                      multiple_consumers => TRUE );
      DBMS_AQADM.CREATE_QUEUE( queue_name => 'POLER_QUEUE',
                               queue_table => 'POLERMESSAGE');
      dbms_aqadm.add_subscriber( queue_name => 'POLER_QUEUE',
                                 subscriber => sys.aq$_agent( 'POLER_RECIPIENT', null, null ) );    
      dbms_aq.register ( sys.aq$_reg_info_list( sys.aq$_reg_info('POLER_QUEUE:POLER_RECIPIENT',
                                                                 dbms_aq.namespace_aq,
                                                                 'plsql://tr',
                                                                 HEXTORAW('FF')) ) ,
                           1 );    
      DBMS_AQADM.START_QUEUE(queue_name => 'POLER_QUEUE');    
    end;
    /This is the content of "tr" procedure
    create or replace
    procedure tr ( context raw,
                           reginfo sys.aq$_reg_info,
                           descr sys.aq$_descriptor,
                           payload raw,
                           payloadl number)
    as
      dequeue_options dbms_aq.dequeue_options_t;
      message_properties dbms_aq.message_properties_t;
      message_handle RAW(16);
      message poler_message;
    BEGIN
      dequeue_options.msgid := descr.msg_id;
      dequeue_options.consumer_name := descr.consumer_name;
      DBMS_AQ.DEQUEUE(queue_name => descr.queue_name,
                      dequeue_options => dequeue_options,
                      message_properties => message_properties,
                      payload => message,
                      msgid => message_handle);
      insert into lxtr values ( Nvl( To_Char(message.PolerMsgNro ), 'ooops' ), systimestamp ) ;
      commit ;
    end tr;If I query sys.reg$, I see it registered there:
    SQL> select subscription_name, location_name, status, state from sys.reg$;
    SUBSCRIPTION_NAME
    LOCATION_NAME
       STATUS     STATE
    "SPARCS"."POLER_QUEUE":"POLER_RECIPIENT"
    plsql://tr
            0         0I was working, until I re-compiled (don't ask...) the trigger that enqueue the message
    This is the section of the trigger (post insert for each row) that do the enqueuing. It seems to be working, since it is enqueuing. The issue is the dequeue.
    DECLARE
      enqueue_options dbms_aq.enqueue_options_t;
      message_properties dbms_aq.message_properties_t;
      message_handle RAW(16);
      message poler_message;
      err varchar2(2000);
    BEGIN
        message := poler_message(PolerMsgId,  PolerMsgNro );
        dbms_aq.enqueue(queue_name => 'POLER_QUEUE',
                        enqueue_options => enqueue_options,
                        message_properties => message_properties,
                        payload => message,
                        msgid => message_handle);
    END;If I run the code below, message is cleanly dequeued
    declare
      dequeue_options      dbms_aq.dequeue_options_t;
      message_properties   dbms_aq.message_properties_t;
      message_handle       RAW(16);
      message              poler_message;
    BEGIN
      dequeue_options.consumer_name := 'POLER_RECIPIENT' ;
      dbms_aq.dequeue( queue_name => 'POLER_QUEUE',
                       dequeue_options       => dequeue_options,
                       message_properties    => message_properties,
                       payload               => message,
                       msgid                 => message_handle);
      COMMIT;
    END ;Can anyone please give me any hints on what should I do next. There is nothing on the alert log...
    Thank you in advance,
    Tiago

    1) Very few PL/SQL programmers would consider it good form to have procedures with excessive numbers of parameters. In any language, though, it's possible to write poor code.
    2) Initially, you're right-- the performance of properly defined SQL statements via JDBC is little different than the performance of PL/SQL stored procedures. Frequently, however, SQL statements in Java applications do not take advantage of bind variables, which will significantly limit their scalability. Maintaining SQL statements in client applications makes it significantly more difficult on the support side-- if you find a bug in a stored procedure, you can fix the bug in one place-- if you find a bug in embedded SQL, you have to fix the code everywhere the client is deployed. Maintaining PL/SQL stored procedures also makes optimization easier-- frequently your DBA will be able to boil down a stored procedure to a couple of SQL statements and vastly improve performance (i.e. INSERT INTO <<table name>> SELECT <<column list>> from <<other table>> rather than looping over a cursor doing single-row inserts). Finally, PL/SQL stored procedures enable reuse-- when the next application wants to access the database, it doesn't have to rewrite your SQL.
    3) If the alternative to the bind variables (?'s) is a bunch of literals, I'll spend the extra time writing the code for the tremendous increase in scalability.
    4-6) You can certainly pass classes from Java to PL/SQL and back. You can also write Java stored procedures, rather than writing PL/SQL stored procedures). Oracle has been one of the leading proponents of Java.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • NamespaceContext.getPrefix() never called

    I am a newbie in the Java XML world.
    Here is my issue and the snippet of code is used to explain the problem:
    XPathVariableResolver jxvr = new JSTLXPathVariableResolver(pageContext);
    Node contextNode = adaptParamsForXalan(n, xpathString.trim(), jxvr);
    XPath xpath = XPathFactory.newInstance().newXPath();
    xpath.setNamespaceContext(jstlXPathNamespaceContext); //jstlXPathNamespaceContext is
    // initialized somewhere else
    xpath.setXPathVariableResolver(jxvr);
    Now when the xpath is evaluated using:
    xpath.evaluate(xpathString, contextNode);
    Under the debugger I can see that this call eventually calls the getNamespaceURI() method
    of JSTLXPathNamespaceContext (class for jstlXPathNamespaceContext) and then after that
    I land up at the resolveVariable(QName qname) call of JSTLXPathVariableResolver.
    What I notice in resolveVariable() call is that qname.getPrefix() is always an empty string. However, qname.getNamespaceURI() returns the proper URI string. In addition, prior to reaching resolveVariable() in JSTLXPathVariableResolver, I do see that the getNamespaceURI() method
    is being called in JSTLXPathNamespaceContext class. However, getPrefix() method of this
    class is never called. My instinct says that if this was called before resolveVariable() method is
    reached (during the creation of QName) I would get a valid prefix instead of an empty string.
    Could someone help with this. Is there something that I am doing wrong. Where does QName
    get created in resolveVariable() and why does it not call getPrefix()
    Please let me know if I can provide more info
    Thanks in advance
    -Dhiru

    The installer extension isn't removed with the application. It still can be found in Java Cache Viewer. When you remove this extension using Java Cache Viewer the uninstall method will be called.
    Is there a way to force the extension uninstallation when the main application is being removed? Removing the very application is user-friendly, you can do it from the Control Panel in Windows. It looks like JWS is missing a very important feature.
    I'm using Java 1.6.0_03 right now.

  • How can I interrupt the blocking call when call timeout?

    Hi,Guys
    I wrote an application server(daemon process) to talk with oracle server
    continuous which used oracle9 OCCI lib, each 5 min it executes the procedure
    on the DB server.
    Now I have come cross a problem:
    If the network is blocked, app server will blocked at occi call and would
    never pass, and no exception was catched :-(
    for e.g.
    1. Oracle server reboot without shutdown oracle process
    2. udp broadcast message storm blocked the connection between app server and
    oracle DB.
    I consider maybe it's because OCCI using the blocking mode of connection
    that caused this problem.
    How can I interrupt the blocking call when call timeout?

    Manage the timeout using a separate thread. When the timeout happens, issue a break on the OCCI connection. There is no direct way as of now. You need to do this to break a OCCI connection.
    retrieve the OCI handle from the OCCI handle (e.g. using Connection::getOCIServer or Connection::getOCIServiceContext methods) and issue a OCIBreak on it. Do not forget to allocate a error handle which should be passed to OCIBreak call.

  • How a custom component is called when we install a custom component in UCM.

    How a custom component is called when we install a custom component in UCM.
    On what event the component services will be activated and called.
    Suppose i create a Custom service name MULTIPLECHECKIN then this service will be called on what event and where it will be defined to call.

    Saurabh,
    the code is packed in the component (see component\Security Filter\java\Security Filter\ModifyAttributesFilter.java - the first Security Filter is the component name, the other Security Filter is the Java package name).
    What is important:
    - your class must implement the FilterImplementor interface (you will need UCM standard classes - server.zip in your classpath) and its doFilter method
    How the filter is executed?
    - actually, in this case you don't need any new service - you can use the standard 'hook', which is provided by standard checkin services
    - in Component Wizard create a new component, add your compiled class to it (make sure you follow the rules not to end up in classpath issues)
    - in Component Wizard click the 'Java Code' tab. Here you can add a Custom filter called validateCheckinData, which is executed by standard checkin services. If you parametrize the filter to call your class created above, you are done.
    'Working with Content Components' manual (e.g. here: http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/developer/using_components_10en.pdf) can give you a basic picture. A better resource is Bex Huff's book - I would recommend you to get it, because it has a step-by-step HelloWorld example which can guide you through Component Wizard. I could also send you my own component (send me an email at [email protected]) which implements a filter for user quotas, so you just need to "replace classes".
    As for the other half of your task, searching for the file in the database server will work only if you use database as your storage (ie. install and configure File Store Provider component accordingly). Of course, you could do a search for file in this case - just consider that you will be comparing two BLOBs rather than two relatively short check-sums (most likely strings or arrays of bytes). Besides, it will not work if you use filesystem as your storage.
    Jiri

  • JButton pressed, but not released and actionperformed never called

    Hi,
    I have a simple JButton, with one action listener that does its thing (or at least should do because it is never called). I also added a mouse listener to trace the issue further.
    Here's what happen. I have another component (a JTextField) with a focus listener. If the compoent looses the focus, I want to have a chance to ask a quick confirmation question (JOptionPane) before continuing to do someting else (in that case, process the action on the button).
    So the focus is in the text field and I click on the button. Here's what happen:
    - The button gets a mouse pressed event
    - The text field looses the focus and the button gains it.
    - The text field's focus lost handler shows a JOptionPane => focus goes on the option pane
    - The option pane is confirmed, but the rest stops.
    I get NO mouse release event on my button, the action performed is also lost and my button remains "half pressed" (when i hover the mouse pointer over it, the button is rendered lowered ).
    My guess is that the option pane comes too quick and that the mouse release event is transfered to the option pane instead of the button I first clicked, causing the actionperformed to be ignored as a side effect.
    Any ideas or suggestions ?
    Thanks.

    I get NO mouse release event on my button, the action
    performed is also lost and my button remains "half
    pressed" (when i hover the mouse pointer over it, the
    button is rendered lowered ).
    basically that's a bug in the button's internal state handling.
    To get an idea about how to fix it, you might want to read my article "Make Buttons Respect InputVerifiers" at
    http://www.mycgiserver.com/~Kleopatra/swing/swingentry.html
    Though it's rather old the issue is not solved (until 1.5b2) It's only applicable if you have tight control over the L&F.
    Greetings
    Jeanette

  • How to reject a Call when i phone's screen is off ??

    How to reject a Call when i phone's screen is off ??

    notyou wrote:
    The 7.1 update now includes this functionality on the lock screen.
    Never mind. I am incorrect. Sorry.

  • How to avoid redialing failed calls when unlocking an iphone

    when using my iphone 4 with ios7 in my car via bluetooth, i have the issue that when a call drops for one or other reason; the iphone wants to recall that failed call when unlocking my iphone at arrival.
    This is new since i upgraded my phone to ios7. with earlier versions i never had this issue.
    it looks to me to a mistake in the software statemachine where missed calls are kept in a buffer, even when i redialed the person using my car kit just some minutes later.

    And the worst and most stupid thing happens when that person already called you back. And while talking with them again you take your phone and try to unlock it to go to home screen (for ex to reply to a message you just received), and it starts calling a person you speak right now)). And they are asking: we are talking already, how did you just call me????

  • GetMethods from AuthoringScope is never called

    There are two threads on the theme:
    "I'm working on MPF package containing the language service. I need to implement MethodTips feature.
    I've created the class inherited from the AuthoringScope class from MPF and override following methods:
    GetDataTipText, GetDeclarations, GetMethods, Goto.
    All of these except GetMethods are called ok but GetMethods is never called. "
    I did as described in these threads (call the 4 methods StartName, ...) but it did not work until...
    ProvideLanguageService(typeof(PRLangServ),
    "PR Language",
                                 106,            
    // resource ID of localized language name
                                 CodeSense =
    true,            
    // Supports IntelliSense
                                 RequestStockColors =
    true,  
    // Supplies custom colors
                                 EnableCommenting =
    true,     
    // Supports commenting out code
                                 EnableAsyncCompletion =
    false, 
    // Supports background parsing
                                 AutoOutlining=
    true
    If I put EnableAsyncCompletion to true, GetMethods will never be called, if I put it as false, then it will be called.
    Why ??? Can it be considered like a bug?

    Hi philoroussel2,
    I'm not sure how this method works, I'm going to involve someone else into your case. At the same time, you can submit a feedback here for the VS product team, they might give you a good explanation about this problem.
    https://connect.microsoft.com/VisualStudio
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SaveState and restoreState never called after upgrade to JSF2.1.1

    Hi,
    I upgraded my project to JSF2.1.1.
    For all my custom compontent the saveState and restoreState is never called.
    Are there any required changes due to JSF2.1.1 release?
    Thanks in advance,
    Pieter

    Most likely, this will fix your issue:
    1: http://docs.info.apple.com/article.html?artnum=93698
    Also clean up your temp files:
    (Empty your Temp directory and restart)
    2: http://docs.info.apple.com/article.html?artnum=93976
    If you get an error when uninstalling quicktime, go through article 1, then run the Microsoft Cleanup Utility to remove quicktime afterwards:
    3: http://support.microsoft.com/default.aspx?scid=kb;en-us;290301

Maybe you are looking for

  • Error: java.util.map can not be inherited with different arguments

    Hi, I am getting following error while building the source code. C:\venus\src\com\martquest\messaging\msgio\MqMessageIOObjectCarrier.java:36: java.util.Map cannot be inherited with different arguments: <> and <java.lang.Object,java.lang.Object> [java

  • Standard HR Abobe Forms

    Hi All, I dont have ESS/MSS package installed on my server.How can I download standard HR adobe forms.Please guide me through. Thanks.

  • AVI files play badly with no sound

    My system upgraded Quicktime to 7.5 and now I am having this problem. The only file I have is one my dead son made trying to get his infant son to talk. It is so special to me and his wife. I really want to get the sound working again. Thanks so much

  • This Database Server Type is not supported

    Dear Experts, Kindly suggest your opinion regarding this issue we had freshly installed a SAP 2007B in our Server Edition is Microsoft  Windows 2003 and Database is of MSSql_2005 R2 Standard Edition and we had upgraded the SAP 2007B to PL_18. Now whe

  • H:inputText ; How To initialize value Property from back/bean method?

    Hello Guys at Sun Forums. I am a newbie at using JSF. and I'm having a bit of a Problem. I don't know how to initialize the value property of a h:inputText from a method inside a backing bean that returns a String data type. My Method inside the Back