Send the log file only works on Simulator

Hello together,

I added the ability for our users to send a log file of the application for me (author). Its a business application. We have now deployed version and now the log file is NOT attached to the email.

The code I am using:

void ApplicationUI::sendLogfile()
{
    InvokeRequest request;
    request.setAction("bb.action.COMPOSE");
    request.setMimeType("message/rfc822");
    QVariantMap data;
    data["to"] = (QVariantList() << "[email protected]" << "[email protected]");
    data["subject"] = "ceAuToApp Logdatei";
    QString fileName = QString("log.txt.%1").arg(QDate::currentDate().toString("yyyy-MM-dd"));
    QString filePath = QString("logs/%1").arg(fileName);
    QString logpath = QString("shared/misc/%1").arg(fileName);
    QFile::remove(logpath);
    QFile::copy(filePath,logpath);
    QString logpathEncoded = QString(QUrl(logpath).toEncoded());
    data["attachment"] = (QVariantList() << logpathEncoded);
    QVariantMap moreData;
    moreData["data"] = data;
    bool ok;
    request.setData(bb::PpsObject::encode(moreData, &ok));
    InvokeManager manager;
    manager.invoke(request);
}

QML:

Button {
            text: qsTr("Logdatei an Entwickler senden")
            onClicked: {
                _ApplicationUI.sendLogfile()
            }
            horizontalAlignment: HorizontalAlignment.Center
        }

Any ideas why it works on Simulator as well as on the device (running in developer mode) but not within the company? Thanks for your help.

Sven

He got together with the following code:

void ApplicationUI::sendLogfile()
{
    InvokeRequest request;
    request.setAction("bb.action.COMPOSE");
    request.setMimeType("message/rfc822");
    QVariantMap data;
    data["to"] = (QVariantList() << "[email protected]" << "[email protected]");
    data["subject"] = "ceAuToApp Logdatei";
    QString fileName = QString("log.txt.%1").arg(QDate::currentDate().toString("yyyy-MM-dd"));
    QString filePath = QDir::currentPath() + QDir::separator() + QString("logs/%1").arg(fileName);
    QString logpath = QDir::currentPath() + QDir::separator() + QString("shared/misc/%1").arg(fileName);
    QFile::remove(logpath);
    QFile::copy(filePath,logpath);
    QString logpathEncoded = QString(QUrl(logpath).toEncoded());
    data["attachment"] = (QVariantList() << logpathEncoded);
    QVariantMap moreData;
    moreData["data"] = data;
    bool ok;
    request.setData(bb::PpsObject::encode(moreData, &ok));
    InvokeManager manager;
    manager.invoke(request);
}

Tags: BlackBerry Developers

