Method is never triggered.

I do some indepth BB10 development tutorials as I learn myself. Especially for beginners and for those coming to BB Android/Java Dev.

In any case, I'm my current tutorial I want to talk about networking and FIO. So far I have not all errors in compiling or running the application however watch console I do not get an expected debug output.

My code:

Download.HPP (my class managed file download):

#ifndef DOWNLOAD_HPP_
#define DOWNLOAD_HPP_

// Import required classes
#include 
#include 
#include 
#include 
#include 
#include 

// Class Download extends class QObject
class Download:public QObject
{
  // Macro code required for signals/slots mechanism
  Q_OBJECT

  // Methods and attributes are declared
  // in header files and implemented in cpp file.
  public:
    // Constructor takes our xml and same as in Java/Android we have
    // to provide Context class in this case in a form of QObject
    explicit Download(QUrl xml, QObject *parent = 0);
    virtual ~Download();
    // Method to return our downloaded data in array of bytes
    QByteArray downloadedData() const;

  // Signals and Slots implement similar mechanism in C++/Qt
  // as Observer/Observable concept does in Java/Android
  signals:
    void downloaded();

  // Method will emit a signal in a form of a downloaded() method
  // much like setChanged() and notifyObservers() does in Java/Android
  public slots:
    void fileDownloaded(QNetworkReply *reply);

  // An instance of QNAM class used for HTTP requests
  // much like DownloadTask in Android
  private:
    QNetworkAccessManager manager;
    QByteArray data;
};

#endif /* DOWNLOAD_HPP_ */

The Download.cpp:

#include "Download.hpp"

// Notice unlike in Java/Android where we used a secondary thread
// to process the download in the background all of our methods in
// QNAM are async. so they are run in the background automatically.

// The constructor of this class equals:
// public Download(Url xml, Context context) {
//   super(context);
// }
//  .. in Java/Android
Download::Download(QUrl xml, QObject *parent):QObject(parent)
{
  // Similar to addObserver(..) in Java/Android we need to link the
  // slot and signal from our Download calss. Here we use: connect()

  // Takes address to our QNAM variable
  connect(&manager, SIGNAL(finished(QNetworkReply*)), SLOT(fileDownloaded(QNetworkReply*)));

  // Our QNAM requires a Request in form of a QNetworkRequest
  // a lot like HttpUrlConnection
  QNetworkRequest request(xml);

  // Now we can use get method to retrieve our data
  manager.get(request);

  // 1. Create an instance of a Download class
  // 2. In turn this creates a request on a given URL
  // 3. QNAM Receives the request in a form of a QNRequest class
  // 4. QNAM Returns the response in a form of a QNReply class
  // 5. fileDownload() method is triggered upon compleated download
  // 6. fileDownload() emits a signal to observing classes
}

Download::~Download(){}

// Think of the following method as onCompleatedDownload() from our
// Listner class and our Observable
void Download::fileDownloaded(QNetworkReply *reply)
{
  // QNAM Returns the data it pulled from our URL in a form of QNReply
  // class we will store this data in a ByteArray
  data = reply->readAll();

  // Dispose of QNReply
  reply->deleteLater();

  // This is same as in our onCompleated..() method where we called
  // setChanged() and notifyObservers() methods to tell all classes
  // who are registered as listeners that our file has been downloaded
  emit downloaded();
}

// Simple getter method for received data
QByteArray Download::downloadedData() const
{
  return data;
}

And my applicationui.cpp

#include "applicationui.hpp"

#include 
#include 
#include 
#include 

// Import our download service class
#include "Download.hpp"

using namespace bb::cascades;

ApplicationUI::ApplicationUI(bb::cascades::Application *app) :
        QObject(app)
{
    // prepare the localization
    m_pTranslator = new QTranslator(this);
    m_pLocaleHandler = new LocaleHandler(this);

    bool res = QObject::connect(m_pLocaleHandler, SIGNAL(systemLanguageChanged()), this, SLOT(onSystemLanguageChanged()));
    // This is only available in Debug builds
    Q_ASSERT(res);
    // Since the variable is not used in the app, this is added to avoid a
    // compiler warning
    Q_UNUSED(res);

    // initial load
    onSystemLanguageChanged();

    // Create scene document from main.qml asset, the parent is set
    // to ensure the document gets destroyed properly at shut down.
    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);

    // Create root object for the UI
    AbstractPane *root = qml->createRootObject();

    // Set created root object as the application scene
    app->setScene(root);

    // Prepare url for our resource
    QUrl url("http://news.google.com/?output=rss");

    // Once our main activity is set we can create a new
    // instance of Download class
    Download down(url, this);

    // Once Download(Observable) emmits a signal(notifyObserver)
    // in a form of downloaded() ApplicationUI which will be listening
    // will respond with showNotice()
    connect(&down, SIGNAL(downloaded()), SLOT(showNotice()));
}

