Help me on building Custom DataSource

Hi,
I tried to build a Custom DataSource, but I am not very clear about the process. Do I have to follow the convention like <package-prefix>javax.media.<protocol>.DataSource ?
It seems for me that JpegImagesToMovie (
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JpegImagesToMovie.html )
does not follow such a convention. And what I am tyring to build is a DataSource that will read data from a queue which contains RAW data package.
Any suggestions are highly appreciated.
Thanks.
Jim

The way I use the DataSource should like this:
MyDataSource ds = new MyDataSource( param1, param2 );
Processor p = Manager.createProcessor( ds );
In this case, MyDataSource is created directly without
going through Manager, but it is still to be used by
Manager.
Should I follow the convention?What you're doing is fine. In fact, you don't want to follow the packaging convention in this case, because you don't have a zero-argument constructor for your DataSource or a one-argument version that takes a MediaLocator, so Manager.createDataSource() wouldn't be able to create your DataSource anyways.
The trick now is that you have to code your DataSource in a way such that one of the default Processors will be able to call setSource() with your DataSource and not throw an Exception, which is what happens inside of Manager.createProcessor(ds).
Try it and see what happens.
--invalidname                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Creating a custom datasource. Please help!

    Hi Experts,
    I'm creating a custom datasource in RSO2 to extract data from a custom view based on three z tables. I have filled the view with the join conditions and the fields. After activating it, I have checked the data and it's correct. The problem appears when I try to create a custom datasource based on this table, the following error appears:
    Invalid extract structure template ZXXX of DataSource ZXXX.
    You tried to generate an extract structure with the template structure ZXXX. This operation failed, because the template structure quantity fields or currency fields, for example, field AMOUNT refer to a different table.
    I have checked the quantity and currency fields in order to add the reference tables and fields. For example:
    0AMOUNT: ref table: EIPA; ref field: BWAER.
    The problem is that I don´t know how to join both tables (EIPA and my Zview) because the key is different in the tables and only non relevant fields like Net Price appear in both tables.
    If I add only the field EIPA-WAER, the data selectedis not correct, obviously.
    Please, what can I do? Any ideas?
    Thanks in advance! Any help will be more than welcome. Thanks!

    Hi all,
    I have created an Infoset but the problem persists. If I only join the tables I need, when I generate de Infoset, a warning appears telling that some fields (currency and quantity) will not be filled. At this point, if I execute de datasource in RSA3, the number of records is correct but these fields are empty.
    If I add the tables that appear in the warning message, the number of records extracted is 0, because these "auxiliar" tables only contain information about currency units but they don't have the same key values so thay cannot join.
    I have a question now... the tables that I have to upload into BI are also Z Tables. What happens if I ask my development team to add currency and quantity units in these tables? I think my problem will be solved if unit fields appear in the original tables. Would it be enough?
    Any suggestions on it?
    Thanks in advance!
    Edited by: Iñaki Rueda on Dec 29, 2009 12:02 PM

  • Custom DataSources With JMF

    I am having trouble creating a custom DataSource. Even following this example (http://java.sun.com/products/java-media/jmf/2.1.1/guide/JMFApp-DataSource.html#86181) I still get a NoProcessorException. Do I have to implement anything else to get a custom DataSource to work, even if the one I am trying to uses an existing implementation of PullSourceStream, PullBufferStream, PushSourceStream, or PushBufferStream?
    To go into further detail, I am attempting to create a DataSource that pulls data in from a byte stream instead of a file. Unfortunately, I have had no luck. Any help would be greatly appreciated!

    Incidently, I cannot find any examples on building my own MediaHandler (which is appearantly what one needs in order to properly use a custom DataSource ?).
    Anyone have an example? Is it relatively simple?

  • Extract Structure not Being transported with custom Datasource

    I'm having trouble transporting a custom datasource from BW 3.5 dev to QAS.  The datasource is coming through and showing up in RSA6 but when I click on it I get the following error:
    "The extract structure ZOXDBW0123 of the DataSource ZRSPCTRIGTEXT is invalid
    Message no. R8444
    Diagnosis
    An invalid extract structure has been assigned to the DataSource. An extract structure has to be active in the DDIC. It cannot be a view, since the customer is not able to add append fields for filling in the customer exits to a view."
    Any ideas?
    Thanks,
    Luke

    Thanks for your input.  We managed to get through one of the errors on about the 8th try to transport everything together.  It might of had something to do with the way things were being grouped in the packages.
    So now were just getting an RJ044 Error: "ZRSPCTRIGTEXT: Only tables and views are permitted for extraction". 
    I think it may be some kind of program error after all, cause our basis consultant took a look and couldn't figure it out at all either.  The transport says that everything is going through, but the view were extracting from is still not showing up in QAS.  He suggested we blow everything away and try building the datasource again from scratch.  So if we can't figure it out today we may try that route tomorrow. 
    Anyway, thanks again for all the help.

  • Building Custom Report

    Hello all,
    I want to build custom report using oracle report 6i by using XML
    how can do this and is there any manuals or documents or reference about the
    instruction of XML for example i found in the demo this code :
    AddaLine(' <data>', custom_summary);
    AddaLine(' <dataSource name="Q_1">', custom_summary);
    AddaLine(' <select>', custom_summary);
    AddaLine(' SELECT ALL VIDEO_CATEGORY_BY_QTR.QUARTER quarter1,
    VIDEO_CATEGORY_BY_QTR.CITY city1, ',custom_summary);
    AddaLine(' VIDEO_CATEGORY_BY_QTR.PRODUCT_CATEGORY
    product_category1, VIDEO_CATEGORY_BY_QTR.TOTAL_PROFIT
    total_profit1,',custom_summary);
    AddaLine(' VIDEO_CATEGORY_BY_QTR.TOTAL_SALES total_sales1,
    VIDEO_CATEGORY_BY_QTR.TOTAL_COST total_cost1',custom_summary);
    AddaLine(' FROM VIDEO_CATEGORY_BY_QTR',custom_summary);
    AddaLine(' WHERE
    VIDEO_CATEGORY_BY_QTR.SALES_REGION=''West''',custom_summary);
    AddaLine(' </select> ',custom_summary);
    AddaLine(' </dataSource>',custom_summary);
    i need your help and thanks
    samer

    Hi,
    In order to gather schema statistics in EBS, you will have to login as Sysadmin and submit a request named as "Gather Schema Statistics"
    Refer below link:
    http://appsdba.info/docs/oracle_apps/R12/GatherSchemaStatistics.pdf
    Also ensure to schedule the respective request so as to have your statistics up to date, either weekly or monthly as per your system environment.
    Please refer note:
    How Often Should Gather Schema Statistics Program be Run? [ID 168136.1]
    How to Gather Statistics on Custom Schemas for Ebusiness Suite 11i and R12? [ID 1065813.1]
    Hope this helps!
    Best Regards

  • Error while transporting custom datasource

    Hi All,
    Below is the scenario that was carried out in my project.
    1. Created OHD to load data from a CUBE to Data base Table /BIC/ABC.
    2. Created a custom Datasource ZABC_TEST with the above table.
    3. Activated the DataSource and loaded the data. (Data load successfull. It works fine).
    4. Tried transporting the above. But trows error while transporting the data source.
    Error -- InfoSource ZABC_TEST is not available in source system BITST.
    Let me know what can be done to solve the above error. Please suggest if i have missed out something.
    Thanks in advance.
    Maddy

    HI,
    The problem seems to be occuring since you are transporting both OHD and DS in the same TR request.
    Transport first the DS in a request, then in another request transport the OHD.
    This should resolve the issue.
    hope this helps.
    thanks,
    rahul

  • Need help to develop a custom connector

    I need some help on developing the custom connector to Homegrown application and the version i am using is OIM9.0.3
    First of all what are the steps do we need to care while developing a custom connector.
    I can't able to find the process in google to develop the custom connector.
    If you have any data regarding the development of custom connector, plz share to me....
    What are the thing do we need to take care while developing the connector.
    I referred in OIM9.1 version there was an option to develop the Custom connector by using Genric technology, can we create the custom connector by using the GTC feature in OIM 9.1
    early response will be appreciated

    The docs for the new GTC framework are here: http://download.oracle.com/docs/cd/E10391_01/doc.910/e10360/about.htm#Toc153968019. GTC is useful if you target application exposes standards-based SPML (Service Provisioning Markup Language) user management interfaces, although it sounds like this isn't the case for you.
    You will most likely need to go the traditional route in terms of connector development, which involves building OIM Process Task Adapters to invoke the application API's (I assume they're Java?) and invoking those adapters from within an OIM Provisioning Process.
    Rob

  • Custom Datasource using View COVJ - R8359 Invalid extract structure

    I'm trying to build a custom datasource so I can get at plan line item data with partner object (I've tried using 0CO_OM_CCA_1 but I dont get the partner object for plan data - no idea why). So I thought if I create a datasource using COVJ I can get it out. However when I try and save the custom datasource (created using RSO2) I get the error R8359 Invalid extract structure: You tried to generate an extract structure with the template structure COVJ. This operation failed, because the template structure quantity fields or currency fields, for example, field WOG001 refer to a different table.
    I saw posts saying when people get this error thye should reference the table these fields come from in the view. So I've talked to our ABAP'er and I asked him to reference the table these fields come from but he said this cant be done because these come from a structure not a table.
    Any ideas?
    Thanks
    Joel

    The WOG* columns in table COEJ, one of the tables contributing to the COVJ view, use CCCUR-CURKY as the reference table-column for those quantities. The ABAPer you spoke to is correct that CCCUR is a structure. View value fields inherit their reference table-column from the source, in this case COEJ, and since this source table is an SAP delivered table it cannot be modified change this reference.
    This means that you're only option for extracting the data out of the COVJ view would be to create a Function Module and use that Function Module as the basis for your DataSource.

  • Custom DataSource plays in JMStudio, but not in my application

    hello everyone. I need someone to help me out who has played around a lot with DataSources.
    I have been playing around with custom DataSources for a small while and I have not been able to figure out something and its starting to get frustrating.
    First let me tell you what process I exactly follow when I want to create a Custom DataSource (using the "Generating Live Audio/Video Data" datasource code sample as an example - from JMF solutions http://java.sun.com/products/java-media/jmf/2.1.1/solutions/LiveData.html):
    1. Suppose the source files (DataSource.java and LiveStream.java) are lying at C:\customds\.
    I compile the files like this:
    javac -d . DataSource.java LiveStream.java
    As a result this directory is formed C:\customds\jmfsample\media\protocol\live which contains all the compiled (interpreted) files.
    2. Then I register 'jmfsample' in the Protocol Prefix list and commit the changes using the JMFRegistry GUI.
    3. Now if I run JMStudio and enter the URL live: it gives me an error that it can't create a player. I feel this is happening because some classpaths haven't been set correctly. Eventually I figured out that I have to place the \jmfsample\media\protocol\live\ directory inside the <JMF install dir>\lib\. Doing this fixes the problem and now I can go to JMStudio and run the protocol using the 'Open URL'. Giving it 'live://' plays the 'blue screen' like a gem.
    4. But here is the catch now. When I create an application which tries to create a player using live:// as a source, it doesn't run and keeps giving me a noPlayerException, or a noDataSourceException (as the case would apply; code given below).
    The funny part is that i checked the JMStudio source code for the method that is used to 'Open URL'. I haven't found any siginificant change in the way it opens urls.
    I also went a step further and tried to compile and run the JMStudio code myself to trace the code when it is in the process of opening a url. The weird thing is that when I try to do that, giving live:// as a URL gives me the same error that is given by my application. In other words JMStudio when compiled by me gives me same the error of "can't create a player..." when I open the url live://. Has Sun used a JMStudio compiled using a different source file?
    Please please anyone tell me what is wrong here.
    I have basically tried out these two kinds of things in my code, and both give me a noPlayerException error:
    Player guiPlayer = Manager.createRealizedPlayer(new MediaLocator("live://"));and
    DataSource ds = Manager.createDataSource("live://");
    Player guiPlayer = Manager.createRealizedPlayer(ds);Thanking in anticipation.
    regards

    Would it be possible for you to expand on your solution a little bit? I'm trying a similar approach, and having a similar problem to yours. From Googling, it appears as if this is a very common problem, and a lot of people give up before they solve it.
    I'm trying to use jmf.jag (and optionally add fobs4jmf.jar), not compile it from source. But I am trying to compile my own protocol from source and run it in a debugger. I have all the class files going out to the same output directory, and IntelliJ generally adds them all to the CLASSPATH automatically. But I keep getting NoPlayerException. (If I break down the players construction step-by-step, it seems to fail on "Processor ps = Manager.createProcessor(ds);".)
    I'm trying to play a Quicktime movie from memory, and I've confirmed that I'm returning "video.quicktime", that my stream is Seekable and isRandomAccess returns true, my prefix is in the protocol list, and that the package name is correct. I've tried with PLUGIN_PLAYER being true or false, media type being video.quicktime or unknown, and every other permutation I can think of.
    Any help would be greatly appreciated.

  • Dump during extraction for the custom datasource (ZFI_GL_14).

    Hello all,
    we are using Ecc 6.0 and we havent installed Enhancement Package 3. However our requirement is to create a custom datasource (ZFI_GL_14) similar to the standard one (0FI_GL_14). Initially we created the custom DS same as the standard one with the extraction method using Function Module. By default custom DS was assigned with extraction method F2. By running a program we changed F2 to F1 to resemble the standard one and made it as delta enabled as specified in the standard extractor.
    when we started extracting the custom DS using RSA3, we encountered so many errors and resolved them. However still we are getting some more errors which requires your help.
    1. While testing One of the function module FAGL_GET_LINE_ITEMS, it throws following ABAP dump.
    Short text                                                                               
    |    A dynamically specified FROM clause has an unexpected format.                              
    |What happened?                                                                               
    |    Error in the ABAP Application Program                                                        
    |                                                                               
    |    The current ABAP program "SAPLYPFI_FAGL_ITEMS_SELECT_BW" had to be terminated                
    |     because it has come across a statement that unfortunately cannot be executed.                               
    |Error analysis                                                                               
    |    An exception occurred that is explained in detail below.                                     
    |    The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SYNTAX', was not               
    |     caught in                                                                               
    |    procedure "YPFI_FAGL_GET_LINE_ITEMS" "(FUNCTION)", nor was it propagated by a                
    |     RAISING clause.                                                                             
    |    Since the caller of the procedure could not have anticipated that the                        
    |    exception would occur, the current program is terminated.                                    
    |    The reason for the exception is:                                                             
    |    The running ABAP program attempted to execute an Open SQL statement in                       
       which a FROM clause was specified dynamically in the field "LD_DBTAB_SYNTAX".                
    |     In this                                                                               
    |    FROM clause, either a table name after a join operator is missing, or an                     
    |     alias name after the key name "AS". The field "LD_DBTAB_SYNTAX" could be empty as well.                                                                               
    |Missing RAISING Clause in Interface                                                              
    |    Program                                 SAPLYPFI_FAGL_ITEMS_SELECT_BW                        
    |    Include                                 LYPFI_FAGL_ITEMS_SELECT_BWU01                        
    |    Row                                     1                                                    
    |    Module type                             (FUNCTION)                                           
    |    Module Name                             YPFI_FAGL_GET_LINE_ITEMS                             
    |Trigger Location of Exception                                                                    
    |    Program                                 SAPLYPFI_FAGL_ITEMS_SELECT_BW                        
    |    Include                                 LYPFI_FAGL_ITEMS_SELECT_BWU01                        
    |    Row                                     353                                                  
    |    Module type                             (FUNCTION)                                           
    |    Module Name                             YPFI_FAGL_GET_LINE_ITEMS                             
    |Source Code Extract                                                                               
    |Line |SourceCde                                                                               
    |  323|                                  lt_fields_flexgl                                         
    |  324|                                  lt_fields_table1                                         
    |  325|                                  lt_fields_table2                                         
    |  326|                                  gv_si_table "erste Tab immer Flexgl?                    
    |  327|                                  gc_bkpf                                                  
    |  328|*                                  ' '                  
    |  329|                                  gc_bkpf_aedat       
    |  330|                                  'X'                                                      
    |  331|                            CHANGING ld_dbtab_syntax                                       
    |  332|                                     lt_fldlist_s                                          
    |  333|                                     lt_where_tab[].                                       
    334
    |  335|*       open cursor                                                                        
    |  336|        DESCRIBE TABLE lt_where_tab LINES ld_lines.                                       
    |  337|        IF ld_lines GT 0.                                                                 
    |  338|          delta_dbcnt          = 0.                                                       
    |  339|          old_dbcnt            = 0.                                                        
    |  340|          flag_cursor_open     = 'X'.                                                     
    |  341|          cursor_flag          = 'X'.                                                      
    342
    |  343|          OPEN CURSOR WITH HOLD i_cursor FOR                                               
    |  344|          SELECT (lt_fldlist_s)                                                            
    |  345|            FROM (ld_dbtab_syntax) CLIENT SPECIFIED                                        
    |  346|             WHERE (lt_where_tab).                                                         
    |  347|        ELSE.                                                                               
    |  348|          delta_dbcnt          = 0.                                                        
    |  349|          old_dbcnt            = 0.                                                        
    |  350|          flag_cursor_open     = 'X'.                                                      
    |  351|          cursor_flag          = 'X'.                                                      
    352
    |>>>>>|          OPEN CURSOR WITH HOLD i_cursor FOR                                               
    |  354|          SELECT (lt_fldlist_s)                                                            
    |  355|            FROM (ld_dbtab_syntax) CLIENT SPECIFIED.                                       
    |  356|        ENDIF.                                                                             
    357
    |  358|        st_selection[]  = lt_selection[].                  
    |  359|        st_fieldlist[]  = lt_fieldlist[].                  
    |  360|        sd_dbtab_syntax = ld_dbtab_syntax.             
    |  361|        st_fldlist_s[]  = lt_fldlist_s[].                
    |  362|        st_where_tab[]  = lt_where_tab[].                
    |  363|        st_seltable2[]  = lt_seltable2[].                 
    364
    |  365|      ENDIF.   "cursor_flag                                                               
    366
    |  367|      lt_selection[]  = st_selection[].                 
    |  368|      lt_fieldlist[]  = st_fieldlist[].                                       
    |  369|      ld_dbtab_syntax = sd_dbtab_syntax.        
    |  370|      lt_fldlist_s[]  = st_fldlist_s[].                 
    |  371|      lt_where_tab[]  = st_where_tab[].              
    |  372|      lt_seltable2[]  = st_seltable2[].                   
    Line 353 contains the error.
    1. L_DBTAB_SYNTAX. As per the statement this field should bring the table name, but it is not bringing any value                          whiledebugging.
    2.also lt_fldlist_s should bring the field names.
    As this is for New GL line item datasource, I am not sure what fields should lt_fldlist_s and what table name , and wheretab value should come , so that the function module can extract the data.
    Kindly help me to get an insight into this issue and to get it resolved.
    thanks,
    Praba...

    Hi Frank,
    yes I agree. That was the first question that came to me in my mind. However, the job was handed over to us, and we were able to exactly create the custom DS , FM and Function groups as similar to the standard one and everthing got activated perfectly. But during extraction, it throws the dump.While debugging, the function module is not able to pick the value for the 3 fileds which I stated above in one of my queries. The main extractor for this Datasource is FAGL_GET_SI_DATA and it uses the extract structure FAGLPOSBW.This Main function module in turn calls one more FM, FAGL_GET_LINE_ITEMS by exporting below parameters.
    CALL FUNCTION 'FAGL_GET_LINE_ITEMS'
              EXPORTING
                i_block_data = 'X'
                i_block_size = sd_max_lines
                i_selection  = lt_select_int
                i_fieldlist  = lt_fields_int
                i_initflag   = i_initflag.
          ELSE.
    From my observation ,  the above statements i_selection  = lt_select_int  and i_fieldlist  = lt_fields_int should contain/pass the value to the line items FM, FAGL_GET_LINE_ITEMS.In the above thread also I mentioned I didnt get the value for ld_dbab_syntax, lt_fieldlst_s and ld_where_tab. I believe it is simply because i_selection and i_fieldlist is not getting the value from lt_select_init and lt_fields_init respectivelyImport parameters for this FM is as below.
    I_BLOCK_DATA     TYPE     C
    I_BLOCK_SIZE     TYPE     SY-TABIX
    I_SELECTION                           TYPE     GUSL_T_SELECTION
    I_FIELDLIST                           TYPE     GUSL_T_FIELDS
    I_INITFLAG                           TYPE     GUSL_BOOL
    I_CHANGED_RECORDS      TYPE     GUSL_BOOL
    export parameter for this FM is as below.
    FLAG_CURSOR_OPEN     TYPE     FLAG
    Changing parameter for this FM is as below
    C_T_FAGLPOSE     TYPE     FAGLPOSE_T
    where FAGLPOSE means Fields for Reading Data: Line Items: New General Ledger.GUSL_T_SELECTION is the same type like DDIC table type FB_T_FIELD_SELECT_OPTIONS which will have Fieldname and selection option range.GUSL_T_SELECTION is created within the type group GUSL as mentioned below.
    TYPES: BEGIN OF GUSL_S_SELECTION,
           FIELDNAME LIKE DFIES-FIELDNAME,
           T_RANGE   TYPE GUSL_T_RANGE,
           END   OF GUSL_S_SELECTION,
           GUSL_T_SELECTION TYPE GUSL_S_SELECTION OCCURS 20.
    wherein
    FIELDNAME LIKE DFIES-FIELDNAME,
    DFIES: --> DD Interface: Table Fields for DDIF_FIELDINFO_GET. Also GUSL_T_FIELDS refers to DFIES.
    Regards,
    Praba..

  • Player for custom datasource

    Hi
    I need to create a custom datasource but i want to play it on a player as other normal datasource.
    I tell you what im doing, I have developed a example to show you my problem:
    first thing i do is creating a custom datasource:
    import javax.media.*;
    import javax.media.protocol.DataSource;
    import javax.media.protocol.ContentDescriptor;
    public class myCustomDataSource extends DataSource {
         myCustomDataSource(MediaLocator ml){}
         public void connect(){}
         public void disconnect(){}
         public void start(){}
         public void stop(){}
         public String getContentType() {
              return ContentDescriptor.CONTENT_UNKNOWN;
         public Object[] getControls() {
             return new Object[0];
         public Object getControl(String type) {
             return null;
         public Time getDuration(){
              return Time.TIME_UNKNOWN;
    }then, I create a basic class that use a player for playing my custom datasource:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.media.*;
    import javax.media.protocol.DataSource;
    public class VideoPlayer extends JFrame {
         Player player = null;
         private JPanel contentPane;
         public static void main(String args[]){
              String mediaFile = "http://noodle.med.yale.edu/demos/dsr_arrow.mpg";
              MediaLocator locator = new MediaLocator(mediaFile);
              myCustomDataSource mcds = new myCustomDataSource(locator);
              (new VideoPlayer(mcds)).setVisible(true);
         public VideoPlayer(myCustomDataSource ds) {
              super("Example");
              setSize(400,400);
              contentPane = (JPanel) this.getContentPane();
              addWindowListener(new myWindowAdapter());
              try {
                   player = Manager.createPlayer(ds);
                   player.addControllerListener(new controllerUpdate());
              }catch(Exception e){
                   System.err.println("Error loading the media. ("+e+")");
              if(player!=null) player.realize();      
         class controllerUpdate implements ControllerListener {      
              public synchronized void controllerUpdate(ControllerEvent e) {      
                   if(e instanceof RealizeCompleteEvent) {
                        Component visualArea = player.getVisualComponent();      
                        Component controlPanel = player.getControlPanelComponent();      
                        if(visualArea!= null)      
                             contentPane.add(visualArea, BorderLayout.CENTER);      
                        if(controlPanel != null)      
                             contentPane.add(controlPanel, BorderLayout.SOUTH);      
                        validate();      
                        player.prefetch();
                   if(e instanceof PrefetchCompleteEvent) {
                        player.start();
         class myWindowAdapter extends WindowAdapter {
              public void windowClosing(WindowEvent e){
                   if(player!=null) player.close();
                        System.exit(0);
    }when i run it i get the next error: Error loading the media. (javax.media.NoPlayerException: Cannot find a Player for: myCustomDataSource@be0e27)
    I dont know how i must fill the myCustomDataSource class constructor and abstract methods to run it.
    I test videoplayer class with a normal datasource and it works
    sorry for my bad english
    Thanks so much

    ok, thanks for answering,
    I see a sun webpage example maybe can help: http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JpegImagesToMovie.html
    In that example, a custom datasource is declared and then a processor is created with that custom datasource using Manager.createProcessor. For that, custom data source class is declared inside class where processor is used. Im trying to do it but it doesnt work, i get the same error.
    thanks in advance
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Vector;
    import java.io.*;
    import javax.swing.*;
    import javax.media.*;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.DataSource;
    public class VideoPlayer extends JFrame {
         Processor p = null;
         private JPanel contentPane;
         myCustomDataSource mcds = null;
         public static void main(String args[]){
              String locator = "C:/video.avi";
              (new VideoPlayer(locator)).setVisible(true);
         public VideoPlayer(String locator) {
              super("Example");
              setSize(400,400);
              contentPane = (JPanel) this.getContentPane();
              addWindowListener(new myWindowAdapter());
              mcds = new myCustomDataSource(locator);
              try {
                   p = Manager.createProcessor(mcds);
              }catch(Exception e){
                   System.err.println("Error loading the media. ("+e+")");
              if(p != null){
                   //p.setContentDescriptor(null);
                   p.addControllerListener(new controllerUpdate());
                   p.configure();      
         class controllerUpdate implements ControllerListener {      
              public synchronized void controllerUpdate(ControllerEvent e) {      
                   if(e instanceof ConfigureCompleteEvent) {
                        p.realize();
                   if(e instanceof RealizeCompleteEvent) {
                        Component visualArea = p.getVisualComponent();      
                        Component controlPanel = p.getControlPanelComponent();      
                        if(visualArea!= null)      
                             contentPane.add(visualArea, BorderLayout.CENTER);      
                        if(controlPanel != null)      
                             contentPane.add(controlPanel, BorderLayout.SOUTH);      
                        validate();      
                        p.prefetch();
                   if(e instanceof PrefetchCompleteEvent) {
                        p.start();
         class myWindowAdapter extends WindowAdapter {
              public void windowClosing(WindowEvent e){
                   if(p != null) p.close();
                        System.exit(0);
         class myCustomDataSource extends DataSource {
              MediaLocator ml = null;
              myCustomDataSource(String locator){
                   ml = new MediaLocator("file://"+locator);
                   super.setLocator(ml);
              public void connect(){}
              public void disconnect(){}
              public void start(){}
              public void stop(){}
              public String getContentType() {
                   return ContentDescriptor.CONTENT_UNKNOWN;
              public Object[] getControls() {
                  return new Object[0];
              public Object getControl(String type) {
                  return null;
              public Time getDuration(){
                   return Time.TIME_UNKNOWN;
    }

  • How to create a Custom DataSource ?

    Hi to everybody,
    I'm a little confused about creating a custom DataSource that i need to create a player
    that shows as a video some jpeg images retrieved from an input stream.
    question 1:
    do i have to store all the images in the data source ? or i can just set the current image every time i rereceive a new image ?
    question 2:
    can i link my JpegInputStream to my custom data source in order to read the images ?
    thank you in advance
    ps please help me .. it's really important.
    Marco
    Message was edited by:
    lecoramarco
    Message was edited by:
    lecoramarco
    Message was edited by:
    lecoramarco

    hi
    u will have to create DS using FM.
    use the standard function module and edit the FM as per ur need.
    this post should help u....
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    cheers.

  • Selection criterion in custom DataSource doesn't appear in Infopackage

    Hello everyone!
    I have implemented a custom DataSource for service processes in CRM.
    I have defined a timestamp field as a selection criterion.
    In BW, in the Datasource fields tab, this field appears correctly defined, but it doesn't appear in the InfoPackage selection criteria tab.
    Any thoughts on this? Any help would be greatly appreciated!!
    Best Regards,
    Luís.

    Have you checked the selection option in Data source maintenance..?
    Thanks
    Tripple k

  • Steps to Enhance Custom DataSource

    Hello All,
    I have one custom datasource ZZ_PROD. From which I am extracting data and populatd in a ODS and then in to Cube in BI 7.0
    Now I have to enhance it and add about more 20 fields from two different ECC tables.
    These two tables are custom tables for a particular departmens.
    Can somebody explain me the steps  how I can accomplish this?
    Thanks in Advance
    Kumar M.

    I would recommend to change the function Module or the program it generates the ZZ_PROD.
    First Add the fields to the extract Structure.
    Unhide the newly added fields in the data source.
    Write the logic to grab the data from the two tables and assign it to proper extract structure fields.
    We normally enhance the datasource using User Exit since we don't want to make changes to SAP Delivered programs that would be overwritten during upgrades.
    Hope that helps.
    thanks.
    Wond

  • Delta in custom datasource - Purchase

    Hi,
    I am creating a custom datasource on purchasing using EKBE and EKET tables.
    can any one tell , how to capture the delta of this datasource using eg., PO number, time stamp etc.,
    Thanks
    Sridhar

    Hi Sridhar,
    In order to create a custom data source follow:
    1. Create a view on both the table.
    2.go to rso2
    3.select transactional data source ( if data fetched is transactional ).
    3 . give view name
    4. click on generic delta.
    5. give delta specific field :
      (  if yuo have chosen timestamp or calendar day then it  is required that your view should have these fields.)
       or else give any other field according to whic you want the delta to be generated.
    6.select after images ( applies to DSO )
    or select additive (applies to dso and infocube )
    save ->again save
    your custom data source is created.
    reward points if helpful
    Manish

Maybe you are looking for

  • Report For Blocked Sales Orders

    hi, i need some help to print blocked salesorders.........

  • Third Party Reporting Software

             Can anyone give me a line on thrid party reporting software that dips into the CUCM and has the ability to create custom reports and then send them via email, FTP, text, etc.  Need something that can be scheduled and automated as well.  The

  • Digi@nwhere A/D Plus on Windows XP MCE (not working with Media Center)

    I just recently bought a MSI Digi@nywhere A/D Plus from Newegg.com http://www.newegg.com/Product/Product.aspx?Item=N82E16815127008 to replace the WinTV by Hauppage that came with my HP Media Center m7640n, after installing the card and drivers, I am

  • Odd error when trying to repartition internal SSD

    I'm trying to reset my Macbook Air rev. 4,2 (Mid 2011, Thunderbolt port) to factory defaults because I decided that having BootCamp and Linux running together was not what I wanted. After using Disk Utility to remove the partitions created during the

  • View video file names

    Is there a way to view my video clips files names in 'camera roll'?  I have imported some from my old Android phone...they play but I'd like to see the names of the videos...