Similar Questions

  • How and where should I send the log file in the crash Muse?

    What muse crash - I see the message something like that... muse crash - send the log file for developers. and the ok"" button.

    Hmm... strange - after google search as send muse log - I can't find solutions! I think that I find good plase to shere my question!

    So... Developers - I can send you will break the log files to better muse! Tell me where to send!

    See the answer of Zak in this post on the forum. Let us know if this helped.

    Muse: error 1009: site does not open

    Adobe Muse CC error 1009. Need help!

    Thank you

    Preran

  • The XML file only works in bin-debug

    The XML file is loaded using the URLLoader class.

    It does not load if I have any folder other than the bin-debug folder.

    I found this too related bug:

    Security error with RSS executing outside the bin-debug directory

    http://bugs.Adobe.com/jira/browse/FB-11561

    Anyone know a solution to this?

    And why is it really? Is bin-debug flash security waiver?

    If this isn't your src folder you can add through properties of the project - flex build path source path - add folder.

  • Send the log file of program as an attachment.

    I have problems with RegCure.  They (Paretologic) asked me to send only the file of log (zip files) to them in an email so they can diagnose the problem.  I am able to link all of the RegCure program (which contains zip files), but it is too long to attach it to an email and are not sent.  I found the files without any problems, but can not ONLY join these files to my email.  What do I bring them into my email?  THX

    Hi Kerrimoon,

    1. What is the total size of the files?
    2. what email program are you using?
    3. what happens when you try to attach just the files?
    4. How do you zip files?

    Every e-mail program has its own restrictions on the total size of the file that can be sent as an attachment.

    There are some third-party programs available online that would help you to compress files in more less storage space.
    Use your favorite search engine to search for this program that will help you accomplish this task.

    Important note: this response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there. There are the dangers inherent in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Some Internet service providers also limit the size of both made file transfers.

    I hope this helps!

    Halima S - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • OMB + sending output to the log file (no script)?

    Hello

    When you run the script OMB + below, the syntax rather than the output is sent to the log file.

    I'm a bit of an OMB + newb - is it possible to remove the code and just see the results in the newspaper?  It seems like it should be obvious, but I can't get out.

    Any help gratefully received!

    Thank you

    Charlie

    Set OMBLOG C:/DOCUME~1/User1/Desktop/OWB11/OMBSCR~1/get_deployable.log

    OMBCC "DWH_DEVELOPMENT".

    the value of mods [OMBLIST ORACLE_MODULES]

    foreach $mods {} mod

    OMBCC ' / DWH_DEVELOPMENT / $mod.

    define tabs [OMBLIST TABLES]

    foreach $tabs {} tab

    puts "$mod $tab [OMBRETRIEVE TABLE '$tab' (DEPLOYABLE) GET PROPERTIES]"

    }

    }

    OMBCC ' / '.

    OMBCC "DWH_DEVELOPMENT".

    the value of mods [OMBLIST ORACLE_MODULES]

    foreach $mods {} mod

    OMBCC ' / DWH_DEVELOPMENT / $mod.

    define tabs [OMBLIST VIEWS]

    foreach $tabs {} tab

    puts "$mod $tab [PROPERTIES of OMBRETRIEVE VIEW '$tab' (DEPLOYABLE) GET]."

    }

    }

    OMBDISCONNECT

    Hello

    I don't know if I understand what you want to achieve. If by just seeing the results in the paper mean you saw that puts the output of the order, you can use another file to write the output (I wouldn't leave out the OMBLOG file, it can be handy when you are trying to debug an error). You can use this piece of code:

    Set p_logfile "C:\\my directory\\my file.log.

    Set v_usefile [open "$p_logfile" +]

    puts $v_usefile 'your message '.

    close $v_usefile

    I like to use double quotas in case the file has spaces in its path or name, if there is no space, quotas are not necessary. You can bring order to open at the beginning of your script and the file close to the end, although if your script fails, you will need a new log file, because the one you were using will get blocked until you restart your computer. For complex scripts, I have a procedure that I give the word to write my messages in a file that I keep in a global variable, this procedure opens the file, write the message, and then closes the file. Once get you it working, you don't get the locked log file because the script that you run fails.

    Concerning

    Ana GH

  • Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    After hitting my head against the desk to repeatedly create packages, try on different computers I have finally found a solution.

    These packages have been copied on an external drive, if I try and install from the external drive, which is a common practice, it fails.

    If I then copy this file pkg from the outside, to the computer I install, then run it, it will to and moved very well.

    That is mind-boggling stupid, because it's rare that you have to copy the file into any computer, it is less always installed off the coast of externally, and many people in the company are pushing on the network and the management of the suites so there is a serious problem in Adobe package manager if this is the case where it cannot manage the Middle installed offshore.

    I hope that if anyone else is having problems so it suits.

  • MainStage 3 - sends the Midi file

    Hello.

    Someone at - it service send a Midi file in MainStage 3 to work?

    The synth gets midi when I play the midi keyboard.

    I tried to press the play button in MainStage before changing the patch that is supposed to send the midi file.

    I tried to download various midi files.

    I know I'm getting a midi SMF of the file, but don't know where to check if they are of type 0 or 1.

    The manual States the following:

    Send a MIDI file using an external instrument

    1. In the external Instrument channel strip Inspector, click the output tab MIDI.
    2. Check send a MIDI file, and then click the Select button.
    3. Choose the location of the MIDI file you want to add, select the file, and then click the file Send.The MIDI is sent immediately to the port selected on the external instrument Channel Strip. The MIDI file is returned when you change patches, just as the other options of the Inspector of channel strip (such as program change messages or the MIDI clock).

    Only types SMF (standard MIDI file) 0 and 1 are supported. MIDI files are sent in the order, the institution after another, per concert. If you pass quickly through several patches which send long queues of MIDI, MIDI files are queued and sent in succession. MIDI messages are sent to the tempo stored in the MIDI file.

    It is a complicated issue, but I solved with a workaround.  My file "noon" is a set of commands for controlling an external light strip (DMXIS) in sync with a backing track.   The native functionality of MainStage has not worked for me.  The solution was a plugin called thingy by plug.   The plug-in includes a large number of configurable widgets, including in particular a "midi file player."  This widget can be set up in the contraption that runs in the Instrument channel strip plug-in.   The configuration is complicated, but I can walk you through it, if you are interested.   The software thingy is about $ 100, but there is a period long demo if you want to try it.

    I would like to know if you want help setting up; the plugin task processor and memory, especially if you plan to run multiple instances.   But it works.

    David

  • Is it possible to choose Import in the DNG file only?

    I couldn't get any support or contact information, so I try to get an answer to my question, as follows, from here.

    Is it possible to choose Import in the DNG file only?

    I like to keep the disk space and the ability to remove unwanted jpg copies is unnecessary work for me a lot of your time.

    Then nobody knows where to send the program errors or suggestions for improvement?

    Thanks in advance

    You can also make sure that you don't have the following "Processing JPEG files" option to raw as separate photos selected. See the screen capture.

  • How to resize the log files pending? or it is synchronized from primary?

    I changed the size of the log file primary db to 50 m to 200 m.

    I wonder if I should do it on the backup site?

    I tried, and it doesn't seem to work on the backup site:

    SQL > select group # thread #, status, bytes/1024/1024 of the journal of v$.

    GROUP # THREAD # STATUS BYTES/1024/1024
    ---------- ---------- ---------------- ---------------
    1 1 50 COMPENSATION
    2 1 50 COMPENSATION
    3 2 COMPENSATION 50
    4 2 50 CURRENT
    5 1 COMPENSATION 50
    6 2 COMPENSATION 50
    15 1 200 UNUSED
    16 1 200 UNUSED
    17 2 200 UNUSED
    18 2 200 UNUSED

    10 selected lines.

    SQL > alter database drop logfile Group 1;
    change the database drop 1 log file group
    *
    ERROR on line 1:
    ORA-01624: log 1 necessary for instance REMEPRDS1 (1 wire) crash recovery
    ORA-00312: thread 1 1 online journal:
    "+ DAT/prds/onlinelog/group_1.961.793523169".
    ORA-00312: thread 1 1 online journal:
    "+ FRA/prds/onlinelog/group_1.5605.793523169".


    SQL > alter system switch logfile;
    alter system switch logfile
    *
    ERROR on line 1:
    ORA-16000: database opened for read-only access


    SQL > alter system switch logfile;
    alter system switch logfile
    *
    ERROR on line 1:
    ORA-16000: database opened for read-only access


    SQL > /.
    alter system switch logfile
    *
    ERROR on line 1:
    ORA-16000: database opened for read-only access


    SQL > alter database drop logfile Group 1;
    change the database drop 1 log file group
    *
    ERROR on line 1:
    ORA-01624: log 1 necessary for instance PRDS1 (1 wire) crash recovery
    ORA-00312: thread 1 1 online journal:
    "+ DAT/prds/onlinelog/group_1.961.793523169".
    ORA-00312: thread 1 1 online journal:
    "+ FRA/prds/onlinelog/group_1.5605.793523169".


    SQL >

    Please help me out here.

    Thank you

    Hello

    Even if you add standby or online redo log files or even if you resize down and re-create redo log files, they will not be created on the standby database. It is instance specific.

    Let all the restore, the MRP will cancel out.
    And then let fall, add standby redo log files, I think that you need to the MANUAL upgrade standby_file_management before adding new files of newspapers waiting for redo. And do not forget to undo file management the AUTO value again after the execution of the changes.

    And you train to make the journal command pending, it applies only on the primaries because the log command can only be performed on the database that uses online redo log files. Even if you open databases Eve with recovery that no recovery will be generated as a result no switch journal is allowed too.

  • R12 rapidwiz error on node2 - AC-00002: error: unable to create the log file

    Over multiple node R12 on Enterprise Linux 4 installation fees. below error is encountered on node2

    AC-00002: error: unable to create the log file
    The installation was successful on the database node and the main node of the Application. On the primary Application node only ' lot

    Treatment services are enabled.

    However, when installing on the application additional node the rapidwiz is errors

    "AC-00002: error: unable to create the log file - $INST_TOP/$CONTEXT_NAME/logs/12202114.log.
    Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: AC-00002: unable to create the log file.
    $INST_TOP/$CONTEXT_NAME/logs/12202114.log

    I tried to install several times but every time it failed with the same message

    I think that the reason for the failure:

    I am writing on a mounted NFS on Node2. If I access a NFS mount from one server other than of its origin, the root of the application server user is considered person not the user.
    I checked this by pressing a file being logged in as root:

    -rw - r - r - 1 person person 0 20 Dec 10:59 abc

    I mounted node2 successfully using
    Mount-t nfs nas1: / erparch /erparch

    Rapidwiz version is 12.0.0.20

    What are the steps to take in order to proceed with the installation on the second node.

    user10126380 wrote:
    I think that the reason for the failure:

    I am writing on a mounted NFS on Node2. If I access a NFS mount from one server other than of its origin, the root of the application server user is considered person not the user.
    I checked this by pressing a file being logged in as root:

    -rw - r - r - 1 person person 0 20 Dec 10:59 abc

    I think you've correctly identified the source of your problem. By default, the NFS mounts are usually created with the 'root_squash' option, where the user root on a remote system creates its files as the anonymous user ('nobody' in most cases) on the exported NFS volume. It is usually a good practical security; However, in your case, you need to export the NFS volume with no_root_squash to allow the user root on Node2 to create files as expected when you run RapidWiz. Once installation is complete, you should be able to go back to using the default root_squash option, as the following files in the filesystem level of demand will be created by non-root users.

    Your system administrators may not be happy with the idea of an export of no_root_squash, and I wouldn't blame them. :-) If there is dispute, make sure that they understand that it is only for the duration of the installation of the EBS, and she can (and should) be powered once the installation is complete and verified to work.

    These two articles offer a brief explanation of the purpose and value of the NFS mount root_squash/no_root_squash export options.

    Kind regards

    John P.
    http://only4left.jpiwowar.com

    Published by: jpiwowar on December 21, 2009 21:38

  • TT0779: transaction must restore because the log file is full

    Hello!

    We had a strange problem. We use TT in cacahe to connect oracle, and we have a few cache groups, who are using time based aging. Insert us records into them, and 'old' records are unloaded by aging. Once timesten began recording messages like this every second (the system was working well before that):

    07:28:48.51 Err: 233506: subd: regular aging failed, error TT0779: query refused; transaction must restore because the log file system is full - file 'dbAPI.c', lineno 10103, procedure 'sb_dbAging '.

    The error is not only associated with aging, some other 'data management' operations also fail with errors like that.

    All files from TT (TT logs, transaction logs, etc.) are located on a file system that has 40 GB of free disk space (and no file systems are filled on the machine).

    TTversion:
    TimesTen release 7.0.5.0.0 (64-bit Aix) (appdbtt:17001) 2008-04 - 04 T 00: 39:00Z
    Admin of the Forum: timesten
    Instance home directory: / oracle/product/TimesTen/appdbtt
    Base directory of demon: / oracle/product/ttDaemon
    Active access control.

    Any help is appreciated thanks in advance :).

    This isn't really a good way to stop it. This stops the demon main instance of TT, even if there are data stores active. It's a bit like making a kill-9 on some of the main processes of Oracle DB! That's why you got the files .trace and .inval.

    For closed properly and one individual data store need you:

    1. ensure that any application accessing the data store process disconnected (tTStatus should show no connection of the application).

    2. stop the replication or cache if used agents.

    3. If you use the ramPolicy defaul setting (inUse) the data store will now offload the memory. If you use ramPolicy 'manual', issue the command ttAdmin of ramUnload to unload the data store. If you use the strategy "always." change the policy manual and unload the previously mentioned such data store.

    If you want to stop the main demon then you need to repeat steps 1 to 3 for each data store in the instance before stopping the main demon.

    Since we don't know what the problem is that it is very difficult to tell if the upgrade to 11.2.1.3.0 will fix it. I suspect that it is unlikely to do. Your license allows probably to this upgrade if you have a valid active support contract (but best to check) but noted that the upgrade from 7.0 to 11g is not a commonplace patch because there has been a lot of changes in 11g compared to 7.0. You must carefully plan the upgrade and thorough testing, and you may need to make changes in demand and or DBA procedural changes too.

    Chris

    Chris

  • imageFORMULA CR-180 check the log file to scan

    Hello

    I work with an imageFORMULA CR-180 check Scanner and when executing a good amount (longer than 100) of the controls, I noticed that the scan control stops and a pop-up window appears on the Analysis ToolPak asked if I would like to replace my log file and start over.

    The software that I use is called "Utility scan for CR-180II" and the log file contains the information of MICR line controls scanned, as well as the date of the analysis, and the location of the file to the images captured from the parser.

    Log file options under "Options-> MICR data parameters.

    What I do, it is by clicking on ' no, I want to overwirte the file ", stop the scan, moving the log of the 'old' file, restart the scanning and backup to a new log file.

    Is there anyway to work around this problem and record continuously in the same log file?

    Is there a memory limit on the scanner?

    This is the Web page of the scanner that I use:

    http://www.USA.Canon.com/Cusa/support/Office/imageformula_scanners/imageformula_cr_180_cr_180ii/imag...

    Hi lendjones!

    Thanks for posting in the Forum! Canon does not provide direct support for imageFORMULA product series, but your dealer will be able to help you! If you do not have a reseller, please call us at 1-800-OKCANON (652-2666) and we will be happy to provide you with dealers who are in your area.

  • Where the log file is located (Win Vista) for the actions of OTHER USERS have taken to using the boxes in user account control?

    Where the log file is located (Win Vista) for the actions of OTHER USERS have taken to using the boxes in user account control?

    I use the version of Vista Home Premium.

    While I don't really like how the UAC area enters the information that tells it when to display the box tell me about your work of things on the UAC (I know an article exist on the web), is not how to answer this question.

    There is no log of UAC elevation file.

  • I get the following error messages at startup: Windows Sidebar Settings.ini. is used by another system. Recorder warning: recorder! Initialize is not yet call... The log file can corruption exp. application failure did not start.

    Original title: opening of the pop ups

    I have Vista Home version.  When I connect, I get the pop - ups following:

    1.) _Windows sidebar Settings.ini. is used by another system.

    Recorder 2.) WARNING: Logger! Initialize is not yet call... The log file can corruption exp.

    3.) down the application did not start.

    Also: while I'm on the internet a pop - up occurs from time to time indicating: "Internet Explorer has stopped working".  Sometimes I get started, and sometimes I can just 'X' out and I'm always on.

    Hello

    1 how long have you been faced with this problem?
    2 did you recent hardware or software changes to your computer before this problem?

    I suggest you try the procedure below.

    Step 1: Try to perform the clean boot in order to solve startup error messages.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Follow the steps provide in the article below to perform the clean boot. http://support.Microsoft.com/kb/929135

    Step 2: I suggest you try the steps outlined in the article below to solve the problem of internet Explorer.
    http://support.Microsoft.com/kb/936213

    Thanks and greetings
    Umesh P - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • Transaction is written to the log file and it is not written to undo tablespace. During a failure of the system how oracle rolls back the transaction.

    Hi all

    My question is:

    Transaction is written to the log file and it is not written to undo tablespace.

    During a failure of the system how oracle rolls back the transaction.

    I have already provided the answer, you ignored if well (you seem to only read the responses by people of your country).

    Redo log is always written * first * before * writing to the data block (redo log writing is much more aggressive). So it DOESN 'T MATTER if you lose these scriptures of rollback segment.

    Valuation: rear roller followed by roll forward, using redo log files and/or archive redo log files.

    Sybrand Bakker

    Senior Oracle DBA

Maybe you are looking for

  • Satellite A30: BIOS password persists after removing

    Hi all I am using a Satellite A30, I set this password on the Bios "youandme" so after I decided to remove this password, I delete it properly, but after restard the laptop, the bios ask for the password, what can I do? Thank you for your support.Ome

  • extraction of data to CSV format

    Ladies and gentlemen- I'm looking to extract an array of real values in a csv format string. The number of values is arbitrary. I'm apparently missing his shot to the top of the string formatting in the function "channel Scan". If anyone could offer

  • DXDIAG and computer management information

    Hello I have a Server 64 bit with a unix with Windows 2003 EE 64-bit server CPU. The most funny thing is: management of the computer - a tool of MS: I see it's Intel Xeon processor x 5520 8XCPU Dxdiag: I see the same reports: 8 CPUS with Intel CPU 2.

  • KB2572078 will not install in Vista SP 2

    Last updated to Vista Service Pack 2 included KB2572078 and installation fails after several times.  On Vista and the two units do not install this update

  • Is there a "Film" equivalent display in windows 7 because it was in XP?

    I have recently updated from windows XP to 7 and now I realize it is not a very practical function like viewing film from XP to 7. I know there are people talking about the preview pane and all that, but this feature does not allow the fast rotation