// Shows message once Download class emmits a signal
// that file download has been compleated
void ApplicationUI::showNotice()
{
  // Show notice in debug console
  qDebug("FILE DOWNLOAD COMPETE");
}

And applicationui.hpp

class ApplicationUI : public QObject
{
  Q_OBJECT
  public:
    ApplicationUI(bb::cascades::Application *app);
    virtual ~ApplicationUI() { }

  private slots:
    void onSystemLanguageChanged();
    // We will treat ApplicationUI as our Main Activity class
    // thus it will be observing our Download class. Once
    // we are notified that our download is complete we want to
    // do something with that data for now just display the message.
    void showNotice();

In my applicationui.cpp in the constructor I create a new instance of download and request a download on successful download showNotice(); method must be triggered despite no error that the showNotice method is never executed because qDebug line is never displayed.

To expand my question:

Once a file is downloaded by programming where is the stored file and can we specify our own destenation or is the file stored under downloads folder automatically?

You represent download like local and end of the function will be thus destroyed as well as the connection.

Try to declare on the job not the battery. that is of new Download();

Wherever you get your http response I think that it's already been destroyed.

Tags: BlackBerry Developers

Similar Questions

  • method object never called

    Hey guys,.

    I'm having a problem with the code below:

    package mypackage;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.Graphics;
    
    public class MyApp extends UiApplication
    {
        public static void main(String[] args)
        {
            MyApp theApp = new MyApp();
            theApp.enterEventDispatcher();
        }
    
        public MyApp()
        {
            pushScreen(new MyScreen());
        }
        public void paint(Graphics g) {
            g.setColor( Color.BLUE );
            g.fillRect(0, 0, 100, 100);
    
        }
    }
    

    Object the method is never called. I'm new to the BlackBerry development, but judging by my experience of Java, it should work. I don't see what the problem with this code.

    Any help would be appreciated!

    See you soon,.

    Thomas

    Your method object in the code below is simply a local method, since UiApplication does not implement object.

    I think that you wanted to substitute her object in your screen class, but is not what you're doing here.

  • ADF: commandButton does not reach the target method

    Hi all

    This is my first post here, I hope you can help me, I'm new in the ADF, and now I am facing a problem, let me explain:

    11.1.1.55.36 ADF business components
    jDeveloper 11g Release 1 11.1.1.2.0

    In the application, I have a button that changes the attribute of "render" of a showDetailItem, this subject conatains some commandButons but when I click on these buttons the listener method is never triggered. I don't know what happened in this situation. Any idea is always welcome.

    Thanks in advance,
    Sergio Valdez

