TSV_TNEW_PAGE_ALLOC_FAILED in Bw server,while execut t.code RSRT(netwear 7.3)

Dear experts,
when i execute T.code:RSRT, i get error like a no more more available in extend memory.In T.code: Db02 shows ()
1) An exception with the type CX_SY_STRUCT_COMP_NAMEoccurred, but was neither handled locally, nor declared in a RAISING clause
2)  Wrong number of input parameters [GET_INPUT_STRUCT].
In t.code:st22
TSV_TNEW_PAGE_ALLOC_FAILED
TSV_TABH_POOL_NO_ROLL_MEMORY
Please help to slove
Regards,
Prabaharan B

Hi,
You need to increase the abap heap limits on the system.
Please check the following Notes which describe this issue :
     020527  Runtime error TSV_TNEW_PAGE_ALLOC_FAILED
     1260912 - Memory overflow note: Dump TSV_TNEW_PAGE_ALLOC_FAILED
     1387739 - Out of memory errors during shadow system operation
Thanks,
Bhavin Vyas

Similar Messages

  • Client not modifiable message while executing t-code ops7 and ops6

    Hi Guru's,
    I am getting "Client not modifiable message while executing t-code ops7 and ops6" in Unit test and Quality client.
    Pleae help me to resolve the error.
    Regards
    Sasikanth Reddy

    Hi
    Copy of the information I found regarding this issue:
    It is possible to allow the maintenance of 'Customizing'-tables in a       
    production client, even if the client is set to 'not modifiable'.          
    Normally this should be the case for tables TCJ04 (responsible person)     
    and TCJ05 (applicant).                                                                               
    Please could you check the settings in your system and change it if        
    necessary:                                                                               
    Transaction SE11:                                                                               
    Table TCJ04: delivery class should be set to 'C'                           
          TCJ05: delivery class should be set to 'C'                                                                               
    Transaction SOBJ -> Maintain                                                                               
    Position on V_TCJ04: Category should be 'CUST' field 'current settings'    
    should be marked.                                                                               
    Position on V_TCJ05: Category should be 'CUST' field 'current settings'                                                                               
    Please also check that your client is defined as 'PRODUCTIVE' via          
    transaction SCC4 (field client role).                                                                               
    I would also recommend that you review the attached notes with reference   
    to the usage of customizing setting "current settings": Nr. 77430,         
    Nr. 135028, Nr. 356483. These are also relevant for your release.          
    Kind regards,
    Zhenbo

  • System is asking for password while executing t.code RSUDO

    Hi
    While executing t.code RSUDO ( Execute as user with restricted authorizations) on behalf of other user, system is asking for password.
    Can you tell the reason for it?
    System is BW 731.
    Thanks
    Saurabh

    Hi
    I had the same problem.
    What solved it for me was to add authorizations in PFCG for one of my roles
    The autorisation is : "Execution of transaction RSUDO without password"
    Heres what I added in PFCG:
    Authorization obj: R_SEC
    RSECADMOBJ:   RSUDO
    RSECADMVAL:   *
    ACTVT:                16
    Hope it will solved your problem.
    Robin

  • Error  while executing query through rsrt

    hello experts,
    I am facing following error while executing one HR query through rsrt.
    "System error in program SAPLRRI2 and form REP_ASSIGN_INITIAL_OPT-01- (see long text) "
    while executing query through rsrt it automatically goes to debug mode, coming out of debug mode i get the screan showing above error message.
    What would be an issue?
    Regards,
    Nirav
    Edited by: Nirav Shah on Apr 21, 2008 8:19 AM

    Hi ramesh,
    I havent kept any execlusion selection. Though i saw long text, it is like this:
    "Diagnosis
    This internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
      Notification Number BRAIN 299 "
    Regards,
    Nirav

  • CX_SY_NO_HANDLER Error While executing query in RSRT T-Code

    Hi Experts,
    I have created a data source extraction using function module.
    Then i have created customer exit variable, dso, infocube and all....
    my variable name is ZWBS_VAR and
            query name is WBS_VAR.
    while executing this query name I'm getting the exception CX_SY_NO_HANDLER.
    If i use WBS_VAR instead of ZWBS_VAR in when condition.. it is not showing that error.
    this is my code i have written in ZXRSRU01 include.
    DATA:it_wbs_elemt TYPE STANDARD TABLE OF /bic/awbsdsogn00,
         wa_wbs_elemt like line of it_wbs_elemt,
         L_S_RANGE TYPE RSR_T_RANGESID with header line,
         LOC_VAR_RANGE like line of i_T_VAR_RANGE,
         ZLOW TYPE C,
         LV_USER LIKE SY-UNAME,
         lv_user1 LIKE /bic/awbsdsogn00-/BIC/WBSE.
    CASE i_vnam.
    *****************************Start of Code for 'ZWBS_VAR' variable******************************
    when 'ZWBS_VAR'.
    lv_user = sy-uname.
    if lv_user CP '/BIC/WBSE'.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = lv_user
    IMPORTING
    output = lv_user1.
    CLEAR wa_wbs_elemt.
    SELECT * FROM /bic/awbsdsogn00 INTO TABLE it_wbs_elemt WHERE /BIC/WBSE = lv_user1.
    READ TABLE it_wbs_elemt INTO wa_wbs_elemt WITH KEY /BIC/WBSE = lv_user1.
    IF sy-subrc = 0.
    l_s_range-low = wa_wbs_elemt-/BIC/WBSE.
    l_s_range-sign = ' I '.
    l_s_range-opt = ' EQ'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    ENDIF.
    ENDCASE.
    IF I_STEP = 3.
    LOOP at i_t_var_range INTO loc_var_range WHERE vnam = 'ZWBS_VAR'.
    CLEAR : l_s_range.
    zlow = loc_var_range-low.
    lv_user = sy-uname.
    CALL FUNCTION 'CONVERSIOn_EXIT_ALPHA_OUTPUT'
    EXPORTING
    input = loc_var_range-low
    IMPORTING
    output = loc_var_range-low.
    IF lv_user NE loc_var_range-low.
    IF lv_user CP '/BIC/WBSE'.
    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
    EXPORTING
    I_CLASS = 'RSBBS'
    I_TYPE  = 'E'
    I_NUMBER = '000'
    I_MSGV1 = 'You are not authorized for the WBS ELEMENT'
    I_MSGV2 = loc_var_range-low
    I_MSGV3 = 'Enetr your valid WBS ELEMENT'
    I_MSGV4 = lv_user
    EXCEPTIONS
    OTHERS = 02.
    RAISE Again.
    ELSE.
    l_s_range-low = loc_var_range-low.
    l_s_range-sign = loc_var_range-sign.
    l_s_range-opt = loc_var_range-opt.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    ENDIf.
    ENDLOOP.
    ENDIF.
    If you find any errors in this piece of code please let me know..
    Thanks&Regads,
    Sirisha.

    Hey think other way round .
    Filtering the report with the partner(current user executing the report) will suffice your requirement .
    Am I correct ?
    If yes then follow this simple approach .
    Create a variable(mandatory, not ready for input ) of type customer exit on partner infoobject and filter your report with this variable .
    In this way the current user executing the report can see data only related to him .
    Type the below code in cmod .
    WHEN '(give your variable name).
         DATA :lv_bp        TYPE /bi0/oibpartner,
        CHECK i_step EQ '1'.
        lv_bp = sy-uname.
        IF lv_bp IS NOT INITIAL.
          lv_bp = ( sy-uname ) .
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = lv_bp
            IMPORTING
              output = lv_bp.
          l_s_range-sign = 'I'.
          l_s_range-opt  = 'EQ'.
          l_s_range-low  = lv_bp .
          APPEND l_s_range TO e_t_range.
          CLEAR : l_s_range,lv_bp.
        ENDIF.
    If this approach is not flexible in ur case then let me know will change the code what u have written as I can see many errors in that .
    Also I can figure it out that the whole code is ctrl c ctrl v of that sdn document but his requirement was quite different than yours .

  • Java run time error while executing JavaFX code

    Hi
    I copied the code from [http://java.sun.com/javafx/1/tutorials/ui/overview/UIControls.fx|http://java.sun.com/javafx/1/tutorials/ui/overview/UIControls.fx] while
    reading in [http://java.sun.com/javafx/1/tutorials/ui/overview/#controls|http://java.sun.com/javafx/1/tutorials/ui/overview/#controls] tutorial and paste it to my
    netbeans editor but i got following error.
    init:
    deps-jar:
    compile:
    jar:
    standard-run:
    # An unexpected error has been detected by Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d94513f, pid=5152, tid=5996
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # V  [jvm.dll+0xd513f]
    # An error report file with more information is saved as hs_err_pid5152.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    BUILD FAILED (total time: 18 seconds)can anyone tell whether its netbeans fault or javaFX. I am using netbeans 6.5.1 on windows vista. I have added following plugin in netbeans for javaFX
    *JavaFX Kit
    *JavaFX SDK for Windows
    is anyone also getting this error for this code and have solution for this.

    You are correct the crash is causing due to ToggleButton and ProgessBar. the code is correct because i tried it on eclipse 3.4 and it worked fine.This is definitely netbeans error. because its giving error even if u try to execute javafx code with just one ToggleButton or ProgressBar. I tried the following simple code in netbeans 6.5
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.control.ToggleButton;
    import javafx.scene.control.ProgressBar;
    var toggle=ToggleButton {
                    translateX:50
                    translateY:50
                    text: "First"
                    width:100
                    height:20
    var progress= ProgressBar {
            progress: bind ProgressBar.computeProgress( 100, 30 )
    Stage {
        title : "Toggle Button Test"
        scene: Scene {
            width: 200
            height: 200
            content: [ toggle
    } When i just added toggle button to contents then button showed up in window but on clicking it window disappear and compiler gave crash error on the other hand when i added just progess bar it just throws the error.The same code is running fine on eclipse
    Is there any workaround in netbeans for this if its a bug and if not what should i do to correct it.

  • While executing T.code F.5D system give"doc splitting is active in compcode

    Dear  Team,
    We are in ECC 6.0 and we have our business area wise balance sheet active and for some Business areas, balance sheet are not matching because of Non updation of business area in Tax line item for which we had configured OBXM settings correctly.
    While executing F.5D, F.5E system throws an message "Document splitting is active for company code XXXX".
    In order to execute these transactions how can i move ahead?
    Please reply its needed.
    Thanks & regards,
    Sandeep Jain

    hi sandeep,
    The system must have 'document split' functionality activated.
    Document split functionality replaced SAPF180* programs, so these
    programs are not allowed to be executed for doc-split active company
    code.
    For more information about the NewGL and document splitting, please
    have a look to the added notes 826357 and 741821.
    If you decide not to use document splitting functionality, you may
    turn it off at IMG:Activate Document Splitting. Here, you can also
    deactivate the functionality per company code.
    Reg
    Madhu M

  • Problem While Executing T.CODE DP90

    Hi,
      We have Upgrade our system from 4.6C to ECC6.
      We are facing following problem while executing Resource Related Billing request 
      Through Transaction code DP90.
    Process.
    1.     We are creating Sales Order and system will create Service order automatically as per the configuration.
    2.     In service order we have External as well internal operations ,
    Internal operations will be confirmed through IW41, and External Operations we are creating Purchase Requisition then creating PO and MIRO,
    After all Operations confirmed we will make Service order status as technically completed, then we are executing DP90 for Resource Related Billing, System will determine the material, combination of Cost element and Activity Type (Which is configured in T.Code ODP1) For External Operations System is Considering Activity Type for material determination in 4.6c but it is not considering Activity Type for Material Determination in ECC6 for External Operations.
       Please Help me,
    Edited by: D B on Apr 29, 2008 6:13 PM

    Hi Prashanth,
          Thanks for your reply, but all activity are valid in current period, in our Scenario in the old system for External Operations with combination of Activity type and Cost element system is determining material but where as in the new system for external operations it is not considering the Activity type and system is determining the material in the combination of   Cost element and Blank activity type so, we are getting different material in DP90.

  • Errror while executing transaction code ME23N

    hi,
    Errror occurs while executing the transaction code ME23N
    error message as follows:-
       YOU ARE NOT AUTHORISED TO EXECUTE PROGRAM SAPLMEPO
    PLEASE SUGGEST SOME SOLUTIONS TO IT.

    Hi,
    Execute transaction ME23N. WHen you will get message for no authorization, enter /nSU53 in command field. System will display missing authorisation object frm your roles. Give this authorisation object along with values (or provide screeprint) to security person. He/ she may provide you required authorisation.

  • Error while executing the code as sys user

    Hi,
    Below is the code that creates a procedure. Though the proc gets created successfully, while trying to execute it, I get the below error
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_SESSION", line 101
    ORA-06512: at "SYS.MY_TEST_PROC", line 20
    ORA-06512: at line 1
    The proc is created by sys and executed by sys too
    create or replace procedure my_test_proc as
    TYPE CUR1 IS REF CURSOR;
    CURSOR c1 is
    select ename from SCOTT.emp where rownum <2;
    v_name varchar2(30);
    MY_CUR CUR1;
    STRQRY VARCHAR2(2000);
    L_PARAM DBMS_SQL.VARCHAR2S;
    CNT NUMBER;
    V_DATA SCOTT.EMP%ROWTYPE;
    BEGIN
    STRQRY := 'SELECT * FROM SCOTT.EMP WHERE 1 =1 and (( 1= 1) ';
    CNT := 0;
    open c1;
    loop
    fetch c1 into v_name;
    exit when c1%notfound;
    CNT := CNT + 1;
    dbms_session.set_context('MY_CTX','ENAME_' || CNT, V_NAME);
    STRQRY := STRQRY || ' OR (ENAME = SYS_CONTEXT(''MY_CTX'',''ENAME_1'')';
    end loop;
    DBMS_OUTPUT.PUT_LINE(STRQRY || ')');
    CLOSE C1;
    END my_test_proc;
    ============================================================
    EXEC my_test_proc;
    Please help.

    >
    STRQRY := 'SELECT * FROM SCOTT.EMP WHERE 1 =1 and (( 1= 1) ';
    >
    The above query won't work because there is a syntax error.
    Count the numbers of left and right parentheses.
    Edit your post and use code tags and tell us which is line #20.
    My guess is that it is this line
    dbms_session.set_context('MY_CTX','ENAME_' || CNT, V_NAME); You don't show any code for the CONTEXT procedure. DBMS_SESSION.SET_CONTEXT in the PL/SQL Packages and Types doc
    See http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_sessio.htm#i1010942
    >
    The caller of SET_CONTEXT must be in the calling stack of a procedure that has been associated to the context namespace through a CREATE CONTEXT statement. The checking of the calling stack does not cross a DBMS boundary.

  • ABAP runtime error while executing T.code : PC00_M40_CALC

    Hi,
    I have applied SAP note 1568264 - Budget Changes 2011 as released by
    SAP and i also applied the pre-requiste SAP notes mentioned in the
    above SAP note
    1) SAP Note 1558475- Amendments to IT calculation notified under
    circular:08/2010.
    2) SAP Note 1572614- Tax calculations inconsistent for emp. without a
    vaild PAN.
    3) SAP Note 1575366- HINCALC0:Tax calculation inconsistent in case of
    invalid PAN.
    After applying the SAP notes, when i am trying to execute the T.Code :
    PC00_M40_CALC, i am getting an "Abap runtime error"
    "  Error in the ABAP Application Program
    The current ABAP program "????????????????????????????????????????" had to be
      terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "HINCALC0 " in include "PCTAXIN0
      " in
    line 905:
    ""ENDUZ-" expected, not "EDU_""
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "S2K_BASIS "
    Error in the ABAP Application Program
    The current ABAP program "????????????????????????????????????????" had to be
      terminated because it has
    come across a statement that unfortunately cannot be executed.   "
    Kindly suggest me what has to be done on priority basis.
    Regards
    Vish

    The dump error is generally encountered if your system is at a lower Support Pack level. For implementing Note 1568264 (Budget Changes 2011), you need to be at the below mentioned pre-requisite level corresponding to your Release:
    Prerequisites:
       Release     Support Package
         604         HRSP29
         600         HRSP63
         500         HRSP80
         470         HRSPB4
         46C         HRSPG9
    The correct sequence to implement the Notes is:
    SAP Note 1558475- Amendments to IT calculation notified under
    circular:08/2010.
    SAP Note 1572614- Tax calculations inconsistent for emp. without a
    vaild PAN.
    SAP Note 1575366- HINCALC0:Tax calculation inconsistent in case of
    invalid PAN.
    SAP Note 1568264- Budget Changes 2011
    This should solve the issue unless there is some problem while implementing the Notes.
    Regards,
    Nishtha

  • Problem while executing the code( that covert jpeg images to movie)

    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JpegImagesToMovie.html
    here is the code:
    * @(#)JpegImagesToMovie.java     1.3 01/03/13
    * Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
    * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
    * modify and redistribute this software in source and binary code form,
    * provided that i) this copyright notice and license appear on all copies of
    * the software; and ii) Licensee does not utilize the software in a manner
    * which is disparaging to Sun.
    * This software is provided "AS IS," without a warranty of any kind. ALL
    * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
    * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
    * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
    * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
    * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
    * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
    * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
    * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
    * POSSIBILITY OF SUCH DAMAGES.
    * This software is not designed or intended for use in on-line control of
    * aircraft, air traffic, aircraft navigation or aircraft communications; or in
    * the design, construction, operation or maintenance of any nuclear
    * facility. Licensee represents and warrants that it will not use or
    * redistribute the Software for such purposes.
    import java.io.*;
    import java.util.*;
    import java.awt.Dimension;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.media.datasink.*;
    import javax.media.format.VideoFormat;
    * This program takes a list of JPEG image files and convert them into
    * a QuickTime movie.
    public class JpegImagesToMovie3 implements ControllerListener, DataSinkListener {
    public boolean doIt(int width, int height, int frameRate, Vector inFiles, MediaLocator outML) {
         ImageDataSource ids = new ImageDataSource(width, height, frameRate, inFiles);
         Processor p;
         try {
         System.err.println("- create processor for the image datasource ...");
         p = Manager.createProcessor(ids);
         } catch (Exception e) {
         System.err.println("Yikes! Cannot create a processor from the data source.");
         return false;
         p.addControllerListener(this);
         // Put the Processor into configured state so we can set
         // some processing options on the processor.
         p.configure();
         if (!waitForState(p, p.Configured)) {
         System.err.println("Failed to configure the processor.");
         return false;
         // Set the output content descriptor to QuickTime.
         p.setContentDescriptor(new ContentDescriptor(FileTypeDescriptor.QUICKTIME));
         // Query for the processor for supported formats.
         // Then set it on the processor.
         TrackControl tcs[] = p.getTrackControls();
         Format f[] = tcs[0].getSupportedFormats();
         if (f == null || f.length <= 0) {
         System.err.println("The mux does not support the input format: " + tcs[0].getFormat());
         return false;
         tcs[0].setFormat(f[0]);
         System.err.println("Setting the track format to: " + f[0]);
         // We are done with programming the processor. Let's just
         // realize it.
         p.realize();
         if (!waitForState(p, p.Realized)) {
         System.err.println("Failed to realize the processor.");
         return false;
         // Now, we'll need to create a DataSink.
         DataSink dsink;
         if ((dsink = createDataSink(p, outML)) == null) {
         System.err.println("Failed to create a DataSink for the given output MediaLocator: " + outML);
         return false;
         dsink.addDataSinkListener(this);
         fileDone = false;
         System.err.println("start processing...");
         // OK, we can now start the actual transcoding.
         try {
         p.start();
         dsink.start();
         } catch (IOException e) {
         System.err.println("IO error during processing");
         return false;
         // Wait for EndOfStream event.
         waitForFileDone();
         // Cleanup.
         try {
         dsink.close();
         } catch (Exception e) {}
         p.removeControllerListener(this);
         System.err.println("...done processing.");
         return true;
    * Create the DataSink.
    DataSink createDataSink(Processor p, MediaLocator outML) {
         DataSource ds;
         if ((ds = p.getDataOutput()) == null) {
         System.err.println("Something is really wrong: the processor does not have an output DataSource");
         return null;
         DataSink dsink;
         try {
         System.err.println("- create DataSink for: " + outML);
         dsink = Manager.createDataSink(ds, outML);
         dsink.open();
         } catch (Exception e) {
         System.err.println("Cannot create the DataSink: " + e);
         return null;
         return dsink;
    Object waitSync = new Object();
    boolean stateTransitionOK = true;
    * Block until the processor has transitioned to the given state.
    * Return false if the transition failed.
    boolean waitForState(Processor p, int state) {
         synchronized (waitSync) {
         try {
              while (p.getState() < state && stateTransitionOK)
              waitSync.wait();
         } catch (Exception e) {}
         return stateTransitionOK;
    * Controller Listener.
    public void controllerUpdate(ControllerEvent evt) {
         if (evt instanceof ConfigureCompleteEvent ||
         evt instanceof RealizeCompleteEvent ||
         evt instanceof PrefetchCompleteEvent) {
         synchronized (waitSync) {
              stateTransitionOK = true;
              waitSync.notifyAll();
         } else if (evt instanceof ResourceUnavailableEvent) {
         synchronized (waitSync) {
              stateTransitionOK = false;
              waitSync.notifyAll();
         } else if (evt instanceof EndOfMediaEvent) {
         evt.getSourceController().stop();
         evt.getSourceController().close();
    Object waitFileSync = new Object();
    boolean fileDone = false;
    boolean fileSuccess = true;
    * Block until file writing is done.
    boolean waitForFileDone() {
         synchronized (waitFileSync) {
         try {
              while (!fileDone)
              waitFileSync.wait();
         } catch (Exception e) {}
         return fileSuccess;
    * Event handler for the file writer.
    public void dataSinkUpdate(DataSinkEvent evt) {
         if (evt instanceof EndOfStreamEvent) {
         synchronized (waitFileSync) {
              fileDone = true;
              waitFileSync.notifyAll();
         } else if (evt instanceof DataSinkErrorEvent) {
         synchronized (waitFileSync) {
              fileDone = true;
              fileSuccess = false;
              waitFileSync.notifyAll();
    public static void main(String args[]) {
         if (args.length == 0)
         prUsage();
         // Parse the arguments.
         int i = 0;
         int width = -1, height = -1, frameRate = 1;
         Vector inputFiles = new Vector();
         String outputURL = null;
         while (i < args.length) {
         if (args.equals("-w")) {
              i++;
              if (i >= args.length)
              prUsage();
              width = new Integer(args[i]).intValue();
         } else if (args[i].equals("-h")) {
              i++;
              if (i >= args.length)
              prUsage();
              height = new Integer(args[i]).intValue();
         } else if (args[i].equals("-f")) {
              i++;
              if (i >= args.length)
              prUsage();
              frameRate = new Integer(args[i]).intValue();
         } else if (args[i].equals("-o")) {
              i++;
              if (i >= args.length)
              prUsage();
              outputURL = args[i];
         } else {
              inputFiles.addElement(args[i]);
         i++;
         if (outputURL == null || inputFiles.size() == 0)
         prUsage();
         // Check for output file extension.
         if (!outputURL.endsWith(".mov") && !outputURL.endsWith(".MOV")) {
         System.err.println("The output file extension should end with a .mov extension");
         prUsage();
         if (width < 0 || height < 0) {
         System.err.println("Please specify the correct image size.");
         prUsage();
         // Check the frame rate.
         if (frameRate < 1)
         frameRate = 1;
         // Generate the output media locators.
         MediaLocator oml;
         if ((oml = createMediaLocator(outputURL)) == null) {
         System.err.println("Cannot build media locator from: " + outputURL);
         System.exit(0);
         JpegImagesToMovie3 imageToMovie3 = new JpegImagesToMovie3();
         imageToMovie3.doIt(width, height, frameRate, inputFiles, oml);
         System.exit(0);
    static void prUsage() {
         System.err.println("Usage: java JpegImagesToMovie -w <width> -h <height> -f <frame rate> -o <output URL> <input JPEG file 1> <input JPEG file 2> ...");
         System.exit(-1);
    * Create a media locator from the given string.
    static MediaLocator createMediaLocator(String url) {
         MediaLocator ml;
         if (url.indexOf(":") > 0 && (ml = new MediaLocator(url)) != null)
         return ml;
         if (url.startsWith(File.separator)) {
         if ((ml = new MediaLocator("file:" + url)) != null)
              return ml;
         } else {
         String file = "file:" + System.getProperty("user.dir") + File.separator + url;
         if ((ml = new MediaLocator(file)) != null)
              return ml;
         return null;
    // Inner classes.
    * A DataSource to read from a list of JPEG image files and
    * turn that into a stream of JMF buffers.
    * The DataSource is not seekable or positionable.
    class ImageDataSource extends PullBufferDataSource {
         ImageSourceStream streams[];
         ImageDataSource(int width, int height, int frameRate, Vector images) {
         streams = new ImageSourceStream[1];
         streams[0] = new ImageSourceStream(width, height, frameRate, images);
         public void setLocator(MediaLocator source) {
         public MediaLocator getLocator() {
         return null;
         * Content type is of RAW since we are sending buffers of video
         * frames without a container format.
         public String getContentType() {
         return ContentDescriptor.RAW;
         public void connect() {
         public void disconnect() {
         public void start() {
         public void stop() {
         * Return the ImageSourceStreams.
         public PullBufferStream[] getStreams() {
         return streams;
         * We could have derived the duration from the number of
         * frames and frame rate. But for the purpose of this program,
         * it's not necessary.
         public Time getDuration() {
         return DURATION_UNKNOWN;
         public Object[] getControls() {
         return new Object[0];
         public Object getControl(String type) {
         return null;
    * The source stream to go along with ImageDataSource.
    class ImageSourceStream implements PullBufferStream {
         Vector images;
         int width, height;
         VideoFormat format;
         int nextImage = 0;     // index of the next image to be read.
         boolean ended = false;
         public ImageSourceStream(int width, int height, int frameRate, Vector images) {
         this.width = width;
         this.height = height;
         this.images = images;
         format = new VideoFormat(VideoFormat.JPEG,
                        new Dimension(width, height),
                        Format.NOT_SPECIFIED,
                        Format.byteArray,
                        (float)frameRate);
         * We should never need to block assuming data are read from files.
         public boolean willReadBlock() {
         return false;
         * This is called from the Processor to read a frame worth
         * of video data.
         public void read(Buffer buf) throws IOException {
         // Check if we've finished all the frames.
         if (nextImage >= images.size()) {
              // We are done. Set EndOfMedia.
              System.err.println("Done reading all images.");
              buf.setEOM(true);
              buf.setOffset(0);
              buf.setLength(0);
              ended = true;
              return;
         String imageFile = (String)images.elementAt(nextImage);
         nextImage++;
         System.err.println(" - reading image file: " + imageFile);
         // Open a random access file for the next image.
         RandomAccessFile raFile;
         raFile = new RandomAccessFile(imageFile, "r");
         byte data[] = null;
         // Check the input buffer type & size.
         if (buf.getData() instanceof byte[])
              data = (byte[])buf.getData();
         // Check to see the given buffer is big enough for the frame.
         if (data == null || data.length < raFile.length()) {
              data = new byte[(int)raFile.length()];
              buf.setData(data);
         // Read the entire JPEG image from the file.
         raFile.readFully(data, 0, (int)raFile.length());
         System.err.println(" read " + raFile.length() + " bytes.");
         buf.setOffset(0);
         buf.setLength((int)raFile.length());
         buf.setFormat(format);
         buf.setFlags(buf.getFlags() | buf.FLAG_KEY_FRAME);
         // Close the random access file.
         raFile.close();
         * Return the format of each video frame. That will be JPEG.
         public Format getFormat() {
         return format;
         public ContentDescriptor getContentDescriptor() {
         return new ContentDescriptor(ContentDescriptor.RAW);
         public long getContentLength() {
         return 0;
         public boolean endOfStream() {
         return ended;
         public Object[] getControls() {
         return new Object[0];
         public Object getControl(String type) {
         return null;
    on executing with the command:
    java JpegImagesToMovie -w <width> -h <height> -f <frame rate per sec.> -o <output URL> <input JPEG file 1> <input JPEG file 2> ...
    comes this......
    Exception in thread"JMF thread:SendEventQueue:com.sun.media.processor.unknown Handler" java.lang.NullPointerException"
    plz help

    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • Java Runtime crash while executing native code.(version 1.6.0_10-beta)

    HI all
    i observed a crash while execution a native fuction , which is initializing an
    char array of size (1024*1024).Plz see the code snippet below:
    But it is working with java version: 1.5.0
    FileTest.c:
    #include<stdio.h>
    #include<fcntl.h>
    #include<string.h>
    #include<stdlib.h>
    #include "HelloWorld.h"
    JNIEXPORT jint JNICALL Java_HelloWorld_CreateLargestF<div style="direction: ltr">ile (JNIEnv * env, jclass obj)
    //int CreateLargestFile(char* filename)
    char *filename = "LargestFile.tmp";
    int fd = creat(filename, 0666);
    if(fd == -1)
    return 0;
    int size = 1024 * 1024;
    char buffer[size];
    //buffer is not filled fully, JRE aborts after i reaches to 61327 approx.
    int i;
    for( i = 0;i<size;i++)
    buffer[i] = 'a';
    printf("\n\n==>> Executing FSTLD0001 : buffer %d = %c \n",i,buffer);
    printf("\n\n==>> Executing FSTLD0001 : after init\n");
    //memset(buffer, 'a', size);
    while(1)
    long bytes = write(fd, buffer, size);
    if(bytes < size)
    break;
    close(fd);
    return 1;
    HelloWorld.java
    public class HelloWorld {
    public static native int CreateLargestFile();
    public static void main(String[] args)
    String dir = System.getProperty("user.dir");
    String libpath = dir + "/libFileTest.so";
    System.load(libpath);
    CreateLargestFile();
    jni.h version used is: 1.56 03/12/19
    jni_md.h version used is : 1.14 03/12/19
    FULL PRODUCT VERSION :
    java version "1.6.0_10-beta"
    Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b14)
    Java HotSpot(TM) Client VM (11.0-b11 mixed mode, sharing)
    FULL OS VERSION :
    Linux debian 2.6.18-6-686 #1 SMP Sun Feb 10 22:11:31 UTC 2008 i686 GNU/Linux
    ERROR MESSAGES:
    # An unexpected error has been detected by Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0xb7eec667, pid=7128, tid=3084340144
    # Java VM: Java HotSpot(TM) Client VM (11.0-b11 mixed mode, sharing linux-x86)
    # Problematic frame:
    # C [libFileTest.so+0x667] Java_HelloWorld_CreateLargestFile+0x8b
    <div style="direction: ltr">#
    # If you would like to submit a bug report, please visit:
    # [http://java.sun.com/webapps/bugreport/crash.jsp]
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.</div>
    May i have any feedbacks or help?
    Thanks
    </div>

    Stack size perhaps?
    Allocate the buffer off the heap instead of the stack.
    The following might be related (might not as well.)
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6227033
    There is a flag that adds info for jni via the command line turn it on.

  • Runtime error while executing t-code NWP1

    Hi!
    One of our users is getting the runtime error CONVT_NO_NUMBER when she tries to execute the t-code NWP1. This is only with this user whereas her colleagues are able to execute it without any issues. Her decimal notation value in her UMR is specified as 1234,567.89, I changed it to other settings but still no luck. Does it have anything to do with her user parameters because this issue is only for this one user. Please help and thank you very much in advance
    Regards,
    Aj

    Did you compare her user with another one that is working properly?....
    Does it have anything to do with her user parameters because this issue is only for this one user
    Most likely, that's way I suggest to compare the user... also you can try recreating the user to see if theres something wrong with her user master record.
    Regards
    Juan

  • Is it possible to ignore some events, while executing some code?

    The problem is following: imagine the interface, consisting of three buttons - start, stop, save and one graph indicator. When one press start button some sequence of events is fired, and some data is shown on the graph (this sequence can be prolonged in time for a few hours). After completion of sequence one can save data. All is good except one thing: what will happen if start button have been pressed while execution? Start sequence will be fired again and previously acquired data will be lost. So the question is following: is it possible to erase (or ignore) some events from events stack?
    Locking front panel is not good idea, because some other controls (for example stop) might be needed.
    Making start
    button disabled and grayed out is not good idea because user can click on that button (thus generate events) a lot of times before the disabling will occur.
    Creation of data buffer for storing graphs is not good idea as well because it do not solves the problem.
    www.xinstruments.com
    Custom Software for Industrial Automation
    www.hdrconverter.com
    Picture processing made easy

    In newer version of LabVIEW, you can use dynamic event registration. What is your version?
    I would add e.g. a shift registers that keeps track of the state, then you can query it in each event case. Each event case will have a case structure inside wired to the state. States could be (0: new, 1: data has bee acquired, 2: all is saved, etc.). "Start" would only work if state is 0 or 2, "save" would only work if state is 1, etc.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Problem in Preview of Crystal Report

    Hello Experts !!!!! I have created a User Defined Form through SDK. I have created a Crystal Report also for that Form. Now on the click of Preview Menu of SBO I want to open my Crystal report. For this I have called the following function in Menu Ev

  • BPS CCA Retractor setup

    Hi All, I am new to BPS and and am trying to set up the functionality for Retraction of data from SEM to R/3. But when I go to the transaction (as mentioned in SAP Help) Business Analytics -> Financial Analytics -> Cost Center Planning -> Cost Center

  • Sharing photos on iCloud

    I shared some photos recently with streaming with my sisters.  I tried to add some photos and resend them as sharing through streaming, and it comes up with this: Does this mean my email username and password or what.  I haven't changed anything sinc

  • Ipad is stuck saying restoring in albums.

    ipad is stuck saying restoring in albums. pictures are showing up in photos but not in albums tab. I unchecked icloud both on the ipad and through computer. I even deleted icloud account off of ipad and still restoring will not go away. I tryed resyn

  • Download OAS 4.0.8.1

    Can somebody show me how I can obtain a username/password for download OAS 4.0.8.1 and JSP plugin from www.olab.com. Many Thanks.