Error display (from different threads)

Hello

I have a program that downloads an xml file.

An error is encountered when I by specifying a non-existent URL in the Http connector (in order to produce an error).  I want to display the error on a pop-up message, however, the Simulator gives me an error when I try to view the message.

My code looks like this (short form):

1.  A Button Pressed
2.  Connection thread executed

...

private class Search extends Thread {
  public Search() {
    super();
  }

  public void run() {

     try {
     ...
     code for downloading and parsing file -- works just fine
     ...
     } catch (Exception e) {
String error = e.toString();
System.out.println(e.toString());

//remove the currently displayed "Please wait..." PopupScreen
synchronized (UiApplication.getEventLock()) {
UiApplication.getUiApplication().popScreen(
UiApplication.getUiApplication().getActiveScreen());
                }

//display a new screen with the error               UiApplication.getUiApplication().pushScreen( new WaitScreen(error));
}

An error is thrown in the last line "UiApplication.getUiApplication () .pushScreen (new WaitScreen (error));'.  I know this because when the line is removed, the program works fine (except for the fact that the file is not downloaded).

When the URL does exist, there is no problem - the file is downloaded and the program does what I want it to do.  So, the problem is when I try to view a popup that says details about the error.

Someone has any ideas why this might be the case?

Thank you!

UiApplication.getUiApplication().invokeLater(new Runnable()
   public void run() {

Status.show(error, 2000);
               }
});

Found a solution to my problem:

I was not correctly process the son.

Tags: BlackBerry Developers

Similar Questions

  • ERROR, called from the thread NON-INTERFACE QThread

    I am trying to load an image using QtConcurrent:map at the same time and I received this error.

    WARNING: ApplicationPrivate::context: ERROR called NON-INTERFACE QThread thread (0xf9ff68, name = "thread (pooled)" ")
    Fatal: ApplicationPrivate::context: method called from the UI thread

    I simplified the code as follows:

    imagescaler::queuescaling{
    ..    mimageScaling = new QFutureWatcher(this);
    mimageScaling->setFuture(QtConcurrent::mapped(mImageList, scaledImage));
    ..
    }
    
    Image scaledImage(QString file_name) {
       QImage qImage;
       bb::ImageData imageData(bb::PixelFormat::RGBA_Premultiplied, qImage.width(),
      qImage.height());  // causes error
      return imageData;
    }
    

    Anyone know what the problem is or how to work around?

    Thanks for point out the bb:ImageData.  Never noticed the incompatibility.  Image converts ImageData to initialization, so it does not create an error.  However, if I return an ImageData rather than the Image it does not crash.  I then simply convert ImageData of Image in the UI thread and it works very well.

    I'm curious to know why I can return a blank image and I can return an imageData, but I can't go back an Image that's been converted from ImageData.  Do not understand what can or cannot be done outside the UI thread.

  • method accewwing from another thread causes some 'bad object type' error with c# VS2008

    I'm snapping a picture to a main Viewer, draw a rectangle around an alignment and extract the part of the image to a different viewer for further processing. I tried everthing and all was good until I started to build a Wizard for the operator through the process of the market and do things automatically. If I have access to this method of the mainform thread, everything works fine. If I access it from the thread of substantive assistants work it fails and gives the error "you have provided the wrong type of object to the function. Spend a CWIMAQRectangle instead. »

    public int ExtractToGP1()

    {

    CWIMAQLearnPatternOptions LearnOptions = new CWIMAQLearnPatternOptions();
    CWIMAQRectangle RoiRectangle = new CWIMAQRectangle();

    int Count, result;

    Extract the region corresponding to the model selected in the main Viewer

    Result = axCWMachineVision1.GetSelectedRectangleFromViewer (axCWIMAQViewer1.GetCWIMAQViewer (), RoiRectangle, true, 1); //<--error>

    Result = axCWIMAQVision1.Extract2 (axCWIMAQViewer1.Image, axCWIMAQViewer5.Image, RoiRectangle, 0, 0);

    I tried to use:

    axCWMachineVision1.Invoke (delegate (MethodInvoker)

    {Result = axCWMachineVision1.GetSelectedRectangleFromViewer (axCWIMAQViewer1.GetCWIMAQViewer (), RoiRectangle, true, 1) ;})} ;

    axCWMachineVision1.Invoke (delegate (MethodInvoker)

    {Result = axCWIMAQVision1.Extract2 (axCWIMAQViewer1.Image, axCWIMAQViewer5.Image, RoiRectangle, 0, 0) ;})} ;