    Code:
    commandButton activation online: 58
    showDetailItem on line rendering: 125
    problem commandButtons to lines: 132 & 139
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:c="http://java.sun.com/jsp/jstl/core">
      <c:set var="viewcontrollerBundle"
             value="#{adfBundle['com.axtel.reporteador.MessageBundle']}"/>
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <af:panelStretchLayout topHeight="50px" id="psl1" bottomHeight="26px">
              <f:facet name="top">
                <af:panelGroupLayout layout="scroll"
                                     xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                     id="pgl2">
                  <af:inputText label="#{viewcontrollerBundle.NOMBRE_DE_ENCUESTA}" id="surveyName"
                                value="#{SurveyMB.surveyName}"/>
                  <af:panelGroupLayout id="pgl3">
                    <af:commandButton text="#{viewcontrollerBundle.CREATE_SURVEY}" id="surveyCreate"
                                      actionListener="#{SurveyMB.createSurveyListener}"/>
                    <af:commandButton text="#{viewcontrollerBundle.RESET_SURVEY}" id="surveyCancel"
                                      actionListener="#{SurveyMB.cancelSurveyListener}"/>
                    <af:commandButton text="#{viewcontrollerBundle.SURVEY_ADD_QUESTION}"
                                      id="addQuestion"
                                      actionListener="#{SurveyMB.addQuestionListener}"
                                      rendered="#{SurveyMB.surveyAlreadyCreated}"
                                      disabled="#{SurveyMB.questionAddEnable}"/>
                  </af:panelGroupLayout>
                </af:panelGroupLayout>
              </f:facet>
              <f:facet name="center">
                <!-- id="af_one_column_header_stretched"  -->
                <af:panelAccordion id="questionAccordionPanel" discloseNone="true"
                                   partialTriggers="addQuestion">
                  <af:forEach items="#{SurveyMB.survey.questions}" var="question"
                              varStatus="i">
                    <af:showDetailItem text="#{question.question}"
                                       id="questionDetailItem"
                                       disclosed="#{( SurveyMB.questionEditEnable) and (i.index eq SurveyMB.questionToBeEdited)}"
                                       disabled="#{(( SurveyMB.questionEditEnable) &amp;&amp; ( SurveyMB.questionToBeEdited ne i.index)) or SurveyMB.questionAddEnable}">
                      <f:facet name="toolbar">
                        <af:group id="g1">
                          <af:outputText value="outputText1" id="ot1"/>
                          <af:commandButton text="#{viewcontrollerBundle.SURVEY_ANSWER_DELETE}"
                                            id="questionDelete"
                                            actionListener="#{SurveyMB.deleteQuestionListener}">
                            <af:clientAttribute name="questionIndex"
                                                value="#{i.index}"/>
                          </af:commandButton>
                          <af:commandButton text="#{viewcontrollerBundle.SURVEY_QUESTION_EDIT}"
                                            id="questionEdit"
                                            actionListener="#{SurveyMB.editQuestionListener}">
                            <af:clientAttribute name="questionIndex"
                                                value="#{i.index}"/>
                          </af:commandButton>
                          <af:commandButton text="#{viewcontrollerBundle.SURVEY_ADD_ANSWER}"
                                            id="questionAddAnswer"
                                            actionListener="#{SurveyMB.addAnswerListener}">
                            <af:clientAttribute name="questionIndex"
                                                value="#{i.index}"/>
                          </af:commandButton>
                        </af:group>
                      </f:facet>
                      <af:panelGroupLayout id="pgl5">
                        <af:panelGroupLayout id="questionEditPanel"
                                             rendered="#{SurveyMB.questionEditEnable}">
                          <af:selectOneChoice label="#{viewcontrollerBundle.SURVEY_QUESTION_TYPE}"
                                              id="questionTypeToEdit">
                            <af:selectItem label="Seleccion Multiple"
                                           value="checkbox" id="selectItem1"/>
                            <af:selectItem label="Seleccion simple"
                                           value="radiobutton" id="selectItem2"/>
                          </af:selectOneChoice>
                          <af:inputText label="#{viewcontrollerBundle.SURVEY_QUESTION}"
                                        id="questionToEdit" rows="2"/>
                          <af:commandButton text="#{viewcontrollerBundle.ADD}"
                                            id="questionEditOk"
                                            actionListener="#{SurveyMB.addQuestionOkListener}"/>
                          <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                            id="questionEditCancel"
                                            actionListener="#{SurveyMB.addQuestionCancelListener}"/>
                        </af:panelGroupLayout>
                        <af:panelHeader text="Respuesta 1" id="answerHeader"
                                        size="3">
                          <f:facet name="menuBar">
                            <af:commandLink text="#{viewcontrollerBundle.EDITAR}"
                                            id="answerEdit"
                                            actionListener="#{SurveyMB.deleteAnswerListener}"
                                            disabled="#{requestScope.SurveyMB.editAnswerLinkEnable}"/>
                          </f:facet>
                          <f:facet name="toolbar">
                            <af:commandLink text="#{viewcontrollerBundle.ELIMINAR}"
                                            id="answerDelete"
                                            actionListener="#{SurveyMB.editAnswerListener}"
                                            disabled="#{requestScope.SurveyMB.deleteAnswerLinkEnable}"/>
                          </f:facet>
                          <af:panelGroupLayout id="answerEditPanel"
                                               rendered="#{SurveyMB.answerEditEnable}">
                            <af:inputText label="Label 3" id="answerToEdit"/>
                            <af:commandButton text="#{viewcontrollerBundle.OK}"
                                              id="answerEditOk"/>
                            <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                              id="answerEditCancel"/>
                          </af:panelGroupLayout>
                        </af:panelHeader>
                        <af:panelHeader text="#{viewcontrollerBundle.SURVEY_ADD_ANSWER}"
                                        id="panelHeader2" size="3"
                                        rendered="#{SurveyMB.answerAddEnable}">
                          <f:facet name="menuBar"/>
                          <af:panelGroupLayout id="panelGroupLayout1">
                            <af:inputText label="Label 3" id="answerToAdd"/>
                            <af:commandButton text="#{viewcontrollerBundle.OK}"
                                              id="answerAddOk"
                                              actionListener="#{SurveyMB.addAnswerOkListener}"/>
                            <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                              id="answerAddEdit"
                                              actionListener="#{SurveyMB.addAnswerCancelListener}"/>
                          </af:panelGroupLayout>
                        </af:panelHeader>
                      </af:panelGroupLayout>
                    </af:showDetailItem>
                  </af:forEach>
                  <af:showDetailItem text="#{viewcontrollerBundle.SURVEY_ADD_QUESTION}"
                                     id="showDetailItem1"
                                     disclosed="true"
                                     rendered="#{SurveyMB.questionAddEnable}"
                                     partialTriggers="addQuestion">
                    <f:facet name="toolbar">
                      <af:group id="group1">
                        <af:commandButton text="#{viewcontrollerBundle.OK}"
                                          id="questionAddOk"
                                          actionListener="#{SurveyMB.addQuestionOkListener}"
                                          immediate="true"
                                          binding="#{SurveyMB.addQuestionOkBinding}"
                                          action="#{SurveyMB.questionAddOkAction}"
                                          partialTriggers="addQuestion"/>
                        <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                          id="questionAddCancel"
                                          actionListener="#{SurveyMB.addQuestionCancelListener}"
                                          partialTriggers="addQuestion"/>
                      </af:group>
                    </f:facet>
                    <af:panelGroupLayout id="panelGroupLayout2">
                      <af:panelGroupLayout id="pgl8"
                                           partialTriggers="addQuestion">
                        <af:selectOneChoice label="#{viewcontrollerBundle.SURVEY_QUESTION_TYPE}"
                                            id="questionTypeToAdd">
                          <af:selectItem label="Seleccion Multiple" value="checkbox"
                                         id="si2"/>
                          <af:selectItem label="Seleccion simple"
                                         value="radiobutton" id="si1"/>
                        </af:selectOneChoice>
                        <af:inputText label="#{viewcontrollerBundle.SURVEY_QUESTION}"
                                      id="questionToAdd" rows="2"/>
                      </af:panelGroupLayout>
                    </af:panelGroupLayout>
                  </af:showDetailItem>
                </af:panelAccordion>
              </f:facet>
              <f:facet name="bottom">
                <af:panelGroupLayout id="pgl1">
                  <af:commandButton text="#{viewcontrollerBundle.SURVEY_SAVE}" id="surveySave"
                                    action="#{SurveyMB.surveySaveAction}"/>
                  <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                    id="cancelSurvey"
                                    action="#{SurveyMB.cancelSurveyAction}"/>
                </af:panelGroupLayout>
              </f:facet>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:preferred-managed-bean-name:SurveyMB-->
    </jsp:root>
    Published by: user2931026 on Apr / 10/2010 01:13

