Informix - Capture Source Model

Hello,
We are working on Informix IDS9.o to Oracle 9i migration. We are using offline mode for capturing the schema files of Informix. In this process, OMWB is loading 0 database objects. When we checked the error log, it shows
java.sql.SQLException: [POL-4005] null class object is not allowed
Please help us to resolve this problem.
Thanks and Regards,
Vamsi Mohan Harish

Vamsi,
You should post your problem to, Discussion Forums » Migration » Migration Workbench, the migration development team monitor that forum so somebody should be able to help you there.
Regards,
Jim

Similar Messages

  • Problem capturing source model sybase apative server 11.5.1

    Trying to migrate production Sybase Adaptive Server database to
    Oracle using Oracle Migratin Workbench-Sybase Plugin. It fails
    duing loading source model stage. Sybase database is not going
    to be available to us for long as companies are separating by
    december end, four databases need to be migrated by then. It is
    very important to get the migratin done and there is no
    workaround this problem. This is showstopper for migration
    project right now.
    Details:
    Oracle Migration Workbench with sybase adaptive server 11 plugin
         2.0.2.0.0     Production Build 20011121 Windows-
    2000professional
    Oracle Database               8.1.7          Solaris 8
    Sybase Database               Sybase Adaptive Server 11.5.1
         Solaris 8
    Source ODBC Driver          3.11.00.01 Windows-
    2000Professional
    Stage of migration: Loading Source Database
    Error Text on alert window:
    Failed to load Source Model. [INTERSOLV][ODBC SQL Server driver]
    [SQL Server]Invalid column name 'fill_factor'
    Error Text in the log file:
    EXCEPTION : LoadTableData.run() : SYBASE11_SYSINDEXES [INTERSOLV]
    [ODBC SQL Server driver][SQL Server]Invalid column
    name 'fill_factor'.
    After Investingation it looks like the table sybase11_sysindexes
    in OMWB repository has four columns extra than the sysindexes
    table in sybase database. The additional four columns are:
    fill_factor, res_page_gap, exp_rowsize, key3. OMWB load source
    model step fails on the first column.
    Trying to load the sybase source model using Oracle Migration
    Workbench.
    Oracle Migration workbench was running.
    Oracle Migratin workbench capture wizard was running.
    Installed OMWB and sybase apative server 11 plugin for OMWB.
    Installed Sybase client for windows and ODBC drivers.
    Configured ODBC for sybase database as a system DSN.
    Created empty scheama with connect and resource privilages for
    OMWB repository on Oracle 8.1.7 on solaris 8.
    Started OMWB, created repository in the empty scheama created
    above.
    Clicked on capture source database wizard.
    Provided the userid, password and database for sybase database.
    Selected not to generate Oracle model, as it can be generated
    afterwards.
    Clicked finish on the wizard.
    OMWB started reading sybase system repository tables, it did a
    few tables and then the above error message appeared.
    This is a fresh install of Windows 2000 Professional.
    The only oracle product installed in OMWB and the Sybase
    Apadative server 11 Plugin for OMWB.
    The other software is Sybase client for windows (To do queries
    on Sybase database) and the sybase ODBC driver.
    No other significant software is installed, it a vanila windows
    2000 Professional installation.
    There is oracle tar for this. TAR 1828907.995
    Any help is appriciated.
    Thanks,
    Prashant

    Hi,
    Without seeing the full error.log file here are some suggestions.
    >
    From Prashant's e-mail it appears that the data dictionary's of11.5.1.
    and 11.9.2 are different.
    A possible alternative that may help i.e. removing the 4 extracolumns
    that Prashant talks about from the Workbench source model e.g.
    Sybase11_sysindexes. This may help you get around this issue
    If that does not work. One possible workaround is as follows.
    Extract the Schema generation scripts from the Sybase 11.5.1database
    and re-create the schema in Sybase 11.9.2. You don't have tomove the data.
    >
    You can then migrate the schema from the Sybase 11.9.2database. Once
    the schema is migrated you can generate the SQL Loader scripts to
    migrate the data. Click on the Tools menu and then select the'Generate
    SQL Loader Scripts...' menu item. This will generate Sybase BCPdata
    extraction scripts. These scripts will extract the Sybase datafrom each
    table into a separate .dat file. You can then use the SQL Loaeder
    scripts that were also generated to load this data in to thedestination
    Oracle database.
    Regards
    John

  • DB2 - Oracle: problem with capturing source model

    After starting the capture process, the logging window shows a line
    "Capturing loaded table: <table-name>" for each table, and one line
    "Capturing Tables Loaded: 164, Tables NOT Loaded: 0", which sounds about right.
    It then prints messages about loading groups, and finally the two lines:
    "Capturing Loading Table Aliases"
    "Capturing Loaded table alias: CL"
    At that point, it stops. There are 3 buttons at the bottom,
    "Suspend Logging", "Abort", "Help".
    The OMWB Java client shows "Loading Source Model..." in the "UDB7 Source Model" tab, and "No objects have been mapped" in the "Oracle Model" tab.
    Clicking on the "Abort" button in the loggin window results in the message "unable to abort, please restart application".
    I have no experience at all with the omwb tool, greatly appreciate any feedback.
    Thanks !

    Thanks for your reply.
    Below is the error.log.
    I couldn't get the 7.2 Client to work, so I am using a IBM UDB 8.0 Client to
    connect to a 7.2 DB2 database, that's where the message regarding the JDBC driver comes from.
    ** Started : Wed Nov 02 09:37:45 PST 2005
    ** Workbench Repository : Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Repository Connection URL: jdbc:oracle:thin:@localhost:1521:orcl
    ** The following plugins are installed:
    ** IBM DB2 UDB Version 7 Plugin, Production Release 10.1.0.4.0
    ** Active Plugin : UDB7
    Informational: JDBC compatibility test is active.
    *** IBM DB2 UDB Information ***
    Product Name : DB2/LINUX
    Product Version : 07.02.0006
    JDBC Driver Name : IBM DB2 JDBC 2.0 Type 2
    JDBC Driver Version : 08.01.0002
    - (major version) : 8
    - (minor version) : 1
    Informational: IBM DB2 UDB JDBC driver is JDBC 2.0 compliant.
    Informational: You are using an IBM DB2 UDB Version 08.01.0002 JDBC driver against an IBM DB2 UDB Version 07.02.0006 database.
    Informational: IBM DB2 UDB Server supports identity columns.
    java.lang.NullPointerException
         at oracle.mtg.udb6.server.SourceModelLoad.createSourceModelAliasDefinitions(SourceModelLoad.java:537)
         at oracle.mtg.udb6.server.SourceModelLoad.createSourceModelDBDefinitions(SourceModelLoad.java:270)
         at oracle.mtg.udb6.server.SourceModelLoad.loadSourceModel(SourceModelLoad.java:176)
         at oracle.mtg.udb6.ui.CaptureWizard.doCapture(CaptureWizard.java:974)
         at oracle.mtg.udb6.ui.CaptureWizard._runDialog(CaptureWizard.java:832)
         at oracle.mtg.udb6.ui.CaptureWizard.capture(CaptureWizard.java:478)
         at oracle.mtg.migrationUI.ActionMenuHandler._capture(ActionMenuHandler.java:208)
         at oracle.mtg.migrationUI.ActionMenuHandler.run(ActionMenuHandler.java:85)
         at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
    ** Shutdown : Wed Nov 02 11:32:57 PST 2005

  • Informix Capture error

    I am migrating from Informix 9 to Oracle 9.2.4 with omwb (10.1.0.4), when capture source database, Error occurs as follows:
    Failed to load source Model.
    [POL-5205] column not found
    Would anyone help me? Thanks very much!

    Love to but virtually no contexct given. Tell us step by step what yoiu did here to get this. Include version numbers, changes, etc.
    B

  • Failed to load Source Model

    Trying to load Source Model from MS SQL Server 7.0, getting an error "Failed to load Source Model. [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '.7'.". The last entry in the log was "Capturing Loading SS7_SYSFOREIGNKEYS".
    This is under Windows 2000 Server. ODBC driver is Microsoft version 3.70.09.61.
    I have found the similar issue existed for Sybase, and the solution was to "select the DSN, click on Advanced and select the ODBC translator". MS ODBC driver doesn't have an Advanced button :(, I don't know where can I set the translator.

    This problem is fixed now. It was the database name in SQL Server that was causing the problem, it had dot in it (devV3.7). Once I changed it, the source model was loaded successfully.
    Regards, Branko.

  • Problems with loading source model using omw from sql server 7 into oracle 9i

    I am migrating data from sql servr 7 into oracle 9i. when doing capture phase i get the following error.
    ==>failed to load source model.[microsoft][odbc sql server][sql server]select permission
    denied on column 'password' of object 'syslogins', database master, owner dbo.
    Why is this so...is it bcz of something with my odbc link...
    also is there any way to load only tables and not system tables when doing capture phase.
    any help asap will be much appreciated.
    thanks

    Hi,
    You must ensure that you have the correct password to login to SQL Server.
    The Workbench requires some of the tables in the Master database.
    Regards
    John

  • Omwb - Blank Error Message - Capture Source DB

    Hi
    I have installed latest OMWB along with plug-in for access.
    I am able to generate xml files from ms-access database.
    I have lastest access driver.
    When i run omwb.bat it opens a window, it displays a blank error message.
    Same blank message comes , when "Capture Source Database" is clicked
    Following is the error log generated. There also there is no error.
    ** Oracle Migration Workbench
    ** Production
    ** ( Build 20050629 )
    ** OMWB_HOME: C:\omwb
    ** user language: en
    ** user region: null
    ** user timezone:
    ** file encoding: Cp1252
    ** java version: 1.4.2_04
    ** java vendor: Sun Microsystems Inc.
    ** o.s. arch: x86
    ** o.s. name: Windows XP
    ** o.s. version: 5.1
    ** Classpath:
    ..\lib\boot.jar
    ** Started : Mon Sep 04 15:14:27 IST 2006
    ** Workbench Repository : Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Repository Connection URL: jdbc:oracle:thin:@shanmuga:1521:sicout
    ** The following plugins are installed:
    ** Microsoft Access 2.0/95/97/2000/2002/2003 Plugin, Production Release 10.1.0.4.0
    ** Active Plugin : MSAccess
    ** Shutdown : Mon Sep 04 15:14:44 IST 2006
    ****************************************************************************************************

    Hi,
    To assist in resolving your issue we will need more information.
    * On step 1 of the Capture wizard, were you able to successfully add an XML file for capture? If not, please post up the full error message text.
    * Did the "Capture Source Database" Wizard complete and generate any objects in the "Source Model" of the Workbench?
    You mention that you see "blank messages" when "Capture Source Database" is clicked. I am gathering that you were able to load the generated XML file into the workbench, however you were unable to view any messages in the Log window. If this is the case, I suggest that you check your Log Window preferences as follows:
    1. Launch the workbench
    2. From the menu bar, click on Tools | Log Window, to launch the Log Window.
    3. On the Log Window, click on Edit | Preferences from the menu bar.
    4. Under the heading "Select the message types you would like to display", ensure that all checkboxes are selected. Then click on "OK" to save these settings. Close the Log Window when these steps are complete, and re-launch the Capture Wizard to begin the migration process again.
    If you are still experiencing issues, please outline fully the steps that you have followed, and post up any error message text that is displayed during this process.
    I hope this helps.
    Regards,
    Hilary

  • Disconnected Source Model Load

    Hi,
    Can anyone know about the "Disconnected Source Model Load" for Informix to Oracle. Please reply me how to perform it. Thanks in advanc for your reply. If you could include your contact here it would be greatful.
    Thanks,
    RM

    If you choose "Default Repository" then it does not allow disconnected source model load. Use an oracle repository by connecting to a db and then it allows you to choose disconnected load. Please check the documentation for further help. Hope this helps
    Priya

  • SQL to Oracle Migraton - Unable to create source model in Migration Workben

    We are trying to use Oracle Migration Workbench utility to transfer data from SQL to Oracle. when we start creating the source model we get the following error :-
    failed to load source model ora-01401 inserted value too large for column.. this is the error at the ss2k_syslogins table. this is a logical model creation from sql server db.
    In case if this is a data issue with the syslogins table/view, is there any way to overcome this or whether we can do any settings at Workbench Level to overcome this..
    Thanks in advance,
    John.

    I think I figured it out.
    1 - I used the Migration Work Bench that came with the 9.2.0.1 client - BAD IDEA.
    2 - I down loaded the OMWB (10.x) - GOOD IDEA. I also downloaded the plugins so that the versions would match each other. Get rid of any existance of the 'old' OMWB directory under the OracleHome, so as not to get confused.
    3 - I realized that you just extract the OMWB.zip file to the C: drive like some third world DOS application, so it won't show up in under your start menu.**
    **I find this kinda cheesy that the Oracle installer is not involved here to add it to the Oracle Configuration and Migration menu in start up. I suppose you can copy the unzipped struture over top of the existing clint directory structure, but still dumb.
    3 - The other odd piece, you down load the plugin as a zip (and not a jar), BUT DON'T UNZIP IT!! Rather place it in the ..\plugins directory, underneath wherever you unzipped the OMWB, and RENAME IT with a .JAR extension (again don't unzip).
    4 - Make a shortcut on your desktop to the omwb.bat file (from where ever you unzipped the OMWB product)
    5 - Fire up that icon and the product will look at the new .JAR in the plugin folder and 'tada', you have OMWB with your specific database plugin available.
    The new product didn't hang for me. Now I just need to figure out how port this into a shema name OF MY CHOSING, and not the generic OMWB_Login1 that it created.
    I f anyone has info on that, let me know.... I think its in the destination creation (step two of the whole process).
    Jeff Ferrel - State of Nevada

  • How to stop the capture source of AudioVideoCaptureDevice

    Hi. I capture video with the AudioVideoCaptureDevice API and I'm not sure if I followed the right steps to implement it. If I record a video for the first time everything works in the emulator but when I tap the record button for the second
    time the app crash. I think it's because I have to disconnect the file stream from the capture source but I can't because passed an instance of  AudioVideoCaptureDevice as the source of the video recorder brush. Here's my code + - in the order of
    execution:
    private async Task InitializeVideoRecorder()
    try
    if (vcDevice != null)
    vcDevice = null;
    CameraSensorLocation location = CameraSensorLocation.Back;
    captureResolutions =
    AudioVideoCaptureDevice.GetAvailableCaptureResolutions(location);
    vcDevice = await AudioVideoCaptureDevice.OpenAsync(location, captureResolutions[0]);
    vcDevice.RecordingFailed += OnCaptureFailed;
    vcDevice.VideoEncodingFormat = CameraCaptureVideoFormat.H264;
    vcDevice.AudioEncodingFormat = CameraCaptureAudioFormat.Aac;
    // Initialize the camera if it exists on the phone.
    if (vcDevice != null)
    //initialize fileSink
    await InitializeFileSink();
    // Create the VideoBrush for the viewfinder.
    videoRecorderBrush = new VideoBrush();
    videoRecorderBrush.SetSource(vcDevice);
    // Display the viewfinder image on the rectangle.
    viewfinderRectangle.Fill = videoRecorderBrush;
    //_cs.Start();
    // Set the button state and the message.
    UpdateUI(ButtonState.Initialized, "Tap record to start recording...");
    else
    // Disable buttons when the camera is not supported by the phone.
    UpdateUI(ButtonState.CameraNotSupported, "A camera is not supported on this phone.");
    catch(Exception ex)
    MessageBox.Show("InitializeVideoRecorder Error:\n" + ex.Message);
    private void OnCaptureFailed(AudioVideoCaptureDevice sender, CaptureFailedEventArgs args)
    MessageBox.Show(args.ToString());
    //setup iClips video file creation
    private async Task InitializeFileSink()
    StorageFolder isoStore = await ApplicationData.Current.LocalFolder.GetFolderAsync("Shared");
    sfVideoFile = await isoStore.CreateFileAsync(
    isoVideoFileName+".mp4",
    CreationCollisionOption.ReplaceExisting);
    // Set the recording state: display the video on the viewfinder.
    private void StartVideoPreview()
    try
    // Display the video on the viewfinder.
    if (vcDevice != null)
    // Create the VideoBrush for the viewfinder.
    videoRecorderBrush = new VideoBrush();
    videoRecorderBrush.SetSource(vcDevice);
    // Display the viewfinder image on the rectangle.
    viewfinderRectangle.Fill = videoRecorderBrush;
    // Set the button states and the message.
    UpdateUI(ButtonState.Ready, "Ready to record.");
    txtRecTime.Visibility = Visibility.Collapsed;
    // If preview fails, display an error.
    catch (Exception e)
    MessageBox.Show("Start Video Preview Exception:\n " + e.Message.ToString());
    // Set recording state: start recording.
    private async void StartVideoRecording()
    try
    if (vcDevice != null)
    MessageBox.Show("1");
    s = await sfVideoFile.OpenAsync(FileAccessMode.ReadWrite);
    MessageBox.Show("2");
    await vcDevice.StartRecordingToStreamAsync(s);
    MessageBox.Show("3");
    rState = 1;
    logo.Opacity = 1.0; //brighten logo to indicate that the recording started
    StartTimer(); //show time ellapsed on UI
    // Set the button states and the message.
    UpdateUI(ButtonState.Recording, "Recording...");
    // If recording fails, display an error.
    catch (Exception e)
    MessageBox.Show("Start Video Recording Error:\n" + e.Message.ToString());
    // Set the recording state: stop recording.
    private async void StopVideoRecording()
    try
    await vcDevice.StopRecordingAsync();
    sfVideoFile = null;
    rState = 0;
    logo.Opacity = 0.1;
    StopTimer();
    // Set the button states and the message.
    UpdateUI(ButtonState.Stopped, "Preparing viewfinder...");
    StartVideoPreview();
    // If stop fails, display an error.
    catch (Exception e)
    MessageBox.Show("Stop Video Recording:\n " + e.Message.ToString());
    // Start the video recording.
    private void StartRecording_Click(object sender, EventArgs e)
    // Avoid duplicate taps.
    StartRecording.IsEnabled = false;
    StartVideoRecording();
    private void DisposeVideoRecorder()
    if (_cs != null)
    // Stop captureSource if it is running.
    if (_cs.VideoCaptureDevice != null
    && _cs.State == CaptureState.Started)
    _cs.Stop();
    // Remove the event handler for captureSource.
    _cs.CaptureFailed -= OnCaptureFailed;
    // Remove the video recording objects.
    _cs = null;
    vcDevice = null;
    //fileSink = null;
    videoRecorderBrush = null;
    InitializeVideoRecorder() is called in OnNavigatedTo the when I tap the record button StartVideoRecording() is then called like wise StopVideoRecording() and when I tap the record button( or call StartVideoRecording) for the second time an error
    is thrown. What am I missing? (I bet it's something to do with how I implemented the capture source.) Thaanks in advance.
     

    Thank you that answer is very helpful. I got the recording to work and it's playing the video back too, however, when I record for the second time and tries to playback that file the screen is just black. Can you kindly take a look at my methods
    and see where I'm missing up?
    // Constructor
    public MainPage()
    try
    InitializeComponent();
    //setup recording
    // Prepare ApplicationBar and buttons.
    PhoneAppBar = (ApplicationBar)ApplicationBar;
    PhoneAppBar.IsVisible = true;
    StartRecording = ((ApplicationBarIconButton)ApplicationBar.Buttons[0]);
    StopPlaybackRecording = ((ApplicationBarIconButton)ApplicationBar.Buttons[1]);
    StartPlayback = ((ApplicationBarIconButton)ApplicationBar.Buttons[2]);
    PausePlayback = ((ApplicationBarIconButton)ApplicationBar.Buttons[3]);
    //SetScreenResolution();
    //Sign_Client();
    catch (Exception ex)
    MessageBox.Show("Constructor Error:\n"+ ex.Message);
    //Life Cycle
    protected async override void OnNavigatedTo(NavigationEventArgs e)
    base.OnNavigatedTo(e);
    // Initialize the video recorder.
    await InitializeVideoRecorder();
    //prepare shutter hot keys
    CameraButtons.ShutterKeyHalfPressed += OnButtonHalfPress;
    CameraButtons.ShutterKeyPressed += OnButtonFullPress;
    CameraButtons.ShutterKeyReleased += OnButtonRelease;
    protected override void OnNavigatedFrom(NavigationEventArgs e)
    // Dispose of camera and media objects.
    DisposeVideoPlayer();
    DisposeVideoRecorder();
    base.OnNavigatedFrom(e);
    CameraButtons.ShutterKeyHalfPressed -= OnButtonHalfPress;
    CameraButtons.ShutterKeyPressed -= OnButtonFullPress;
    CameraButtons.ShutterKeyReleased -= OnButtonRelease;
    // Update the buttons and text on the UI thread based on app state.
    private void UpdateUI(ButtonState currentButtonState, string statusMessage)
    try
    // Run code on the UI thread.
    Dispatcher.BeginInvoke(delegate
    switch (currentButtonState)
    // When the camera is not supported by the phone.
    case ButtonState.CameraNotSupported:
    StartRecording.IsEnabled = false;
    StopPlaybackRecording.IsEnabled = false;
    StartPlayback.IsEnabled = false;
    PausePlayback.IsEnabled = false;
    break;
    // First launch of the application, so no video is available.
    case ButtonState.Initialized:
    StartRecording.IsEnabled = true;
    StopPlaybackRecording.IsEnabled = false;
    StartPlayback.IsEnabled = false;
    PausePlayback.IsEnabled = false;
    break;
    // Ready to record, so video is available for viewing.
    case ButtonState.Ready:
    StartRecording.IsEnabled = true;
    StopPlaybackRecording.IsEnabled = false;
    StartPlayback.IsEnabled = true;
    PausePlayback.IsEnabled = false;
    break;
    // Video recording is in progress.
    case ButtonState.Recording:
    StartRecording.IsEnabled = false;
    StopPlaybackRecording.IsEnabled = true;
    StartPlayback.IsEnabled = false;
    PausePlayback.IsEnabled = false;
    break;
    // Video Recording Stopped.
    case ButtonState.Stopped:
    StartRecording.IsEnabled = true;
    StopPlaybackRecording.IsEnabled = false;
    StartPlayback.IsEnabled = true;
    PausePlayback.IsEnabled = false;
    break;
    // Video playback is in progress.
    case ButtonState.Playback:
    StartRecording.IsEnabled = false;
    StopPlaybackRecording.IsEnabled = true;
    StartPlayback.IsEnabled = false;
    PausePlayback.IsEnabled = true;
    break;
    // Video playback has been paused.
    case ButtonState.Paused:
    StartRecording.IsEnabled = false;
    StopPlaybackRecording.IsEnabled = true;
    StartPlayback.IsEnabled = true;
    PausePlayback.IsEnabled = false;
    break;
    default:
    break;
    // Display a message.
    txtDebug.Text = statusMessage;
    // Note the current application state.
    currentAppState = currentButtonState;
    catch (Exception ex)
    MessageBox.Show("UpdateUI Error:\n" + ex.Message.ToString());
    private async Task InitializeVideoRecorder()
    try
    CameraSensorLocation location = CameraSensorLocation.Back;
    captureResolutions =
    AudioVideoCaptureDevice.GetAvailableCaptureResolutions(location);
    vcDevice = await AudioVideoCaptureDevice.OpenAsync(location, captureResolutions[0]);
    vcDevice.RecordingFailed += OnCaptureFailed;
    vcDevice.VideoEncodingFormat = CameraCaptureVideoFormat.H264;
    vcDevice.AudioEncodingFormat = CameraCaptureAudioFormat.Aac;
    //Set a perfect orientation to capture with
    int encodedOrientation = 0;
    int sensorOrientation = (Int32)this.vcDevice.SensorRotationInDegrees;
    switch (this.Orientation)
    // Camera hardware shutter button up.
    case PageOrientation.LandscapeLeft:
    encodedOrientation = -90 + sensorOrientation;
    break;
    // Camera hardware shutter button down.
    case PageOrientation.LandscapeRight:
    encodedOrientation = 90 + sensorOrientation;
    break;
    // Camera hardware shutter button right.
    case PageOrientation.PortraitUp:
    encodedOrientation = 0 + sensorOrientation;
    break;
    // Camera hardware shutter button left.
    case PageOrientation.PortraitDown:
    encodedOrientation = 180 + sensorOrientation;
    break;
    vcDevice.SetProperty(KnownCameraGeneralProperties.EncodeWithOrientation, sensorOrientation + 90);
    // Initialize the camera if it exists on the phone.
    if (vcDevice != null)
    //initialize fileSink
    await CreateAndOpenNewVideoFile();
    // Create the VideoBrush for the viewfinder.
    videoRecorderBrush = new VideoBrush();
    videoRecorderBrush.SetSource(vcDevice);
    // Display the viewfinder image on the rectangle.
    viewfinderRectangle.Fill = videoRecorderBrush;
    //_cs.Start();
    // Set the button state and the message.
    UpdateUI(ButtonState.Initialized, "Tap record to start recording...");
    else
    // Disable buttons when the camera is not supported by the phone.
    UpdateUI(ButtonState.CameraNotSupported, "A camera is not supported on this phone.");
    catch(Exception ex)
    MessageBox.Show("InitializeVideoRecorder Error:\n" + ex.Message);
    private void OnCaptureFailed(AudioVideoCaptureDevice sender, CaptureFailedEventArgs args)
    MessageBox.Show(args.ToString());
    //setup iClips video file creation
    private async Task CreateAndOpenNewVideoFile()
    StorageFolder isoStore = await ApplicationData.Current.LocalFolder.GetFolderAsync("Shared");
    sfVideoFile = await isoStore.CreateFileAsync(isoVideoFileName+".mp4",
    CreationCollisionOption.ReplaceExisting);
    s = await sfVideoFile.OpenAsync(FileAccessMode.ReadWrite);
    // Set the recording state: display the video on the viewfinder.
    private void StartVideoPreview()
    try
    // Display the video on the viewfinder.
    if (vcDevice != null)
    // Create the VideoBrush for the viewfinder.
    videoRecorderBrush = new VideoBrush();
    videoRecorderBrush.SetSource(vcDevice);
    // Display the viewfinder image on the rectangle.
    viewfinderRectangle.Fill = videoRecorderBrush;
    // Set the button states and the message.
    UpdateUI(ButtonState.Ready, "Ready to record.");
    txtRecTime.Visibility = Visibility.Collapsed;
    // If preview fails, display an error.
    catch (Exception e)
    MessageBox.Show("Start Video Preview Exception:\n " + e.Message.ToString());
    // Set recording state: start recording.
    private async void StartVideoRecording()
    try
    if (vcDevice != null)
    await vcDevice.StartRecordingToStreamAsync(s);
    rState = 1;
    logo.Opacity = 1.0; //brighten logo to indicate that the recording started
    StartTimer(); //show time ellapsed on UI
    // Set the button states and the message.
    UpdateUI(ButtonState.Recording, "Recording...");
    // If recording fails, display an error.
    catch (Exception e)
    MessageBox.Show("Start Video Recording Error:\n" + e.Message.ToString());
    // Set the recording state: stop recording.
    private async void StopVideoRecording()
    try
    await vcDevice.StopRecordingAsync();
    //sfVideoFile = null;
    rState = 0;
    logo.Opacity = 0.1;
    StopTimer();
    // Set the button states and the message.
    UpdateUI(ButtonState.Stopped, "Preparing viewfinder...");
    //StartVideoPreview();
    // If stop fails, display an error.
    catch (Exception e)
    MessageBox.Show("Stop Video Recording:\n " + e.Message.ToString());
    // Start the video recording.
    private void StartRecording_Click(object sender, EventArgs e)
    // Avoid duplicate taps.
    StartRecording.IsEnabled = false;
    StartVideoRecording();
    private void DisposeVideoRecorder()
    if (vcDevice != null)
    // Remove the video recording objects.
    vcDevice = null;
    // Remove the event handler for captureSource.
    vcDevice.RecordingFailed -= OnCaptureFailed;
    s = null;
    sfVideoFile = null;
    videoRecorderBrush = null;
    private void OnCaptureFailed(object sender, ExceptionRoutedEventArgs e)
    MessageBox.Show("Recording Failed!");
    private void SaveThumbnail()
    Deployment.Current.Dispatcher.BeginInvoke(() =>
    var w = (int)vcDevice.PreviewResolution.Width;
    var h = (int)vcDevice.PreviewResolution.Height;
    var argbPx = new Int32[w * h];
    vcDevice.GetPreviewBufferArgb(argbPx);
    var wb = new WriteableBitmap(w, h);
    argbPx.CopyTo(wb.Pixels, 0);
    wb.Invalidate();
    using (var isoStore = IsolatedStorageFile.GetUserStoreForApplication())
    var fileName = isoVideoFileName + "_iThumb.jpg";
    if (isoStore.FileExists(fileName))
    isoStore.DeleteFile(fileName);
    var file = isoStore.CreateFile(fileName);
    wb.SaveJpeg(file, w, h, 0, 20);
    file.Close();
    //STOP WATCH
    private void StartTimer()
    dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
    dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
    dispatcherTimer.Interval = new TimeSpan(0, 0, 1);
    dispatcherTimer.Start();
    startTime = System.DateTime.Now;
    private void StopTimer()
    dispatcherTimer.Stop();
    private void dispatcherTimer_Tick(object sender, EventArgs e)
    System.DateTime now = System.DateTime.Now;
    this.Dispatcher.BeginInvoke(delegate()
    txtRecTime.Visibility = Visibility.Visible;
    txtRecTime.Text = now.Subtract(startTime).ToString().Substring(0, now.Subtract(startTime).ToString().LastIndexOf("."));
    // ICLIPS THEATRE - VIDEO PLAYER
    private void StopPlaybackRecording_Click(object sender, EventArgs e)
    try
    if (rState == 1)
    // Avoid duplicate taps.
    StopPlaybackRecording.IsEnabled = false;
    // Stop during video recording.
    StopVideoRecording();
    // Set the button state and the message.
    UpdateUI(ButtonState.NoChange, "Recording stopped.");
    if (rState == 0)
    // Stop during video playback.
    // Remove playback objects.
    DisposeVideoPlayer();
    StartVideoPreview();
    // Set the button state and the message.
    UpdateUI(ButtonState.NoChange, "Playback stopped.");
    catch (Exception ex)
    MessageBox.Show("Stop playback recording Exception:\n" + ex.Message.ToString());
    private void StartPlayback_Click(object sender, EventArgs e)
    PlayVideo();
    private async void PlayVideo()
    try
    // Avoid duplicate taps.
    StartPlayback.IsEnabled = false;
    // Start video playback when the file stream exists.
    if (VideoPlayer.Source != null)
    VideoPlayer.Play();
    // Start the video for the first time.
    else
    //vcDevice.Dispose();
    // Remove VideoBrush from the tree.
    viewfinderRectangle.Fill = null;
    //get the path of iClips-video
    StorageFolder isoStore = await ApplicationData.Current.LocalFolder.GetFolderAsync("Shared");
    iclip = await isoStore.GetFileAsync(isoVideoFileName + ".mp4");
    // Create the file stream and attach it to the MediaElement.
    VideoPlayer.Source = new Uri(iclip.Path);
    // Add an event handler for the end of playback.
    VideoPlayer.MediaEnded += new RoutedEventHandler(VideoPlayerMediaEnded);
    // Start video playback.
    VideoPlayer.Play();
    // Set the button state and the message.
    UpdateUI(ButtonState.Playback, "Playback started.");
    catch (Exception ex)
    MessageBox.Show("Play Video Exception:\n" + ex.Message.ToString());
    private void PausePlayback_Click(object sender, EventArgs e)
    PauseVideo();
    private void PauseVideo()
    // Avoid duplicate taps.
    PausePlayback.IsEnabled = false;
    // If mediaElement exists, pause playback.
    if (VideoPlayer != null)
    VideoPlayer.Pause();
    // Set the button state and the message.
    UpdateUI(ButtonState.Paused, "Playback paused.");
    private void DisposeVideoPlayer()
    if (VideoPlayer != null)
    // Stop the VideoPlayer MediaElement.
    VideoPlayer.Stop();
    // Remove playback objects.
    VideoPlayer.Source = null;
    iclip = null;
    // Remove the event handler.
    VideoPlayer.MediaEnded -= VideoPlayerMediaEnded;
    // Display the viewfinder when playback ends.
    public void VideoPlayerMediaEnded(object sender, RoutedEventArgs e)
    // Remove the playback objects.
    DisposeVideoPlayer();
    StartVideoPreview();
    I'm using StorageFile to create the file to save the video to. I think my Stop and Start Video Recording logic is causing ether the video not to write to the file the second time or something else. If you can see something that's not right kindly tell me. Thank
    you in advance.

  • Loading Source Model fails in SQL Server 2000

    Im tryng to load Source Model from SQL Server 2000 to Oracle 9i using Migration Worbench 9.2.0.1.2 but im getting se next message error:
    EXCEPTION : LoadTableData.run() : SS2K_SYSCOMMENTS El tamaño de los datos es mayor que el tamaño máximo para este tipo: 4001
    Anybody can help me please? its urgent to us migrate our database to oracle.
    Thanks in Advance.
    Alejandro Amador.

    I have had problems using the Connected method, too.
    Try the disconnected instead - it converted all.

  • ORA-00904 while mapping source model

    Hi,
    while mapping the source model from Sybase 11 I get an ORA-00904 invalid column name error. There is no error recorded in the log, just an error message box opens. The last log entry is "...rows inserted into table SYBASE_SYSPROCEDURES".
    omwb is 1.2.2.2.0 (with 1.2.2.2.1 sybase.jar), Oracle is 8.0.4
    Thanks for any help.

    Hi ,
    Please drop and recreate the user that owns your workbench repository.
    If the problem persists then e-mail [email protected]
    Regards
    John

  • [ETL]How to transform a Source model into an arbitrary number of target models ?

    Hi all,
    I need to know how to transform a source model into an arbitrary number of target models which conforms to different target metamodels using ETL ? Is there any examples that can help me ?
    Thank you
    Mana

    Hi Antonio,
    Actully I mean the number of metamodels are known.For example, assume that there are two known metamodels in the target side, the first one is the target metamodel, and the second one is the trace metamodel .
    I would like to see an example of ETL transformation that run on a source model and generate the target model and the trace model as well. This statement is part of the chapter 5 of the ebook which says "it is often essential to be able to access/update additional models during a transformation (such as trace or configuration models). Building on the facilities provided by EMC and EOL, ETL enables specification of transformations that can transform an arbitrary number of source models into an arbitrary number of target models."
    could you please explain this more for me or provide me with an example.
    Thank you
    Mana

  • Problem with "Capture Server Model from the Database"

    I've installed Oracle-Developer-Suite 10g and Designer 9.0.4.5.6. The repository databse is Oracle 10g and the application database is Oracle 9i (about 700 tables for the application). After I started the Designer Editor, I got the follwoing message:
    "No network notification service has been configured for this Repository instance. A desktop-only notification has been started."
    What does it mean? What's wrong with the configuration? How can I avoid this problem?
    Then I tried to "Capture Server Model from the Database". It took hours to read the data from the database. After reading the data, the following message occurs:
    "138 overlaps could not be eliminated by AutoLayout as there is insufficient room to layout the items. Select a large area and retry"
    I can not save the uncommited data into the repository.

    1. Designer 9i was made to capture 9i DB functionality. So no it will not capture full 11 DB functionality.
    2. Yes I have had some problems capturing from an 11DB and have written a bug on it.
         Bug.7138247     (74) CANNOT DESIGN CAPTURE A TIMESTAMP(6) FROM 11G DB:
    this is fixed in Designer 10.1.2.5

  • Capture Source question (Device)

    I’m using Pre 7 (Windows XP) and I am able to capture video from my Canon XHA1s, but have a question about how the camera shows up as a Capture Source. The camera shows up as: Microsoft AV/C Tape Submit 1. Is this the norm? I do see in the Pre 7 Help section that the Canon XHA1s is supported.  When I capture on my laptop (Vista) the camera shows as XHA1.

    The camcorder is supported and if you can capture I would not be concerned. By the way are you capturing in high definition or is the camcorder set to down-convert to DV-AVI?

Maybe you are looking for