    but this only works if the method is called by the main thread.

    Resolved to myself. Not really a problem of OR.

    I moved

    CWIMAQLearnPatternOptions LearnOptions = new CWIMAQLearnPatternOptions();

    CWIMAQRectangle RoiRectangle = new CWIMAQRectangle();

    for my vision instead of having it in the method class, which is in the mainform class

    Then use Vision.RoiRectangle vs RoiRectangle and Vision.LearnOptions vs LearnOptions.

  • Report Generation Toolkit, production of the 2147417842 error, "The application called an interface that was marshalled for a different thread."

    Hello world

    I have an application that stores data in an Excel worksheet by using the report generation tool.  My VI have worked well in the past using Excel XP, but since I have upgraded to Excel 2007, I get COM errors like this:

    "2147417842 error occurred while the application called an interface that was marshalled for a different thread. in Excel_Insert_Text.vi', this is the exact wording, even with the odd punctuation and capitalization.

    The first occurrence of the error is not determined.  Sometimes, to the record 10 sessions, involving a new .xls file, may occur before this error.  Once this error occurs, I must leave LabVIEW to solve.  If I try to do something with Excel, I still get this error, even if sometimes it comes out different source Excel_Open.VI is another.

    These screw logging worked fine until upgrading to Excel 2007.  I checked and I have been using a very old version of the report generation tool, v1.0.1.  I read the documentation and had a big sigh of relief when I realized that I needed to upgrade to v1.1.2 for Excel 2007 help.  However, even after the upgrade, I still get the same errors.  I'm using LabVIEW 8.0.1 and I also build these screws in an application.   The error occurs in the application built both in the IDE of LabVIEW.  Anyone out there have any idea what I can do to fix this?  I google a bit and discovered it is a COM error, but I can't find any reference to the report generation tool specifically.

    Thank you

    Phil

    I think that suits him!

    Here's what I did: I left privileged execution environment level upper VI as "as the appellant.  I tried the "user interface" configuration, but it seemed to slow down considerably the program.

    Then, I found each sub - VI, calling the report generation tool and define the environment for running favorite "user interface".  All the errors went away, and the program is much happier now.

    Big assumption on what a Christian, thank you!

  • How to display the error messages from sql/pls call

    Hello

    How can I display error messages from pl/sql calls on application pages?

    Current situation:

    If I specify "Error message" in the process - well, that's what I'm going to get on the page.

    What I want:

    I would like to have the specified aka "user friendly" message with the actual pl/sql routine. so it helps me to understand where the error occurred.

    Hi AZZ.

    AZZ says:

    How can I display error messages from pl/sql calls on application pages?

    Current situation:

    If I specify "Error message" in the process - well, that's what I'm going to get on the page.

    What I want:

    I would like to have the specified aka "user friendly" message with the actual pl/sql routine. so it helps me to understand where the error occurred.

    Yes, agree with orpheus4192. Use the APEX_ERROR. ADD_ERROR API.

    Reference:

    Kind regards

    Kiran

  • Control the execution of different threads in TestStand

    Hi all

    I'm trying to control multiple threads in a sequence file.  I have if I'd be able to use the following

    ThisContext.Thread.Execution and then terminate / break / etc as you wish.

    I'm starting a new sequence threaded in the process configuration.  I want to close the original sequence and then displays a message that the user clicks.

    I have two problems:

    1 ThisContext.Thread.Execution is identical in both threads.  If it should not be different?

    2. everything stops when I complete the thread and not only the sequence called the new thread.  I imagine that this is directly linked to the 1.

    Does anyone know how to close a message from another thread?

    Thank you

    Sean

    Hi Sean