    Published by: user2931026 on Apr / 10/2010 09:01

    Sergio,
    good work, now I can read the code :-)
    Strange, nothing appears immediately.
    The buttons in the showDetailItem are the only ones who does not?
    One thing you can try is to use the visible property rather than the rendered attribute. The user interface looks the same, but the properties behave different (rendering = false means components are not on the page, visible = false means components are on the page but do not appear to the user).

    Timo

  • Custom not pulling field TrackwheelClick

    Hey all,.

    I have a custom field that extends to the field. I want to know when we click on the control, so I outweigh the trackwheelClick method.  However, when I use the debugger, the trackwheelClick method is never triggered.  What Miss me? Thank you.

    public class MyControl extends Field
    {
        public MyControl()
        {
        }
    
        protected boolean trackwheelClick(int status, int time)
        {
            // Never gets here when control clicked.
        }
    }
    

    Your domain is active? AFAICS in your code snippet, it is not. How do you choose the field of non-Focus?

    public MyField(){        super(Field.FOCUSABLE);}
    

    Change your constructor as in the code above, I can handle click in navigationClick in my 4.2.1 Simulator. trackwheelClick is not called because navigationClick returns true (for example, it shows that he has consumed the event).

  • Get AIR.fileApplicationStorage jpg files

    It drives me crazy

    load jpg in the directory is simple and works well:

    public void setImage (imageName:String, image: Bitmap image): void
    {
    var encoder: JPEGEncoder = new JPEGEncoder (80);
    var byteArray:ByteArray = encoder.encode (image.bitmapData);
    var file:File = File.applicationStorageDirectory.resolvePath (imageName);
    var fileStream:FileStream = new FileStream();

    try {}
    fileStream.open (file, FileMode.WRITE);
    fileStream.writeBytes (byteArray);
    fileStream.close ();

    } catch (error) {}
    trace ("ERROR setImage:", e.message);
    }
    }

    them out again seems almost impossible:

    public void getImage (imageName:String): Bitmap
    {
    var file:File = File.applicationStorageDirectory.resolvePath (imageName);
    var bytes: ByteArray = new ByteArray();
    trace ("getImage BEF', bytes.bytesAvailable");
    var stream: FileStream = new FileStream();
    Stream.Open (file, FileMode.READ);
    stream.readBytes (bytes, 0, stream.bytesAvailable);
    Stream.Close ();
    trace ("getImage AFT', bytes.bytesAvailable");

    var loader: Loader = new Loader();
    loader.addEventListener (Event.COMPLETE, onComplete)
    loader.addEventListener (IOErrorEvent.IO_ERROR, onError);
    loader.loadBytes (bytes);

    var bitmapData:BitmapData = new BitmapData (175,175);
    bitmapData.draw (loader);
    var bitmap: Bitmap = new Bitmap (bitmapData);

    return bitmap;

    trace ("getImage-");
    }

    private function onComplete (event: Event): void
    {
    trace ("onComplete", event.target ");
    }

    private void onError (event: IOError): void
    {
    trace ("onError", event.message ");
    }

    two images running through this method of recovery gives the following trace output:

    getImage BEF, 0
    getImage AFT, 6760
    getImage
    -----------------------
    getImage BEF, 0
    getImage AFT, 7039
    getImage
    -----------------------

    so clearly the bytearray data is loaded, but the onComplete, onError, and methods are NEVER triggered and the returned Bitmap is just a white square. the files in question are certainly jpg files.


    what I am doing wrong?

    Hello

    Since my first comment, you have the wrong charger earphone,

    loader.contentLoaderInfo.addEventListener<----- you="" need="" to="" add="" the="" listener="" to="" the="" contentloaderinfo="" rather="" than="" to="" the="">

    David.

  • Method Sublayout()

    Hello

    Does anyone know the triggers the sublayout method? I know not tilt the device triggers it but my sublout method is executed when I press on the screen permanently. Why is this?

    Most likely, you're doing something in the layout() or sublayout() methods that actually triggers another provision.

    You could try single-no not your code to find the problem, or post your code for us to see.

  • [java rmi] PortableRemoteObject method not referenced

    Hello everyone.

    I use a portable proxy between an IIOP client and server of connection JRMI (activated). While the proxy has an active reference on the login server, it cannot execute his method not referenced. So I try to use the source not cited in the proxy too, but once he gets a reference to the login server (the first time a user IIOP calls the PortableProxy.login () method, the replacement no quoted source method is never called.

    It's my proxy code:
    public class PortableProxy extends ClientAuthentication, Unreferenced{
         private String path = System.getenv("WORKDIR");
         private ClientAuthentication authLogin = null;
         private static final String authServer = "authServer";
         private static final int authServerPort = 1098;
         private static final String authServerIP = "localhost";
         private static final int portableProxyRMI = 3500;
         private static final String portableProxy = "PortableProxy";
         /**
            * PortableProxy()
            */
         public PortableProxy(){
              Properties prop = new Properties();
              Object obj = null;
              System.setProperty("javax.net.ssl.trustStore",""+path+"client/mySrvKeystore");
              System.setProperty("javax.net.ssl.trustStorePassword", "123456");
              try{
                   PortableRemoteObject.exportObject(this);
                      System.setProperty("java.rmi.dgc.leaseValue", "12000");
                      System.setProperty("java.rmi.dgc.checkInterval", "6000");
              }catch(RemoteException re){
                   System.out.println("PortableProxy.PortableProxy() RemoteException: "+re.getMessage());
                   re.printStackTrace();
              }
              System.out.println("PortableProxy exported");
         }
         
         /**
            * lookRef()
            */
         public void lookRef(){
              Properties prop = new Properties();
              Object obj = null;
              prop.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
              prop.put(Context.PROVIDER_URL, "rmi://"+authServerIP+":"+authServerPort);
              InitialContext ic = null;
              try{
                 ic = new InitialContext(prop);
                 obj = ic.lookup(authServer);
              }catch(NamingException ne){
                 System.out.println("PortableProxy.lookRef() NamingException: "+ne.getMessage());
                 ne.printStackTrace();
              }
              authLogin = (ClientAuthentication) PortableRemoteObject.narrow(obj, ClientAuthentication.class);
       }
         
         /**
            * login()
            */
         public Runnable login(String user, String password){
              System.out.println("Sono in PortableProxy.login()");
              Runnable ret = null;
              if(authLogin == null){
                   lookRef();
              }
              try{
                   ret = authLogin.login(user, password);
              }catch(RemoteException re){
                   System.out.println("PortableProxy.login() RemoteException: "+re.getMessage());
                   re.printStackTrace();
              }
              return ret;
         }
         
         /**
            * unreferenced()
            */
         public void unreferenced(){
              authLogin = null;
              if(authLogin == null){
                   System.out.println("authLogin = null");
              }else{
                   System.out.println("Something went wrong: authLogin != null.");
              }
              System.gc();
         }
    
         /**
         * MAIN
         */
         public static void main(String[] args){
              Properties prop = new Properties();
              PortableProxy proxy = new PortableProxy();
              prop.put("java.naming.factory.initial",  "com.sun.jndi.cosnaming.CNCtxFactory");
              prop.put("java.naming.provider.url", "iiop://localhost:"+portableProxyRMI);
              try{
                   InitialContext icProxy = new InitialContext(prop);
                   icProxy.rebind(portableProxy, proxy);
              }catch(NamingException ne){
                   System.out.println("PortableProxy.main() NamingException: "+ne.getMessage());
                   ne.printStackTrace();
              }
         }
    }
    I closed all the user jvm, but nothing happened. I don't have a reference to the proxy each time, I put it to null.
    Where I am doing wrong?
    PS: I also want to set the leaseValue and the checkInterval for a shorter time. In this way (under the PortableRemoteObject.exportObject (()) the right way?
    Tell me thanks in advance, if you need additional information. Thank you

    In my view, that the unreferenced support is available only when the use standard rmi. the iiop based RPC does not support distributed gc.

  • AttributeChangeEvent not triggered when the position of the separator is changed by the user

    Hello

    I have a dispatcher Panel as below:

    < af:panelSplitter orientation = 'vertical' id = 'ps1z' collapsed = 'true '.
    positionedFromEnd = "true" splitterPosition = "240".
    styleClass = "AFStretchWidth AFStretchHeight"
    clientComponent Binding = "#{pageFlowScope.discrepancyView.panelSplitter}" = 'true' "
    attributeChangeListener = "#{pageFlowScope.discrepancyView.attributeChangeListener}" >

    This splitter makes fine between the two areas of my page. But the attribute change event does not seem to be pulled when splitter is collapsed/expanded and when the position of the separator is changed by moving the mouse. The earpiece of the attributeChangeListener method is never get called.

    Can someone tell me what could be the reason for this?

    Thank you
    -Vijay-

    Hello

    change attribute thse listeners only fire when a component is changed implicitly by the rendering engine kit. So it should not change when the user repositions the separator

    Frank

  • refresh the component whenever it becomes visible

    This is probably not the first time at his request, but search results are not much of a help.

    in the Main.mxml that I have two buttons to display (or hide) of custom components.

    the first time that the components are loaded / showed that they use the creationComplete event with lets call the init() method. (a call of service/CallResponder to fill some signs/labels etc.)

    When switching to and on components likely to have changed the information contained in the database and for this purpose, I need to remind the init() method again to restart the service/CallResponder again. So, I always have the info displayed on my screen most acurate.

    is it possible to invoke the init() method whenever the custom component becomes visible?

    Thanks in advance

    Arjan

    static cooling, follow these steps:

    public static void refresh(event:Event):void {}

    event.currentTarget.init ();
    }

    This will ensure that init is called on the particular instance with distributed event.  Also your init function now takes a parameter of the event, you must be making it optional or remove it completely.

    I just put an alert and trace in the updating of the static function "empty."

    good event that her name in the show, it is never triggered?

    How do you get the visible component?

  • Process to install devours the application memory.

    I hope that someone can help me, I'm a 2013 MacBook Air running OS X El Capitan (10.11.6) according to a system to update a few days ago my laptop slowed significantly (by moving the cursor would trigger the spinning Rainbow).

    I've identified what I think is the issue using the activity monitor; I have two installation running process, and each of them use all a gig of memory. When I leave my laptop process dates back to work normally, but after a reboot, the process to install reappear and slow down.

    After some research, I have seen that many people had a similar problem to 2014 and is advertising software named Genieo, unfortunately which don't seem to be the same problem that I encounter as I can find no trace of Genieo on my laptop.

    Do not know if installers are left by the system update, I just, or something else, I downloaded. I have traces in the finder and attempted to eject but they returned after a reboot and they cannot be sent to the trash, so the other then by a force quite everytime I want to use my laptop, I don't know what to do next.

    Anyone know what is happening or have suggestions on how I can solve this problem?

    Restart in safe mode

    Try safe mode if your Mac does not end commissioning - Apple Support

    Set your guard at a higher level of security currently occupies it if it is set to "any place"

    OS X: on Gatekeeper - Apple Support

    check your user account for the elements of launch, then remove them

     > System Preferences > users and groups

    Access your account

    unlock the pannel

    Go to the login items

    remove anything you don't have "here highlighting by clicking on the" sur le «» icone "icon"

    Reach

    Macintosh HD/library/StatupItems

    delete everything you don't want by dragging it there.

    You can download etrecheck for a more in-depth analysis of your system and display the results here

    www.etrecheck.com

    This will allow the volunteers here to get a better idea of what is installed on your computer, if you have detected malware and it detects, it can remove, if not you can check and remove the malware more experienced with this tool.

    https://www.Malwarebytes.org

    Although no single method can never be100% effective, both of these tools are free for mac and volunteers often suggest to use them for these types of questions and many others.

  • Structure of the event in primary vi and sub - VI with queues

    Hi all

    I have an application that uses the architecture of producer-consumer in which a queue transmits messages of a main VI by a Subvi, in response to the events of the user in the front panel. Inside the Sub VI, the queue is removed and treaty based on the corresponding message, and the result is displayed on the façade the sub of VI. User events are captured in the main VI using a Structure of the event. This works as expected.

    However, I also the controls on the Panel before the sub - VI to change the queue. My approach is to have another structure of the event in the VI sub for this. However, while the events in the main work of fine VI, events of sub - VI never treated.

    A simplified sandbox VI of what I'm trying to do is attached. As you can see, the main VI events are triggered as expected, but events in the sub VI are never triggered.

    I watched this white paper: detect an event in a Subvi from a high level VI , but it's not exactly what I'm trying to do. Instead, I'm just trying to detect an event generated within the Subvi. I searched this forum and found some research related, but none of them seemed to answer what I'm trying to do.

    Thank you

    Matt

    Your major issue here is the loop location.  While the structure should be inside the Subvi to make a message in the appropriate queue manager.  In fact, you should have 2 loops within your Subvi: 1) the QMH and (2) of the event loop.  You must use a user event to congratulate the event loop in the Subvi to stop.  You should NOT use the time-out of the Structure of the event unless you absolutely must.  And since everything in the Subvi is the message function, you do not have expectations.  They will be inactive (no CPU using) when there are no items to process from the queue or queue.

  • asynchronuous functions do not work in a c# used by CVI application dll

    Hello

    I have an application written with CVI 9.0.1, who must interact with a dll c# 2010 (which has no window) through a CVI<->wrapper .net (created with the controller of the CVI useful .net).

    This c# dll uses the functions asynchronuous, as NetworkStream.BeginRead () and EndRead() of an object of System.Net.Sockets.TcpClient for example.

    These asynchronuous functions work very well when the c# dll is used by a c# application (with a main window) or the c# dll is converted into a stand-alone c# program (having a window with buttons, call its methods, just to try), but asynchronuous functions do not work when my c# dll is called by my CVI application (which is my goal) : execution remains inside the NetworkStream.BeginRead () for example (for the concerned thread).

    NetworkStream.BeginRead () can be bypassed successfully by using the function alternator NetworkStream.Read () instead, but the c# dll uses any other asynchronuous functions which have no associated alternator function.

    Here's some c# code (I don't have the source code of the Snmp object; got_trap() method is never called when asynchonuous calls do not work):

    public void run() / / wire

    {

    SNMP snmp = null;

    Try

    {

    SNMP = new Snmp (true);

    SNMP. NotifyListenPort = 162;

    SNMP. NotifyRegister (null, null, new NotifyCallback (got_trap), CB_DATA_);

    isActive = true;

    Timeout.Infinite;

    }

    ...

    }

    Thinking it might be a problem with the window messages that could not be processed (in the c# dll), I tried to replace the Timeout.Infinite statement in the code where the management of asynchronuous are held, by a creation of window over my loop of messages in Win32 window, but asynchronuous functions do not work better (while my loop seems to process messages successfully) :

    Form myForm = new Form(); an empty window

    myForm.Show ();

    int bRet;

    MSG msg = new MSG();

    While ((bRet = GetMessage (out msg, IntPtr.Zero, 0, 0))! = 0)

    {

    If (bRet == - 1).

    {

    handle the error and possibly out

    }

    on the other

    {

    Switch (msg.message)

    {

    default: / / everything else

    TranslateMessage (Ref msg);

    DispatchMessage (Ref msg);

    break;

    }

    }

    }

    Any idea?

    Thank you

    rvfr.

    Solved: in fact, the Assembly of snmp I used just need to be registered dotNet.

    rvfr.

  • Vista update error prevents the Windows startup

    Hello
    I had a very similar breakdown on windows vista update
    I get! 0xc0190036! 4998/93973 (dwup.inf)

    I tried suggestions Microsoft all the in http://support.microsoft.com/kb/975430

    When I try Method 1 never complete the restore, just gets stuck on finalize it for a long time

    method 2 does nothing to help.

    method 3: when I try to rename dwup.inf in the command prompt, it says it can't find the file!

    Help.
    need to return my Vista PC. very frustrated

    Hello

    Maybe these can help if you can get Safe Mode or use a disc of Vista (if you do not borrow)
    a friend of as they are not protected against copying).

    I guess that part of the question could be a driver which is really old or similar should not be loaded.

    This exit Windows updates on (after you have access) and stop the updates of the driver to load.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ---------------------------------------------------

    You can use the solutions in this KB - 3 methods and I listed a little help for them below

    The update is not installed successfully, you receive a message, and the computer restarts when you try to
    install an update in Windows Vista
    http://support.Microsoft.com/kb/949358

    Method 1: Start Windows Vista with the Windows installation media and use the repair feature

    How to do a startup repair in Vista
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    You can also do a safe mode startup repair to access the Recovery Options If you have them available
    or use the DVD as described above.

    This tells you how to access the System Recovery Options
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    Try recovery options Startup Repair

    How to do a startup repair
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    Method 2: Start the system in safe mode and then use the system restore feature

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

    You can also do a restore of the system of starting with a Vista disk.

    Method 3: Rename the Pending.xml file, and then change the registry (this method is part of the advanced troubleshooting)

    See article below for that.

    You can use this method on the updates that have this problem.
    http://support.Microsoft.com/kb/949358

    Hide the update (click right - HIDE in the updates of Windows) and go to the Microsoft Download Center to download
    and install it.

    Microsoft Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    ------------------------------------------------------

    Once you are in Windows I was running once again reset here as a precaution.

    How to reset the Windows Update components?
    http://support.Microsoft.com/kb/971058

    -----------------------------------------------------
    Try the Startup Repair tool-

    This tells you how to access the System Recovery Options and/or with a Vista disk
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    Try recovery options Startup Repair

    How to do a startup repair
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    -----------------------------------------------------
    If necessary:

    You can try an In-Place Upgrade (hopefully save programs and data) or a repair installation (if all goes well
    saves the data, and you need to reinstall the programs). Be sure to do a good backup or three.

    You can use another DVD that are not protected but you will need to copy you have the product key.

    On-site upgrade
    http://vistasupport.MVPs.org/repair_a_vista_installation_using_the_upgrade_option_of_the_vista_dvd.htm

    If nothing works, you can make a repair facility that must save the data but you will need to
    Reinstall the programs. This also requires correct Vista disks especially for OEM versions. You will be
    need to know your product Code.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    How to perform a repair for Vista Installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    Hope this helps sort it out for you.

    Rob - bicycle - Mark Twain said it is good.

  • providerStateChanged... again

    Never get called the providerStateChanged method?

    I've disabled GPS and disabled location caregiver.

    Still my app still does not call the method in the class that implements LocationListener.

    Thanks for the suggestion. That will keep in reserve, don't really like to do workaround when it appears something like cut and dry that the method is never executed. I would like to use the providerStateChanged method as it was designed/intended.

    Are you aware of what is a bug or I use it wrong?

    Thank you.

    BUG - see thread http://supportforums.blackberry.com/t5/Java-Development/locationProvider-getLocation-re-creating/m-p...

    Created the: March 25, 10 15:55 updated: 22 Apr 10 15:33
    Return the search of
    Number 1 of 2 issue (s)
  • TextField, submitted using c ++ does not

    Hi all

    I am trying to connect to the TextInputProperties::submitted(bb::cascades::AbstractTextControl*) signal, but in fact it does not. This is my code:

    TextField *inputField = uiPage->findChild("damageInput");
        QObject::connect(inputField->input(),
                SIGNAL(submitted(bb::cascades::AbstractTextControl*)),
                this,
                SLOT(onSubmitted(bb::cascades::AbstractTextControl*)));
        inputField->input()->setKeyLayout(KeyLayout::Number);
    

    I see no error on the console. In any case my events onSubmitted method is never called, even if it is declared as a crack:

    public slots:
        void addClicked();
        void subtractClicked();
        void onDialogFinished(bb::system::SystemUiResult::Type );
        void onSubmit(bb::cascades::AbstractTextControl *);
    

    I did something wrong?

    The only mistake I found on the log of the device is that:

    Dec 09 11:10:54.807 com.example.MagicManager.testDev_agicManageref1201b1.237248764... 0 csuifw_error ERROR ClientObject::removeAttributeListener() 15555 - recorded none of these headphones attribute on object

    But I don't know if it is related to my problem. Any idea?

    In theory, it is not strictly necessary,

    I tried to add the name with the same result.

    In any case, I found the problem, whas my fault.

    in fact in the connection, I stated as a crack the onSubmitted method events:

    QObject::connect(inputField->input(),
                SIGNAL(submitted(bb::cascades::AbstractTextControl*)),
                this,
                SLOT(onSubmitted(bb::cascades::AbstractTextControl*)));
    

    But the crack in the class's onSubmit:

    void onSubmit(bb::cascades::AbstractTextControl *submitter);
    

    Then, to fix this problem, solved the problem. Unfortunately this kind of errors is not recognized by the compiler.

Maybe you are looking for