    1.) it is clear. An execution can contain multiple Threads

    but, a thread can belong to just a single run for.

    (2.) in my opinion it is not easy to terminate, if I'm honest do not know if it is really possible!

    If you have to terminate beside a thread I always use a new run rather a thread.

    It seems that Ray has had the same problem

    http://forums.NI.com/T5/NI-TestStand/in-TestStand-how-can-a-stop-a-thread/m-p/54455

    Concerning

    Jürgen

  • How to solve 'error display driver - video playback device does not support playback of protected content?

    This message started on my installation of windows 7 media center with the installation of tuner Cable Digital ati a few months.  I had the computer in my office with no monitor for a while and watched TV through my xbox on my samsung ln52b610.  so I decided to connect to the PC directly to the tv and now get this message saying 'error display driver - video playback device does not support playback of protected content'.  the strange thing is that if I go full screen, then new Media Center, here again, it seems to go away (most of the time).  my video card is a 8500gt nvidia with hdmi output and I tried the latest driver from them and still no worky.

    Take a look at the support links that can help solve your problem.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-TV/protected-content-error-after-a-few-seconds-of/da074c94-e741-E011-9767-d8d385dcbb12

    http://social.technet.Microsoft.com/forums/BG-BG/w7itpromedia/thread/3eea4165-8e37-42b7-A396-62663cc516a7

    If no go, Greenbutton forum would be place to post the question: http://thegreenbutton.com/forums/

  • concurrent writes to a logfile from multiple threads (Java 7)?

    Hello everyone

    I have a multi-threaded Java 7 (jar file) program that uses JDBC to perform work (he uses a fixed pool of threads).

    The program works very well and it records things that it moves the console command shell window (System.out.printf ()) starting from multiple concurrent threads.

    In addition to the release of the console, I also need to add the capability of this program write in a single flat ASCII text file journal - starting from multiple threads.

    The output volume is low, the file will be relatively low because it is not a data file, a log file.

    Can you please suggest a relatively simple and good to achieve design/approach using Java 7 features (I have not yet Java 8)?

    The code examples would also be appreciated.

    Thank you very much

    I have a multi-threaded Java 7 (jar file) program that uses JDBC to perform work (he uses a fixed pool of threads).

    The program works very well and it records things that it moves the console command shell window (System.out.printf ()) starting from multiple concurrent threads.

    In addition to the release of the console, I also need to add the capability of this program write in a single flat ASCII text file journal - starting from multiple threads.

    The output volume is low, the file will be relatively low because it is not a data file, a log file.

    Can you please suggest a relatively simple and good to achieve design/approach using Java 7 features (I have not yet Java 8)?

    The code examples would also be appreciated.

    Use a dedicated thread for logging and a queue to source it. See the "queue implementations of the trails in the Java tutorials for the use of queues and the code example that works.

    https://docs.Oracle.com/javase/tutorial/collections/implementations/queue.html

    Java has several classes of queue synchronized you can use if those in this tutorial are not suitable for your use case. Here's just one:

    https://docs.Oracle.com/javase/7/docs/API/Java/util/concurrent/ConcurrentLinkedQueue.html

    Unlimited thread-safe queue based on linked nodes. This queue orders elements FIFO (first-in-first-out). The head of the queue is this element which remained the longest the queue. The tail of the queue is this element that has been on the queue as quickly as possible. New elements are inserted at the tail of the queue, and get the recovery operations of the queue of the elements at the head of the queue. At ConcurrentLinkedQueue is a good choice when the number of threads will share access to a common collection. Like most other concurrent collection implementations, this class does not allow the use of null elements.

    Using a queue your current code can add recording which is FAST because it is add an instance of the class to a collection rather interact with the file system. And your current code requires NO knowledge of the functioning of the system of newspaper, that it connects or when and where it connects.

    For your use case use you a synchronized queue and edit each of your worker threads to add their log data to the master queue used by the newspaper for the logging thread.

    You shouldn't have multiple threads trying to write directly in the same file.

    The entire point of the modular and multi-processing programming is to BREAK dependencies between modules of code.

    The logging system must be INDEPENDENT of the other code and your current code must NOT have ANY need or knowledge of the file system or OF the specificity of the way where, or when the data is actually stored.

    Your code must run simple and minimal logging by adding its data to a queud. Once the log data was added to the queue and then, as far as your code is concerned, that data has been noted. It should be ONLY module log to determine the LOCATION to save the data, HOW to record data and even WHAT information to log.

    You can add the larger newspapers in the future: newspapers, paper 1) different levels of 2) to a remote server or the database 3 send some events in the log.

    I suggest you create a SIMPLE D.O. (data object) to maintain the log info (attributes like gravity, time/date, type of exception stack, error, etc.). Then create a class of SIMPLE log with several overloaded methods: a method that takes a single parameter, with two, etc. Javas is owner of exception classes have some simple examples of both simple and complex, nested exception handling.

    These methods journal would take care to fill in the NEWSPAPER to DO correctly and then placing the instance of the D.O. to the journal queue. In this way, you can use a parameter of a simple newspaper just pass an error message and the log class method will add a default severity level (which can vary from thread if you want), time (which can range from wire) and other necessary data.

    The goal is to keep the journal interface use you in your existing code as SIMPLE as possible while keeping as independent as possible of the actual logging mechanism.

    The result is a mechanism of simple logging that is versatile and scalable and can then be used for your PROJECTS that require a registration (file, database, e-mail).

    Do not make the mistake to hardcode the mechinism journal in your existing code.

    DO not continue independent, modular architecture that you already use.

  • TypeError: Error #1009 in different chassis

    Hello. I know there are a lot of discussions on this subject, but so far I have not found the answer I was looking for.

    I'm script in an Actionscript 3.0 file, not in the timeline itself.

    I am creating a point and adventure where the player move through different scene by clicking on the environment as a normal point and then click adventure game. I currently have only 2 images.

    I put the different scenes on different chassis where the Reader click the environment to move to this frame. However, when I put Morgoth movieclips and buttons in addEventListener on frame 2, I get:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at Puzzle1copy()

    I ran debug and got this:

    Try to launch and connect to player using the URL D:\Users\kikilalaz\Desktop\New Sem\GameProjectStuff\Puzzle1Copy\Puzzle1copy.swf

    [SWF] D:\Users\kikilalaz\Desktop\New Sem\GameProjectStuff\Puzzle1Copy\Puzzle1copy.swf - 1183598 bytes after decompression

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at Puzzle1copy() [D:\Users\kikilalaz\Desktop\New Sem\GameProjectStuff\Puzzle1Copy\Puzzle1copy.as:18]

    I have read a lot of people, said the instance must be initiated first, until the eventlisteners can run, otherwise she will become zero.

    Currently, I do not know how to fix this and is about to go crazy to try many different methods from different sources.

    This is my code:

    Header 1

    package {}

    import flash.display. *;

    import flash.events. *;

    SerializableAttribute public class Puzzle1copy extends MovieClip

    {

    public void Puzzle1copy() {}

    Frame1 listeners

    btnTrashCan.addEventListener (MouseEvent.CLICK, TrashCom);

    btnRadiator.addEventListener (MouseEvent.CLICK, RadCom);

    btnRatHole.addEventListener (MouseEvent.CLICK, RatCom);

    mcVicMar.addEventListener (MouseEvent.CLICK, VicCom);

    mcWindow.addEventListener (MouseEvent.CLICK, WinCom);

    listeners frame2

    mcDirt.addEventListener (MouseEvent.CLICK, DirtCom);

    btnBack.addEventListener (MouseEvent.CLICK, GoBack1);

    }

    frame1 functions

    function TrashCom(e:MouseEvent) {}

    txtCom1.text = "This is a trashcan.";

    }

    function RadCom(e:MouseEvent) {}

    txtCom1.text = 'This is an old radiator.';

    }

    function RatCom(e:MouseEvent) {}

    txtCom1.text = "a rat hole. I can see rats inside. « ;

    }

    function VicCom(e:MouseEvent) {}

    txtCom1.text = "This must be where his body was found.";

    }

    function WinCom(e:MouseEvent) {}

    txtCom1.text = 'He is too dirty to see anything.';

    }

    functions of frame2

    function DirtCom(e:MouseEvent) {}

    txtCom2.text = "nothing but garbage here.";

    }

    function GoBack1(e:MouseEvent) {}

    gotoAndStop ("BackAlley");

    }

    }

    }

    Thank you very much for the help!

    This is because the button is facing the second image and you cannot apply event for this button the first button.

    You must wait until frame2 is rendered and for this button instance is put into service.

    This code will be like

    package {}

    import flash.display. *;

    import flash.events. *;

    SerializableAttribute public class Puzzle1copy extends MovieClip

    {

    var isSecond:Boolean = false; / / to ensure that this event is apply only once

    public void Puzzle1copy() {}

    Frame1 listeners

    btnTrashCan.addEventListener (MouseEvent.CLICK, TrashCom);

    btnRadiator.addEventListener (MouseEvent.CLICK, RadCom);

    btnRatHole.addEventListener (MouseEvent.CLICK, RatCom);

    mcVicMar.addEventListener (MouseEvent.CLICK, VicCom);

    mcWindow.addEventListener (MouseEvent.CLICK, WinCom);

    this.addEventListener (Event.ENTER_FRAME, onAddToStage) ;// add frame event enter.

    }

    function onAddToStage(e:Event):void

    {

    If (this.currentFrame == 1)

    {

    }

    Else if (this.currentFrame == 2) / / when reach the second image

    {

    If (! isSecond)

    {

    isSecond = true;

    mcDirt.addEventListener (MouseEvent.CLICK, DirtCom);

    btnBack.addEventListener (MouseEvent.CLICK, GoBack1);

    }

    }

    on the other

    {

    this.removeEventListener (Event.ENTER_FRAME, onAddToStage);

    }

    }

    frame1 functions

    function TrashCom(e:MouseEvent) {}

    txtCom1.text = "This is a trashcan.";

    }

    function RadCom(e:MouseEvent) {}

    txtCom1.text = 'This is an old radiator.';

    }

    function RatCom(e:MouseEvent) {}

    txtCom1.text = "a rat hole. I can see rats inside. « ;

    }

    function VicCom(e:MouseEvent) {}

    txtCom1.text = "This must be where his body was found.";

    }

    function WinCom(e:MouseEvent) {}

    txtCom1.text = 'He is too dirty to see anything.';

    }

    functions of frame2

    function DirtCom(e:MouseEvent) {}

    txtCom2.text = "nothing but garbage here.";

    }

    function GoBack1(e:MouseEvent) {}

    gotoAndStop ("BackAlley");

    }

    }

    }

    I hope this will help u.

  • Why messages from different senders 2 would get handsets? How do separate you? Thank you

    Why messages from different senders 2 would get handsets? How do separate you?
    Thank you

    No screen turned visible, but I think you have your mail sorted as threaded. That's all mail on a conversation thread is placed together, and the thread open in a tree like the folders pane.

    View (Alt + V) menu > sort by > unthreaded will turn it off.

  • error message from Windows media player C00D0FEA

    What is the error message from windows media player C00D0FEA and how to fix it?

    Hi blaque007,

    (1) when exactly you get this error message?

    (2) since when are you facing this problem?

    Please quote the complete error message you receive.

    C00D0FEA: this error may have been triggered by an error in another program or a component of Windows.

    See the link below

    C00D0FEA

    Method 1: You can check the link below that relates to a similar question

    http://social.answers.Microsoft.com/forums/en-us/vistamedia/thread/1bb18155-1614-4ad6-9e78-90bcd08deb0a

    You can see the link below for more information:

    Solve problems in Windows Media Player

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-in-Windows-Media-Player

    Thanks and greetings

    Ajay K

    Microsoft Answers Support Engineer
    ***************************************************************************
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • EqualLogic GroupManager displays a different number of replicas, 2 outgoing and incoming 1.

    GroupManager displays a different number of replicas, 2 outgoing and incoming 1.  Is this a normal behavior?

    I raise this question to technical assistance from Dell.  They checked with their lab environment and confirmed the same behavior.  There is no functional cause whose status is displayed like this.  Two points, they said:

    (1) the number of the line leaving includes the history of replication.   It will show you an extra line in addition to the number configured in the replica set. (in my case, it's 1 (configured) + 1 (extra), so 2 total)

    (2) the number of the replica by entering the real number of replica set used for the function of data redundancy.

  • "Fatal error: 10 (from resources)" - ESXi 5.5 U1 with motherboard ASUS Z87-DELUXE - VSAN Homelab

    Looking for help to build my 3 node VSAN Home lab.  This section of discussion has a lot of details to help someone else in the same boat as me (present or future).

    The goal:

    Operation of a laboratory at home with ESXi 5.5U1 where the primary storage is VSAN.  Prescription: 3 hosts at least 2 cores and 8 GB of RAM and at least a SSD and a SATA drive for each host.

    The problem:

    When I try to install ESXi 5.5 U1 on my host (ASUS build details below), I get the message "error loading tools.t00 Fatal Error: 10 (from resources)" during the installation process. Installation process is one USB Flash drive to another.

    When I install ESXi U1 5.1 on the same system, everything works perfectly.  Installation process is one USB Flash drive to another.

    Not yet tried ESXi 5.5.

    What I've done so far?  Too much to mention, but here, it's where I made some progress.


    Custom installer images ESXi to take in charge the following (according to the ESXi Z87 - PRO, Adaptec ASR-6805E, 5.1U , experience before VMware: How do not support SATA AHCI Controller with ESXi 5.5 and http://www.derekseaman.com/2013/08/building-haswell-esxi-server-vsan.html):

    Set up the parameters for the 'Advanced' in the BIOS (F7 in option):

    • Reset the default BIOS (option F5)
    • CPU Configuration - advanced, "Technology of virtualization Intel" ENABLED
    • Start-up, CSM, Boot - devices only (UEFI disabled) legacy
    • Startup, SVM, Secure Boot - "other OS".

    What settings BIOS configurations / had no impact/weird behavior?

    • When I plug SATA and SSD controller SATA Intel colors 'Brown' ports, ESXi can't see readers at all, no matter what VIB files, I add to the ISO image.  So, I had only work with yellow ASMedia controller ports.
    • I have disconnected the SATA and SSD drives, disabled the Intel and ASMedia controllers.  This did not help.
    • I disabled the office equipment that has no benefit to ESXi (Advanced, Onboard Devices Configuration) - controllers SATA Intel etc., embedded wireless, Bluetooth, Audio.  This did not help.
    • Thinking that Thunderbolt could be a problem, I tried to disable adapters Thunderbolt (Advanced, Onboard Devices Configuration) and then I had problems with the start-up of the image ISO of ESXi.
    • I even added this http://www.virtuallyghetto.com/2013/09/running-esxi-55-on-apple-mac-mini.html Mac Mini Thunderbolt pilot ESXi ISO image, without success.

    What I intend to do?

    • Upgrade firmware Z87 DELUXE (BIOS update tool does not work, "Violation of security checking" reports, will probably have to install Windows 7 to use the updater tool).
    • Try to install ESXi 5.5, then use AUVS to update 1.
    • Continue to build the whole environment with ESXi 5.1 U1 to burn and continue troubleshooting ESXi 5.5 U1 on a single host.

    What is the hardware configuration of ESXi host?

    • Card mother ASUS Z87-DELUXE-DOUBLE (integrated RealTek & Intel I217V NIC, adapters Thunderbolt, 'Brown' Intel 'Yellow' ASMedia SATA connectors and)
    • Information of Z87-DELUXE-DOUBLE BIOS ASUS 1008 x 64, EC Version MBEO-Z87-0224, ME Version 9.0.21345, Build Date 17/05/2013
    • HASWELL from Intel i7-4770 LGA1150 processor
    • 2 x Corsair Vengeance DDR3 8 GB of RAM
    • 1 x Corsair SSD Force 3 240 GB disc
    • 1 x Western Digitial Green 2 to SATA Drive
    • 2 x Corsair 32 GB USB Flash Drives (one for ESXi ISO image prepared with UNetbootin - homepage and downloads and the other is the ESXi startup disk)
    • No PCI-e adapters (using the integrated storage controllers and network)

    Once I get it working, I'll update this thread and provide a detailed http://www.vcdx133.com/ report

    Upgrade to ESXi 5.1 update 1 for ESXi 5.5 Update 1 via esxcli worked.

    Intel Z87 Serial ATA controller is not recognized by ESXi.  Don't know what driver is missing, but the ASMedia Serial ATA controller works.

  • dbms_crypto - avoid error when using different key in lower environment

    Hello Experts,

    We use Oracle 11.2.0.2. We intend to implement dbms_crypto to encrypt some columns. Clone us the production data at the lower environment (DEV, QC).

    The lowest environments, we do not want to obtain the sensitive data from production and do not plan to use the same key. Instead of getting an error when using different keys, is it possible to get a different set of results.

    In other words, we want the implementation will be same in environments but use a different key in lower environment and obtain different results (or garbage).

    Any suggestions would be greatly appreciated.

    The test of this logic, I get following error when using the different keys to decrypt. It works fine if I use the same key.
    Error on line 1
    ORA-28817: PL/SQL function has returned an error.
    ORA-06512: at "SYS." DBMS_CRYPTO_FFI', line 67
    ORA-06512: at "SYS." DBMS_CRYPTO", line 44
    ORA-06512: at line 19
    DECLARE
      l_credit_card_no    VARCHAR2(19) := '1234 5678 9012 3456';
      l_ccn_raw           RAW(128) := UTL_RAW.cast_to_raw(l_credit_card_no);
     
     l_key               RAW(128) := UTL_RAW.cast_to_raw('abcdefgh');
       l2_key               RAW(128) := UTL_RAW.cast_to_raw('12345678');
    
      l_encrypted_raw     RAW(2048);
      l_decrypted_raw     RAW(2048);
    BEGIN
      DBMS_OUTPUT.put_line('Original  : ' || l_credit_card_no);
    
      l_encrypted_raw := DBMS_CRYPTO.encrypt(src => l_ccn_raw, 
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5, 
                                             key => l_key);
    
      DBMS_OUTPUT.put_line('Encrypted : ' || RAWTOHEX(UTL_RAW.cast_to_raw(l_encrypted_raw)));
    
      l_decrypted_raw := DBMS_CRYPTO.decrypt(src => l_encrypted_raw, 
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5, 
                                             key => l2_key); --**Using different key to decrypt
    
      DBMS_OUTPUT.put_line('Decrypted : ' || UTL_RAW.cast_to_varchar2(l_decrypted_raw));
    END;
    Thank you.

    In general, you can't get different results in different environments, no.

    Of course, you could write your routine to decrypt so that it intercepts it and returns a random string of RAW.

    However, this is not normally the way people go on hiding sensitive data in environments below. It would be much more common to use a tool that is designed for this tool. For example, Oracle has a Pack of masking of data for Enterprise Manager that allows to replace sensitive data with false, but realistic data as part of the updating of the environments below. There are also data from third-party tools like masqueur datamasking.

    Justin

  • ERROR: Unknown error returned from Agent of VMware Converter

    I have a XP box with a few applications I want to do in a virtual machine.  I have ESXI free running with several local and virtual machines and the data of the network store.   I installed the converter version 4 and could not convert the PC, so I uninstalled and installed version 3 with the same results.  I have attached customer newspapers and converrter of the last run.  If I look at the process on the area of conversion and customer ESXI, I can briefly see the vm name pop up in the list, and then he disappeared when the error in the conversion box

    This is the output of the conversion

    15:16:33 step 1: connection to VMware Converter Agent on localhost

    15:16:33 step 2: creation of target virtual machine and the conversion of the data

    15:16:35 configuring the settings for the virtual machine target...

    15:16:37 WARNING: decline of additional parallel ports

    15:16:37 WARNING: fall of extra serial ports

    15:16:37 WARNING: down the audio device

    15:16:37 creation of virtual machine target...

    15:16:43 ERROR: unknown error returned from Agent of VMware Converter

    VMware Converter Agent logs are located on the local host to C:\WINDOWS\Temp\vmware-temp\vmware-converter*

    VMware Converter Client connects to this computer can be exported, or found in "C:\Documents and Settings\superuser\Local Settings\Temp\vmware-temp\vmware-client."

    VMware Converter logs is stored on a temporary basis and should be retrieved as soon as possible.

    Any ideas?

    PDK

    PDKNY,

    Welcome to the VMware Community Forums!

    > Root user authentication

    > Connected!

    > Using a specific location DataStore3 to disk: 0

    > Using the data store DataStore3 for VMX

    > Waiting for creation of the VM finish...

    > Waiting for a task to finish...

    > job [error] CreateVm failed: cannot access the file.

    You seem to be getting a failure when creating the virtual machine.  Converter 3 and 4 work the same way, that they submit the request for vCenter/ESX to create the virtual machine, as required.  I have seen where an initial conversion has failed once before or another conversion was at the same time, and we had to restart the running converter (Server source and converter) before the lock system was released on the data store.

    Kind regards

    EvilOne

    VMware vExpert 2009

    NOTE: If your question or problem has been resolved, please mark this thread as answered and awarded points accordingly.

Maybe you are looking for